Home > Oracle, RDBMS > Invalid DBMS_SQLPA package and poor database performance.

Invalid DBMS_SQLPA package and poor database performance.

Recently, when I delivered Oracle 10gR2 ( production database to the users, they started to claim that application is working very slowly. I’ve checked server and noticed unusual CPU overload. And then started to dig deeper. Finally, I noticed that I have a few invalid objects in database (what was strange because I could swear that everything was perfect just few hours before).
Anyway, I tried to recompile invalid object and left with one that I couldn’t recompile – DBMS_SQLPA. In the Metalink I found something about it:
– note 565600.1 ERROR IN CATUPGRD: ORA-00904 IN DBMS_SQLPA

And above could happen after upgrade to Oracle – but the problem is that I didn’t upgrade to this version (at least not at that time). So, to make long story short, below you have the solution to recompile invalid DBMS_SQLPA package. Log in to the sqlplus (SYS AS SYSDBA) and execute the following commands:

drop table plan_table;

To verify if everything is valid execute the following command:

select substr(comp_id,1,15) comp_id, substr(comp_name,1,30) comp_name,
substr(version,1,10) version, status from dba_registry order by modified;
Categories: Oracle, RDBMS Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: