Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Help Rebuild DBMS_SPACE

Posted on 2001-06-18
6
Medium Priority
?
775 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 200 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
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.
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.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database

670 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