Rebuild Standby Database fails [message #246227] |
Wed, 20 June 2007 06:13 |
mlgoins
Messages: 116 Registered: March 2007 Location: Denver, CO
|
Senior Member |
|
|
A shortcut of mine has been to rebuild the standby database on the standby server after a failover, from an old backup of the primary database. Normally, when managed recover starts, the standby database catches up, but there is a scenario which has forced me to create a NEW backup of the Primary database: adding a data file, removing it, and adding it again. Here's what happened...
We had a standard Primary, Physical Standby setup and decided to do some testing. We created a temporary tablespace in the Primary and saw that it was replicated:
SQL> create tablespace test datafile '/u01/oradata/MYDATA/test01.dbf'
2 size 300M extent management local;
The datafile "test01.dbf" was created in the file system. After a logswitch, the actions were applied on the standby. THEN, we dropped the tablespace, and removed the data file from the server using an OS command 'rm <filename>'. We repeated the test with no problems. However...
When I went to rebuild the Standby database, and it got to the second archived log entry that read "create tablespace..." it crashed. Why? I'm thinking it's because we could not physically remove the "test01.dbf" file on the Standby site before the system attempted to recreate it the second time.
The result? I am making a fresh backup of the database, and creating a Standby database from that (takes about 6-8 hours with a 240Gb database). I'm wondering if there's any way to recover from this error? You can't (as far as I know) remove the offending entry from v$datafile on the standby database, because it can only be opened 'read only'. What a mess!
Mike
|
|
|
Re: Rebuild Standby Database fails [message #246332 is a reply to message #246227] |
Wed, 20 June 2007 11:37 |
DreamzZ
Messages: 1666 Registered: May 2007 Location: Dreamzland
|
Senior Member |
|
|
Quote: | When I went to rebuild the Standby database, and it got to the second archived log entry that read "create tablespace..." it crashed. Why? I'm thinking it's because we could not physically remove the "test01.dbf" file on the Standby site before the system attempted to recreate it the second time.
|
You didnt give drop tablespace command?
How you noticed your standby crashed?
Any other activity except TEMP tablespace?
Any parameter modificiation?
DISK space?
[Updated on: Wed, 20 June 2007 11:37] Report message to a moderator
|
|
|
|
|
|