miércoles, 22 de abril de 2015

ORACLE-DBA-conocer la ubicación del alert log

El alert log del motor oracle registra información importante de los eventos que van ocurriendo en la instancia de Base de Datos. Cuando ocurre un error en la ejecución de un procedimiento almacenado se puede consultar por el registro de sucesos en este log.

Para averiguar dónde se encuentra, se debe ingresar como admin y consultar por el parámetro "background_dump_dest"



[oracle@QUICO ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 10.2.0.4.0 - Production on Wed Apr 22 09:51:43 2015

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, OLAP, Data Mining and Real Application Testing options

SQL> set pages 3000 lines 300
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> show parameter background;

NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
background_core_dump     string partial
background_dump_dest     string /lala/admin/lala/bdump
SQL> !ls -ltr /lala/admin/lala/bdump/al*
-rw-r----- 1 oracle oinstall 19975382 Apr 21 20:44 /lala/admin/lala/bdump/alert_lala.log

SQL> 


Asi es posible viasualizar errores en la ejecución de procedimientos almacenados, como se puede ver a continuación:

[oracle@QUICO ~]$ tail -30 /lala/admin/lala/bdump/alert_lala.log
  Current log# 6 seq# 1350 mem# 0: /lala/oradata/lala/redo06.log

ORA-00600: internal error code, arguments: [15419], [severe error during PL/SQL execution], [], [], [], [], [], []
ORA-06544: PL/SQL: internal error, arguments: [pbjem_match - unknown/unimpl modKind], [4], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [pbjem_match - unknown/unimpl modKind]
Sun Apr 19 15:03:14 2015
Errors in file /lala/admin/lala/udump/lala_ora_31399.trc:
ORA-00600: internal error code, arguments: [15419], [severe error during PL/SQL execution], [], [], [], [], [], []
ORA-06544: PL/SQL: internal error, arguments: [pbjem_match - unknown/unimpl modKind], [4], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [pbjem_match - unknown/unimpl modKind]
Sun Apr 19 18:06:36 2015
...
[oracle@QUICO ~]$


fuente:

https://community.oracle.com/thread/2295022

No hay comentarios:

Publicar un comentario