Para eso existe el utilitario OPatch que entre sus funciones lista los parches instalados en la BD.
Como usuario oracle proceder como sigue:
$ cd $ORACLE_HOME/OPatch
$./opatch lsinventory
El resultado es el siguiente:
[oracle@DIMITRI OPatch]$ ./opatch lsinventory
Invoking OPatch 10.2.0.4.2
Oracle Interim Patch Installer version 10.2.0.4.2
Copyright (c) 2007, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/10.2.0/db_1
Central Inventory : /u01/app/oracle/oraInventory
from : /etc/oraInst.loc
OPatch version : 10.2.0.4.2
OUI version : 10.2.0.4.0
OUI location : /u01/app/oracle/product/10.2.0/db_1/oui
Log file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2012-08-08_11-36-07AM.log
Lsinventory Output file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2012-08-08_11-36-07AM.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.
There are no Interim patches installed in this Oracle Home.
--------------------------------------------------------------------------------
OPatch succeeded.
[oracle@DIMITRI OPatch]$
También se pueden realizar las siguientes querys en la BD, útiles cuando no se cuenta con el utilitario optach.
conectarse al sqlplus de la siguiente forma:
[oracle@DIMITRI ~]$ sqlplus "/as sysdba"
SQL> select * from product_component_version;
PRODUCT VERSION STATUS
---------------------------------------------------------------- ---------------------------------------------------------------- ----------------------------------------------------------------
NLSRTL 10.2.0.4.0 Production
Oracle Database 10g Enterprise Edition 10.2.0.4.0 64bi
PL/SQL 10.2.0.4.0 Production
TNS for Linux: 10.2.0.4.0 Production
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL> select comp_id, version from dba_registry;
COMP_ID VERSION
------------------------------ ------------------------------
SDO 10.2.0.4.0
ORDIM 10.2.0.4.0
AMD 10.2.0.4.0
EM 10.2.0.4.0
XDB 10.2.0.4.0
CONTEXT 10.2.0.4.0
EXF 10.2.0.4.0
RUL 10.2.0.4.0
OWM 10.2.0.4.3
ODM 10.2.0.4.0
CATALOG 10.2.0.4.0
CATPROC 10.2.0.4.0
JAVAVM 10.2.0.4.0
XML 10.2.0.4.0
CATJAVA 10.2.0.4.0
APS 10.2.0.4.0
XOQ 10.2.0.4.0
17 rows selected.
conectarse al sqlplus de la siguiente forma:
[oracle@DIMITRI ~]$ sqlplus "/as sysdba"
SQL> select * from product_component_version;
PRODUCT VERSION STATUS
---------------------------------------------------------------- ---------------------------------------------------------------- ----------------------------------------------------------------
NLSRTL 10.2.0.4.0 Production
Oracle Database 10g Enterprise Edition 10.2.0.4.0 64bi
PL/SQL 10.2.0.4.0 Production
TNS for Linux: 10.2.0.4.0 Production
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL> select comp_id, version from dba_registry;
COMP_ID VERSION
------------------------------ ------------------------------
SDO 10.2.0.4.0
ORDIM 10.2.0.4.0
AMD 10.2.0.4.0
EM 10.2.0.4.0
XDB 10.2.0.4.0
CONTEXT 10.2.0.4.0
EXF 10.2.0.4.0
RUL 10.2.0.4.0
OWM 10.2.0.4.3
ODM 10.2.0.4.0
CATALOG 10.2.0.4.0
CATPROC 10.2.0.4.0
JAVAVM 10.2.0.4.0
XML 10.2.0.4.0
CATJAVA 10.2.0.4.0
APS 10.2.0.4.0
XOQ 10.2.0.4.0
17 rows selected.
No hay comentarios:
Publicar un comentario