安裝Oracle 10.2.0.5 RAC for AIX6(四)

yangtingkun發表於2011-07-16

簡單介紹在AIX6上安裝10.2.0.5 RAC的過程。

這一篇描述補丁的安裝過程。

安裝Oracle 10.2.0.5 RAC for AIX6(一):http://yangtingkun.itpub.net/post/468/520680

安裝Oracle 10.2.0.5 RAC for AIX6(二):http://yangtingkun.itpub.net/post/468/520729

安裝Oracle 10.2.0.5 RAC for AIX6(三):http://yangtingkun.itpub.net/post/468/520795

 

 

上一篇安裝了資料庫的軟體,下面介紹補丁的安裝過程:

# /etc/init.crs stop
Shutting down Oracle Cluster Ready Services (CRS):
Apr 15 01:20:43.345 | INF | daemon shutting down
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
# ps -ef|grep ora
oracle 4522000 5701638 0 01:21:28 pts/6 0:00 /bin/sh ./runInstaller
oracle 4784190 2294188 0 00:32:32 pts/7 0:00 -ksh
oracle 5701638 6357160 0 00:05:41 pts/6 0:00 -ksh
oracle 6029528 4981112 0 23:04:37 - 1:53 sshd: oracle@pts/2,pts/3
oracle 6553750 6553984 0 22:58:35 pts/0 0:00 -ksh
root 4981112 4588000 0 23:04:28 - 0:00 sshd: oracle [priv]
oracle 6619514 9109590 0 00:32:51 pts/1 0:00 -ksh
oracle 6750712 6029528 0 23:17:24 pts/3 0:00 -ksh
oracle 6816182 6029528 0 23:04:37 pts/2 0:00 -ksh
oracle 7012660 4784190 0 00:33:32 pts/7 0:00 more rootpre.sh
root 7274796 6291674 0 01:21:38 pts/0 0:00 grep ora

關閉兩個節點上的CLUSTER,在補丁的安裝之前,仍然需要執行rootpre.sh

# cd /home/oracle/software/database/Disk1/rootpre
# ./rootpre.sh
./rootpre.sh output will be logged in /tmp/rootpre.out_11-04-15.01:22:22
Saving the original files in /etc/ora_save_11-04-15.01:22:22....
Copying new kernel extension to /etc....
Loading the kernel extension from /etc

Oracle Kernel Extension Loader for AIX
Copyright (c) 1998,1999 Oracle Corporation


Kernel Extension /etc/pw-syscall.64bit_kernel already loaded, unloading it
Unconfigured the kernel extension successfully
Unloaded the kernel extension successfully
Successfully loaded /etc/pw-syscall.64bit_kernel with kmid: 0x513b5000
Successfully configured /etc/pw-syscall.64bit_kernel with kmid: 0x513b5000
The kernel extension was successfuly loaded.

Configuring Asynchronous I/O....
Asynchronous I/O is not installed on this system.
You will need to install it, and either configure it yourself using
'smit aio' or rerun the Oracle root installation procedure.

Configuring POSIX Asynchronous I/O....
Posix Asynchronous I/O is not installed on this system.
You will need to install it, and either configure it yourself using
'smit aio' or rerun the Oracle root installation procedure.

Checking if group services should be configured....
Nothing to configure.

下面圖形化執行runInstaller命令,開始補丁的安裝過程,需要注意的是,首先應該對CLUSTER環境進行生效,然後對資料庫軟體升級。

# /opt/oracle/product/10.2/crs/install/root102.sh
Error : Please change the CRS_ORACLE_USER id to have the following OS capabilities :
< CAP_PROPAGATE CAP_BYPASS_RAC_VMM CAP_NUMA_ATTACH >
by running command then 'crsctl stop crs' and 'crsctl start crs'.
The CSS daemon, ocssd.bin, will not run in realtime without this change
Oracle strongly recommends that the CSS daemon run realtime
Creating pre-patch directory for saving pre-patch clusterware files
Completed patching clusterware files to /opt/oracle/product/10.2/crs
Relinking some shared libraries.
Relinking of patched files is complete.
Copying opriproc to /etc/oracle/bin for AIX
WARNING: directory '/opt/oracle/product/10.2' is not owned by root
WARNING: directory '/opt/oracle/product' is not owned by root
WARNING: directory '/opt/oracle' is not owned by root
Preparing to recopy patched init and RC scripts.
Recopying init and RC scripts.
Startup will be queued to init within 30 seconds.
Starting up the CRS daemons.
Adding daemons to inittab
Waiting for the patched CRS daemons to start.
This may take a while on some systems.
.
10205 patch successfully applied.
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully deleted 1 values from OCR.
Successfully deleted 1 keys from OCR.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node :
node 1: ywdb1 ywdb1-priv ywdb1
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
clscfg -upgrade completed successfully
Creating '/opt/oracle/product/10.2/crs/install/paramfile.crs' with data used for CRS configuration
Setting CRS configuration values in /opt/oracle/product/10.2/crs/install/paramfile.crs

節點2上的root102.sh的執行結果基本和節點1上的一致,就不重複了。

在對資料庫軟體升級之前,rootpre.sh指令碼仍然需要執行,這裡就不重複記錄了。

# /opt/oracle/product/10.2/database/root.sh
Running Oracle 10g root.sh script...

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /opt/oracle/product/10.2/database

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying coraenv to /usr/local/bin ...

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.

兩個節點分別執行root.sh後,10205補丁集安裝完成。

整個安裝的最後過程,透過dbca進行手工建庫即可,這和其他平臺的RAC安裝沒有什麼區別,就不重複描述了。

 

 

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

相關文章