这个是实验笔记,做实做成功了,但是有些地方是在是不懂,怕忘,记录一下。
1.1 环境准备
1.1.1 停掉数据库
1.1.2 所需磁盘空间
1.1.3 升级OPatch工具
1.1.4 验证Inventory一致性
1.1.5 下载并解压PSU
1.1.6 停掉EM,如果有的话
1.1.7 冲突检查
1.2 手动升级执行过程
1.2.1 rootcrs.pl停止本节点的服务
1.2.2 给GI HOME打补丁
1.2.2.1 用grid给GI组件打补丁
1.2.2.2 用grid给RDBMS打补丁
1.2.3 给RDBMS DB HOME 打补丁
1.2.3.1 用Oracle给GI打补丁
1.2.3.2 用Oracle给RDBMS打补丁
1.2.4 执行rootcrs.pl -patch
1.2.5 在另一个节点进行前面的操作
1.2.6 对dba_registry_history视图增加记录
1.2.7 执行utlrp 脚本并重启DB
1.2.8 升级catalog数据库
1.2.9 重启应用程序
1.2.10 检查应用之后的结果
操作系统 |
数据库版本 |
升级之后版本 |
节点角色 |
RHEL5u8 x64 |
11.2.0.3.0 |
11.2.0.3.8 |
racdb1 |
RHEL5u8 x64 |
11.2.0.3.0 |
11.2.0.3.8 |
racdb2 |
用户 |
变量 |
值 |
grid用户变量 |
$ echo $ORACLE_HOME |
/u01/app/11.2.0.3/grid |
$ echo $ORACLE_BASE |
/u01/app/grid |
|
oracle用户变量 |
$ echo $ORACLE_HOME |
/u01/app/oracle/product/11.2.0.3 |
$ echo $ORACLE_BASE |
/u01/app/oracle |
|
root 用户变量 |
# echo $GRID_HOME |
/u01/app/11.2.0.3/grid |
# echo $ORACLE_HOME |
/u01/app/oracle/product/11.2.0.3 |
su - oracle
$ srvctl stop database -d racdb
在Linux环境中所需要的磁盘大小是6.5G
README中提出需要OPatch工具版本是11.2.0.3.4 或者是以后的版本。在我的环境中一共有两个节点,每个节点上都有Oracle和grid用户,所以需要对他们分别进行升级,也就是说共需要升级四次。
这里演示在一个节点上进行升级。
使用Oracle用户对OPatch升级
su - oracle
$ cd $ORACLE_HOME/OPatch/ //进入OPatch目录,查看当前版本
$ ./opatch version
Invoking OPatch 11.2.0.1.7
OPatch Version: 11.2.0.1.7 //这个就是当前版本
OPatch succeeded.
$ cd
$ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.bak //备份一下当前的OPatch
$ unzip /tmp/p6880880_112000_Linux-x86-64.zip -d $ORACLE_HOME
$ cd $ORACLE_HOME/OPatch //替换了OPatch之后,重新查看版本
$ ./opatch version
OPatch Version: 11.2.0.3.6
OPatch succeeded.
使用grid用户对OPatch进行升级
su - grid
$ cd $ORACLE_HOME/OPatch/
$ ./opatch version
Invoking OPatch 11.2.0.1.7
OPatch Version: 11.2.0.1.7
OPatch succeeded.
$ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.ba
$ unzip /tmp/p6880880_112000_Linux-x86-64.zip -d $ORACLE_HOME
$ cd $ORACLE_HOME/OPatch
$ ./opatch version
OPatch Version: 11.2.0.3.6
OPatch succeeded.
在执行opatch apply之前需要验证GI home和DB home的一致性
su - grid
$ $ORACLE_HOME/OPatch/opatch lsinventory -detail -oh $ORACLE_HOME
最后正常显示的结果应该是
OPatch succeeded.
把PSU解压到一个非/tmp目录中,这个目录是空的,并且具有oinstall组的权限(README中提到的是ORA_INSTALL组)
# mkdir /psu
# chown grid:oinstall /psu
# chmod 775 /psu //Oracle用户也在oinstall组,所以用这个权限。
# ll -d /psu
drwxrwxr-x 2 grid oinstall 4096 Apr 23 23:30 /psu
su - grid
$ unzip /tmp/p17272731_112030_Linux-x86-64.zip -d /psu
在安装和回滚patch之前先关掉EM
su - oracle
$ emctl stop dbconsole
su - grid
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /psu/16902043 -oh $ORACLE_HOME
su - oracle
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /psu/16902043 -oh $ORACLE_HOME
应该都是OPatch succeeded.状态的
这里演示手动升级的过程,因为自动升级可能会出问题。
若有RDBMS DB在运行则首先关闭该实例,使用root关掉集群
su - root
# crsctl stop crs //如果不执行这个,那么下面的rootcrs.pl执行速度会很慢
下面的rootcrs.pl脚本在$GRID_HOME/crs/install 下
# $GRID_HOME/crs/install/rootcrs.pl -unlock
Using configuration parameter file: /u01/app/11.2.0.3/grid/crs/install/crsconfig_params
...........
Successfully unlock /u01/app/11.2.0.3/grid
在AIX上(Linux不用做): 因为有用户进程占用了文件libclntsh.so.11 grid用户执行: genld -l|grep /home/db/grid/product/11.2.0 genkld|grep /home/db/grid/product/11.2.0 另外一个窗口root: /usr/sbin/slibclean |
升级之前把所有的sqlplus关掉,不然报错。
报错内容如下:这个是我贴出其他人的报错: Verifying environment and performing prerequisite checks... Prerequisite check "CheckActiveFilesAndExecutables" failed. The details are:
Following executables are active : /u01/app/oracle/product/db11.2.0.3/lib/libclntsh.so.11.1 UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed. Log file location: /u01/app/oracle/product/db11.2.0.3/cfgtoollogs/opatch/opatch2013-03-10_20-37-12PM_1.log |
nbsp;
su - grid
$ cd $ORACLE_HOME/OPatch
$ ./opatch napply -oh $ORACLE_HOME -local /psu/17076717
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0.3/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0.3/grid/oraInst.loc
OPatch version : 11.2.0.3.6
OUI version : 11.2.0.3.0
Log file location : /u01/app/11.2.0.3/grid/cfgtoollogs/opatch/opatch2014-04-24_00-16-39AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 17076717
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
输入邮箱,暂时不指定MOS,跳过
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name: <-- 这个地方不填写,直接回车 -->
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: y
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/11.2.0.3/grid')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '17076717' to OH '/u01/app/11.2.0.3/grid'
Patching component oracle.crs, 11.2.0.3.0...
Patching component oracle.usm, 11.2.0.3.0...
Verifying the update...
Patch 17076717 successfully applied.
Log file location: /u01/app/11.2.0.3/grid/cfgtoollogs/opatch/opatch2014-04-24_00-16-39AM_1.log
OPatch succeeded.
在AIX上(Linux不用做): 因为有用户进程占用了文件libclntsh.so.11 grid用户执行: genld -l|grep /home/db/grid/product/11.2.0 genkld|grep /home/db/grid/product/11.2.0 另外一个窗口root: /usr/sbin/slibclean |
$ ./opatch napply -oh $ORACLE_HOME -local /psu/16902043
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0.3/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0.3/grid/oraInst.loc
OPatch version : 11.2.0.3.6
OUI version : 11.2.0.3.0
Log file location : /u01/app/11.2.0.3/grid/cfgtoollogs/opatch/opatch2014-04-24_00-22-02AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 13343438 13696216 13923374 14275605 14727310 16056266 16619892 16902043
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: y
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/11.2.0.3/grid')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying sub-patch '13343438' to OH '/u01/app/11.2.0.3/grid'
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '13696216' to OH '/u01/app/11.2.0.3/grid'
ApplySession: Optional component(s) [ oracle.sysman.console.db, 11.2.0.3.0 ] , [ oracle.sysman.oms.core, 10.2.0.4.4 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.sdo.locator, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '13923374' to OH '/u01/app/11.2.0.3/grid'
ApplySession: Optional component(s) [ oracle.sysman.console.db, 11.2.0.3.0 ] , [ oracle.network.cman, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Patching component oracle.network.rsf, 11.2.0.3.0...
Patching component oracle.network.listener, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '14275605' to OH '/u01/app/11.2.0.3/grid'
ApplySession: Optional component(s) [ oracle.precomp.common, 11.2.0.3.0 ] , [ oracle.precomp.lang, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.network.client, 11.2.0.3.0...
Patching component oracle.network.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Patching component oracle.rdbms.rman, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms.util, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '14727310' to OH '/u01/app/11.2.0.3/grid'
ApplySession: Optional component(s) [ oracle.sysman.console.db, 11.2.0.3.0 ] , [ oracle.sysman.oms.core, 10.2.0.4.4 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.sdo.locator, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '16056266' to OH '/u01/app/11.2.0.3/grid'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.3.0 ] , [ oracle.ovm, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.network.listener, 11.2.0.3.0...
Patching component oracle.network.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.rman, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.sdo.locator, 11.2.0.3.0...
Patching component oracle.rdbms.deconfig, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '16619892' to OH '/u01/app/11.2.0.3/grid'
ApplySession: Optional component(s) [ oracle.marvel, 11.2.0.3.0 ] , [ oracle.precomp.common, 11.2.0.3.0 ] , [ oracle.precomp.lang, 11.2.0.3.0 ] , [ oracle.sysman.agent, 10.2.0.4.3 ] , [ oracle.sysman.console.db, 11.2.0.3.0 ] , [ oracle.sysman.repository.core, 10.2.0.4.4 ] , [ oracle.xdk, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.rman, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.xdk.parser.java, 11.2.0.3.0...
Patching component oracle.xdk.rsf, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '16902043' to OH '/u01/app/11.2.0.3/grid'
ApplySession: Optional component(s) [ oracle.idm.oid, 11.2.0.3.0 ] , [ oracle.owb.rsf, 11.2.0.3.0 ] , [ oracle.sysman.console.db, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.ldap.rsf, 11.2.0.3.0...
Patching component oracle.ldap.rsf.ic, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Verifying the update...
Composite patch 16902043 successfully applied.
Log file location: /u01/app/11.2.0.3/grid/cfgtoollogs/opatch/opatch2014-04-24_00-22-02AM_1.log
OPatch succeeded.
p class=MsoNormal style='word-break:break-all'>su - oracle
$ /psu/17076717/custom/server/17076717/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME
显示下面的
/psu/17076717/custom/server/17076717/custom/scripts/prepatch.sh completed successfully.
$ cd $ORACLE_HOME/OPatch
$ ./opatch napply -oh $ORACLE_HOME -local /psu/17076717/custom/server/17076717/
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0.3
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0.3/oraInst.loc
OPatch version : 11.2.0.3.6
OUI version : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0.3/cfgtoollogs/opatch/opatch2014-04-24_00-33-56AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 17076717
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: y
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0.3')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '17076717' to OH '/u01/app/oracle/product/11.2.0.3'
Patching component oracle.rdbms, 11.2.0.3.0...
Verifying the update...
Patch 17076717 successfully applied.
Log file location: /u01/app/oracle/product/11.2.0.3/cfgtoollogs/opatch/opatch2014-04-24_00-33-56AM_1.log
OPatch succeeded.
$ ./opatch napply -oh $ORACLE_HOME -local /psu/16902043/
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0.3
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0.3/oraInst.loc
OPatch version : 11.2.0.3.6
OUI version : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0.3/cfgtoollogs/opatch/opatch2014-04-24_00-38-46AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 13343438 13696216 13923374 14275605 14727310 16056266 16619892 16902043
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: y
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0.3')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying sub-patch '13343438' to OH '/u01/app/oracle/product/11.2.0.3'
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '13696216' to OH '/u01/app/oracle/product/11.2.0.3'
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.sdo.locator, 11.2.0.3.0...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Patching component oracle.sysman.oms.core, 10.2.0.4.4...
Verifying the update...
Applying sub-patch '13923374' to OH '/u01/app/oracle/product/11.2.0.3'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Patching component oracle.network.rsf, 11.2.0.3.0...
Patching component oracle.network.listener, 11.2.0.3.0...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '14275605' to OH '/u01/app/oracle/product/11.2.0.3'
ApplySession: Optional component(s) [ oracle.precomp.lang, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.network.client, 11.2.0.3.0...
Patching component oracle.network.rsf, 11.2.0.3.0...
Patching component oracle.precomp.common, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Patching component oracle.rdbms.rman, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms.util, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '14727310' to OH '/u01/app/oracle/product/11.2.0.3'
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.sdo.locator, 11.2.0.3.0...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Patching component oracle.sysman.oms.core, 10.2.0.4.4...
Verifying the update...
Applying sub-patch '16056266' to OH '/u01/app/oracle/product/11.2.0.3'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.network.listener, 11.2.0.3.0...
Patching component oracle.network.rsf, 11.2.0.3.0...
Patching component oracle.ovm, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.rman, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.sdo.locator, 11.2.0.3.0...
Patching component oracle.rdbms.deconfig, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '16619892' to OH '/u01/app/oracle/product/11.2.0.3'
ApplySession: Optional component(s) [ oracle.precomp.lang, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.marvel, 11.2.0.3.0...
Patching component oracle.precomp.common, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.rman, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.sysman.agent, 10.2.0.4.3...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Patching component oracle.sysman.repository.core, 10.2.0.4.4...
Patching component oracle.xdk, 11.2.0.3.0...
Patching component oracle.xdk.parser.java, 11.2.0.3.0...
Patching component oracle.xdk.rsf, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '16902043' to OH '/u01/app/oracle/product/11.2.0.3'
ApplySession: Optional component(s) [ oracle.idm.oid, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.ldap.rsf, 11.2.0.3.0...
Patching component oracle.ldap.rsf.ic, 11.2.0.3.0...
Patching component oracle.owb.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Verifying the update...
OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
ins_precomp.mk:19: warning: overriding commands for target `pcscfg.cfg'
/u01/app/oracle/product/11.2.0.3/precomp/lib/env_precomp.mk:2160: warning: ignoring old commands for target `pcscfg.cfg'
/u01/app/oracle/product/11.2.0.3/precomp/lib/ins_precomp.mk:19: warning: overriding commands for target `pcscfg.cfg'
/u01/app/oracle/product/11.2.0.3/precomp/lib/env_precomp.mk:2160: warning: ignoring old commands for target `pcscfg.cfg'
OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
ins_emagent.mk:113: warning: overriding commands for target `nmosudo'
ins_emagent.mk:52: warning: ignoring old commands for target `nmosudo'
/u01/app/oracle/product/11.2.0.3/sysman/lib/ins_emagent.mk:113: warning: overriding commands for target `nmosudo'
/u01/app/oracle/product/11.2.0.3/sysman/lib/ins_emagent.mk:52: warning: ignoring old commands for target `nmosudo'
Composite patch 16902043 successfully applied.
OPatch Session completed with warnings.
Log file location: /u01/app/oracle/product/11.2.0.3/cfgtoollogs/opatch/opatch2014-04-24_00-38-46AM_1.log
OPatch completed with warnings.
$ /psu/17076717/custom/server/17076717/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME
Reading /u01/app/oracle/product/11.2.0.3/install/params.ora..
Reading /u01/app/oracle/product/11.2.0.3/install/params.ora..
Parsing file /u01/app/oracle/product/11.2.0.3/bin/racgwrap
Parsing file /u01/app/oracle/product/11.2.0.3/bin/srvctl
Parsing file /u01/app/oracle/product/11.2.0.3/bin/srvconfig
Parsing file /u01/app/oracle/product/11.2.0.3/bin/cluvfy
Verifying file /u01/app/oracle/product/11.2.0.3/bin/racgwrap
Verifying file /u01/app/oracle/product/11.2.0.3/bin/srvctl
Verifying file /u01/app/oracle/product/11.2.0.3/bin/srvconfig
Verifying file /u01/app/oracle/product/11.2.0.3/bin/cluvfy
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/racgwrap
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/srvctl
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/srvconfig
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/cluvfy
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/diskmon.bin
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/lsnodes
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/osdbagrp
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/rawutl
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/srvm/admin/ractrans
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/srvm/admin/getcrshome
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/gnsd
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/crsdiag.pl
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libhasgen11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libclsra11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libdbcfg11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libocr11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libocrb11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libocrutl11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libuini11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/librdjni11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libgns11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libgnsjni11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libagfw11.so
su - root
# /u01/app/11.2.0.3/grid/rdbms/install/rootadd_rdbms.sh
# /u01/app/11.2.0.3/grid/crs/install/rootcrs.pl -patch
因为这是双节点的实验,所以racdb1完成升级之后需要对racdb2进行升级
su - oracle
$ sqlplus /nolog
SQL*Plus: Release 11.2.0.3.0 Production on Thu Apr 24 01:20:22 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL> conn / as sysdba
SQL> startup
3分钟左右的执行时间
SQL> @?/rdbms/admin/catbundle.sql psu apply
col action_time for a30
col action for a10
col namespace for a10
col version for a10
col comments for a26
col id for 9999
col BUNDLE_SERIES for a13
select * from dba_registry_history;
环境是新建的库,1分钟左右的执行时间,它的作用是编辑失效的包,这个可以不用执行。
SQL> @?/rdbms/admin/utlrp
SQL> shutdown immediate;
SQL> startup;
如果使用了catalog数据库,那么升级之后需要运行下面的脚本
$ rman catalog username/password@alias
RMAN> UPGRADE CATALOG;
$ $ORACLE_HOME/OPatch/opatch lspatches
set line 150
col ACTION_TIME for a30
col ACTION for a8
col NAMESPACE for a8
col VERSION for a10
col BUNDLE_SERIES for a5
col COMMENTS for a20
SQL> select * from dba_registry_history;