Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 

 

 

11g Testing with a Snapshot Standby Database

Oracle 11g New Features Tips by Donald BurlesonJune 29, 2015

Oracle 11g New Features Tips

Before getting into the details with RAT,  the focus should be on what is needed for Real Application Testing besides the licenses. The most important part is a testing system which has already been exposed to the changes to be tested.

M Never use the production system for testing!

Oracle 11g offers a new possibility that is very convenient for real life testing. If there is a physical standby database, it can be converted to a snapshot standby database and use it as a testing environment, as shown in Figure 1.

NOTE:  A snapshot standby database cannot be used for real-time query or fast-start failover. 

Figure 1:  Testing Environment Diagram

Here is the syntax for activating a snapshot standby database:

Lutz as sysdba @ standby11 SQL> ALTER DATABASE CONVERT TO SNAPSHOT STANDBY; 

After testing, reconvert to the physical standby mode:

Lutz as sysdba @ standby11 SQL> ALTER DATABASE CONVERT TO PHYSICAL STANDBY; 

It is also possible to use DGMGRL commands for activating or deactivating a snapshot standby database:

DGMGRL> CONVERT DATABASE standby11 TO PHYSICAL STANDBY; 

The role of a database can be retrieved from its control file:

Lutz as sysdba @ standby11 SQL> SELECT database_role FROM v$database; 

DATABASE_ROLE
----------------
SNAPSHOT STANDBY

A database which is a fast-start failover target cannot be converted to a snapshot standby database. Switchover or failover to a snapshot standby database is not possible. If the database is the only physical standby in a maximum protection Data Guard Configuration, it cannot be turned into a snapshot standby database.

Converting a physical standby database into a snapshot standby database puts it into a state which allows opening it for read write. Now it can be used to run recorded workloads for testing. In the meantime, redo will still be received from the primary site but not applied yet.

Oracle creates an implicit guaranteed restore point to ensure that a flashback database operation can be performed in order to reset the database to the status before the activation of the snapshot standby state. After testing is finished, it is possible to discard the changes and re-enable redo apply  by converting the snapshot standby database into a physical standby database again.

M Since redo is received but not applied on the snapshot standby database, a   possibly corrupted shipped redo archive would only be discovered after re-enabling the redo apply!

 

This is an excerpt from the new book Oracle 11g New Features: Expert Guide to the Important New Features by John Garmany, Steve Karam, Lutz Hartmann, V. J. Jain, Brian Carr.

You can buy it direct from the publisher for 30% off.

 

 
��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.