Professional Documents
Culture Documents
CON1520 - Piao-ADG For Zero Downtime Maintenance
CON1520 - Piao-ADG For Zero Downtime Maintenance
Agenda
A look at Rolling Upgrades today
A customers viewpoint
Simple Database Upgrades for the future
In Closing
Database A
Database B
PROD
PROD
synchronize
Logical
STBY
Physical
STBY
SWITCHOVER
PROD
Physical
STBY
synchronize
PROD
release n+1
4
synchronize
Physical
STBY
Agenda
A look at Rolling Upgrades today
A customers viewpoint
Simple Database Upgrades for the future
In Closing
2.
3.
8.
9.
6.
7.
Create a guaranteed restore point on the 14. Turn off automatic archive log delete
primary database
15. Synchronize
30. Shutdown
22. Synchronize
34. Synchronize
And finally
36. Complete switchover at standby
37. Open new Primary
38. Restart old Primary as a standby
39. Start Managed Recovery
40. Drop 3 guaranteed restore points
41. Enable the Broker Configuration
Agenda
A look at Rolling Upgrades today
A customers viewpoint
Simple Database Upgrades for the future
In Closing
DBMS_ROLLING: Concepts
Rolling changes can be applied on the whole Data Guard configuration
Three stages (Specification Compilation Execution)
Execution has three stages: Start, Switchover, Finish
DBMS_ROLLING: Concepts
Leading Group
Need to identify the Master Database (LGM) during Specification
LGM starts as a Physical Standby, converted into a Logical Standby
Trailing Group
Contains the original primary database (Trailing Group Master)
Other databases in the Trailing Group protect the TGM
TGM responsibility transferrable on failure
11Copyright 2012, Oracle and/or its affiliates. All rights reserved
Start
12Copyright 2012, Oracle and/or its affiliates. All rights reserved
Switchover
Confidential Oracle Restricted.
Finish
Goal
downtime required
Call DBMS_ROLLING.FINISH_PLAN
Completes upgrade of the old primary and bystanders and resynchronizes with the new primary
Cambridge (SYNC)
2nd Physical standby database in
Chicago (ASYNC)
Broker Controlled
procedure
Sets up default parameters
2 for each database
25 general parameters
UPDATED_TGS_WAIT
25 rows selected.
CURVAL
-----------------------3600
0
rolling_change_backup.f
3600
0
10000
0
DBMSRU_
1
SCO
--bos
bos
cam
cam
chi
chi
NAME
--------------INVOLVEMENT
PROTECTS
INVOLVEMENT
PROTECTS
INVOLVEMENT
PROTECTS
6 rows selected.
SQL>
CURVAL
--------------FULL
NONE
FULL
PRIMARY
FULL
PRIMARY
database
operation.
When complete, the configuration
ROLE
--------PRIMARY
LOGICAL
PHYSICAL
ENGINE_STATUS
-------------NOT APPLICABLE
RUNNING
RUNNING
UPDATE_PROG
----------NOT STARTED
NOT STARTED
NOT STARTED
ROLE
--------LOGICAL
PRIMARY
PHYSICAL
ENGINE_STATUS
-------------STOPPED
NOT APPLICABLE
STOPPED
UPDATE_PROG
----------NOT STARTED
NOT STARTED
NOT STARTED
other databses
Execute the FINISH Procedure to
finalize the rolling upgrade
operation.
ROLE
--------PHYSICAL
PRIMARY
PHYSICAL
ENGINE_STATUS
-------------RUNNING
NOT APPLICABLE
RUNNING
UPDATE_PROG
----------FINISHED
FINISHED
FINISHED
configuration.
Agenda
A look at Rolling Upgrades today
A customers viewpoint
Simple Database Upgrades for the future
In Closing
Current Structure
New Structure
Database B
PROD
PROD
Switchover
Physical
STBY
Physical
STBY
Physical
STBY
Logical
STBY
SWITCHOVER
PROD
PROD
START_PLAN
Perform Maintenance
SWITCHOVER
Mount original Primary
FINISH_PLAN
Enable the Broker, Switchover
Resources
OTN HA Portal:
http://www.oracle.com/goto/availability
Maximum Availability Architecture (MAA):
http://www.oracle.com/goto/maa
MAA Blogs:
http://blogs.oracle.com/maa
Exadata on OTN:
http://www.oracle.com/technetwork/database/exadata/index.html
Oracle HA Customer Success Stories on OTN:
http://www.oracle.com/technetwork/database/features/ha-casestudies098033.html