Oracle如何检查当前数据库CPU和PSU补丁信息?
2012-08-13 09:04
435 查看
转自:http://database.51cto.com/art/201108/285392.htm
在Oracle数据库中,我们如何检查当前数据库的CPU和PSU补丁安装情况呢?本文我们主要就介绍这部分内容,希望能够对您有所帮助。
正常情况下有两种方法:
一种是登录数据库检查DBA_REGISTRY_HIST视图:
另一种方式是通过opatch lsinventory方式:
注意:CPU和PSU补丁分为两部分,首先通过opatch命令,随后还需要运行cat_bundle.sql。如果没有运行这个SQL,则补丁不算安装成功,这时通过OPATCH命令检查可以看到补丁的安装信息,但是在数据库的DBA_REGISTRY_HISTORY中是找不到对应的信息的。
以上就是Oracle数据库中检查当前数据库CPU和PSU补丁信息的两种方法,本文就介绍到这里了,希望本次的介绍能够对您有所收获!
在Oracle数据库中,我们如何检查当前数据库的CPU和PSU补丁安装情况呢?本文我们主要就介绍这部分内容,希望能够对您有所帮助。
正常情况下有两种方法:
一种是登录数据库检查DBA_REGISTRY_HIST视图:
MODDB2:[/home/oracle]$sqlplus / as sysdba SQL*Plus: Release 10.2.0.4.0 - Production on Thu Aug 18 13:04:43 2011 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Oracle Label Security, Data Mining and Real Application Testing options SQL> set pages 100 lines 120 SQL> col action format a6 SQL> col namespace format a10 SQL> col version format a10 SQL> col comments format a15 SQL> col action_time format a30 SQL> col bundle_series format a15 SQL> alter session set nls_timestamp_format = 'yyyy-mm-dd hh24:mi:ss.ff'; Session altered. SQL> select * from dba_registry_history; ACTION_TIME ACTION NAMESPACE VERSION ID BUNDLE_SERIES COMMENTS --------------------------- ------ ---------- -------------- -------------- --------------- 2011-06-02 16:54:21.301023 APPLY SERVER 10.2.0.4 4 PSU PSU 10.2.0.4.4 2011-06-02 16:54:42.711877 APPLY SERVER 10.2.0.4 1 OPSU PSU 10.2.0.4.5
另一种方式是通过opatch lsinventory方式:
MODDB2:[/home/oracle]$opatch lsinventory Invoking OPatch 10.2.0.5.0 Oracle Interim Patch Installer version 10.2.0.5.0 Copyright (c) 2010, Oracle Corporation. All rights reserved. Oracle Home : /oracle/db Central Inventory : /oracle/oraInventory from : /var/opt/oracle/oraInst.loc OPatch version : 10.2.0.5.0 OUI version : 10.2.0.4.0 OUI location : /oracle/db/oui Log file location : /oracle/db/cfgtoollogs/opatch/opatch2011-08-18_11-18-30AM.log Patch history file: /oracle/db/cfgtoollogs/opatch/opatch_history.txt Lsinventory Output file location : /oracle/db/cfgtoollogs/opatch/lsinv/lsinventory2011-08-18_11-18-30AM.txt -------------------------------------------------------------------------------- Installed Top-level Products (2): Oracle Database 10g 10.2.0.1.0 Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0 There are 2 products installed in this Oracle Home. Interim patches (4) : Patch 6367097 : applied on Tue Sep 14 22:08:15 GMT+08:00 2010 Created on 20 Jul 2008, 23:37:14 hrs US/Pacific Bugs fixed: 6367097 ...... Bugs fixed: 9294403 OPatch succeeded.
注意:CPU和PSU补丁分为两部分,首先通过opatch命令,随后还需要运行cat_bundle.sql。如果没有运行这个SQL,则补丁不算安装成功,这时通过OPATCH命令检查可以看到补丁的安装信息,但是在数据库的DBA_REGISTRY_HISTORY中是找不到对应的信息的。
以上就是Oracle数据库中检查当前数据库CPU和PSU补丁信息的两种方法,本文就介绍到这里了,希望本次的介绍能够对您有所收获!
相关文章推荐
- oracle技术之检查数据库的CPU和PSU补丁信息
- 检查数据库的CPU和PSU补丁信息
- 检查数据库的CPU和PSU补丁信息
- 检查数据库的CPU和PSU补丁信息
- 检查数据库的CPU和PSU补丁信息
- oracle如何下载相应版本的OPatch和PSU/CPU补丁
- Oracle 数据库不同补丁(PSU,CPU,bundle patch)概念区别
- oracle如何查看当前数据库基本信息
- oracle 12C数据库PSU补丁安装
- Oracle中如何获得数据库服务器的时区信息?(PL/SQL)
- Oracle SQLServer MySQL查看当前所有数据库表名及其他信息
- [Oracle] Data Guard CPU/PSU补丁安装教程
- oracle如何查看当前有哪些用户连接到数据库
- 如何在 Ubuntu 中检查 CPU ,显卡,内存,硬盘的使用情况及温度等信息
- Oracle SQLServer MySQL查看当前所有数据库表名及其他信息
- oracle如何查看当前有哪些用户连接到数据库
- Oracle诊断案例---如何诊断和解决CPU高度消耗(100%)的数据库问题
- 如何快速查看oracle服务名连接的数据库的信息
- Oracle HowTo:如何快速杀死占用过多资源(CPU,内存)的数据库进程
- [Oracle] CPU/PSU补丁安装详细教程