Solved

Oracle standby mode

Posted on 2009-05-17
3
902 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 47

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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.
Via a live example, show how to take different types of Oracle backups using RMAN.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now