今天上升级oracle10.2.0.4.4,在打PSU补丁的时候遇到如下错误
Copy failed from '/backup/oracle_install/9352164/files/lib/libjox10.a' to '/oracle/product/10.2.0/lib/libjox10.a'...
Please verify all applications associated with the Oracle Home '/oracle/product/10.2.0' are shut down. If this is AIX, please perform solution documented in Note 739963.1 on https://myoraclesupport.oracle.com.
Do you want to retry copying the file? [y|n]
User Responded with: Y
意思是复制文件失败了,询问是否重试? 点击Y...最后还是失败了。
安装失败后的提示
The following warnings have occurred during OPatch execution:
1) OUI-67124:Copy failed from '/backup/oracle_install/9352164/files/lib/libjox10.a' to '/oracle/product/10.2.0/lib/libjox10.a'...
2) OUI-67124:Files check failed: Some files under ORACLE_HOME are not patched. Please see log file for details.
经过检查发现目标文件已经存在,这就是复制失败的原因。
/oracle/product/10.2.0/OPatch> ls -l /oracle/product/10.2.0/lib/libjox10.a
-rwxr-xrwx 1 oracle dba 13257611 May 10 2008 /oracle/product/10.2.0/lib/libjox10.a
解决问题很简单。将已经存在的目标文件移走,重新执行opatch apply问题解决。
/oracle/product/10.2.0/OPatch> mv /oracle/product/10.2.0/lib/libjox10.a /oracle/product/10.2.0/lib/libjox10.a.old
/oracle/product/10.2.0/OPatch> ./opatch apply /backup/oracle_install/9352164/
这个问题我遇到不多,还以为是什么疑难杂症,没想到解决如此容易。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29047826/viewspace-1678649/
,如需转载,请注明出处,否则将追究法律责任。