oracle active data guard 12c new features

25
<Insert Picture Here> Oracle Active Data Guard 12c New Features Emre Baransel – Advanced Support Engineer

Upload: emre-baransel

Post on 17-Jul-2015

3.373 views

Category:

Technology


11 download

TRANSCRIPT

Page 1: Oracle Active Data Guard 12c New Features

<Insert Picture Here>

Oracle Active Data Guard 12c New FeaturesEmre Baransel – Advanced Support Engineer

Page 2: Oracle Active Data Guard 12c New Features

2

Oracle Active Data Guard 12c New FeaturesData Guard History from version 7 until today

7.38i

9i

9iR2

10g

10gR2

11g

11gR2

7.38i

9i

9iR2

10g

10gR2

11g

11gR2

• Feature Name: Standby DatabaseStandby Database

• Manuel transfer and apply of archived redo logs.

Page 3: Oracle Active Data Guard 12c New Features

3

Oracle Active Data Guard 12c New FeaturesData Guard History from version 7 until today

7.3

8i9i

9iR2

10g

10gR2

11g

11gR2

7.3

8i9i

9iR2

10g

10gR2

11g

11gR2

• AutomaticAutomatic archived log shipping and apply

• Able to open read-only

• Tablespace, datafile operations NOT replicated

Page 4: Oracle Active Data Guard 12c New Features

4

Oracle Active Data Guard 12c New FeaturesData Guard History from version 7 until today

7.3

8i

9i9iR2

10g

10gR2

11g

11gR2

7.3

8i

9i9iR2

10g

10gR2

11g

11gR2

• Renamed to Data Guard

• Data Guard Broker

• Zero data loss as a configuration option.

• SwitchoverSwitchover was introduced

• Auto datafile Tablespace operations

• Gap detection & resolution

• Delay option

• Parallel recovery

Page 5: Oracle Active Data Guard 12c New Features

5

Oracle Active Data Guard 12c New FeaturesData Guard History from version 7 until today

7.3

8i

9i

9iR210g

10gR2

11g

11gR2

7.3

8i

9i

9iR210g

10gR2

11g

11gR2

• LogicalLogical standby database

• ‹‹Protection modes were ready to use:

Maximum Protection

Maximum Availability

Maximum Performance

• ‹‹Cascade standby database

Page 6: Oracle Active Data Guard 12c New Features

6

Oracle Active Data Guard 12c New FeaturesData Guard History from version 7 until today

7.3

8i

9i

9iR2

10g10gR2

11g

11gR2

7.3

8i

9i

9iR2

10g10gR2

11g

11gR2

• Real-Time Apply

• Flashback database support

Page 7: Oracle Active Data Guard 12c New Features

7

Oracle Active Data Guard 12c New FeaturesData Guard History from version 7 until today

7.3

8i

9i

9iR2

10g

10gR211g

11gR2

7.3

8i

9i

9iR2

10g

10gR211g

11gR2

• Fast-start failover

• Guaranteed restore pointGuaranteed restore point

Page 8: Oracle Active Data Guard 12c New Features

8

Oracle Active Data Guard 12c New FeaturesData Guard History from version 7 until today

7.3

8i

9i

9iR2

10g

10gR2

11g11gR2

7.3

8i

9i

9iR2

10g

10gR2

11g11gR2

• Active Data GuardActive Data Guard

• Snapshot standby Snapshot standby

• Compress redo traffic

• Rolling Upgrade with Transient Logical Standby

• Different operating systems

• Lost-write detection

• Block Change Tracking on Standby Database

Page 9: Oracle Active Data Guard 12c New Features

9

Oracle Active Data Guard 12c New FeaturesData Guard History from version 7 until today

7.3

8i

9i

9iR2

10g

10gR2

11g

11gR2

7.3

8i

9i

9iR2

10g

10gR2

11g

11gR2

• Automatic Block Corruption RepairAutomatic Block Corruption Repair

Page 10: Oracle Active Data Guard 12c New Features

10

Oracle Active Data Guard 12c New FeaturesData Guard History from version 7 until today

12c12c

• Far SyncFar Sync• Fast SyncFast Sync

• Real-time CascadingReal-time Cascading

• SYSDGSYSDG

• & others ( later slides )

Page 11: Oracle Active Data Guard 12c New Features

11

Oracle Active Data Guard 12c New FeaturesFar Sync

Location 1Location 1 Location 2Location 2

Page 12: Oracle Active Data Guard 12c New Features

12

Oracle Active Data Guard 12c New FeaturesFar Sync

PrimaryPrimary

Far Sync InstanceFar Sync Instance

StandbyStandbyStandby

Control File

Parameter File

Password File

Standby Redo Log

listener.oratnsnames.or

a

Page 13: Oracle Active Data Guard 12c New Features

13

Oracle Active Data Guard 12c New FeaturesFar Sync Instance

PrimaryPrimary

Far Sync InstanceFar Sync Instance

StandbyStandby

Password File

Standby Redo Log

listener.oratnsnames.or

a

Create by modifying Primary Database init.ora (details in later slides)

Standby Control File

Parameter File

Page 14: Oracle Active Data Guard 12c New Features

14

Oracle Active Data Guard 12c New FeaturesFar Sync Instance

PrimaryPrimary

Far Sync InstanceFar Sync Instance

StandbyStandby

Parameter File

Standby Redo Log

listener.oratnsnames.or

a

Standby Control File

Password File

Copy directly from Primary Database

Page 15: Oracle Active Data Guard 12c New Features

15

Oracle Active Data Guard 12c New FeaturesFar Sync Instance

PrimaryPrimary

Far Sync InstanceFar Sync Instance

StandbyStandby

Parameter File

Password File

Standby Redo Log

listener.oratnsnames.or

a

-- On Primary Database: SQL> ALTER DATABASE CREATE FAR SYNC INSTANCE CONTROLFILE AS '/tmp/control01.ctl';

Standby Control File

Page 16: Oracle Active Data Guard 12c New Features

16

Oracle Active Data Guard 12c New FeaturesFar Sync Instance

PrimaryPrimary

Far Sync InstanceFar Sync Instance

StandbyStandby

Parameter File

Password File

listener.oratnsnames.or

a

-- If SRLs exist on primary, they will be created automatically on Far Sync instance when redo transport begins from the primary. -- If not, create manually with « ALTER DATABASE ADD STANDBY LOGFILE ... »

Standby Control File

Standby Redo Log

Page 17: Oracle Active Data Guard 12c New Features

17

Oracle Active Data Guard 12c New FeaturesFar Sync Instance

PrimaryPrimary

Far Sync InstanceFar Sync Instance

StandbyStandby

Parameter File

Password File

listener.oratnsnames.or

a

-- Use « Oracle Net Manager » to configure a listener and create network service names for the primary and standby

Standby Control File

Standby Redo Log

Page 18: Oracle Active Data Guard 12c New Features

18

Oracle Active Data Guard 12c New FeaturesFar Sync - Initialization Parameters

DB_UNIQUE_NAMEDB_UNIQUE_NAME == chicago chicago DB_FILE_NAME_CONVERTDB_FILE_NAME_CONVERT == '/boston/', ' /chicago/' ' /boston/', ' /chicago/' LOG_FILE_NAME_CONVERTLOG_FILE_NAME_CONVERT == '/boston/', ' /chicago/''/boston/', ' /chicago/' FAL_SERVERFAL_SERVER == bostonboston LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,chicagoFS,boston)' LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,chicagoFS,boston)'

DB_UNIQUE_NAMEDB_UNIQUE_NAME == chicagoFS chicagoFS DB_FILE_NAME_CONVERTDB_FILE_NAME_CONVERT == '/chicago/', ' /chicagoFS/', ' /boston/', ' /chicagoFS/' '/chicago/', ' /chicagoFS/', ' /boston/', ' /chicagoFS/' LOG_FILE_NAME_CONVERTLOG_FILE_NAME_CONVERT == '/chicago/', ' /chicagoFS/', ' /boston/', ' /chicagoFS/''/chicago/', ' /chicagoFS/', ' /boston/', ' /chicagoFS/' FAL_SERVERFAL_SERVER == chicago chicago LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,chicagoFS,boston)' LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,chicagoFS,boston)'

DB_UNIQUE_NAMEDB_UNIQUE_NAME == boston boston DB_FILE_NAME_CONVERTDB_FILE_NAME_CONVERT == '/chicago/', ' /boston/' ' /chicago/', ' /boston/' LOG_FILE_NAME_CONVERTLOG_FILE_NAME_CONVERT == '/chicago/', ' /boston/' ' /chicago/', ' /boston/' FAL_SERVERFAL_SERVER == 'chicagoFS', 'chicago' 'chicagoFS', 'chicago' LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,chicagoFS,boston)' LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,chicagoFS,boston)'

Primary DatabasePrimary DatabasePrimary DatabasePrimary Database

Standby DatabaseStandby DatabaseStandby DatabaseStandby Database

Far Sync InstanceFar Sync InstanceFar Sync InstanceFar Sync Instance

Page 19: Oracle Active Data Guard 12c New Features

19

Oracle Active Data Guard 12c New FeaturesFar Sync - Initialization Parameters

LOG_ARCHIVE_DEST_1LOG_ARCHIVE_DEST_1 == 'LOCATION=USE_DB_RECOVERY_FILE_DEST'LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES)VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAMEDB_UNIQUE_NAME == chicagochicago ‘ ‘

LOG_ARCHIVE_DEST_2LOG_ARCHIVE_DEST_2 == 'SERVICE=chicagoFS SYNC AFFIRM'SERVICE=chicagoFS SYNC AFFIRM MAX_FAILURE=1 ALTERNATE=LOG_ARCHIVE_DEST_3 VALID_FOR=(VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLEONLINE_LOGFILES,PRIMARY_ROLE ) DB_UNIQUE_NAME=chicagoFS‘) DB_UNIQUE_NAME=chicagoFS‘

LOG_ARCHIVE_DEST_3=LOG_ARCHIVE_DEST_3='SERVICE=boston ASYNC 'SERVICE=boston ASYNC ALTERNATE=LOG_ARCHIVE_DEST_2ALTERNATE=LOG_ARCHIVE_DEST_2 VALID_FOR=(VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLEONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=boston') DB_UNIQUE_NAME=boston'

LOG_ARCHIVE_DEST_1LOG_ARCHIVE_DEST_1 == 'LOCATION= USE_DB_RECOVERY_FILE_DEST 'LOCATION= USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAMEVALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME == chicagoFSchicagoFS ' '

LOG_ARCHIVE_DEST_2LOG_ARCHIVE_DEST_2 == 'SERVICE=boston ASYNC 'SERVICE=boston ASYNC VALID_FOR=(VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLESTANDBY_LOGFILES,STANDBY_ROLE ) DB_UNIQUE_NAME=boston') DB_UNIQUE_NAME=boston'

LOG_ARCHIVE_DEST_1LOG_ARCHIVE_DEST_1 == 'LOCATION= USE_DB_RECOVERY_FILE_DEST 'LOCATION= USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAMEVALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME == bostonboston ' '

LOG_ARCHIVE_DEST_2LOG_ARCHIVE_DEST_2 == 'SERVICE=chicago ASYNC 'SERVICE=chicago ASYNC VALID_FOR=(VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLEONLINE_LOGFILES,PRIMARY_ROLE ) DB_UNIQUE_NAME=chicago') DB_UNIQUE_NAME=chicago'

Primary DatabasePrimary DatabasePrimary DatabasePrimary Database

Standby DatabaseStandby DatabaseStandby DatabaseStandby Database

Far Sync InstanceFar Sync InstanceFar Sync InstanceFar Sync Instance

Page 20: Oracle Active Data Guard 12c New Features

20

Oracle Active Data Guard 12c New FeaturesReal-Time Cascading

≤11g : On Standby 1, redo is cascaded, after the standby redo log f i le has been archived locally.

12c : Standby 1 can cascade redo in real-t ime (as it is being writ ten to the standby redo log f i le)

≤11g : On Standby 1, redo is cascaded, after the standby redo log f i le has been archived locally.

12c : Standby 1 can cascade redo in real-t ime (as it is being writ ten to the standby redo log f i le)

Page 21: Oracle Active Data Guard 12c New Features

21

Oracle Active Data Guard 12c New FeaturesFast Sync

11g11gSYNSYNCCPrimary DatabasePrimary DatabasePrimary DatabasePrimary Database

Online Online Redo LogRedo LogOnline Online

Redo LogRedo LogStandby Standby

Redo LogRedo LogStandby Standby

Redo LogRedo Log

Redo Log Redo Log BufferBuffer

Redo Log Redo Log BufferBuffer

Standby DatabaseStandby DatabaseStandby DatabaseStandby Database

Redo Log Redo Log BufferBuffer

Redo Log Redo Log BufferBuffer

11

11

3322

NSS

LGWR RFSNSS

commit

commit ack

Page 22: Oracle Active Data Guard 12c New Features

22

Oracle Active Data Guard 12c New FeaturesFast Sync

12c12cSYNSYNCCPrimary DatabasePrimary DatabasePrimary DatabasePrimary Database

Online Online Redo LogRedo LogOnline Online

Redo LogRedo LogStandby Standby

Redo LogRedo LogStandby Standby

Redo LogRedo Log

Redo Log Redo Log BufferBuffer

Redo Log Redo Log BufferBuffer

Standby DatabaseStandby DatabaseStandby DatabaseStandby Database

Redo Log Redo Log BufferBuffer

Redo Log Redo Log BufferBuffer

11

11

22

NSS

LGWR RFSNSS

commit

commit ack

Page 23: Oracle Active Data Guard 12c New Features

23

Oracle Active Data Guard 12c New FeaturesSYSDG User & Role

sqlplus / as sysdgsqlplus / as sysdg

sqlplus sysdg/oracle@tnsalias as sysdg sqlplus sysdg/oracle@tnsalias as sysdg

SYSDG Privileges:STARTUPSHUTDOWNALTER DATABASEALTER SESSIONALTER SYSTEMCREATE RESTORE POINT CREATE SESSIONDROP RESTORE POINT FLASHBACK DATABASESELECT ANY DICTIONARYSELECT fixed tables (x$) dynamic performance views (v$,gv$) APPQOSSYS.WLM_CLASSIFIER_PLANDELETE APPQOSSYS.WLM_CLASSIFIER_PLANEXECUTE SYS.DBMS_DRS

SYSDG Privileges:STARTUPSHUTDOWNALTER DATABASEALTER SESSIONALTER SYSTEMCREATE RESTORE POINT CREATE SESSIONDROP RESTORE POINT FLASHBACK DATABASESELECT ANY DICTIONARYSELECT fixed tables (x$) dynamic performance views (v$,gv$) APPQOSSYS.WLM_CLASSIFIER_PLANDELETE APPQOSSYS.WLM_CLASSIFIER_PLANEXECUTE SYS.DBMS_DRS

Page 24: Oracle Active Data Guard 12c New Features

24

Oracle Active Data Guard 12c New FeaturesOther New Features

The USING CURRENT LOGFILE clause is no longer required to start real-time apply.

DML operations are allowed on global temporary tablesglobal temporary tables on Oracle Active Data Guard standbys.

The use of sequences in an Oracle Active Data Guard environment is now supported.

When you perform a switchover from an Oracle RAC primary database to a physical standby database, it is no longer necessary to shut down all but one primary database instance.

Application Continuity is supported for Oracle Data Guard switchovers to physical standby databases. It is also supported for fast-start failover to physical standbys in maximum availability data protection mode.

Page 25: Oracle Active Data Guard 12c New Features

25

Teşekkürler