Solved

Help Rebuild DBMS_SPACE

Posted on 2001-06-18
6
757 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
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…
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.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

734 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