Solved

Oracle standby mode

Posted on 2009-05-17
3
907 Views
Last Modified: 2013-11-11
How Can I check if an oracle database is in standby mode?

and if it is, how to put it out of standby mode ?

Thank you!!
0
Comment
Question by:SimpleJ
3 Comments
 
LVL 1

Author Comment

by:SimpleJ
ID: 24407163
ok, I found out that:

SQL>Select database_role from v$database;

I get: PHYSICAL STANDBY

How can I change this to PRIMARY...

I have tried alter database commit to switchover to primary;

I get this error:
SQL> alter database commit to switchover to primary;
alter database commit to switchover to primary
*
ERROR at line 1:
ORA-16139: media recovery required
0
 
LVL 48

Accepted Solution

by:
schwertner earned 500 total points
ID: 24409958
To verify that your Managed Standby database is operating correctly
look in the alert.log file for the Standby database.  You should see  
entries like the ones below;
 
Thu Feb 22 17:02:33 2001
Media Recovery Log D:\ORACLE\ORADATA\ORCL\ARCHIVE\ORCLT001S00299.ARC
Media Recovery Waiting for thread 1 seq# 300
 
This tells us that the last archived log applied to the Standby database
was sequence# 299 and the Standby database is waiting to apply
archive log sequence# 300


To put it out of Standby Mode:

Cancel the managed recovery operation at any time by issuing either of the
following SQL*Plus statements:
RECOVER MANAGED STANDBY DATABASE CANCEL
RECOVER MANAGED STANDBY DATABASE CANCEL IMMEDIATE
The first statement waits for the managed recovery operation to finish with the
current redo log before terminating recovery. If you use the IMMEDIATE option,
however, Oracle stops the managed recovery operation either before reading
another block from the redo log or before opening the next redo log file, whichever
comes first. Note the following scenarios
0
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 24413552
We recommend you actually follow the complete set of instructions stated in the fine Oracle® Data Guard Concepts and Administration manual.
 
 
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PL/SQL Display based on value 4 39
Oracle Listener Not Starting 11 54
Loading flat file data in tables 2 42
Migration from SQL server to oracle (XML input) 4 28
Note: You must have administrative privileges in order to create/edit Roles. Salesforce.com (http://www.salesforce.com/) (SFDC) is a cloud-based customer relationship management (CRM) system. It is a database most commonly used by sales and marke…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question