NID- utility giving ora-01103 error [message #425726] |
Mon, 12 October 2009 00:53  |
 |
ramoradba
Messages: 2457 Registered: January 2009 Location: AndhraPradesh,Hyderabad,I...
|
Senior Member |
|
|
Hi please sugget me on this issue.
Z:\>set oracle_sid=kalyani
Z:\>nid
DBNEWID: Release 10.2.0.1.0 - Production on Mon Oct 12 11:11:43 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Keyword Description (Default)
----------------------------------------------------
TARGET Username/Password (NONE)
DBNAME New database name (NONE)
LOGFILE Output Log (NONE)
REVERT Revert failed change NO
SETNAME Set a new database name only NO
APPEND Append to output log NO
HELP Displays these messages NO
Z:\>sqlplus sys as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Oct 12 11:12:36 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1247876 bytes
Variable Size 83887484 bytes
Database Buffers 75497472 bytes
Redo Buffers 7139328 bytes
Database mounted.
SQL> select name from v$database;
NAME
---------
KALYANI
SQL> select instance_name from v$instance;
INSTANCE_NAME
----------------
kalyani
SQL> host nid target=sys/tejajun20 dbname=mallik
DBNEWID: Release 10.2.0.1.0 - Production on Mon Oct 12 11:16:08 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to database KALYANI (DBID=4102920684)
Connected to server version 10.2.0
Control Files in database:
C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\CONTROL01.CTL
C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\CONTROL02.CTL
C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\CONTROL03.CTL
Change database ID and database name KALYANI to MALLIK? (Y/[N]) => Y
Proceeding with operation
Changing database ID from 4102920684 to 1121083962
Changing database name from KALYANI to MALLIK
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\CONTROL01.CTL - modified
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\CONTROL02.CTL - modified
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\CONTROL03.CTL - modified
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\SYSTEM01.DBF - dbid changed, wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\UNDOTBS01.DBF - dbid changed, wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\SYSAUX01.DBF - dbid changed, wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\USERS01.DBF - dbid changed, wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\EXAMPLE01.DBF - dbid changed, wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\TEMP01.DBF - dbid changed, wrote new name
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\CONTROL01.CTL - dbid changed, wrote new name
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\CONTROL02.CTL - dbid changed, wrote new name
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\KALYANI\CONTROL03.CTL - dbid changed, wrote new name
Instance shut down
Database name changed to MALLIK.
Modify parameter file and generate a new password file before restarting.
Database ID for database MALLIK changed to 1121083962.
All previous backups and archived redo logs for this database are unusable.
Database is not aware of previous backups and archived logs in Recovery Area.
Database has been shutdown, open database with RESETLOGS option.
Succesfully changed database name and ID.
DBNEWID - Completed succesfully.
SQL> shutdown immediate
ORA-03113: end-of-file on communication channel
SQL> startup mount
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SQL> conn sys / as sysdba
Enter password:
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1247876 bytes
Variable Size 83887484 bytes
Database Buffers 75497472 bytes
Redo Buffers 7139328 bytes
ORA-01103: database name 'MALLIK' in control file is not 'KALYANI'
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01507: database not mounted
SQL>
How can i recover my database.
Regards
Sriram.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: NID- utility giving ora-01103 error [message #506432 is a reply to message #506431] |
Mon, 09 May 2011 05:01  |
 |
x-oracle
Messages: 380 Registered: April 2011 Location: gujarat
|
Senior Member |
|
|
step by step steps are here
here we have to change dom database name to don
how can we change database name i have mention my step by step activity here
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\SHOAIB>F:
F:\>cd oracle/product/10.2.0/db_1/bin
F:\oracle\product\10.2.0\db_1\bin>set oracle_sid=dom
F:\oracle\product\10.2.0\db_1\bin>sqlplus sys as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Sat May 7 13:07:06 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select name from v$database;
NAME
---------
DOM
SQL> select instance_name from v$instance;
INSTANCE_NAME
----------------
dom
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 1258291200 bytes
Fixed Size 1304848 bytes
Variable Size 301991664 bytes
Database Buffers 947912704 bytes
Redo Buffers 7081984 bytes
Database mounted.
SQL> host nid target=sys/oracle dbname=don
DBNEWID: Release 10.2.0.5.0 - Production on Sat May 7 13:25:57 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to database DOM (DBID=25563362)
Connected to server version 10.2.0
Control Files in database:
F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\CONTROL01.CTL
F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\CONTROL02.CTL
F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\CONTROL03.CTL
Change database ID and database name DOM to DON? (Y/[N]) => y
Proceeding with operation
Changing database ID from 25563362 to 4292826086
Changing database name from DOM to DON
Control File F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\CONTROL01.CTL - modified
Control File F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\CONTROL02.CTL - modified
Control File F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\CONTROL03.CTL - modified
Datafile F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\SYSTEM01.DBF - dbid changed, w
rote new name
Datafile F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\UNDOTBS01.DBF - dbid changed,
wrote new name
Datafile F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\SYSAUX01.DBF - dbid changed, w
rote new name
Datafile F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\USERS01.DBF - dbid changed, wr
ote new name
Datafile F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\EXAMPLE01.DBF - dbid changed,
wrote new name
Datafile F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\TEMP01.DBF - dbid changed, wro
te new name
Control File F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\CONTROL01.CTL - dbid chang
ed, wrote new name
Control File F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\CONTROL02.CTL - dbid chang
ed, wrote new name
Control File F:\ORACLE\PRODUCT\10.2.0\ORADATA\DOM\CONTROL03.CTL - dbid chang
ed, wrote new name
Instance shut down
Database name changed to DON.
Modify parameter file and generate a new password file before restarting.
Database ID for database DON changed to 4292826086.
All previous backups and archived redo logs for this database are unusable.
Database is not aware of previous backups and archived logs in Recovery Area.
Database has been shutdown, open database with RESETLOGS option.
Succesfully changed database name and ID.
DBNEWID - Completed succesfully.
SQL> shutdown immediate
ORA-03113: end-of-file on communication channel
SQL> startup mount
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SQL> conn sys as sysdba
Enter password:
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
Total System Global Area 1258291200 bytes
Fixed Size 1304848 bytes
Variable Size 301991664 bytes
Database Buffers 947912704 bytes
Redo Buffers 7081984 bytes
ORA-01103: database name 'DON' in control file is not 'DOM'
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01507: database not mounted
SQL>
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\SHOAIB>F:
F:\>cd oracle/product/10.2.0/db_1/bin
F:\oracle\product\10.2.0\db_1\bin>set instance_name=dom
F:\oracle\product\10.2.0\db_1\bin>sqlplus startup
SQL*Plus: Release 10.2.0.5.0 - Production on Sat May 7 16:47:19 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Enter password:
ERROR:
ORA-01005: null password given; logon denied
Enter user-name: sys as sysdba
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
SQL> shutdown immediate
ORA-01507: database not mounted
ORACLE instance shut down.
SQL>
SQL> startup nomount
ORACLE instance started.
Total System Global Area 1258291200 bytes
Fixed Size 1304848 bytes
Variable Size 301991664 bytes
Database Buffers 947912704 bytes
Redo Buffers 7081984 bytes
SQL>
SQL> alter system set db_name='DON' scope=spfile;
System altered.
SQL> startup force
ORACLE instance started.
Total System Global Area 1258291200 bytes
Fixed Size 1304848 bytes
Variable Size 301991664 bytes
Database Buffers 947912704 bytes
Redo Buffers 7081984 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs;
Database altered.
SQL>
SQL>
SQL> select instance_name from v$instance;
INSTANCE_NAME
----------------
dom
SQL> select name from v$database;
NAME
---------
DON
[Updated on: Mon, 09 May 2011 05:11] Report message to a moderator
|
|
|