联系:手机(13429648788) QQ(107644445)
链接:https://www.orasos.com/alert_que%e8%a1%a8%e9%87%8d%e5%bb%ba%e6%96%b9%e6%b3%95.html
作者:惜分飞©版权所有[文章允许转载,但必须以链接方式注明源地址,否则追究法律责任.]
最近关注了下网络上,出现了很多AQ$_ALERT_QT_N的index SYS_IOT_TOP_NNNN坏块引起的数据库异常(主要是SYSAUX表空间),因为他们是IOT表和主键的关系,不能简单的rebuild.查询了一些资料,得到一些信息
ALERT_QUE表用途
The ALERT_QUE is used by the Grid Control and DB Control Management Agents to monitor server-generated alerts
ALERT_QUE表重建方法
--方法1 SQL> connect / as sysdba SQL>alter system enable restricted session; To drop server alert schema. SQL>@$ORACLE_HOME/rdbms/admin/catnoalr.sql To re-create tables, sequence, type and queue for server alert SQL>@$ORACLE_HOME/rdbms/admin/dbmsslrt.sql SQL>@$ORACLE_HOME/rdbms/admin/catalrt.sql To recompile the invalid objects SQL>@$ORACLE_HOME/rdbms/admin/utlrp.sql SQL> alter system disable restricted session; --方法2 SQL> connect / as sysdba SQL>alter system enable restricted session; To drop server alert schema. SQL>@$ORACLE_HOME/rdbms/admin/catnoalr.sql Rerun catproc.sql SQL>@$ORACLE_HOME/rdbms/admin/catproc.sql SQL> alter system disable restricted session;
补充说明
By running the script up, the queue tables will be recreated and the messages in the queue will be lost. For 11g you can use catmwin.sql which has the steps to recreate the ALERT_QT. Alternatively, for 11g you can use the catproc.sql to recreate. If this option may leave DBSNMP.MGMT_BSLN_INTERNAL invalid. To validate the same run catsnmp.sql [NOTE:603289.1]

OBJECTS MGMT_BSLN_INTERNAL and MGMT_BSLN INVALID FOR DBSNMP
How to recreate the SYS.ALERT_QUE
Applies to: Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.4 - Release: 10.2 to 10.2 Information in this document applies to any platform. ***Checked for relevance on 25-Jan-2011*** Goal The purpose of this article is to outline the steps for recreating the SYS.ALERT_QUE The ALERT_QUE is used by the Grid Control and DB Control Management Agents to monitor server-generated alerts NOTE: By running the script below, the queue tables will be recreated and the messages in the queue will be lost. For 11g you can use catmwin.sql which has the steps to recreate the ALERT_QT. Alternatively, for 11g you can use the catproc.sql to recreate. Solution SQL> connect / as sysdba SQL>alter system enable restricted session; To drop server alert schema. SQL>@$ORACLE_HOME/rdbms/admin/catnoalr.sql To re-create tables, sequence, type and queue for server alert SQL>@$ORACLE_HOME/rdbms/admin/dbmsslrt.sql SQL>@$ORACLE_HOME/rdbms/admin/catalrt.sql To recompile the invalid objects SQL>@$ORACLE_HOME/rdbms/admin/utlrp.sql SQL> alter system disable restricted session; Note: This option may leave DBSNMP.MGMT_BSLN_INTERNAL invalid. To validate the same run catsnmp.sql OR SQL> connect / as sysdba SQL>alter system enable restricted session; To drop server alert schema. SQL>@$ORACLE_HOME/rdbms/admin/catnoalr.sql Rerun catproc.sql SQL>@$ORACLE_HOME/rdbms/admin/catproc.sql SQL> alter system disable restricted session;