Attention Log in Oracle Database 21c
The attention log is a JSON formatted file introduced in Oracle 21c to capture critical events, making it easier to identify events that require action.
oracle 21cconfigurationintermediate
by OracleDba
17 views
The attention log is a JSON formatted file introduced in Oracle 21c to capture critical events, making it easier to identify events that require action.
12345678910111213141516171819202122232425262728293031323334353637
set linesize 100 pagesize 20
column name format a25
column value format a70
select name, value
from v$diag_info
order by 1;
NAME VALUE
------------------------- ----------------------------------------------------------------------
ADR Base /u01/app/oracle
ADR Home /u01/app/oracle/diag/rdbms/cdb1/cdb1
Active Incident Count 2
Active Problem Count 1
Attention Log /u01/app/oracle/diag/rdbms/cdb1/cdb1/trace/attention_cdb1.log
Default Trace File /u01/app/oracle/diag/rdbms/cdb1/cdb1/trace/cdb1_ora_12511.trc
Diag Alert /u01/app/oracle/diag/rdbms/cdb1/cdb1/alert
Diag Cdump /u01/app/oracle/diag/rdbms/cdb1/cdb1/cdump
Diag Enabled TRUE
Diag Incident /u01/app/oracle/diag/rdbms/cdb1/cdb1/incident
Diag Trace /u01/app/oracle/diag/rdbms/cdb1/cdb1/trace
Health Monitor /u01/app/oracle/diag/rdbms/cdb1/cdb1/hm
ORACLE_HOME /u01/app/oracle/product/21.0.0/dbhome_1
13 rows selected.
SQL>
select name, value
from v$diag_info
where name = 'Attention Log';
NAME VALUE
------------------------- ----------------------------------------------------------------------
Attention Log /u01/app/oracle/diag/rdbms/cdb1/cdb1/trace/attention_cdb1.log
SQL>12345678910111213141516171819
{
"ERROR" : "PMON (ospid: 2070): terminating the instance due to ORA error 12752",
"URGENCY" : "IMMEDIATE",
"INFO" : "Additional Information Not Available",
"CAUSE" : "The instance termination routine was called",
"ACTION" : "Check alert log for more information relating to instance termination rectify the error and restart the instance",
"CLASS" : "CDB Instance / CDB ADMINISTRATOR / AL-1003",
"TIME" : "2021-10-13T03:36:50.671+00:00"
}
{
"NOTIFICATION" : "Starting ORACLE instance (normal) (OS id: 1146)",
"URGENCY" : "INFO",
"INFO" : "Additional Information Not Available",
"CAUSE" : "A command to startup the instance was executed",
"ACTION" : "Check alert log for progress and completion of command",
"CLASS" : "CDB Instance / CDB ADMINISTRATOR / AL-1000",
"TIME" : "2021-10-13T10:46:01.949+00:00"
}Please to add comments
No comments yet. Be the first to comment!