Skip to main content

Active Dataguard 11g

Introduction:-
 
Active Dataguard is 11g Feature .The Standby Database in 11g can be open read-only mode keeping the Managed recovery Enabled. This is an Enterprise Edition Feature with additional separate license required to use Active Dataguard Feature.
 
Benefits:-
  1. Active Dataguard Standby Database delivers high return on investment when used for Queries, Reports, and Backups along with providing Disaster Protection.
  2. Physical Standby Database would be in Managed Recovery Mode and along with it Standby Database can be used for Reporting Purposes. It thus unlocks additional processing power of Production Databases.
  3. It is a Combination of Oracle High Availability and Disaster Recovery.
 
Comparison:-
 
DataGuard 11g
Active Dataguard 11g
Stop Redo Apply at 8:00 AM
Redo Apply is always on
Open Read only for Queries
Always open Read only
By 4:00 PM,data on Physical Standby is 8 Hours old
Queries and Reports always see latest Data
Any Failover will be delayed due to backlog of data that must be applied
Failover is immediate when needed, Standby Database is always in sync with primary
 
 
Functioning:-
Operations Permitted:-
  1. Addition of Temporary Files to support Huge sort Operations in Reporting.
  2. DML from Standby Database using Database Links.  Explanation: Create a DB link on Primary Database. Force a log switch on Primary so that DB Link gets created on Standby Database. Now try an insert from Standby Database using the DB Link, the insert would succeed and the same value will get reflected on Primary Database .Make sure there is a TNS Entry on Standby Database server for the Primary Database.
                               
 
 
Operations Non-Permitted:-
  1. Any DMLs (excluding simple SELECT statements) or DDLs
  2. Query accessing local sequences
  3. DMLs to local temporary tables

Protection Modes:-
Maximum Availability: - Supports Sync, Affirm (Waits till netwok_time_out) – {Recommended}
Maximum Protection: - Supports Sync, Affirm
Maximum Performance: - Async {Default Mode}
Extensions/Parameters in 11gR2:-
1) Standby Database can use Block Change Tracking File.
2) STANDBY_MAX_DATA_DELAY:-
These parameter values are the amount of time in seconds. It signifies that a change being committed on Primary and the time it can be queried on an Active Standby Database.
NONE = Queries will be executed irrespective of the Lag.
Non-Zero (Seconds) =Queries will be executed only if apply lag is less than or equal to the value
Zero=Queries Guaranteed to return the exact same result as if the query was issued on Primary Database
 If the Limit exceeds ORA-3172 is given.
Note:- The above Parameter requires Maximum Availability and Real Time Apply. This is a session Parameter hence if you want to enable it you need to create a trigger to enable it permanently.
3) DB_LOST_WRITE_PROTECT:-
4) Block Media Recovery: - If corruption occurs on Primary Database which has Active Standby, block media is performed automatically transparent to the Application using a good copy from Standby Database. Converse is also true.
5) COMPATIBLE parameter should be at least set to 11.0.0
 
Miscellaneous:-
  1. Flexible options to scale Read-Only Performance via adding more single node active standby databases or scale an active standby database using Oracle Real Application Clusters.
  2. Handy Views : V$DATAGUARD_STATS,V$STANDBY_EVENT_HISTOGRAM(11gR2),
  3. From 11gR2 ASH Reports also can be taken for Standby Database.
  4. Configuration of Active Dataguard is explained in the attached excel.
                                   

Comments

Popular posts from this blog

Hard dependency with ip address Oracle RAC Cluster.

Command error out due to hard dependency with ip address [-Node1]/app/grid/oracle/product/11.2.0/grid/bin>./crsctl relocate resource RDBMS_DB -n Node2 CRS-2527: Unable to start 'RDBMS_DB' because it has a 'hard' dependency on 'sDB' CRS-2525: All instances of the resource 'sDB' are already running; relocate is not allowed because the force option was not specified CRS-4000: Command Relocate failed, or completed with errors. [-Node1]/app/grid/oracle/product/11.2.0/grid/bin>./crsctl relocate resource sDB  -n Node2 CRS-2529: Unable to act on 'DB' because that would require stopping or relocating 'LISTENER_DB', but the force option was not specified CRS-4000: Command Relocate failed, or completed with errors. [-Node1]/app/grid/oracle/product/11.2.0/grid/bin>./crsctl relocate resource LISTENER_DB  -n Node2 CRS-2527: Unable to start 'LISTENER_DB' because it has a 'hard' dependency on 'sD...

12c. Monthly Database Growth from OEM 12c.

SELECT alloc.TARGET_NAME,TO_DATE(TO_CHAR(alloc.timestamp, 'MON RR'), 'MON RR') AS CALENDAR_MONTH,        alloc.tablespace AS TABLESPACE,        round(avg(alloc.avg_size_mb), 2) AS SIZE_MB,        round(avg(used.avg_used_mb), 2) AS USED_MB,        round(avg(alloc.avg_size_mb - used.avg_used_mb), 2) AS FREE_MB,        round(avg((used.avg_used_mb*100)/ decode(alloc.avg_size_mb, 0, 1, alloc.avg_size_mb)), 2) AS USED_PCT,        round(max(alloc.max_size_mb), 2) AS SIZE_MAX_MB,        round(max(used.max_used_mb), 2) AS USED_MAX_MB,        round(max(alloc.avg_size_mb - used.avg_used_mb), 2) AS FREE_MAX_MB,        round(max((used.avg_used_mb*100)/decode(alloc.avg_size_mb, 0, 1, alloc.avg_size_mb)), 2) AS USE...

Perl - Introduction & Quick Guide

Perl - Quick Guide Advertisements   Previous Page Next Page     Perl - Introduction Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more. What is Perl? ·         Perl is a stable, cross platform programming language. ·         Though Perl is not officially an acronym but few people used it as  Practical Extraction and Report Language . ·         It is used for mission critical projects in the public and private sectors. ·         Perl is an  Open Source  software, licensed under its  Artistic License , or the  GNU General Public License (GPL) . ·         P...