Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: how to rename a Oracle DB
"dba" <roacha_at_stgeorge.com.au> wrote in message
news:cUaw6.65$tz.5695_at_nsw.nnrp.telstra.net...
> Guys,
> can anybody spare a few details on how to rename a Oracle db in Unix
> ie: from DB1 to DBnew
>
> Thanks
>
>
alter database backup controlfile to trace
find the trace file in your user _dump_dest directory
edit the trace to file read
create controlfile *set* database "<new database name>"
(don't forget to change the db_name in init<sid>.ora)
run the trace file as a sql-script.
That is all
Hth,
Sybrand Bakker, Oracle DBA Received on Tue Mar 27 2001 - 22:25:20 CST
![]() |
![]() |