2014-04-04 3 views

risposta

7

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


per trovare il Setup Tool OPatch le variabili di database dell'ambiente e quindi emettere questo comand:

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

Per elencare tutte le patch si applica all'utilizzo del database l'opzione 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. 

Per elencare le patch utilizzando sql:

select * from registry$history; 
+0

Grazie. Come posso farlo da remoto? O solo devo usare RDP o SSH? Forse in Oracle posso questo opuscolo da remoto o qualcos'altro? – user3497717

+0

È necessario l'accesso RDP o SSH a tali host/nodi. –

+0

e non posso usare SQL per ottenere lo stesso risultato. Solo opatch? – user3497717

4

Capisco il post originale è per Oracle 10, ma questo è per riferimento da chiunque altro che trova tramite Google.

In Oracle 12c, ho rilevato che la cronologia del mio registro $ è vuota. questo funziona invece:

select * from registry$sqlpatch; 
+0

Grazie, questo mi ha aiutato. – Rene

+1

Puoi anche usare dba_registry_sqlpatch. –

0

Forse avete bisogno di "SYS". prima:

select * from sys.registry$history;