<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>《ALERT_QUE表重建方法》的评论</title>
	<atom:link href="https://www.xifenfei.com/2012/07/alert_que%e8%a1%a8%e9%87%8d%e5%bb%ba%e6%96%b9%e6%b3%95.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com/2012/07/alert_que%e8%a1%a8%e9%87%8d%e5%bb%ba%e6%96%b9%e6%b3%95.html</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Thu, 11 Dec 2025 02:46:14 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2012/07/alert_que%e8%a1%a8%e9%87%8d%e5%bb%ba%e6%96%b9%e6%b3%95.html/comment-page-1#comment-927</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Wed, 18 Jul 2012 16:14:42 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=3500#comment-927</guid>
		<description><![CDATA[OBJECTS MGMT_BSLN_INTERNAL and MGMT_BSLN INVALID FOR DBSNMP
[shell]
Applies to:
Enterprise Manager for RDBMS - Version: 10.2.0.1 to 11.1.0.7 - Release: 10.2 to 11.1
Information in this document applies to any platform.
Oracle Server - Enterprise Edition - Version: 10.2.0.1
Database version 10.2.0.4
Grid Control 10.2.0.3, 10.2.0.4 or DB control 10.2.0.3, 10.2.0.4
Purpose

After upgrading the database version from one version to another, the following objects for
the DBSNMP owner may be invalid:

OWNER          OBJECT                  TYPE                    STATUS

DBSNMP         MGMT_BSLN_INTERNAL      PACKAGE BODY            INVALID
DBSNMP         MGMT_BSLN               PACKAGE BODY            INVALID         


The issue may happen when the below packages are not compiled properly during the upgrade.
packages dbsnmp.mgmt_bsln and dbsnmp.mgmt_bsln_internal 
Last Review Date

June 17, 2008
Instructions for the Reader

A Troubleshooting Guide is provided to assist in debugging a specific issue. 
When possible, diagnostic tools are included in the document to assist in troubleshooting.

Troubleshooting Details

Try to compile the individual packages as follows:

SQL&gt; alter package dbsnmp.mgmt_bsln compile;

SQL&gt; alter package dbsnmp.mgmt_bsln_internal compile;

The above steps may not help in resolving this issue most of the times.

Follow the below steps to resolve the issue:

1. Log into the database as the SYS user as SYSDBA.
2. Shutdown the database
3. Start the database in restriced/upgrade mode
4. Run catalog.sql and catproc.sql
5. Shutdown the database
6. Start the database
7. Run utlrp.sql




Run the below query to check if these objects are still invalid.

SQL&gt;select substr(owner,1,12) owner, substr(object_name,1,30) object,
substr(object_type,1,30) type, status from dba_objects 
where status &lt;&gt; &#039;VALID&#039;;

Explanation:
When script catalog.sql is run, it will create the data dictionary and the 
catproc.sql is run, it creates all structures required for PL/SQL. 

The main purpose for running the scripts is if there were any failures 
during the repository upgrade such as failure in creating 
the objects etc.. will be recovered.

By running the above scripts, the data dictionary is recreated which 
includes database objects and the structures only.After recreating the objects, 
runing the utlrp.sql script is helpful to validate the invalid objects.


[/shell]]]></description>
		<content:encoded><![CDATA[<p>OBJECTS MGMT_BSLN_INTERNAL and MGMT_BSLN INVALID FOR DBSNMP</p>
<pre class="brush: bash; title: ; notranslate">
Applies to:
Enterprise Manager for RDBMS - Version: 10.2.0.1 to 11.1.0.7 - Release: 10.2 to 11.1
Information in this document applies to any platform.
Oracle Server - Enterprise Edition - Version: 10.2.0.1
Database version 10.2.0.4
Grid Control 10.2.0.3, 10.2.0.4 or DB control 10.2.0.3, 10.2.0.4
Purpose

After upgrading the database version from one version to another, the following objects for
the DBSNMP owner may be invalid:

OWNER          OBJECT                  TYPE                    STATUS

DBSNMP         MGMT_BSLN_INTERNAL      PACKAGE BODY            INVALID
DBSNMP         MGMT_BSLN               PACKAGE BODY            INVALID         


The issue may happen when the below packages are not compiled properly during the upgrade.
packages dbsnmp.mgmt_bsln and dbsnmp.mgmt_bsln_internal 
Last Review Date

June 17, 2008
Instructions for the Reader

A Troubleshooting Guide is provided to assist in debugging a specific issue. 
When possible, diagnostic tools are included in the document to assist in troubleshooting.

Troubleshooting Details

Try to compile the individual packages as follows:

SQL&gt; alter package dbsnmp.mgmt_bsln compile;

SQL&gt; alter package dbsnmp.mgmt_bsln_internal compile;

The above steps may not help in resolving this issue most of the times.

Follow the below steps to resolve the issue:

1. Log into the database as the SYS user as SYSDBA.
2. Shutdown the database
3. Start the database in restriced/upgrade mode
4. Run catalog.sql and catproc.sql
5. Shutdown the database
6. Start the database
7. Run utlrp.sql




Run the below query to check if these objects are still invalid.

SQL&gt;select substr(owner,1,12) owner, substr(object_name,1,30) object,
substr(object_type,1,30) type, status from dba_objects 
where status &lt;&gt; 'VALID';

Explanation:
When script catalog.sql is run, it will create the data dictionary and the 
catproc.sql is run, it creates all structures required for PL/SQL. 

The main purpose for running the scripts is if there were any failures 
during the repository upgrade such as failure in creating 
the objects etc.. will be recovered.

By running the above scripts, the data dictionary is recreated which 
includes database objects and the structures only.After recreating the objects, 
runing the utlrp.sql script is helpful to validate the invalid objects.


</pre>
]]></content:encoded>
	</item>
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2012/07/alert_que%e8%a1%a8%e9%87%8d%e5%bb%ba%e6%96%b9%e6%b3%95.html/comment-page-1#comment-926</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Wed, 18 Jul 2012 16:13:21 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=3500#comment-926</guid>
		<description><![CDATA[How to recreate the SYS.ALERT_QUE
[shell]
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&gt; connect / as sysdba

SQL&gt;alter system enable restricted session;

To drop server alert schema.

SQL&gt;@$ORACLE_HOME/rdbms/admin/catnoalr.sql

To re-create tables, sequence, type and queue for server alert

SQL&gt;@$ORACLE_HOME/rdbms/admin/dbmsslrt.sql
SQL&gt;@$ORACLE_HOME/rdbms/admin/catalrt.sql

To recompile the invalid objects

SQL&gt;@$ORACLE_HOME/rdbms/admin/utlrp.sql

SQL&gt; alter system disable restricted session; 
 

Note: This option may leave DBSNMP.MGMT_BSLN_INTERNAL invalid. 
           To validate the same run catsnmp.sql

OR


SQL&gt; connect / as sysdba

SQL&gt;alter system enable restricted session;

To drop server alert schema.

SQL&gt;@$ORACLE_HOME/rdbms/admin/catnoalr.sql

Rerun catproc.sql

SQL&gt;@$ORACLE_HOME/rdbms/admin/catproc.sql

SQL&gt; alter system disable restricted session; 
[/shell]]]></description>
		<content:encoded><![CDATA[<p>How to recreate the SYS.ALERT_QUE</p>
<pre class="brush: bash; title: ; notranslate">
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&gt; connect / as sysdba

SQL&gt;alter system enable restricted session;

To drop server alert schema.

SQL&gt;@$ORACLE_HOME/rdbms/admin/catnoalr.sql

To re-create tables, sequence, type and queue for server alert

SQL&gt;@$ORACLE_HOME/rdbms/admin/dbmsslrt.sql
SQL&gt;@$ORACLE_HOME/rdbms/admin/catalrt.sql

To recompile the invalid objects

SQL&gt;@$ORACLE_HOME/rdbms/admin/utlrp.sql

SQL&gt; alter system disable restricted session; 
 

Note: This option may leave DBSNMP.MGMT_BSLN_INTERNAL invalid. 
           To validate the same run catsnmp.sql

OR


SQL&gt; connect / as sysdba

SQL&gt;alter system enable restricted session;

To drop server alert schema.

SQL&gt;@$ORACLE_HOME/rdbms/admin/catnoalr.sql

Rerun catproc.sql

SQL&gt;@$ORACLE_HOME/rdbms/admin/catproc.sql

SQL&gt; alter system disable restricted session; 
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
