2016年8月26日 星期五

Oracle Query Alert Log fvia SQL

http://www.dba-oracle.com/t_11g_dbgalertext_alert_log_sql.htm

http://www.dba-oracle.com/t_oracle_alert_log_sql_external_tables.htm


11可以查 X$DBGALERTEXT

11以前要用外部文件的方式

create directory BDUMP as '/u01/app/oracle/admin/mysid/bdump';

create table 
   alert_log ( msg varchar2(80) )
organization external (
   type oracle_loader
   default directory BDUMP
   access parameters (
      records delimited by newline
   )
   location('alrt_mysid.log')
)
reject limit 1000;