如何清除OEM下的历史警告信息

February 21, 2017 2.47k Views 0 Comments 1.34k Words

问题描述:OEM的HOME页面可以显示ORACLE的报警信息,但报警事件清除后该信息不会自动清除。随着时间的增长,信息量逐渐加大,解决方法是手工予以清除。

严重性 目标名称 目标类型
类别 名称 消息 预警触发时间
Sample Cluster Database Tablespaces Full Tablespace Free   Space (MB) Tablespace [TEMP]   only has [0 megabytes ] free space 2008-12-8 10:24:36
Sample1 Database Instance Waits by Wait   Class Database Time   Spent Waiting (%) 事件类   "Cluster" 的度量 "Database Time Spent Waiting   (%)" 位于 100 2008-12-10 0:45:07
Sample1 Database Instance Global Cache   Statistics

Global Cache   Average Current

Block Request Time   (centi-seconds)

度量   "Global Cache Average Current Get Time" 位于 .95 2008-12-10 0:45:07

Sample

Cluster Database

Invalid Objects by   Schema

Owner's Invalid   Object Count

WLSN   方案中存在 24 个无效对象。

2008-12-9 9:31:08

Sample2 Database Instance Waits by Wait   Class Database Time   Spent Waiting (%) 事件类   "Other" 的度量 "Database Time Spent Waiting   (%)" 位于 64.10273 2008-12-10 0:44:42

1、用下面的语句组装生成清除警告信息的脚本  解决步骤:

2、以sysman用户login SQLPLUS 后执行上一步生成的脚本(注意是sysman用户,用sys不行)

Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.3.0

Connected as SYSMAN

SQL> exec em_severity.delete_current_severity('FC17617395481D6B11DED9FE7CA63BF8','D6438569B496BC9205481E8A70F92F1E','SYS_p550a');

PL/SQL procedure successfully completed

SQL>

可能出现的问题:

ORA-06550: line 1, column 7:

PLS-00201: identifier 'EM_SEVERITY.DELETE_CURRENT_SEVERITY' must be declared

ORA-06550: line 1, column 7:

PL/SQL: Statement ignored

问题原因及处理:可能你用sys登录执行了脚本,必须以sysman登录执行

 

Tags:
© All copyright reserved by the author

Advocating focus on the pursuit of perfection

Article Comments(0)

没有账号? 忘记密码?

社交账号快速登录