Home » RDBMS Server » Server Administration » How does one rename a database in detail  () 1 Vote
How does one rename a database in detail [message #144979] Sun, 30 October 2005 11:56 Go to next message
shri_1983
Messages: 2
Registered: October 2005
Location: india
Junior Member

Dear Sir,
We have tried to rename the database as per your " How does one rename a database?" FAQ information,but its not working.Please clarify the procedure in detail.
Details are as follows:

OS : Redhat enterprise linux AS-4.
Oracle : Oracle 10g

Thanks..
Shrinivas.
Re: How does one rename a database in detail [message #145008 is a reply to message #144979] Mon, 31 October 2005 03:51 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
>>but its not working.
How exactly?
post what you did.
search the forum for more information.
Re: How does one rename a database in detail [message #145025 is a reply to message #145008] Mon, 31 October 2005 07:25 Go to previous messageGo to next message
shri_1983
Messages: 2
Registered: October 2005
Location: india
Junior Member

Dear Sir,
I have done following steps:
1.rename of last dump file in user_dump_dest after the 'alter database command' as specified in the orafaq second question.
2.removed all comments,headers.
3.where should i change the dbname ? in create controfile command or else.. bez there is only instance of db name that is in create controlfile command only.also i have change'reuse' to 'set'in the same command.
4.after shutdown of the db ,i have runned dbrename.sql.
5.at this time it gives the error after startup mount command execution.i.e. for ex. new db_name is sri and current one is ishakti. then it gives the error. create controlfile command failed.db name sri doesnot match parameter db_name 'ishakti'.
6.please clarify regarding the same.
7. as per my info i have to set the parameter db_name to new name 'sri' before run of dbrename.sql.

thanks..
shrinivas.

Re: How does one rename a database in detail [message #145026 is a reply to message #145025] Mon, 31 October 2005 07:50 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
>> in create controfile command or else.. bez
What is bez?
English please. Else( Using IM style writing) the question will be ignored here in www.orafaq.com.
>>then it gives the error. create controlfile command failed.db name sri doesnot match parameter db_name 'ishakti'.
Please post exact error or a snopshot of error.
It is easy for us to understand.
http://www.orafaq.com/forum/t/42319/42800/

To answer your question, How about using "nid"?
http://www.oracle.com/technology/oramag/code/tips2002/102702.html

Thanks and Regards
Re: How does one rename a database in detail [message #145338 is a reply to message #145025] Wed, 02 November 2005 10:24 Go to previous message
Sanjay Bajracharya
Messages: 279
Registered: October 2001
Location: Florida
Senior Member
shri_1983 wrote on Mon, 31 October 2005 07:25

Dear Sir,
I have done following steps:
1.rename of last dump file in user_dump_dest after the 'alter database command' as specified in the orafaq second question.
2.removed all comments,headers.
3.where should i change the dbname ? in create controfile command or else.. bez there is only instance of db name that is in create controlfile command only.also i have change'reuse' to 'set'in the same command.
4.after shutdown of the db ,i have runned dbrename.sql.
5.at this time it gives the error after startup mount command execution.i.e. for ex. new db_name is sri and current one is ishakti. then it gives the error. create controlfile command failed.db name sri doesnot match parameter db_name 'ishakti'.
6.please clarify regarding the same.
7. as per my info i have to set the parameter db_name to new name 'sri' before run of dbrename.sql.

thanks..
shrinivas.





I think I got a picture of what u r doing..and what u r doing wrong

Try thse steps after shutdown and before running dbrename.sql (#4)

a. make a copy of init.ora
cp initishakti.ora initsri.ora
b. edit initsri.ora
"db_name=sri" (your new db) - VERY IMP
c. rename the control files as new ones are created during the dbrename.sql (all of them)
mv control.ctl control_old.ctl
d. set ORACLE_SID=sri (hope you did this)


You should be OK..

--
Sanjay

[Updated on: Wed, 02 November 2005 10:27]

Report message to a moderator

Previous Topic: Solaris 9, 10g - move all object from one tablespace to another
Next Topic: ORA-03113 on startup migrate from 8.1.7.4 to 9.2.0.6
Goto Forum:
  


Current Time: Fri Jan 10 12:32:20 CST 2025