安裝Oracle11.2.0.2 RAC for Linux X86-64(二)

yangtingkun發表於2011-05-14

Solaris上安裝過11.2RACLinux上還是第一次。描述一下安裝配置過程。

這一篇描述CLUSTERWARE的安裝。

安裝Oracle11.2.0.2 RAC for Linux X86-64(一):http://yangtingkun.itpub.net/post/468/517812

 

 

啟動圖形工具,開始CLUSTER的安裝:

[root@rac3 ~]# xhost +
access control disabled, clients can connect from any host
[root@rac3 ~]# su - grid
[grid@rac3 ~]$ cd /data/software/grid/
[grid@rac3 grid]$ ./runInstaller

安裝第一個介面是輸入metalink帳號,這裡可以輸入metalink的使用者名稱密碼;

選擇安裝型別,這裡選擇Install and Configure Oracle Grid Infrastructure for a Cluster

安裝型別:這裡選擇高階安裝;

產品語言:選擇英文和簡體中文;

網格設定:由於沒有配置DNS,所以也沒有辦法使用GNS,這裡取消GNS配置,SCAN_NAME輸入rac-cluster

Cluster節點資訊:輸入節點2對應的主機名rac2vip名稱rac2-vip,點選SSH Connectivity,配置各個節點間的SSH等同配配置;

網路介面:Oracle自動確認了privatepublic介面,如果Oracle沒有找對,手工將介面指到對應的介面型別;

儲存選項:選擇ASM

建立ASM磁碟組:磁碟組名稱預設為DATA,將磁碟組冗餘設定選擇為外部,將oracleasm建立的磁碟選中;

ASM密碼:輸入ASM例項SYSASMSNMP使用者密碼:

失敗隔離:選擇是否使用Intelligent Platform. ManagementInterface

作業系統組選擇:輸入oinstall組;

目錄位置:輸入GRID_BASE目錄/data/grid和軟體安裝目錄/data/11.2.0/grid

Inventory目錄:採用預設的/data/oraInventory

檢查系統是否滿足安裝需求:點選fix and check again,在兩個節點上執行指令碼:

[root@rac3 ~]# /tmp/CVU_11.2.0.2.0_grid/runfixup.sh
/usr/bin/id
Response file being used is :/tmp/CVU_11.2.0.2.0_grid/fixup.response
Enable file being used is :/tmp/CVU_11.2.0.2.0_grid/fixup.enable
Log file location: /tmp/CVU_11.2.0.2.0_grid/orarun.log
Setting Kernel Parameters...
kernel.sem = 250 32000 100 128
net.core.wmem_default = 131072
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
uid=1300(grid) gid=1000(oinstall) groups=1000(oinstall),1200(dba)
Installing Package /tmp/CVU_11.2.0.2.0_grid//cvuqdisk-1.0.9-1.rpm
Preparing...                ########################################### [100%]
   1:cvuqdisk               ########################################### [100%]

還存在SWAP空間不足的問題,但是考慮記憶體足夠,忽略所有的錯誤,繼續安裝;

在兩個節點分別執行指令碼orainstRoot.sh

[root@rac3 ~]# /data/oraInventory/orainstRoot.sh
Changing permissions of /data/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /data/oraInventory to oinstall.
The execution of the script. is complete.

節點1上執行root.sh

[root@rac3 ~]# /data/11.2.0/grid/root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /data/11.2.0/grid

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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /data/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
OLR initialization - successful
  root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding daemon to inittab
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9321: Creating udev for ADVM/ACFS.
ACFS-9323: Creating module dependencies - this may take some time.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac3'
CRS-2676: Start of 'ora.mdnsd' on 'rac3' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac3'
CRS-2676: Start of 'ora.gpnpd' on 'rac3' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac3'
CRS-2672: Attempting to start 'ora.gipcd' on 'rac3'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac3' succeeded
CRS-2676: Start of 'ora.gipcd' on 'rac3' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac3'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac3'
CRS-2676: Start of 'ora.diskmon' on 'rac3' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac3' succeeded

ASM created and started successfully.

Disk Group DATA created successfully.

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 958813ad4d8a4fc2bf7fff51e988d7a2.
Successfully replaced voting disk group with +DATA.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   958813ad4d8a4fc2bf7fff51e988d7a2 (ORCL:VOL1) [DATA]
Located 1 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'rac3'
CRS-2676: Start of 'ora.asm' on 'rac3' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'rac3'
CRS-2676: Start of 'ora.DATA.dg' on 'rac3' succeeded
ACFS-9200: Supported
ACFS-9200: Supported
CRS-2672: Attempting to start 'ora.registry.acfs' on 'rac3'
CRS-2676: Start of 'ora.registry.acfs' on 'rac3' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

節點2上執行root.sh

[root@rac2 data]# /data/11.2.0/grid/root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /data/11.2.0/grid

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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /data/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
OLR initialization - successful
Adding daemon to inittab
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9321: Creating udev for ADVM/ACFS.
ACFS-9323: Creating module dependencies - this may take some time.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac3, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

執行完指令碼,Oracle繼續安裝配置cluster,最後一步cluster驗證報錯,這是由於沒有使用GNS導致的,忽略後,Cluster安裝完成。

[root@rac3 ~]# su - grid
[grid@rac3 ~]$ export ORACLE_SID=+ASM1
[grid@rac3 ~]$ export ORACLE_HOME=/data/11.2.0/grid
[grid@rac3 ~]$ export PATH=$ORACLE_HOME/bin:$PATH
[grid@rac3 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Sat Mar 26 00:14:19 2011

Copyright (c) 1982, 2010, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options

SQL> set pages 100 lines 120
SQL> select instance_name, status from gv$instance;

INSTANCE_NAME    STATUS
---------------- ------------
+ASM1            STARTED
+ASM2            STARTED

CLUSTER安裝成功,下面將export的內容新增到grid的環境變數中,CLUSTER安裝步驟結束:

umask 022
export PATH
export ORACLE_SID=+ASM1
export ORACLE_BASE=/data/grid
export ORACLE_HOME=/data/11.2.0/grid
export ORA_CRS_HOME=/data/11.2.0/grid
export PATH=$ORACLE_HOME/bin:$PATH

 

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-695368/,如需轉載,請註明出處,否則將追究法律責任。

相關文章