In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Oracle 11g RAC automatically patch GI PSU (11.2.0.4.8)
To patch (11.2.0.4.8), you can refer to the reamme.html file in patch p21523375_112040_Linux-x86-64.zip, which describes how to patch in detail. The following is a brief summary of this lab.
1. Download the patch and upload it to all cluster nodes
Upload the patch p21523375_112040_Linux-x86-64.zip to each node / mnt directory, and after decompression, assign the right to move to the / tmp directory.
# unzip p21523375_112040_Linux-x86-64.zip
# chown-R grid:oinstall 21523375
# mv / mnt/21523375 / tmp/
2. Upgrade the OPatch tool (all node grid and oracle users need to perform)
Grid:
Grid@jason1:/u01/app/11.2.0/grid/OPatch >. / opatch version
OPatch Version: 11.2.0.3.4
OPatch succeeded.
Grid@jason1:/u01/app/11.2.0/grid/OPatch > cd / u01/app/11.2.0/grid/
Grid@jason1:/u01/app/11.2.0/grid > mv OPatch OPatch.bak
Grid@jason1:/u01/app/11.2.0/grid > unzip p6880880_112000_LINUX.zip
Grid@jason1:/u01/app/11.2.0/grid > cdOPatch
Grid@jason1:/u01/app/11.2.0/grid/OPatch >. / opatch version
OPatch Version: 11.2.0.3.10
OPatch succeeded.
Grid@jason1:/u01/app/11.2.0/grid/OPatch >
Oracle:
Oracle@jason1:~ > cd/u01/app/oracle/product/11.2.0/dbhome_1/OPatch
Oracle@jason1:/u01/app/oracle/product/11.2.0/dbhome_1/OPatch >. / opatch version
OPatch Version: 11.2.0.3.4
OPatch succeeded.
Oracle@jason1:/u01/app/oracle/product/11.2.0/dbhome_1/OPatch > cd..
Oracle@jason1:/u01/app/oracle/product/11.2.0/dbhome_1 > mv OPatch OPatch.bak
Oracle@jason1:/u01/app/oracle/product/11.2.0/dbhome_1 > unzip p6880880_112000_LINUX.zip
Oracle@jason1:/u01/app/oracle/product/11.2.0/dbhome_1 > cd OPatch
Oracle@jason1:~ > cd/u01/app/oracle/product/11.2.0/dbhome_1/OPatch
Oracle@jason1:/u01/app/oracle/product/11.2.0/dbhome_1/OPatch >. / opatch version
OPatch Version: 11.2.0.3.10
OPatch succeeded.
Oracle@jason1:/u01/app/oracle/product/11.2.0/dbhome_1/OPatch >
3. Create an OCM file (all nodes need to execute)
For the creation of OCM files, please refer to the link http://dreamsanqin.blog.51cto.com/845412/1736863.
Jason1 node
Grid@jason1:/u01/app/11.2.0/grid/OPatch/ocm/bin >. / emocmrsp-no_banner-output / tmp/ocm.rsp
Provide your email address to be informedof 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 fornotification of security issues.
Do you wish to remain uninformed ofsecurity issues ([Y] es, [N] o) [N]: y
The OCM configuration response file (/ tmp/ocm.rsp) was successfully created.
Grid@jason1:/u01/app/11.2.0/grid/OPatch/ocm/bin >
Jason2 node
Grid@jason2:/u01/app/11.2.0/grid/OPatch/ocm/bin >. / emocmrsp-no_banner-output / tmp/ocm.rsp
Provide your email address to be informedof 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 fornotification of security issues.
Do you wish to remain uninformed ofsecurity issues ([Y] es, [N] o) [N]: y
The OCM configuration response file (/ tmp/ocm.rsp) was successfully created.
Grid@jason2:/u01/app/11.2.0/grid/OPatch/ocm/bin >
4. OPatch apply (all nodes need to execute) (no need to close any components and resources)
Jason1:
Jason1:/u01/app/11.2.0/grid/OPatch# / u01/app/11.2.0/grid/OPatch/opatch auto / tmp/21523375-ocmrf / tmp/ocm.rsp
Executing/u01/app/11.2.0/grid/perl/bin/perl/u01/app/11.2.0/grid/OPatch/crs/patch21203.pl-patchdir / tmp-patchn 21523375-ocmrf / tmp/ocm.rsp-paramfile / u01/app/11.2.0/grid/crs/install/crsconfig_params
This isthe main log file:/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2016-01-20 12-44-20.log
Thisfile will show your detected configuration and all the steps that opatchautoattempted to do on your system:
/ u01/app/11.2.0/grid/cfgtoollogs/opatchauto2016-01-20 12-44-20.report.log
2016-01-2012 Flex 44: Starting Clusterware Patch Setup
Usingconfiguration parameter file: / u01/app/11.2.0/grid/crs/install/crsconfig_params
StoppingRAC / u01/app/oracle/product/11.2.0/dbhome_1...
StoppedRAC / u01/app/oracle/product/11.2.0/dbhome_1 successfully
Patch/tmp/21523375/21352635 apply successfulfor home / u01/app/oracle/product/11.2.0/dbhome_1
Patch/tmp/21523375/21352649/custom/server/21352649 apply successful for home / u01/app/oracle/product/11.2.0/dbhome_1
StoppingCRS...
StoppedCRS successfully
Patch/tmp/21523375/21352635 apply successfulfor home / u01/app/11.2.0/grid
Patch/tmp/21523375/21352649 apply successfulfor home / u01/app/11.2.0/grid
Patch/tmp/21523375/21352642 apply successfulfor home / u01/app/11.2.0/grid
StartingCRS...
InstallingTrace File Analyzer
ACFSdriver install actions failed
CRS-4123:Oracle High Availability Services has been started.
StartingRAC / u01/app/oracle/product/11.2.0/dbhome_1...
StartedRAC / u01/app/oracle/product/11.2.0/dbhome_1 successfully
Opatchauto succeeded.
Jason1:/u01/app/11.2.0/grid/OPatch#
Jason2:
Jason2:/u01/app/11.2.0/grid/OPatch# / u01/app/11.2.0/grid/OPatch/opatch auto / tmp/21523375-ocmrf / tmp/ocm.rsp
Executing/u01/app/11.2.0/grid/perl/bin/perl/u01/app/11.2.0/grid/OPatch/crs/patch21203.pl-patchdir / tmp-patchn 21523375-ocmrf / tmp/ocm.rsp-paramfile/u01/app/11.2.0/grid/crs/install/crsconfig_params
This isthe main log file:/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2016-01-20 October 14-09-33.log
Thisfile will show your detected configuration and all the steps that opatchautoattempted to do on your system:
/ u01/app/11.2.0/grid/cfgtoollogs/opatchauto2016-01-20 October 14-09-33.report.log
2016-01-2014 09: Starting Clusterware Patch Setup
Usingconfiguration parameter file: / u01/app/11.2.0/grid/crs/install/crsconfig_params
StoppingRAC / u01/app/oracle/product/11.2.0/dbhome_1...
StoppedRAC / u01/app/oracle/product/11.2.0/dbhome_1 successfully
Patch/tmp/21523375/21352635 apply successfulfor home / u01/app/oracle/product/11.2.0/dbhome_1
Patch/tmp/21523375/21352649/custom/server/21352649 apply successful for home / u01/app/oracle/product/11.2.0/dbhome_1
StoppingCRS...
StoppedCRS successfully
Patch/tmp/21523375/21352635 apply successfulfor home / u01/app/11.2.0/grid
Patch/tmp/21523375/21352649 apply successfulfor home / u01/app/11.2.0/grid
Patch/tmp/21523375/21352642 apply successfulfor home / u01/app/11.2.0/grid
StartingCRS...
InstallingTrace File Analyzer
ACFSdriver install actions failed
CRS-4123:Oracle High Availability Services has been started.
StartingRAC / u01/app/oracle/product/11.2.0/dbhome_1...
StartedRAC / u01/app/oracle/product/11.2.0/dbhome_1 successfully
Opatchauto succeeded.
Jason2:/u01/app/11.2.0/grid/OPatch#
After the patch is installed, check the status of the cluster resources
Jason2:/u01/app/11.2.0/grid/bin#. / crsctl stat res-t
NAME TARGET STATE SERVER STATE_DETAILS
LocalResources
Ora.DATA.dg
ONLINE ONLINE jason1
ONLINE ONLINE jason2
Ora.FRA.dg
ONLINE ONLINE jason1
ONLINE ONLINE jason2
Ora.LISTENER.lsnr
ONLINE ONLINE jason1
ONLINE ONLINE jason2
Ora.OCR.dg
ONLINE ONLINE jason1
ONLINE ONLINE jason2
Ora.asm
ONLINE ONLINE jason1 Started
ONLINE ONLINE jason2 Started
Ora.gsd
OFFLINE OFFLINE jason1
OFFLINE OFFLINE jason2
Ora.net1.network
ONLINE ONLINE jason1
ONLINE ONLINE jason2
Ora.ons
ONLINE ONLINE jason1
ONLINE ONLINE jason2
Ora.registry.acfs
ONLINE OFFLINE jason1
ONLINE OFFLINE jason2
ClusterResources
Ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE jason1
Ora.cvu
1 ONLINE ONLINE jason1
Ora.jason1.vip
1 ONLINE ONLINE jason1
Ora.jason2.vip
1 ONLINE ONLINE jason2
Ora.oc4j
1 ONLINE ONLINE jason1
Ora.oracle.db
1 ONLINE ONLINE jason1 Open
2 ONLINE ONLINE jason2 Open
Ora.scan1.vip
1 ONLINE ONLINE jason1
Jason2:/u01/app/11.2.0/grid/bin#
Remarks: 1. According to the output results, the order of patching can be observed as follows: close RAC-- > patch RAC-- > close CRS-- > patch CRS-- > start CRS-- > start RAC
2. ACFS driver install actions failed, the error check log is displayed as CRS-10001:20-Jan-1613:31 ACFS-9109: oracleacfs.ko driver failed to load. The same error occurred when grid was installed to execute root.sh. After patching p17475946_112040_Linux-x86-64.zip, root.sh can be executed normally (refer to the link processing suse11sp3 to execute root.sh failure bug processing). Now I don't know why there will be the same problem after the patch.
3. The resource in the cluster resource is offline, which is caused by the failure of oracleacfs.kodriver failed to load loading. Restarting each node resource will return to normal.
Ora.registry.acfs
ONLINE OFFLINE jason1
ONLINE OFFLINE jason2
5. Load and modify SQL files to the database to modify the data dictionary
In a RAC environment, you only need to perform the following SQL on one node.
(1)
Cd $ORACLE_HOME/rdbms/admin
Sqlplus / nolog
SQL > CONNECT / AS SYSDBA
SQL > STARTUP
SQL > @ catbundle.sql psu apply
SQL > QUIT
The catbundle.sql execution is reflected inthe dba_registry_history view by a row associated with bundle series PSU.
(2)
If the OJVM PSU was applied for a previousGI PSU patch, you may see invalid Java classes after execution of the catbundle.sqlscript in the previous step. If this is the case, run utlrp.sql to re-validatethese Java classes.
Cd $ORACLE_HOME/rdbms/admin
Sqlplus / nolog
SQL > CONNECT / AS SYSDBA
SQL > @ utlrp.sql
6. Check the patch version of DB
SQL > select * from dba_registry_history
ACTION_TIME ACTION NAMESPACE VERSION ID BUNDLE_SERIESCOMMENTS
-
24-AUG-13 12.03.45.119862 PM APPLY SERVER 11.2.0.4 0 PSU Patchset 11.2.0.2.0
07-JAN-16 11.04.29.479612 PM APPLY SERVER 11.2.0.4 0 PSU Patchset 11.2.0.2.0
20-JAN-16 03.31.06.023073 PM APPLY SERVER 11.2.0.4 8 PSU PSU 11.2.0.4.8
SQL >
7. Error processing
The following error occurs in the automatic update of the patch
Jason1:/u01/app/11.2.0/grid/OPatch # / u01/app/11.2.0/grid/OPatch/opatch auto / tmp/21523375-ocmrf / tmp/ocm.rsp
Executing / u01/app/11.2.0/grid/perl/bin/perl / u01/app/11.2.0/grid/OPatch/crs/patch21203.pl-patchdir / tmp-patchn 21523375-ocmrf / tmp/ocm.rsp-paramfile / u01/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: / u01/app/11.2.0/grid/cfgtoollogs/opatchauto2016-01-20 12-38-42.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/ u01/app/11.2.0/grid/cfgtoollogs/opatchauto2016-01-20 12-38-42.report.log
2016-01-20 12:38:42: Starting Clusterware Patch Setup
Using configuration parameter file: / u01/app/11.2.0/grid/crs/install/crsconfig_params
The opatch Component check failed. This patch is not applicable for / u01/app/oracle/product/11.2.0/dbhome_1
The opatch Component check failed. This patch is not applicable for / u01/app/oracle/product/11.2.0/dbhome_1
Conflict check failed for oracle home / u01/app/oracle/product/11.2.0/dbhome_1
Conflict check failed
ERROR: Conflict-Check has failed. Please refer to / u01/app/11.2.0/grid/cfgtoollogs/opatchauto2016-01-20 12-38-42.log for details
Opatch auto failed.
Jason1:/u01/app/11.2.0/grid/OPatch #
For this error, please refer to GI OPatch to upgrade The opatch Component check failed. This patch is not applicable for... Link processing.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.