alert.log中出现如下告警日志:
Unable to obtain current patch information due to error: 20001, ORA-20001: Latest xml inventory is not loaded into table
ORA-06512: at "SYS.DBMS_QOPATCH", line 777
ORA-06512: at "SYS.DBMS_QOPATCH", line 864
ORA-06512: at "SYS.DBMS_QOPATCH", line 2222
ORA-06512: at "SYS.DBMS_QOPATCH", line 740
ORA-06512: at "SYS.DBMS_QOPATCH", line 2247
===========================================================
Dumping current patch information
===========================================================
Unable to obtain current patch information due to error: 20001
===========================================================
处理方法:
12.2:DB Alert.log shows ORA-20001: Latest xml inventory,ORA-06512: at "SYS.DBMS_QOPATCH","KUP-04004: error while reading file" (文档 ID 2323937.1)
In this Document
APPLIES TO:
Oracle Database - Enterprise Edition - Version 12.2.0.1 and later
Information in this document applies to any platform.
SYMPTOMS
While restarting Oracle Database following Error messages are seen in the alert.log
ORA-06512: at "SYS.DBMS_QOPATCH", line 777
ORA-06512: at "SYS.DBMS_QOPATCH", line 864
ORA-06512: at "SYS.DBMS_QOPATCH", line 2222
ORA-06512: at "SYS.DBMS_QOPATCH", line 740
ORA-06512: at "SYS.DBMS_QOPATCH", line 2247
===========================================================
Dumping current patch information
===========================================================
Unable to obtain current patch information due to error: 20001
qopatch_log.log shows :
Terminated by "UIJSVTBOEIZBEFFQBL"
Trim whitespace same as SQL Loader
KUP-04004: error while reading file $ORACLE_HOME/QOpatch/qopiprep.bat
KUP-04017: OS message: Error 0
KUP-04017: OS message: $ORACLE_HOME/QOpatch/qopiprep.bat: line 55: $ORACLE_HOME/rdbms/log/stout_orc1.txt: Permission denied
cat: /oracle/db_sof
KUP-04118: operation "pipe read", location "skudmir:2"
CAUSE
Permission issue on the $ORACLE_HOME/rdbms/log directory
SOLUTION
Perform the following :
chmod 775 $ORACLE_HOME/rdbms/log
$ORALCE_HOME/OPatch/datapatch -prereq
REFERENCES