Solved

Help Rebuild DBMS_SPACE

Posted on 2001-06-18
6
738 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
ID: 6203034
catproc.sql ....run as sys
0
 
LVL 9

Expert Comment

by:dbalaski
ID: 6204955
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
ID: 6204958
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
ID: 6205034
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
ID: 7036083
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
ID: 7046057

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

773 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