Solved

Help Rebuild DBMS_SPACE

Posted on 2001-06-18
6
723 Views
Last Modified: 2012-08-14
I seem to have corrupted the built in package DBMS_SPACE. What scripts (or parts thereof) do I need to run to rebuild it?

Thanks
0
Comment
Question by:jeconroy
6 Comments
 
LVL 2

Accepted Solution

by:
stmontgo earned 50 total points
Comment Utility
catproc.sql ....run as sys
0
 
LVL 9

Expert Comment

by:dbalaski
Comment Utility
Hi,

You can run catproc.sql  --  as stmontgo  suggests,  but you do not have to run that whole script.

You only need to run to scripts as the SYS user:

$ORACLE_HOME/rdbms/admin/dbmsutil.sql     <== package header
  and
$ORACLE_HOME/rdbms/admin/prvtutil.plb     <====  package body in an encrypted form.



sincerely,
dBalaski
0
 
LVL 4

Expert Comment

by:dda
Comment Utility
You can also run $ORACLE_HOME/rdbms/admin/dbmsutil.sql as sys directly.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 2

Expert Comment

by:stmontgo
Comment Utility
I agree with everyone above, if you have DBMS_SPACE invalid then the safe bet may be to run catproc.

Also remember to check for invalid objects afterwards

SELECT COUNT(*) FROM ALL_OBJECTS WHERE STATUS = 'INVALID'
0
 
LVL 6

Expert Comment

by:Mindphaser
Comment Utility
Please update and finalize this old, open question. Please:

1) Award points ... if you need Moderator assistance to split points, comment here with details please or advise us in Community Support with a zero point question and this question link.
2) Ask us to delete it if it has no value to you or others
3) Ask for a refund so that we can move it to our PAQ at zero points if it did not help you but may help others.

EXPERT INPUT WITH CLOSING RECOMMENDATIONS IS APPRECIATED IF ASKER DOES NOT RESPOND.

Thanks,

** Mindphaser - Community Support Moderator **

P.S.  Click your Member Profile, choose View Question History to go through all your open and locked questions to update them.
0
 
LVL 6

Expert Comment

by:Mindphaser
Comment Utility

Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now