Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to rename a database

Re: How to rename a database

From: Steven Toth <steve_at_toth.demon.co.uk>
Date: 1998/01/25
Message-ID: <885770088.23670.0.nnrp-08.9e981a9b@news.demon.co.uk>#1/1

Try this:

alter database backup controlfile to trace;

shutdown the db

Edit the trace file, change the "REUSE" clause to "SET" and noresetlogs to resetlogs.
remove the startup mount and alter database recover commands. The only command remaining
should be the create controlfile....

Modify the DBNAME in the init.ora and the tracefile to what you want.

delete your control and redo logs.

make sure your oracle sid is now set to your dbname.

svrmgrl
connect internal
startup nomount
@trace.sql (The trace file you generated earlier) alter database open resetlogs;

BINGO! Ps. Back your entire database up first, before you do this. Also, if the database encounters
errors during the "resetlogs", your'll be forced into a recovery loop which you won't be able to
recover through.

Again, back it up first. Received on Sun Jan 25 1998 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US