春天的故事

暂无签名

  • 博客访问: 114333
  • 博文数量: 63
  • 用 户 组: 普通用户
  • 注册时间: 1970-01-01 08:00
个人简介

鏆傛棤浠嬬粛

文章分类

全部博文(63)

文章存档

2012年(1)

2010年(2)

2009年(4)

2008年(6)

2007年(1)

2006年(49)

我的朋友

分类: IT综合

2012-12-06 11:45:01

1. Download OPatch and PSU patch
1) OPatch Utility
Suggest download newest OPatch Utility from metalink.
link : https://updates.oracle.com/Orion/PatchDetails/process_form?patch_num=6880880
2) PSU patch
Suggest download newest PSU patch from metalink
Doc ID: ID 756671.1
link : https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=1016029913762555&recommended=true&type=DOCUMENT&id=756671.1&_afrWindowMode=0&_adf.ctrl-state=zz3yfgms5_224#r11203
2. Patch Installation Prerequisites
1) OCM configure
As the grid user execute:
$ORACLE_HOME/OPatch/ocm/bin/emocmrsp
2) Validation of Oracle Inventory
check the consistency of inventory information for GI home and each database home to be patched.
$ /OPatch/opatch lsinventory -detail -oh
3) Patch Conflict Detection and Resolution
$ opatch prereq CheckConflictAgainstOHWithDetail -ph /14275605 –oh $GRID_HOME
$ opatch prereq CheckConflictAgainstOHWithDetail -ph /14275605 –oh $DB_HOME
$ opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /14275572 –oh $GRID_HOME
$ opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /14275572/custom/server/14275572 –oh $DB_HOME

3. OPatch install
1) auto install (so easy)
Case 1.1.2B: Patching the GI Home and the Database Home Together, the GI Home Is Not Shared, the Database Home Is Not Shared, ACFS May Be Used
Step 1: create OCM by grid user
Step 2: upload OPatch , PSU
Step 3: As root user, execute the following command:
# opatch auto -ocmrf


2) manual install
As the Oracle RAC database home owner execute:
$ /bin/emctl stop dbconsole


1.Stop the CRS managed resources running from DB homes.

If this is a GI Home environment, as the database home owner execute:
$ /bin/srvctl stop home -o -s -n
If this is an Oracle Restart Home environment, as the database home owner execute:
$ /bin/srvctl stop home -o -s

Note:
You need to make sure that the Oracle ACFS file systems are unmounted (see Section 2.8) and all other Oracle processes are shutdown before you proceed.

2.Run the pre root script.

If this is a GI Home, as the root user execute:
# /crs/install/rootcrs.pl -unlock
If this is an Oracle Restart Home, as the root user execute:
# /crs/install/roothas.pl -unlock

3.Apply the CRS patch using.

As the GI home owner execute:
$ /OPatch/opatch napply -oh -local /14275572
As the GI home owner execute:
$ /OPatch/opatch apply -oh -local /14275605

4.Run the pre script for DB component of the patch.

As the database home owner execute:
$ /14275572/custom/server/14275572/custom/scripts/prepatch.sh -dbhome

5.Apply the DB patch.

As the database home owner execute:
$ /OPatch/opatch napply -oh -local /14275572/custom/server/14275572
$ /OPatch/opatch apply -oh -local /14275605

6.Run the post script for DB component of the patch.

As the database home owner execute:
$ /14275572/custom/server/14275572/custom/scripts/postpatch.sh -dbhome

7.Run the post script.

As the root user execute:
# /rdbms/install/rootadd_rdbms.sh
If this is a GI Home, as the root user execute:
# /crs/install/rootcrs.pl -patch
If this is an Oracle Restart Home, as the root user execute:
# /crs/install/roothas.pl -patch

8.If the message, "A system reboot is recommended before using ACFS” is shown, then a reboot must be issued before continuing. Failure to do so will result in running with an unpatched ACFSADVMOKS driver.

9.Start the CRS managed resources that were earlier running from DB homes.

If this is a GI Home environment, as the database home owner execute:
$ /bin/srvctl start home -o -s -n
If this is an Oracle Restart Home environment, as the database home owner execute:
$ /bin/srvctl start home -o -s


* appendix
auto install result :
[root@RAC2 ~]# /oracle/app/11.2.0/gridhome_1/OPatch/opatch auto /home/grid/tool/14275572/ -ocmrf /home/grid/ocm.rsp
Executing /oracle/app/11.2.0/gridhome_1/perl/bin/perl /oracle/app/11.2.0/gridhome_1/OPatch/crs/patch11203.pl -patchdir /home/grid/tool -patchn 14275572 -ocmrf /home/grid/ocm.rsp -paramfile /oracle/app/11.2.0/gridhome_1/crs/install/crsconfig_params
/oracle/app/11.2.0/gridhome_1/crs/install/crsconfig_params
/oracle/app/11.2.0/gridhome_1/crs/install/s_crsconfig_defs

This is the main log file: /oracle/app/11.2.0/gridhome_1/cfgtoollogs/opatchauto2012-07-12_22-13-34.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system: /oracle/app/11.2.0/gridhome_1/cfgtoollogs/opatchauto2012-07-12_22-13-34.report.log

2012-07-12 22:13:34: Starting Clusterware Patch Setup
Using configuration parameter file: /oracle/app/11.2.0/gridhome_1/crs/install/crsconfig_params
Enter 'yes' if you have unzipped this patch to an empty directory to proceed (yes/no):
[1]+ Stopped /oracle/app/11.2.0/gridhome_1/OPatch/opatch auto /home/grid/tool/14275572/ -ocmrf /home/grid/ocm.rsp
[root@RAC2 ~]# /oracle/app/11.2.0/gridhome_1/OPatch/opatch auto /home/grid/tool -ocmrf /home/grid/ocm.rsp
Executing /oracle/app/11.2.0/gridhome_1/perl/bin/perl /oracle/app/11.2.0/gridhome_1/OPatch/crs/patch11203.pl -patchdir /home/grid -patchn tool -ocmrf /home/grid/ocm.rsp -paramfile /oracle/app/11.2.0/gridhome_1/crs/install/crsconfig_params
/oracle/app/11.2.0/gridhome_1/crs/install/crsconfig_params
/oracle/app/11.2.0/gridhome_1/crs/install/s_crsconfig_defs

This is the main log file: /oracle/app/11.2.0/gridhome_1/cfgtoollogs/opatchauto2012-07-12_22-14-08.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system: /oracle/app/11.2.0/gridhome_1/cfgtoollogs/opatchauto2012-07-12_22-14-08.report.log

2012-07-12 22:14:08: Starting Clusterware Patch Setup
Using configuration parameter file: /oracle/app/11.2.0/gridhome_1/crs/install/crsconfig_params
patch /home/grid/tool/14275572/custom/server/14275572 apply successful for home /oracle/app/oracle/product/11.2.0/dbhome_1
patch /home/grid/tool/14275605 apply successful for home /oracle/app/oracle/product/11.2.0/dbhome_1
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac2'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac2'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'rac2'
CRS-2673: Attempting to stop 'ora.FRA.dg' on 'rac2'
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'rac2'
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'rac2'
CRS-2673: Attempting to stop 'ora.DGOCR.dg' on 'rac2'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.rac2.vip' on 'rac2'
CRS-2677: Stop of 'ora.rac2.vip' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.rac2.vip' on 'rac1'
CRS-2677: Stop of 'ora.FRA.dg' on 'rac2' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'rac2' succeeded
CRS-2677: Stop of 'ora.registry.acfs' on 'rac2' succeeded
CRS-2676: Start of 'ora.rac2.vip' on 'rac1' succeeded
CRS-2677: Stop of 'ora.DGOCR.dg' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac2'
CRS-2677: Stop of 'ora.asm' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'rac2'
CRS-2677: Stop of 'ora.ons' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'rac2'
CRS-2677: Stop of 'ora.net1.network' on 'rac2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac2' has completed
CRS-2677: Stop of 'ora.crsd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac2'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac2'
CRS-2673: Attempting to stop 'ora.asm' on 'rac2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac2'
CRS-2677: Stop of 'ora.evmd' on 'rac2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac2' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'rac2' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac2'
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac2' succeeded
CRS-2677: Stop of 'ora.cssd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'rac2'
CRS-2677: Stop of 'ora.crf' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac2'
CRS-2677: Stop of 'ora.gipcd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac2'
CRS-2677: Stop of 'ora.gpnpd' on 'rac2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully unlock /oracle/app/11.2.0/gridhome_1
patch /home/grid/tool/14275572 apply successful for home /oracle/app/11.2.0/gridhome_1
patch /home/grid/tool/14275605 apply successful for home /oracle/app/11.2.0/gridhome_1
CRS-4123: Oracle High Availability Services has been started.


[@more@]
阅读(1045) | 评论(0) | 转发(0) |
0

上一篇:中秋最好的礼物

下一篇:没有了

给主人留下些什么吧!~~
评论热议
请登录后评论。

登录 注册