ORA-01103: database name 'TOM' in control file is not 'TAB' [message #506050] |
Fri, 06 May 2011 05:49 |
|
x-oracle
Messages: 380 Registered: April 2011 Location: gujarat
|
Senior Member |
|
|
here i have error. i have rename my tab database into tom name but when i open my datbase i got this error
ORA-01103: database name 'TOM' in control file is not 'TAB'
and when execute this command i got this error
SQL> ALTER DATABASE OPEN RESETLOGS;
ALTER DATABASE OPEN RESETLOGS
*
ERROR at line 1:
ORA-01507: database not mounted
so anyone give me the solution of this error
|
|
|
|
|
|
|
|
|
|
Re: ORA-01103: database name 'TOM' in control file is not 'TAB' [message #506076 is a reply to message #506066] |
Fri, 06 May 2011 07:37 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Shaan, I'll try again, but this has to be the last time. You need to run the query I gave you earlier:
select value from v$parameter where name='db_name';
this will select the value of the parameter db_name. We need to see if it set to TOM or TAB. Your queries tried to to find the values of the parameters TOM and TAB, and of course there are no such parameters.
And I do not believe that you have posted your spfile. An spfile can't be posted like that, because it has binary characters. I think you have posted another copy of your pfile. the only way to exrtact information reliably from an spfile is with SQL:
select value from v$spparameter where name='db_name';
[Updated on: Fri, 06 May 2011 07:39] Report message to a moderator
|
|
|
|
|
|
Re: ORA-01103: database name 'TOM' in control file is not 'TAB' [message #506226 is a reply to message #506222] |
Sat, 07 May 2011 02:51 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Hi - are you aware of the difference between an instance and database? The instance is memory structures and processes, the datbase is files on disc. They are separate, and may have different names. Nothing spoken of so far refers to changing the name of the instance. In your screen shot, you appear to be changing the operating system variable instance_name: do not do that, your instance name is still TAB. This is why you are getting the ora-12650.
And please answer my question regarding the file you posted: was it a copy of the pfile (which is probably called INITtab.ora) or thhe spfile (which is probably SPFILETAB.ORA
|
|
|
|
|
Re: ORA-01103: database name 'TOM' in control file is not 'TAB' [message #506239 is a reply to message #506237] |
Sat, 07 May 2011 04:48 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Your init.ora file is completely irrelevant. It is the inittab.ora file or the spfiletab.ora file that matter. So again I ask, when you said in your post timed at 6 May 6:58 that it was your spfile, what file was it?
And what about my last question: are you aware of the difference between the instance name and the database name? Which are you trying to change?
|
|
|
Re: ORA-01103: database name 'TOM' in control file is not 'TAB' [message #506240 is a reply to message #506238] |
Sat, 07 May 2011 04:52 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
At last we have the answer! In your spfile, you have not changed the db_name parameter. So, get your instance into nomount mode. To do that, set your operating system environment variable instance_name, like this:
c:\> set instance_name=tab
then start the isntance:
sql> conn / as sysdba
startup nomount
then change the parameter
sql> alter system set dn_name='TOM' scope=spfile;
then restart:
SQL> startup force
OK?
|
|
|
|
|
|
|