ORA-12012错误记录

数据库发现错误:

ORA-12012: error on auto execute of job "SYS"."BSLN_MAINTAIN_STATS_JOB"


ORA-12012: error on auto execute of job "SYS"."BSLN_MAINTAIN_STATS_JOB"
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "DBSNMP.BSLN_INTERNAL", line 2073
ORA-06512: at line 1
Errors in file /oracle/PD0/saptrace/diag/rdbms/pd0/PD0/trace/PD0_j000_1938220.trc:

看情况应该是数据库在执行SYS"."BSLN_MAINTAIN_STATS_JOB“的job时候出错了

MOS的说法是,对于ORA-12012错误,一般两种情况:
BSLN_MAINTAIN_STATS_JOB执行错误,并伴随着ORA-06502,属于Bug 13637859
DBSNMP.BSLN_INTERNAL RECEIVES ORA-06502,属于这是Bug 10110625

解决方法,对于11202的版本需要应该补丁Patch 10110625

======================================================================

The same is addressed in
Bug 13637859 - "BSLN_MAINTAIN_STATS_JOB FAILS WITH ORA-06502
which is marked as a duplicate of
Bug 10110625 - DBSNMP.BSLN_INTERNAL RECEIVES ORA-06502

As in a specific customer's situation, the issue can occur when a Database is created with a template from
the old database or created as a clone from another database. The existing records in table
 "DBSNMP.BSLN_BASELINES" conflict with new baseline information inserted in the cloned database, thereby
 containing inconsistent information.
 
For 11.2.0.2, please apply generic Patch 10110625.
 
As a workaround, the DBSNMP user can be dropped and re-created using the standard scripts.
Ensure you have Backed up your database.

-- Login as sys user.

SQL> sqlplus / as sysdba

-- From the sqlplus execute the following:

-- Drop the DBSNMP user by executing catnsnmp.sql script.

SQL> @$ORACLE_HOME/rdbms/admin/catnsnmp.sql

-- Create the DBSNMP user by executing catsnmp.sql

SQL> @$ORACLE_HOME/rdbms/admin/catsnmp.sql

By 老白菜
=========================================================================
-- The End --

你可能感兴趣的:(oracle,ORA-12012)