Unix Technical Forum

Dataguard fun continues...

This is a discussion on Dataguard fun continues... within the Oracle Database forums, part of the Database Server Software category; --> OK... I started from scratch again. Here is what I did: SQL> alter database recover managed standby database disconnect ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 03:31 PM
Vince Laurent
 
Posts: n/a
Default Dataguard fun continues...

OK... I started from scratch again. Here is what I did:


SQL> alter database recover managed standby database disconnect from
session;
Database altered.

Let the database run for a few days then simulate a failover:

SQL> alter database set standby database to maximize performance;
Database altered.
SQL> alter database recover managed standby database finish skip
standby logfile ;
Database altered.
SQL> alter database commit to switchover to primary;
alter database commit to switchover to primary
*
ERROR at line 1:
ORA-16139: media recovery required

Why does it need media recovery? All the log files were applied?

Then I tried:

SQL> startup
ORACLE instance started.

Total System Global Area 304050184 bytes
Fixed Size 737288 bytes
Variable Size 234881024 bytes
Database Buffers 67108864 bytes
Redo Buffers 1323008 bytes
ORA-01666: controlfile is for a standby database

SQL>

And ANYTHING I type at this point I get the error:

ERROR at line 1:
ORA-01507: database not mounted

But it won't mount...
Help!

Thanks!
Vince

-----------------------------------------------------
Come race with us!
http://www.mgpmrc.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 03:32 PM
Mladen Gogala
 
Posts: n/a
Default Re: Dataguard fun continues...

On Thu, 04 Aug 2005 14:33:16 +0000, Vince Laurent wrote:

> SQL> alter database commit to switchover to primary;


You should activate it, not switch it over. The statement is:

ALTER DATABASE ACTIVATE STANDBY DATABASE;

--
http://www.mgogala.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com