2014-04-04 58 views

回答

7

Here is an article on how to check and or install new patches :


要查找OPatch工具設置數據庫環境變量,然後發出此COMAND:

cd $ORACLE_HOME/OPatch 
> pwd 
/oracle/app/product/10.2.0/db_1/OPatch 

要列出所有的補丁適用於你的數據庫的使用lsinventory選項:

[[email protected] 8828328]$ opatch lsinventory 
Oracle Interim Patch Installer version 11.2.0.3.4 
Copyright (c) 2012, Oracle Corporation. All rights reserved. 

Oracle Home : /u00/product/11.2.0/dbhome_1 
Central Inventory : /u00/oraInventory 
from : /u00/product/11.2.0/dbhome_1/oraInst.loc 
OPatch version : 11.2.0.3.4 
OUI version : 11.2.0.1.0 
Log file location : /u00/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2013-11-13_13-55-22PM_1.log 
Lsinventory Output file location : /u00/product/11.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2013-11-13_13-55-22PM.txt 


Installed Top-level Products (1): 
Oracle Database 11g 11.2.0.1.0 
There are 1 products installed in this Oracle Home. 

Interim patches (1) : 
Patch 8405205 : applied on Mon Aug 19 15:18:04 BRT 2013 
Unique Patch ID: 11805160 
Created on 23 Sep 2009, 02:41:32 hrs PST8PDT 
Bugs fixed: 
8405205 

OPatch succeeded. 

使用SQL列出補丁:

select * from registry$history; 
+0

謝謝。我怎樣才能做到這一點?或者只有我必須使用RDP或SSH?也許在甲骨文我可以遠程或其他東西opatch? – user3497717

+0

您將需要RDP或SSH訪問這些主機/節點。 –

+0

我無法使用SQL獲得相同的結果。只有opatch? – user3497717

4

我明白了原來的職位是Oracle 10但這上供其他人誰通過谷歌找到它。

在Oracle 12c下,我發現我的註冊表$歷史記錄是空的。 此作品,而不是:

select * from registry$sqlpatch; 
+0

謝謝,這對我有幫助。 – Rene

+1

你也可以使用dba_registry_sqlpatch。 –

0

也許你需要「系統」。之前:

select * from sys.registry$history;