Académique Documents
Professionnel Documents
Culture Documents
Date: 22-Feb-2014
Nassyam Basha
Post Graduation in computers from University of Madras 7 Years of experience as Oracle DBA and exposure dBase and FoxPro Currently working for The Pythian Group 10g,11g Oracle certified professional Blogger www.oracle-ckpt.com Frequent OTN contributor (CKPT) Co-Author of Oracle 11gR2 Data Guard administration beginners Guide PACKT nassyambasha Nassyam Basha with
2014 Pythian
Expertise:
2014 Pythian
10g
- Real-Time Apply, More enhancements with Configurations, FSFO, Flashback Database, SRL support on Logical standby database. 11g - Active Data Guard, Snapshot Standby, Heterogeneous platform support, Rolling upgrade, tuning reports. 12c - Fast Sync, Far Sync, Real-Time Cascade standby, DBMS_ROLLING
4 2014 Pythian
1. 2. 3. 4. 5. 6.
Fast Sync Far Sync Real-time Cascade standby database SYSDG role Online standby data file movement Recover standby database using primary service 7. DBMS_ROLLING
5 2014 Pythian
Maximum Availability(12c): This has the ability to run as a Maximum Protection or Maximum Performance mode depending on the accessibility of standby databases. . (SYNC/AFFIRMNOAFFIRM) - Maximum protection in maximum Availability MAX_PERFORMANCE
ASYNC NOAFFIRM
MAX_PROTECTION
SYNC AFFIRM
MAX_AVAILABILITY
SYNC AFFIRM/NOAFFIRM
2014 Pythian
2014 Pythian
1. 2. 3. 4. 5. 6.
Fast Sync Far Sync Real-time Cascade standby database SYSDG role Online standby data file movement Recover standby database using primary service 7. DBMS_ROLLING
8 2014 Pythian
What is throughput and network traffic from one to many topology? Is your all of standby sites will have same network speed across global? What happens if you have only one data centre very far distance?
2014 Pythian
Introduced in 9iR2 Reduces load on primary, whereby a standby database receives its redo data from another standby database Disadvantage: you must have whole database structure (if VLDB) ?
10
2014 Pythian
11
2014 Pythian
12
2014 Pythian
13
2014 Pythian
DB_UNIQUE_NAME
CANADA CANFAR
Oracle Net
CANADA CANFAR
Standby
INDIA
INDIA
Create standby redo logs on primary SRLs on Far Sync will be created by the use of LOG_FILE_NAME_CONVERT Now create the control file for Far Sync instance from primary database and mount on Far Sync
15
2014 Pythian
16
2014 Pythian
Black Box
Primary database is in MAXIMUM AVAILABILITY mode Changing standby controlfile to MAXIMUM AVAILABILITY mode Changing standby controlfile to RESYNCHRONIZATION level Standby controlfile consistent with primary
Recovery (MRP) When recovery comes into picture, probably recovery can started from Far Sync? Then you will run into ORA-01665: control file is not a standby control file Moreover there are no data files to update any committed transaction, its any instance which works as broker between primary and standby database, Recovery(MRP) should start only on standby database(s).
17
2014 Pythian
18
2014 Pythian
Redo will be sent asynchronously to alternate destinations when far sync instance is down Once back, Data Guard automatically resynchronizes far sync (canfar) instance.
19
2014 Pythian
After role transition (Switchover), will be the commit response time remains same between new primary and the Far Sync-1 (canfar)? To avail maximum availability for zero data loss establish a new far sync instance near to the primary.
SYNC
Distance ?
Switch over
ASYNC ASYNC
Switch over
SYNC
20
2014 Pythian
21
2014 Pythian
1. 2. 3. 4. 5. 6.
Fast Sync Far Sync Real-time Cascade standby database SYSDG role Online standby data file movement Recover standby database using primary service 7. DBMS_ROLLING
22 2014 Pythian
Data Guard Broker now supports cascade standby Standby should be either Physical or Far Sync Standby (if available) - You cannot cascade a physical standby from logical standby
Add DB_UNIQUE_NAME, LOG_ARCHIVE_CONFIG, LOG_ARCHIVE_DEST_n with VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE)
Standby Redo Logs(SRLs) Should be created on cascading standby database. FAL_SERVER on terminal standby should set to the cascading standby or primary database. DEST_1 to DEST_10 supports to Real-Time if ASYNC used, if do not specified ASYNC then it works under non-real time. Especially DEST_11 to DEST_31 supports to only real time transport mode.
23
2014 Pythian
1. 2. 3. 4. 5. 6.
Fast Sync Far Sync Real-time Cascade standby database SYSDG role Online standby data file movement Recover standby database using primary service 7. DBMS_ROLLING
24 2014 Pythian
SYSDG Role
So far for any Data Guard operations performed using SYS, From now SYSDG role can granted to user to perform only specific to Data Guard operations. If you want to manage with SYSDG role then do not forget to copy to standby database(s)
SYSDG role contains ALTER SYSTEM,SELECT ANY DICTIONARY, ALTER DATABASE, ALTER SESSION and all DGMGRL commands
25
2014 Pythian
1. 2. 3. 4. 5. 6.
Fast Sync Far Sync Real-time Cascade standby database SYSDG role Online standby data file movement Recover standby database using primary service 7. DBMS_ROLLING
26 2014 Pythian
No need to terminate the recovery (MRP) No need to set STANDBY_FILE_MANAGMENT to MANUAL If using ADG no need to bounce database to mount either.
Online standby data file is feature of 12c and this is applicable either primary or standby but now it is more flexible How?
27
2014 Pythian
1. 2. 3. 4. 5. 6.
Fast Sync Far Sync Real-time Cascade standby database SYSDG role Online standby data file movement Recover standby database using primary service 7. DBMS_ROLLING
28 2014 Pythian
alter database recover logfile '/u01/app/oracle/fast_recovery_area/INDIA/archivelog/2014_02_06/o1_mf_1_159_9h522kw0_.arc' Thu Feb 06 00:25:17 2014 Media Recovery Log /u01/app/oracle/fast_recovery_area/INDIA/archivelog/2014_02_06/o1_mf_1_159_9h522kw0_.arc
29
2014 Pythian
1. 2. 3. 4. 5. 6.
Fast Sync Far Sync Real-time Cascade standby database SYSDG role Online standby data file movement Recover standby database using primary service 7. DBMS_ROLLING
30 2014 Pythian
DBMS_ROLLING
Rolling upgrade is an Active Data Guard feature It is implemented using the new DBMS_ROLLING PL/SQL package Data Guard Broker supported. Upgrade process splits into leading group and trailing group, all other standbys in the leading group can only be physical standbys. LG database upgraded first.
Code
SQL> EXECUTE DBMS_ROLLING.INIT_PLAN (future_primary => USA'); SQL> EXECUTE DBMS_ROLLING.BUILD_PLAN; SQL> EXECUTE DBMS_ROLLING.START_PLAN; SQL> EXECUTE DBMS_ROLLING.SWITCHOVER; Upgrade LG standby and bounce to RW mode from latest version, Perform Switchover. SQL> EXECUTE DBMS_ROLLING.FINISH_PLAN; Mount former primary CANADA using latest version including other standby database(s)
DATABASE_ROLE
Primary Standby 1 Standby 2
DB_UNIQUE_NAME
CANADA INDIA USA
Group
Tail Group (TG) Tail Group (TG) Leading Group (LG)
31
2014 Pythian
@nassyambasha
www.oracle-ckpt.com
32
2014 Pythian