Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Drop a datafile from physical standby's control file

JibuNov 19 2013 — edited Nov 20 2013

Hi,

I am trying to create a physical standby database for my production...

1) I have taken cold backup of my primary database on 18-Nov-2013...

2) I added a datafile on 19-nov-2013 ( 'O:\ORADATA\SFMS\SFMS_DATA4.DBF' )

3) Standby control file was generated on 20-ov-2013 (today) after shutting down and then mounting the primary database...

When i try to recover the newly setup standby using archive files, i am getting the following error (datafile added on 19th Nov is missing)

SQL> recover standby database;

ORA-00283: recovery session canceled due to errors

ORA-01110: data file 39: 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'

ORA-01157: cannot identify/lock data file 39 - see DBWR trace file

ORA-01110: data file 39: 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'

How to overcome this situation...

Can i delete the entry for the newly added datafile from the backup control file ?

When i tried to delete datafile using "alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF';", it is showing that database should be  open..

SQL> alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'

;

alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'

*

ERROR at line 1:

ORA-01109: database not open

SQL> show parameter STANDBY_FILE_MANAGEMENT

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

standby_file_management              string      AUTO

SQL> alter system set STANDBY_FILE_MANAGEMENT=manual;

System altered.

SQL> show parameter STANDBY_FILE_MANAGEMENT

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

standby_file_management              string      MANUAL

SQL> alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'

;

alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'

*

ERROR at line 1:

ORA-01109: database not open

Regards,

Jibu

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2013
Added on Nov 19 2013
3 comments
1,156 views