Starting from Oracle 12c, from within the SQL patching information can be obtained. A new package DBMS_QOPATCH offers some really nifty procedures to get the patch information. Some of that information is shared below:
To get patch information from the inventory:
SQL> select xmltransform(dbms_qopatch.get_opatch_install_info, dbms_qopatch.get_opatch_xslt) from dual;
Oracle Home : /u01/app/oracle/product/12.1.0/db_1
Inventory : /u01/app/oraInventory
The following is an equivalent of opatch lsinventory command at the OS level:
SQL> select xmltransform(dbms_qopatch.get_opatch_lsinventory, dbms_qopatch.get_opatch_xslt) from dual;
Oracle Querayable Patch Interface 1.0
--------------------------------------------------------------------------------
Oracle Home : /u01/app/oracle/product/12.1.0/db_1
Inventory : /u01/app/oraInventory
--------------------------------------------------------------------------------Installed Top-level Products (1):
Oracle Database 12c 12.1.0.1.0
Installed Products ( 131)
Oracle Database 12c 12.1.0.1.0
Sun JDK 1.6.0.37.0
oracle.swd.oui.core.min 12.1.0.1.0
Installer SDK Component 12.1.0.1.0
Oracle One-Off Patch Installer 12.1.0.1.0
Oracle Universal Installer 12.1.0.1.0
Oracle USM Deconfiguration 12.1.0.1.0
Oracle Configuration Manager Deconfiguration 10.3.1.0.0
Oracle RAC Deconfiguration 12.1.0.1.0
Oracle DBCA Deconfiguration 12.1.0.1.0
Oracle Database Plugin for Oracle Virtual Assembly Builder 12.1.0.1.0
Oracle Configuration Manager Client 10.3.2.1.0
Oracle Net Services 12.1.0.1.0
Oracle Database 12c 12.1.0.1.0
Oracle OLAP 12.1.0.1.0
Oracle Spatial and Graph 12.1.0.1.0
Oracle Partitioning 12.1.0.1.0
Enterprise Edition Options 12.1.0.1.0
Interim patches:
To get patch information from the inventory:
SQL> select xmltransform(dbms_qopatch.get_opatch_install_info, dbms_qopatch.get_opatch_xslt) from dual;
Oracle Home : /u01/app/oracle/product/12.1.0/db_1
Inventory : /u01/app/oraInventory
The following is an equivalent of opatch lsinventory command at the OS level:
SQL> select xmltransform(dbms_qopatch.get_opatch_lsinventory, dbms_qopatch.get_opatch_xslt) from dual;
Oracle Querayable Patch Interface 1.0
--------------------------------------------------------------------------------
Oracle Home : /u01/app/oracle/product/12.1.0/db_1
Inventory : /u01/app/oraInventory
--------------------------------------------------------------------------------Installed Top-level Products (1):
Oracle Database 12c 12.1.0.1.0
Installed Products ( 131)
Oracle Database 12c 12.1.0.1.0
Sun JDK 1.6.0.37.0
oracle.swd.oui.core.min 12.1.0.1.0
Installer SDK Component 12.1.0.1.0
Oracle One-Off Patch Installer 12.1.0.1.0
Oracle Universal Installer 12.1.0.1.0
Oracle USM Deconfiguration 12.1.0.1.0
Oracle Configuration Manager Deconfiguration 10.3.1.0.0
Oracle RAC Deconfiguration 12.1.0.1.0
Oracle DBCA Deconfiguration 12.1.0.1.0
Oracle Database Plugin for Oracle Virtual Assembly Builder 12.1.0.1.0
Oracle Configuration Manager Client 10.3.2.1.0
Oracle Net Services 12.1.0.1.0
Oracle Database 12c 12.1.0.1.0
Oracle OLAP 12.1.0.1.0
Oracle Spatial and Graph 12.1.0.1.0
Oracle Partitioning 12.1.0.1.0
Enterprise Edition Options 12.1.0.1.0
Interim patches:
No comments:
Post a Comment