查看Oracle的补丁
要查看Oracle的补丁状态,可以通过Opatch命令查看。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
[oracle@ora11g ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/ [oracle@ora11g OPatch]$ pwd /u01/app/oracle/product/11.2.0/dbhome_1/OPatch [oracle@ora11g OPatch]$ ls -ltr total 92 -rw-r--r-- 1 oracle oinstall 2576 May 6 2009 opatch.pl -rw-r--r-- 1 oracle oinstall 23695 Jul 18 2010 emdpatch.pl -rwx--x--- 1 oracle oinstall 12850 Feb 22 2011 opatch.bat -rwx--x--- 1 oracle oinstall 23495 Jun 30 2011 opatch drwxr-xr-x 4 oracle oinstall 4096 Oct 9 03:56 opatchprereqs drwxr-xr-x 2 oracle oinstall 4096 Oct 9 03:56 ocm drwxr-xr-x 2 oracle oinstall 4096 Oct 9 03:56 jlib drwxr-xr-x 2 oracle oinstall 4096 Oct 9 03:56 fmw drwxr-xr-x 2 oracle oinstall 4096 Oct 9 03:56 docs -rw-r--r-- 1 oracle oinstall 49 Oct 9 03:56 opatch.ini [oracle@ora11g OPatch]$ ./opatch lsinventory Invoking OPatch 11.2.0.1.7 Oracle Interim Patch Installer version 11.2.0.1.7 Copyright (c) 2011, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/product/11.2.0/dbhome_1 Central Inventory : /u01/app/oraInventory from : /etc/oraInst.loc OPatch version : 11.2.0.1.7 OUI version : 11.2.0.3.0 Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2014-10-10_06-06-25AM.log Lsinventory Output file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2014-10-10_06-06-25AM.txt -------------------------------------------------------------------------------- Installed Top-level Products (1): Oracle Database 11g 11.2.0.3.0 There are 1 products installed in this Oracle Home. There are no Interim patches installed in this Oracle Home. -------------------------------------------------------------------------------- OPatch succeeded. [oracle@ora11g OPatch]$ |
————————————————————————
Ending。