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

[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]# 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
java.io.FileNotFoundException: http://localhost:8080/ 是一个文件找不到的异常。 这个异常通常是由于程序无法在指定的URL中找到文件导致的。例如,在引用提供的代码中,尝试打开一个URL连接来读取该URL指向的文件时,如果该文件不存在,就会抛出这个异常。 要解决这个问题,可以考虑以下几个步骤: 1. 确保URL的正确性: 首先,验证URL是否正确。可以尝试在浏览器中手动访问该URL,看看是否能够成功打开文件。如果无法在浏览器中打开文件,那么很有可能URL指向的文件确实不存在。 2. 检查文件路径: 如果URL是正确的,那么可以检查一下文件路径是否正确。确保文件所在的路径是可以被访问到的,并且文件确实存在于该路径中。 3. 检查文件权限: 如果文件路径是正确的,并且文件确实存在于该路径中,那么可能是由于文件权限的问题导致无法访问该文件。确保程序运行的用户具有足够的权限来访问该文件。 4. 处理异常: 如果以上步骤都确认无误,但仍然无法解决问题,那么可以在程序中使用try-catch语句来捕获FileNotFoundException异常,并进行相应的处理,例如输出错误信息或采取其他措施来处理异常情况。 总结起来,当出现java.io.FileNotFoundException: http://localhost:8080/ 异常时,需要检查URL的正确性、文件路径和文件权限,并处理异常情况。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [解决java java.io.FileNotFoundException: http:\localhost:8080 (文件名、目录名或卷)问题](https://blog.csdn.net/zelda002/article/details/7601653)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [jdbc连接数据库getConnection 增、删、改、查](https://download.csdn.net/download/l_ji_l/3671447)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值