on 10-03-2012 9:26 AM
Hi Friends,
We are building a new system with production backup and doing system copy with backup restore method.
Restore is done using HP data protector after restore database is not opening
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: 'F:\ORACLE\SID\SAPDATA1\SYSTEM_1\SYSTEM.DATA1'
SYSTEM.DATA1 this data file is available at the required location
SQL> startup
ORACLE instance started.
Total System Global Area 8824815616 bytes
Fixed Size 2227352 bytes
Variable Size 2664268648 bytes
Database Buffers 6157238272 bytes
Redo Buffers 1081344 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: 'F:\ORACLE\SID\SAPDATA1\SYSTEM_1\SYSTEM.DATA1'
Kindly help to resolve this issue.
Thanks
Tabrayz
Hi Tabrayz,
Create the controlfile, first. Please find the procudure, below;
1) Create control.sql by executing the command at the productive system, below;
alter database backup controlfile to trace resetlogs;
2) Goto "/oracle/<SID>/saptrace/usertrace" and open newly created trace file,
3) Copy lines between "STARTUP NOMOUNT" and "-- Commands to re-create incarnation table" strings. Please note that these strings will not be included, just between of them
4) Create a control.sql file and paste the SQL statement, at the 3rd step
5) Now, you can change all the paths, regarding your needs in the file
6) Now that you have a control.sql file, then you can create the control files,
7) Delete all control files on the database. They have been determined in the SPFILE or init<SID>.ora file.
😎 By the <sid>adm user
a) sqlplus / as sysdba
b) startup nomount
c) @<path>/control.sql
d) shutdown
Best regards,
Orkun Gedik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
do you use new SID for copied system?
If Yes, did you create new controlfile with SET DATABASE "NEWSID" ?
Volker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abdul,
As i read your problem, it is the control file related issues and to resolve the same issue, you need to recreate the control file and then need to start the database again then only you can start your database in open mode.
You can file the control file creation steps and oracle errors solution.
Try this and if it'll not work for you then please do post here. We would glad to help you further.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.