Home » RDBMS Server » Server Administration » Do I need to run catalog.sql and catproc.sql when I recreate a database
Do I need to run catalog.sql and catproc.sql when I recreate a database [message #61228] Tue, 06 April 2004 06:31 Go to next message
Mark Savery
Messages: 12
Registered: May 2002
Junior Member
I will need to resize our database due to someone setting up a user which used the system tablespace for temporary workspace.  I took care of that problem, but ended up with a large system tablespace which I want to bring down to an appropriate level, freeing up diskspace for other things we want to do.  We are running 8i and have run several tests on our test system to make sure that I can minimize the time we will need our production side down.   The process I am doing to recreate the database is as follows. 

1.  Cold Backup

2.  Full export of the database.

3.  Drop the data files.

4.  Recreate the database.

5.  Run catalog.sql and catproc.sql

6.  Import the data from the export in step 2

7.  Turn on archive logs.

8.  Another backup.

 

The question I have is, is it necessary to run catalog.sql and catproc.sql if I have performed a complete export?  

 

 
Re: Do I need to run catalog.sql and catproc.sql when I recreate a database [message #61229 is a reply to message #61228] Tue, 06 April 2004 07:12 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
depends on how u "Recreate the database"?

1. If you are using dbca,
those scripts are already run for u.
2. If you creating the database manually,
as a part of database setup, anyhow u need to run these...

the root issue is 'reducing the system tablespace'.
find the actual used space of your SYSTEM datafile.
IF that is within your acceptable limits, you can just resize the datafile..

May be...someone may give a better method...
Re: Do I need to run catalog.sql and catproc.sql when I recreate a database [message #61230 is a reply to message #61229] Tue, 06 April 2004 07:46 Go to previous messageGo to next message
Mark Savery
Messages: 12
Registered: May 2002
Junior Member
Thanks for the info. I can't resize the system datafile as there are system objects at the end of the tablespace with alot of empty blocks in the middle.
Re: Do I need to run catalog.sql and catproc.sql when I recreate a database [message #61232 is a reply to message #61230] Tue, 06 April 2004 08:46 Go to previous messageGo to next message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
If those ,that are present at the end of the tablespace are system objects, then your only *safe* option is to recreate the database as you outlined before.

I tend to like precreating the database and tablespaces(if havent considered locally managed already,this is your chance),run the necessary catalog scripts and import the schemas.

-Thiru
Re: Do I need to run catalog.sql and catproc.sql when I recreate a database [message #61235 is a reply to message #61232] Tue, 06 April 2004 11:14 Go to previous message
Mark Savery
Messages: 12
Registered: May 2002
Junior Member
Thanks for the information. Looks like I will do it
the way I started.
Previous Topic: Problems to use LOB with JDBC in multi-threaded context
Next Topic: SYS and SYSTEM password lost with Oracle 9i
Goto Forum:
  


Current Time: Sat Feb 15 00:52:14 CST 2025