java.io.FileNotFoundException: /u01/app/oraInventory/ContentsXML/oui-patch.xml (Permission denied)‘

殳凯捷
2023-12-01
[root@dbcdr2 ~]# $ORACLE_DB_HOME/OPatch/opatchauto apply $UNZIPPED_PATCH_LOCATION -oh $ORACLE_DB_HOME

OPatchauto session is initiated at Sun Mar 21 02:31:58 2021

System initialization log file is /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchautodb/systemconfig2021-03-21_02-32-00AM.log.

Session log file is /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/opatchauto2021-03-21_02-32-12AM.log
The id for this session is 4S7I

Executing OPatch prereq operations to verify patch applicability on home /u01/app/oracle/product/19.0.0/db_1
Patch applicability verified successfully on home /u01/app/oracle/product/19.0.0/db_1


Verifying SQL patch applicability on home /u01/app/oracle/product/19.0.0/db_1
No step execution required.........
 

Preparing to bring down database service on home /u01/app/oracle/product/19.0.0/db_1
No step execution required.........
 

Performing prepatch operation on home /u01/app/oracle/product/19.0.0/db_1
Perpatch operation completed successfully on home /u01/app/oracle/product/19.0.0/db_1


Start applying binary patch on home /u01/app/oracle/product/19.0.0/db_1
Failed while applying binary patches on home /u01/app/oracle/product/19.0.0/db_1

Execution of [OPatchAutoBinaryAction] patch action failed, check log for more details. Failures:
Patch Target : dbcdr2->/u01/app/oracle/product/19.0.0/db_1 Type[rac]
Details: [
---------------------------Patching Failed---------------------------------
Command execution failed during patching in home: /u01/app/oracle/product/19.0.0/db_1, host: dbcdr2.
Command failed:  /u01/app/oracle/product/19.0.0/db_1/OPatch/opatchauto  apply /u01/30899722 -oh /u01/app/oracle/product/19.0.0/db_1 -target_type rac_database -binary -invPtrLoc /u01/app/oracle/product/19.0.0/db_1/oraInst.loc -jre /u01/app/oracle/product/19.0.0/db_1/OPatch/jre -persistresult /u01/app/oracle/product/19.0.0/db_1/opatchautocfg/db/sessioninfo/sessionresult_dbcdr2_rac.ser -analyzedresult /u01/app/oracle/product/19.0.0/db_1/opatchautocfg/db/sessioninfo/sessionresult_analyze_dbcdr2_rac.ser
Command failure output: 
==Following patches FAILED in apply:

Patch: /u01/30899722/30869156
Log: /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2021-03-21_02-32-30AM_1.log
Reason: Failed during Patching: oracle.opatch.opatchsdk.OPatchException: ApplySession failed in system modification phase... 'ApplySession::apply failed: java.io.IOException: oracle.sysman.oui.patch.PatchException: java.io.FileNotFoundException: /u01/app/oraInventory/ContentsXML/oui-patch.xml (Permission denied)' 

After fixing the cause of failure Run opatchauto resume

]
OPATCHAUTO-68061: The orchestration engine failed.
OPATCHAUTO-68061: The orchestration engine failed with return code 1
OPATCHAUTO-68061: Check the log for more details.
OPatchAuto failed.

OPatchauto session completed at Sun Mar 21 02:34:26 2021
Time taken to complete the session 2 minutes, 29 seconds

 opatchauto failed with error code 42



 

[root@dbcdr2 ~]# $ORACLE_DB_HOME/OPatch/opatchauto apply $UNZIPPED_PATCH_LOCATION -oh $ORACLE_DB_HOME

OPatchauto session is initiated at Sun Mar 21 02:38:03 2021

System initialization log file is /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchautodb/systemconfig2021-03-21_02-38-10AM.log.

Session log file is /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/opatchauto2021-03-21_02-38-23AM.log
The id for this session is CHJ5

Executing OPatch prereq operations to verify patch applicability on home /u01/app/oracle/product/19.0.0/db_1
Patch applicability verification failed on home /u01/app/oracle/product/19.0.0/db_1

Execution of [OPatchAutoBinaryAction] patch action failed, check log for more details. Failures:
Patch Target : dbcdr2->/u01/app/oracle/product/19.0.0/db_1 Type[rac]
Details: [
---------------------------Patching Failed---------------------------------
Command execution failed during patching in home: /u01/app/oracle/product/19.0.0/db_1, host: dbcdr2.
Command failed:  /u01/app/oracle/product/19.0.0/db_1/OPatch/opatchauto  apply /u01/30899722 -oh /u01/app/oracle/product/19.0.0/db_1 -target_type rac_database -binary -invPtrLoc /u01/app/oracle/product/19.0.0/db_1/oraInst.loc -jre /u01/app/oracle/product/19.0.0/db_1/OPatch/jre -persistresult /u01/app/oracle/product/19.0.0/db_1/opatchautocfg/db/sessioninfo/sessionresult_analyze_dbcdr2_rac.ser -analyze -online -prepare_home
Command failure output: 
==Following patches FAILED in analysis for apply:

Patch: /u01/30899722/30894985
Log: 
Reason: Failed during listing in Analysis: java.lang.Exception: oracle.opatch.opatchsdk.OPatchException: Unable to create patchObject
Possible causes are:
   ORACLE_HOME/inventory/oneoffs/30869156 is corrupted. PatchObject constructor: Input file "/u01/app/oracle/product/19.0.0/db_1/inventory/oneoffs/30869156/etc/config/actions" or "/u01/app/oracle/product/19.0.0/db_1/inventory/oneoffs/30869156/etc/config/inventory" does not exist.


Patch: /u01/30899722/30869156
Log: 
Reason: Failed during listing in Analysis: java.lang.Exception: oracle.opatch.opatchsdk.OPatchException: Unable to create patchObject
Possible causes are:
   ORACLE_HOME/inventory/oneoffs/30869156 is corrupted. PatchObject constructor: Input file "/u01/app/oracle/product/19.0.0/db_1/inventory/oneoffs/30869156/etc/config/actions" or "/u01/app/oracle/product/19.0.0/db_1/inventory/oneoffs/30869156/etc/config/inventory" does not exist. 

After fixing the cause of failure Run opatchauto resume

]
OPATCHAUTO-68061: The orchestration engine failed.
OPATCHAUTO-68061: The orchestration engine failed with return code 1
OPATCHAUTO-68061: Check the log for more details.
OPatchAuto failed.

OPatchauto session completed at Sun Mar 21 02:38:31 2021
Time taken to complete the session 0 minute, 28 seconds

 opatchauto failed with error code 42
[oracle@dbcdr1 oneoffs]$ scp -r 30869156 dbcdr2:/u01/app/oracle/product/19.0.0/db_1/inventory/oneoffs/.
inventory.xml                                                                                                                                    100%  224KB 140.5MB/s   00:00    
actions.xml  
[oracle@dbcdr2 OPatch]$ opatch rollback -id  30869156
bash: opatch: command not found...
[oracle@dbcdr2 OPatch]$ ./opatch rollback -id  30869156
Oracle Interim Patch Installer version 12.2.0.1.19
Copyright (c) 2021, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/19.0.0/db_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/19.0.0/db_1/oraInst.loc
OPatch version    : 12.2.0.1.19
OUI version       : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatch/opatch2021-03-21_02-43-02AM_1.log


Patches will be rolled back in the following order: 
   30869156
The following patch(es) will be rolled back: 30869156  

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/19.0.0/db_1')


Is the local system ready for patching? [y|n]
y
User Responded with: Y

Rolling back patch 30869156...

RollbackSession rolling back interim patch '30869156' from OH '/u01/app/oracle/product/19.0.0/db_1'

Patching component oracle.rdbms.rsf, 19.0.0.0.0...
Deleting "kubsbufio.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libclient19.a"
Deleting "kubscrf.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libclient19.a"
Deleting "psdufa.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libplc19_pic.a"
Deleting "qesxldsb.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libcommon19.a"
Deleting "qesdsbc.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libcommon19.a"
Deleting "skfparity.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libcommon19.a"
Deleting "skgrlib.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libgeneric19.a"
Deleting "skgrlib_ipcdat.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libgeneric19.a"
Deleting "skgzepclib.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libgeneric19.a"
Deleting "skgzibr.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libgeneric19.a"
Deleting "pef.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libpls19_pic.a"
Deleting "pevmexe.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libpls19_pic.a"
Deleting "ph2o.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libpls19_pic.a"
Deleting "pfrobj.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libpls19_pic.a"
Deleting "per.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libpls19_pic.a"
Deleting "ph2ima.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libpls19_pic.a"
Deleting "ph2imb.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libpls19_pic.a"
Deleting "pfrrun.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libpls19_pic.a"
Deleting "pkl.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libpls19_pic.a"
Deleting "ph2oa.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libpls19_pic.a"
Deleting "pk.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libpls19_pic.a"

Patching component oracle.rdbms, 19.0.0.0.0...
Deleting "kqro.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libserver19.a"
Deleting "kpdbapx.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libserver19.a"
Deleting "kubsd.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libserver19.a"

Patching component oracle.rdbms.util, 19.0.0.0.0...

Patching component oracle.assistants.acf, 19.0.0.0.0...

Patching component oracle.assistants.deconfig, 19.0.0.0.0...

Patching component oracle.assistants.server, 19.0.0.0.0...

Patching component oracle.buildtools.rsf, 19.0.0.0.0...

Patching component oracle.ctx, 19.0.0.0.0...

Patching component oracle.ldap.rsf, 19.0.0.0.0...

Patching component oracle.network.rsf, 19.0.0.0.0...

Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...

Patching component oracle.sdo, 19.0.0.0.0...

Patching component oracle.sqlplus, 19.0.0.0.0...

Patching component oracle.dbjava.ic, 19.0.0.0.0...

Patching component oracle.nlsrtl.rsf, 19.0.0.0.0...

Patching component oracle.dbjava.jdbc, 19.0.0.0.0...

Patching component oracle.dbdev, 19.0.0.0.0...

Patching component oracle.network.client, 19.0.0.0.0...

Patching component oracle.xdk.parser.java, 19.0.0.0.0...

Patching component oracle.rdbms.deconfig, 19.0.0.0.0...

Patching component oracle.oracore.rsf, 19.0.0.0.0...

Patching component oracle.rdbms.lbac, 19.0.0.0.0...

Patching component oracle.ldap.rsf.ic, 19.0.0.0.0...

Patching component oracle.ldap.security.osdt, 19.0.0.0.0...

Patching component oracle.ons, 19.0.0.0.0...

Patching component oracle.sdo.locator, 19.0.0.0.0...

Patching component oracle.rdbms.install.plugins, 19.0.0.0.0...

Patching component oracle.marvel, 19.0.0.0.0...

Patching component oracle.rdbms.install.common, 19.0.0.0.0...

Patching component oracle.install.deinstalltool, 19.0.0.0.0...

Patching component oracle.xdk.rsf, 19.0.0.0.0...
Deleting "jznpathval.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libxml19.a"
Deleting "jzntrans.o" from archive "/u01/app/oracle/product/19.0.0/db_1/lib/libxml19.a"

Patching component oracle.rdbms.oci, 19.0.0.0.0...

Patching component oracle.rdbms.drdaas, 19.0.0.0.0...

Patching component oracle.precomp.rsf, 19.0.0.0.0...

Patching component oracle.javavm.client, 19.0.0.0.0...

Patching component oracle.precomp.common.core, 19.0.0.0.0...

Patching component oracle.xdk, 19.0.0.0.0...

Patching component oracle.sqlplus.ic, 19.0.0.0.0...

Patching component oracle.odbc, 19.0.0.0.0...

Patching component oracle.oraolap.dbscripts, 19.0.0.0.0...

Patching component oracle.ldap.owm, 19.0.0.0.0...

Patching component oracle.bali.ice, 11.1.1.7.0...

Patching component oracle.ctx.rsf, 19.0.0.0.0...

Patching component oracle.ovm, 19.0.0.0.0...

Patching component oracle.rdbms.rman, 19.0.0.0.0...

Patching component oracle.dbjava.ucp, 19.0.0.0.0...

Patching component oracle.rdbms.dv, 19.0.0.0.0...

Patching component oracle.duma, 19.0.0.0.0...

Patching component oracle.network.listener, 19.0.0.0.0...

Patching component oracle.oraolap, 19.0.0.0.0...

Patching component oracle.sdo.locator.jrf, 19.0.0.0.0...

Patching component oracle.rdbms.scheduler, 19.0.0.0.0...

Patching component oracle.rdbms.crs, 19.0.0.0.0...

Patching component oracle.rdbms.rsf.ic, 19.0.0.0.0...

Patching component oracle.precomp.common, 19.0.0.0.0...

Patching component oracle.nlsrtl.rsf.core, 19.0.0.0.0...

Patching component oracle.perlint, 5.28.1.0.0...

Patching component oracle.precomp.lang, 19.0.0.0.0...

Patching component oracle.jdk, 1.8.0.201.0...
RollbackSession removing interim patch '30869156' from inventory


Inactive sub-set patch [29517242] has become active due to the rolling back of a super-set patch [30869156].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatch/opatch2021-03-21_02-43-02AM_1.log

OPatch succeeded.

 

[root@dbcdr2 OPatch]# $ORACLE_DB_HOME/OPatch/opatchauto apply $UNZIPPED_PATCH_LOCATION -oh $ORACLE_DB_HOME

OPatchauto session is initiated at Sun Mar 21 02:45:00 2021

System initialization log file is /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchautodb/systemconfig2021-03-21_02-45-02AM.log.

Session log file is /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/opatchauto2021-03-21_02-45-14AM.log
The id for this session is KAZ6

Executing OPatch prereq operations to verify patch applicability on home /u01/app/oracle/product/19.0.0/db_1
Patch applicability verified successfully on home /u01/app/oracle/product/19.0.0/db_1


Verifying SQL patch applicability on home /u01/app/oracle/product/19.0.0/db_1
No step execution required.........
 

Preparing to bring down database service on home /u01/app/oracle/product/19.0.0/db_1
No step execution required.........
 

Performing prepatch operation on home /u01/app/oracle/product/19.0.0/db_1
Perpatch operation completed successfully on home /u01/app/oracle/product/19.0.0/db_1


Start applying binary patch on home /u01/app/oracle/product/19.0.0/db_1
Binary patch applied successfully on home /u01/app/oracle/product/19.0.0/db_1


Performing postpatch operation on home /u01/app/oracle/product/19.0.0/db_1
Postpatch operation completed successfully on home /u01/app/oracle/product/19.0.0/db_1


Preparing home /u01/app/oracle/product/19.0.0/db_1 after database service restarted
No step execution required.........
 

Trying to apply SQL patch on home /u01/app/oracle/product/19.0.0/db_1
No step execution required.........
 
OPatchAuto successful.

--------------------------------Summary--------------------------------

Patching is completed successfully. Please find the summary as follows:

Host:dbcdr2
RAC Home:/u01/app/oracle/product/19.0.0/db_1
Version:19.0.0.0.0
Summary:

==Following patches were SKIPPED:

Patch: /u01/30899722/30869304
Reason: This patch is not applicable to this specified target type - "rac_database"

Patch: /u01/30899722/30898856
Reason: This patch is not applicable to this specified target type - "rac_database"


==Following patches were SUCCESSFULLY applied:

Patch: /u01/30899722/30869156
Log: /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2021-03-21_02-45-32AM_1.log

Patch: /u01/30899722/30894985
Log: /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2021-03-21_02-45-32AM_1.log



OPatchauto session completed at Sun Mar 21 02:47:59 2021
Time taken to complete the session 3 minutes, 0 second
[root@dbcdr2 OPatch]# 

 

 类似资料: