在實際的工作和學習中
Opatch的最新版本可以從Metalink下載
(Opatch
# You must have Perl
# installed under the ORACLE_HOME
# environment
# Refer to the following link for details on Perl and OPatch:
# tabase_id=NOT&p_id=
下載Optach後
[/app/oracle/product/
[/app/oracle/product/
Invoking OPatch
OPatch Version:
OPatch succeeded
[/app/oracle/product/
Invoking OPatch
Oracle Interim Patch Installer version
Copyright (c)
Oracle Home : /app/oracle/product/
Central Inventory : /app/oracle/oraInventory
from : /var/opt/oracle/oraInst
OPatch version :
OUI version :
OUI location : /app/oracle/product/
Log file location : /app/oracle/product/
LsInventorySession failed:
The Oracle Home does not meet OUI version requirement
This OPatch (version
It requires OUI version
OPatch failed with error code
原因
下載新的Opatch
[/app/oracle/product/
Oracle Interim Patch Installer version
Copyright (c)
We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference
the latest OPatch version
and other support related issues
Oracle Home : /app/oracle/product/
Oracle Home Inventory : /app/oracle/product/
Central Inventory : /app/oracle/oraInventory
from : /var/opt/oracle/oraInst
OUI location : /app/oracle/product/
OUI shared library : /app/oracle/product/
Java location : /app/oracle/product/
Log file location : /app/oracle/product/
Creating log file
Result:
There is no Interim Patch
OPatch succeeded
下面以打補丁
[/app/oracle/product/
報錯
Invoking fuser to check for active processes
Invoking fuser on
Problems when checking for files that are active
There were problems when checking for active processes on critical files
The patch tool runs the command
ERROR: OPatch failed during pre
原因為fuser沒有執行權限
/usr/sbin#chmod +x fuser
重新命令
用opatch lsinventory顯示打patch結果
[/app/oracle/product/
Oracle Interim Patch Installer version
Copyright (c)
We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference
the latest OPatch version
and other support related issues
Oracle Home : /app/oracle/product/
Oracle Home Inventory : /app/oracle/product/
Central Inventory : /app/oracle/oraInventory
from : /var/opt/oracle/oraInst
OUI location : /app/oracle/product/
OUI shared library : /app/oracle/product/
Java location : /app/oracle/product/
Log file location : /app/oracle/product/
Creating log file
Result:
Installed Patch List:
=====================
[ Base Bug(s):
OPatch succeeded
[/app/oracle/product/
From:http://tw.wingwit.com/Article/program/Oracle/201311/18427.html