第8步:安裝Oracle

    1. 安裝Oracle
注意,安裝 Oracle 時須要以 oracle 用戶身份執行,在那以前須要以 root 身份執行 xhost+ ,即命令:
代碼 1
[root@sgdb1~]# xhost+
[root@sgdb1~]# su - oracle

 

graphic
1   執行 xhost+
[oracle @sgdb1~]$ cd database
[oracle @sgdb1~]$ ./runinstaller
graphic

 

2        執行 runInstaller
      1. 取消軟件更新
取消勾選【 I wish to receive… 】,點擊【 Next

 

graphic
35        取消更新郵件通知
      1. 跳過軟件更新
選擇【 Skip software
點擊【 Next

 

graphic
36        跳過軟件更新
      1. Oracle 安裝選項
選擇【 Install database software only 】,選擇只安裝數據庫,不安裝實例
點擊【 Next

 

graphic
37        只安裝數據庫,不安裝實例
      1. Oracle 安裝方式
點擊【 Oracle Real Application Clusters Database Installation 】,選擇 RAC 方式安裝,並將兩個節點勾選。
注意此處要相似 grid 用戶那樣配置互信,點擊【 SSH Connectivity 】配置戶型,這次再也不詳細描述。
點擊【 Next 】,若是沒有配置互信,會報錯

 

graphic
38       RAC 方式安裝
      1. Oralce 安裝語言
注意要將 Simplified Chinese 加入到選中的語言中
點擊【 Next

 

graphic
39        選擇語言
      1. 安裝版本選擇
選擇 Enterprise 版本(企業級),能夠點擊【 Select Options 】來確認安裝內容
確認無誤後,點擊【 Next

 

graphic
40        選擇 Enterprise 方式
      1. 選擇安裝目錄
Oracle 對應的環境變量:
ORACLE_BASE     /oracle/db
ORACLE_HOME /oracle/db/product/11.2.0
       
點擊【 Next

 

graphic
41        安裝目錄 (圖有誤,按文字標準)
      1. 選擇組
ODDBA 組,選擇 dba
OSOPER 組,留空
        點擊【 Next

 

graphic
42        選擇組
      1. 執行安裝前檢查
有若干錯誤,直接點擊【 Ignore All 】便可

 

graphic
43        執行安裝前檢查
        點擊【 Yes 】,確認忽略問題

 

graphic
44        確認忽略問題
      1. 安裝信息統計
確認無誤後,點擊【 Install 】執行安裝

 

graphic
45        安裝信息統計
      1. 安裝結束前,須要執行腳本
安裝到最後階段,須要在兩節點( SGDB1 SGDB2 )上分別以 root 身份執行這個腳本:

 

graphic
46        安裝結束前須要執行的腳本
代碼 31
[root@sgdb1 ~]# /oracle/oraInventory/orainstRoot.sh
Changing permissions of /oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /oracle/oraInventory to oinstall.
The execution of the script is complete.
 
代碼 32
[root@sgdb2 ~]# /oracle/oraInventory/orainstRoot.sh
Changing permissions of /oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /oracle/oraInventory to oinstall.
The execution of the script is complete.
 
代碼 33
[root@sgdb1 ~]# /oracle/db/product/11.2.0/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /oracle/db/product/11.2.0
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
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 script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
 
代碼 34
[root@sgdb2 ~]# /oracle/db/product/11.2.0/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /oracle/db/product/11.2.0
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
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 script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
 
此時點擊【 OK 】,會看到已完成安裝,點擊【 Close

 

graphic
47        安裝完成
相關文章
相關標籤/搜索