Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to change the SID
Sybrand Bakker wrote:
> On Fri, 04 Mar 2005 23:49:01 -0500, cschang <cschang_at_maxinter.net> > wrote: > >
> > > > I don't know for sure and I didn't verify, but I seem to recall the > procedure is documented. > <sarcasm mode on> > Obviously it is faster to start to hack yourself out, and run to this > newsgroup for help than reading the doco. > <sarcasm mode off> > > You need to > - shutdown the old instance
done this
> - copy the init.ora to the new name
done this
> - copy the passwordfile to the new name
done
> - edit the init.ora to reflect the new locations of the controlfile
> and background_dump_dest and user_dump_dest
here was my puzzle. If i change to new localion of controlfile, am I supposed to change the content of the controlfile in order to reflect the change? otherwise system would show error?? and the controlfile (.CTL) under the 9.2 are binary, unreadable.
> - As there are no database files listed in the init.ora those don't > need to be changed. > - If you use the @ instead of the sid you don't need to edit anything > at all, but in your situation I wouldn't try this. > - *copy the controlfiles to the new location* > - *copy the datafiles to the new location* > - *create the new service by issuing the oradim command in a DOS box* > - *start the service, not the instance* > - startup nomount the database > - follow the normal procedure to rename database files, as documented > - alter database open resetlogs > > And that is all there is to it. > > You are making me feel a bit tired. > > > > -- > Sybrand Bakker, Senior Oracle DBA
Thanks for you input and soryy make you tired. Some article on net mentioned to use a utility call "UID?", which can change the database name (not just SID). What is it?
C Chang Received on Sat Mar 05 2005 - 09:51:11 CST
![]() |
![]() |