Check the CPU and PSU patch information of the database.

Source: Internet
Author: User

It briefly describes how to check the CPU and PSU patch installation of the current database.

There are two methods under normal circumstances. One is to log on to the database and check the DBA_REGISTRY_HIST View:

 
 
  1. MODDB2:[/home/oracle]$sqlplus / as sysdba 
  2.  
  3. SQL*Plus: Release 10.2.0.4.0 - Production on Thu Aug 18 13:04:43 2011 
  4.  
  5. Copyright (c) 1982, 2007, Oracle. All Rights Reserved. 
  6.  
  7. Connected to: 
  8. Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production 
  9. With the Partitioning, Real Application Clusters, Oracle Label Security, Data Mining 
  10. and Real Application Testing options 
  11.  
  12. SQL> set pages 100 lines 120 
  13. SQL> col action format a6 
  14. SQL> col namespace format a10 
  15. SQL> col version format a10 
  16. SQL> col comments format a15 
  17. SQL> col action_time format a30 
  18. SQL> col bundle_series format a15 
  19. SQL> alter session set nls_timestamp_format = 'yyyy-mm-dd hh24:mi:ss.ff'; 
  20.  
  21. Session altered. 
  22.  
  23. SQL> select * from dba_registry_history; 
  24.  
  25. ACTION_TIME ACTION NAMESPACE VERSION ID BUNDLE_SERIES COMMENTS 
  26. --------------------------- ------ ---------- ---------- ---- -------------- --------------- 
  27. 2011-06-02 16:54:21.301023 APPLY SERVER 10.2.0.4 4 PSU PSU 10.2.0.4.4 
  28. 2011-06-02 16:54:42.711877 APPLY SERVER 10.2.0.4 1 OPSU PSU 10.2.0.4.5 

Another method is opatch lsinventory:

 
 
  1. MODDB2:[/home/oracle]$opatch lsinventory 
  2. Invoking OPatch 10.2.0.5.0 
  3.  
  4. Oracle Interim Patch Installer version 10.2.0.5.0 
  5. Copyright (c) 2010, Oracle Corporation. All rights reserved. 
  6.  
  7. Oracle Home : /oracle/db 
  8. Central Inventory : /oracle/oraInventory 
  9. from : /var/opt/oracle/oraInst.loc 
  10. OPatch version : 10.2.0.5.0 
  11. OUI version : 10.2.0.4.0 
  12. OUI location : /oracle/db/oui 
  13. Log file location : /oracle/db/cfgtoollogs/opatch/opatch2011-08-18_11-18-30AM.log 
  14.  
  15. Patch history file: /oracle/db/cfgtoollogs/opatch/opatch_history.txt 
  16.  
  17. Lsinventory Output file location : /oracle/db/cfgtoollogs/opatch/lsinv/lsinventory2011-08-18_11-18-30AM.txt 
  18.  
  19. -------------------------------------------------------------------------------- 
  20. Installed Top-level Products (2): 
  21.  
  22. Oracle Database 10g 10.2.0.1.0 
  23. Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0 
  24. There are 2 products installed in this Oracle Home. 
  25.  
  26. Interim patches (4) : 
  27.  
  28. Patch 6367097 : applied on Tue Sep 14 22:08:15 GMT+08:00 2010 
  29. Created on 20 Jul 2008, 23:37:14 hrs US/Pacific 
  30. Bugs fixed: 
  31. 6367097 
  32.  
  33. ...... 
  34.  
  35. Bugs fixed: 
  36. 9294403 
  37.  
  38. OPatch succeeded. 

Note: The CPU and PSU patches are divided into two parts: run the opatch command first, and then run cat_bundle. SQL. If this SQL statement is not run, the Patch Is Not Installed successfully. You can check the patch installation information through the OPATCH command, but the corresponding information cannot be found in the database DBA_REGISTRY_HISTORY.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.