搜尋
首頁資料庫mysql教程在Ubuntu 11.04 64-bit 系统中安装Oracle 11g r2

在Ubuntu 11.04 64-bit 系统中安装Oracle 11g r2

Install Oracle 11gR2 Ubuntu Linux 11.04 (64-bit)
Version C - update May 31, 2011
Author: Dude

Note: The following instructions work for Oracle 11gR2 11.2.0.1 (x86_64) and have also been tested with an Out-of-Place upgrade to 11.2.0.2. Just select the "ignore all" button at the prerequisite checks. It worked fine, including the Network Configuration and Database Upgrade Assistant.

If you go straight to 11.2.0.2 you may not need to install any 32-bit libraries, but I didn't try it.

Please note that Oracle 11gR2 on Ubuntu Linux is not supported by Oracle.

System setup and Prerequisites
The following assumes a default installation of Ubuntu 11.04, 64-bit, configured with access to the Internet.

You will need Terminal command line and Console access to perform the setup tasks. To open a Terminal on the system console:
Menu Applications => Accessories => Terminal

To enable remote ssh login and root access, type the following commands:
sudo apt-get install openssh-server sudo passwd root

1. Required 64-bit and 32-bit software packages
The best way to install packages is to use the standard debian package manager.
Open a Terminal and enter the following commands to install required packages:
sudo apt-get install libaio1 sudo apt-get install libaio-dev sudo apt-get install unixODBC sudo apt-get install unixODBC-dev sudo apt-get install expat sudo apt-get install sysstat sudo apt-get install libelf-dev sudo apt-get install elfutils sudo apt-get install lsb-cxx sudo apt-get install pdksh sudo sudo apt-get install libstdc++5 sudo sudo apt-get install ia32-libs

The following is not required, but will fix backspace and arrow keys in the vi-editor:
sudo apt-get install vim

2. Utilities and Libraries
The Oracle installation expects certain utilities and libraries in different locations:
sudo ln -s /usr/bin/basename /bin/basename sudo ln -s /usr/bin/awk /bin/awk   sudo ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/  sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib64/  sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib64/    sudo ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib64

3. Kernel Parameters
Oracle requires the following additional kernel parameters:
Create a kernel parameter file: sudo cat - >> /etc/sysctl.d/60-oracle.conf   (then cut & paste the following)   # Oracle 11gR2 kernel parameters fs.aio-max-nr=1048576 fs.file-max=6815744 net.ipv4.ip_local_port_range=9000 65500 net.core.rmem_default=262144 net.core.rmem_max=4194304 net.core.wmem_default=262144 net.core.wmem_max=1048586 kernel.sem=250 32000 100 128 kernel.shmmax=2147483648   (then type Ctrl-d to write the file)   Note: kernel.shmmax = max possible value, e.g. size of physical RAM.     Verify: sudo cat /etc/sysctl.d/60-oracle.conf   Load new kernel parameters:   sudo service procps start   Verify: sudo sysctl -q fs.aio-max-nr -> fs.aio-max-nr = 1048576

4. Oracle Account and Directories
Type the following commands to create necessary Oracle accounts, groups and directories:
sudo groupadd oinstall sudo groupadd dba sudo useradd -m -g oinstall -G dba oracle sudo usermod -s /bin/bash oracle sudo passwd oracle sudo groupadd nobody sudo usermod -g nobody nobody     Verify: sudo id oracle -> uid=1001(oracle) gid=1001(oinstall) groups=1001(oinstall),1002(dba)

Modify Oracle account shell limits:
Make a backup of the original file: sudo cp /etc/security/limits.conf /etc/security/limits.conf.original   sudo cat - >> /etc/security/limits.conf   (then cut & paste the following)   #Oracle 11gR2 shell limits: oracle soft nproc 2048 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536   (then type Ctrl-d to write the file)     Verify: sudo cat /etc/security/limits.conf

Use an editor like vi or gedit and add the following to /etc/profile:
if [ "$USER" = oracle ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi

Create Oracle Directories, i.e.: /u01/app for Oracle software and /u02/oradata for database files:
sudo mkdir -p /u01/app/oracle sudo mkdir -p /u01/app/oraInventory sudo mkdir -p /u02/oradata sudo chown oracle:oinstall /u01/app/oracle sudo chown oracle:oinstall /u01/app/oraInventory sudo chown oracle:oinstall /u02/oradata sudo chmod 750 /u01/app/oracle sudo chmod 750 /u01/app/oraInventory sudo chmod 750 /u02/oradata

Oracle Installation
For convenience, you might want to allow the Oracle user to use the "sudo" command. Enter the following at the command prompt:
usermod -G admin oracle

1. Mount Oracle Installation DVD
Automount does not mount CD/DVD media with execute privileges.

You can mount the Oracle installation media by typing:
sudo mount -o loop,norock /dev/cdrom /media
Or, if you prefer a permament and more convenient solution:
sudo apt-get install autofs   Find the following line in /etc/auto.misc:   cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom and add "exec" so it look like: cd -fstype=iso9660,ro,nosuid,nodev,exec :/dev/cdrom

2. Oracle Universal Installer (OUI)
The Oracle Universal Installer (OUI) requires X-windows. There are two fundamentally different ways to open a GUI application:

- Remote Session
- Server Console

VNC/Remote Desktop:
- Shares the screen of the Server Console.
- Applications are using the X-server on the server.

SSH with X-forwarding:
- Applications use the the X-server running on your client's desktop.

In order to use SSH with X-Forwarding you will need to install a X-server on your workstation. You will find several commerical and free X11 software packages available. Some provide complex services. If you have to deal with MS-Windows you might find mobaxterm useful, which installs a single stand-alone application. It is available for free from Apple Mac users can install Apple's X11, which is included on the standard OS installation DVD. As of Mac OSX Snow Leopard (10.6), Xterm is integrated with the standard Terminal application.

Using SSH with X-Forwarding:
ssh -X oracle@your_server_ip_address

The advantage of SSH is that network communication is encrypted and your Firewall will only need TCP port 22 open and it should also work with Network Address Translation (NAT), which is typical for private network configurations. SSH with X-Forwarding will automatically set appropriate environment variables - you should not set the DISPLAY variables manually. You also do not have to configure X-server access control. On the contrary, when you use the server console to display a GUI application other than user root, you can use the "xhost +" command as root to disable X-server access control.

You can also use VNC using an SSH tunnel:
ssh -A -L 5902:localhost:5902 oracle@your_server_ip_address Then open a VNC session to localhost:5902.
Please check the Internet for information about how to setup VNC Server and where to obtain VNC client software.

To start the Oracle Installer:
/media/runInstaller
The installer might take several seconds to appear at your desktop.

Note: Select the "Ignore All" button at the Prerequisite Checks dialog.

You can source execute Oracle's oraenv utility to set your shell environment variables after the installation:
. /usr/local/bin/oraenv

Regards and best of luck.

Edited by: Dude on May 17, 2011: Added note about 11.2.0.2, various changes.

Edited by: Dude on May 25, 2011: Add oracle account to admin group instead of /etc/sudoers.

Edited by: Dude on May 31, 2011: Removed step to add software repository for ia32-libs.
It's not needed and causing subsequent update issues. I.e. Flashplugin.

linux

陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
您什麼時候應該使用複合索引與多個單列索引?您什麼時候應該使用複合索引與多個單列索引?Apr 11, 2025 am 12:06 AM

在數據庫優化中,應根據查詢需求選擇索引策略:1.當查詢涉及多個列且條件順序固定時,使用複合索引;2.當查詢涉及多個列但條件順序不固定時,使用多個單列索引。複合索引適用於優化多列查詢,單列索引則適合單列查詢。

如何識別和優化MySQL中的慢速查詢? (慢查詢日誌,performance_schema)如何識別和優化MySQL中的慢速查詢? (慢查詢日誌,performance_schema)Apr 10, 2025 am 09:36 AM

要優化MySQL慢查詢,需使用slowquerylog和performance_schema:1.啟用slowquerylog並設置閾值,記錄慢查詢;2.利用performance_schema分析查詢執行細節,找出性能瓶頸並優化。

MySQL和SQL:開發人員的基本技能MySQL和SQL:開發人員的基本技能Apr 10, 2025 am 09:30 AM

MySQL和SQL是開發者必備技能。 1.MySQL是開源的關係型數據庫管理系統,SQL是用於管理和操作數據庫的標準語言。 2.MySQL通過高效的數據存儲和檢索功能支持多種存儲引擎,SQL通過簡單語句完成複雜數據操作。 3.使用示例包括基本查詢和高級查詢,如按條件過濾和排序。 4.常見錯誤包括語法錯誤和性能問題,可通過檢查SQL語句和使用EXPLAIN命令優化。 5.性能優化技巧包括使用索引、避免全表掃描、優化JOIN操作和提升代碼可讀性。

描述MySQL異步主奴隸複製過程。描述MySQL異步主奴隸複製過程。Apr 10, 2025 am 09:30 AM

MySQL異步主從復制通過binlog實現數據同步,提升讀性能和高可用性。 1)主服務器記錄變更到binlog;2)從服務器通過I/O線程讀取binlog;3)從服務器的SQL線程應用binlog同步數據。

mysql:簡單的概念,用於輕鬆學習mysql:簡單的概念,用於輕鬆學習Apr 10, 2025 am 09:29 AM

MySQL是一個開源的關係型數據庫管理系統。 1)創建數據庫和表:使用CREATEDATABASE和CREATETABLE命令。 2)基本操作:INSERT、UPDATE、DELETE和SELECT。 3)高級操作:JOIN、子查詢和事務處理。 4)調試技巧:檢查語法、數據類型和權限。 5)優化建議:使用索引、避免SELECT*和使用事務。

MySQL:數據庫的用戶友好介紹MySQL:數據庫的用戶友好介紹Apr 10, 2025 am 09:27 AM

MySQL的安裝和基本操作包括:1.下載並安裝MySQL,設置根用戶密碼;2.使用SQL命令創建數據庫和表,如CREATEDATABASE和CREATETABLE;3.執行CRUD操作,使用INSERT,SELECT,UPDATE,DELETE命令;4.創建索引和存儲過程以優化性能和實現複雜邏輯。通過這些步驟,你可以從零開始構建和管理MySQL數據庫。

InnoDB緩衝池如何工作,為什麼對性能至關重要?InnoDB緩衝池如何工作,為什麼對性能至關重要?Apr 09, 2025 am 12:12 AM

InnoDBBufferPool通過將數據和索引頁加載到內存中來提升MySQL數據庫的性能。 1)數據頁加載到BufferPool中,減少磁盤I/O。 2)臟頁被標記並定期刷新到磁盤。 3)LRU算法管理數據頁淘汰。 4)預讀機制提前加載可能需要的數據頁。

MySQL:初學者的數據管理易用性MySQL:初學者的數據管理易用性Apr 09, 2025 am 12:07 AM

MySQL適合初學者使用,因為它安裝簡單、功能強大且易於管理數據。 1.安裝和配置簡單,適用於多種操作系統。 2.支持基本操作如創建數據庫和表、插入、查詢、更新和刪除數據。 3.提供高級功能如JOIN操作和子查詢。 4.可以通過索引、查詢優化和分錶分區來提升性能。 5.支持備份、恢復和安全措施,確保數據的安全和一致性。

See all articles

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

AI Hentai Generator

AI Hentai Generator

免費產生 AI 無盡。

熱門文章

R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
3 週前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳圖形設置
3 週前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.如果您聽不到任何人,如何修復音頻
3 週前By尊渡假赌尊渡假赌尊渡假赌
WWE 2K25:如何解鎖Myrise中的所有內容
3 週前By尊渡假赌尊渡假赌尊渡假赌

熱工具

SecLists

SecLists

SecLists是最終安全測試人員的伙伴。它是一個包含各種類型清單的集合,這些清單在安全評估過程中經常使用,而且都在一個地方。 SecLists透過方便地提供安全測試人員可能需要的所有列表,幫助提高安全測試的效率和生產力。清單類型包括使用者名稱、密碼、URL、模糊測試有效載荷、敏感資料模式、Web shell等等。測試人員只需將此儲存庫拉到新的測試機上,他就可以存取所需的每種類型的清單。

Dreamweaver Mac版

Dreamweaver Mac版

視覺化網頁開發工具

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

這個專案正在遷移到osdn.net/projects/mingw的過程中,你可以繼續在那裡關注我們。 MinGW:GNU編譯器集合(GCC)的本機Windows移植版本,可自由分發的導入函式庫和用於建置本機Windows應用程式的頭檔;包括對MSVC執行時間的擴展,以支援C99功能。 MinGW的所有軟體都可以在64位元Windows平台上運作。

VSCode Windows 64位元 下載

VSCode Windows 64位元 下載

微軟推出的免費、功能強大的一款IDE編輯器

EditPlus 中文破解版

EditPlus 中文破解版

體積小,語法高亮,不支援程式碼提示功能