Oracle11g用戶端for centos 5.5安裝文檔

來源:互聯網
上載者:User

標籤:

前提:安裝centos的時候,最好把系統的所有的安裝包都安裝上。以下命令需手動輸入,不要複製粘貼。

1.以root使用者登入centos5.5的作業系統;建立oracle使用者組和使用者。

groupadd oinstall

useradd –g oinstall –s /bin/bash –d /opt/oracle oracle

passwd oracle

2.以root使用者登入系統,修改系統核心參數,添加以下內容:

vi  /etc/sysctl.conf 

fs.file-max = 6815744 
fs.aio-max-nr = 1048576 
kernel.shmall = 2097152 
kernel.shmmax = 2147483648 
kernel.shmmni = 4096 
kernel.sem = 250 32000 100 128 
net.ipv4.ip_local_port_range = 9000 65500 
net.core.rmem_default = 4194304 
net.core.rmem_max = 4194304 
net.core.wmem_default = 262144 
net.core.wmem_max = 1048576

3.要使 /etc/sysctl.conf 更改立即生效,執行以下命令。 輸入:sysctl  -p 

4.編輯/etc/security/limits.conf,添加以下內容:

vi /etc/security/limits.conf 

oracle  soft  nproc  2047

oracle  hard  nproc  16384

oracle  soft   nofile  1024

oracle  hard  nofile  65536

5.編輯/etc/pam.d/login,添加以下內容:

vi /etc/pam.d/login

session required  pam_limits.so

6.編輯系統內容設定檔/etc/profile,在最後添加如下內容:

if [ $USER = "oracle" ]; then             if [ $SHELL = "/bin/ksh" ]; then                           ulimit -p 16384                    ulimit -n 65536            else                 ulimit -u 16384 -n 65536            fifi 

編輯完成後,執行source profile,使其生效。

7.編輯/etc/csh.login,在最後添加如下內容:

if ( $USER == "oracle") then            limit maxproc 16384            limit descriptors 65536endif  

 

8.以orcale使用者登入系統,編輯/opt/oracle/.bash_profile,在最後添加如下內容,使用 source /opt/oracle/.bash_profile使之生效。

umask 022export  ORACLE_BASE=/opt/oracle export  ORACLE_HOME=$ORACLE_HOME/app/product/11.2.0export  ORACLE_SID=orcl export  PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin 

註:這裡的ORACLE_SID的值,是需要用到的資料庫的SID。

9.以oracle使用者登入系統,將oracle11g用戶端的包上傳到/opt目錄下解壓;修改解壓後包的檔案許可權。

unzip linux_11gR2_client.zipchmod –R 755 client

10.進入安裝目錄,執行./runInstall;

cd client

./ runInstall

啟動圖形化介面,點擊下一步;

11.語言預設的English,下一步;

12.選擇”Administrator(1.38GB)”安裝類型,點擊下一步;

13.設定Oracle base目錄和Oracle home目錄,點擊下一步;

14.安裝程式自動讀取oracle使用者環境變數中設定的目錄和使用者組;

選擇目錄/opt/oracle/ oraInventory目錄,使用者組預設為oinstall,點擊下一步

15.校正安裝oracle的安裝環境發現核心缺少部分參數,系統缺少某些安裝包,如果缺少,請安裝。

16.安裝完成後,再次檢查是否存在失敗的情況,若無,執行下一步;

17.系統開始安裝,到最後的時候,系統會先提示你需要用root許可權執行2個shell指令碼:

開啟終端,切換到root使用者,根據路徑執行兩個指令碼;如下所示:

# /opt/oracle/oraInventory/orainstRoot.sh 

Changing permissions of /opt/oracle/oraInventory to 770.

Changing groupname of /opt/oracle/oraInventory to dba.

The execution of the script is complete

 

# /opt/oracle/oracle/product/11.1.0/root.sh

Running Oracle 11g root.sh script...  

The following environment variables are set as:    

ORACLE_OWNER=oracle     

ORACLE_HOME=/opt/oracle/oracle/product/11.1.0  

Enter the full pathname of the local bin directory: [/usr/local/bin]: [直接斷行符號即可]   

Copying dbhome to /usr/local/bin ...   

Copying oraenv to /usr/local/bin ...   

Copying coraenv to /usr/local/bin ...   

Creating /etc/oratab file... 

Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed.

18.點擊finsh,完成安裝。

19.重新開啟一個新的終端,使用netca命令配置監聽和本地的net服務.

20.本地net服務配置完成之後,用sqlplus串連測試是否成功。

2015-01-20 13:11:28

Oracle11g用戶端for centos 5.5安裝文檔

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.