Problem:
There is an unpublished Bug 29845449 in Oracle 19c, causing the following message to be written frequently in the DB alertlog:
2022-10-12T13:42:54.212579+00:00
XDB initialized.
2022-10-12T13:43:48.993302+00:00
XDB initialized.
Solution: [Works on Linux OS only]
You can run the following command to clean up "XDB initialized" message from the alertlog and two lines above it, which include the timestamp as well:
[Replace /u01/oracle/diag/rdbms/orcl/orcl/trace/alert_orcl.log with your right database alertlog path]
# vim -e - /u01/oracle/diag/rdbms/orcl/orcl/trace/alert_orcl.log << EOF
g/XDB initialized/.-2,.d
wq
EOF
Excerpt from the alertlog file before running the command:
After running the command:
Looks cool!
I'll add this feature shortly to the database monitoring script "dbalarm" to automatically get rid of this message whenever the script runs:
http://dba-tips.blogspot.ae/2014/02/database-monitoring-script-for-ora-and.html
References:
"XDB Initialized." appearing multiple times in alert.log (Doc ID 2784774.1)
https://unix.stackexchange.com/questions/29906/delete-range-of-lines-above-pattern-with-sed-or-awk
No comments:
Post a Comment