安装Oracle 10.2.0.5 RAC for AIX6(四)

简单介绍在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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/4227/viewspace-702383/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值