KP Data Guard For RLS
KP Data Guard For RLS
1
Agenda
• A quick introduction to Data Guard
concepts
• What choice for the RLS database?
• Data Guard implementation for RLS
• Tested Data Guard scenarios
• Data Guard monitoring
• Next steps
• Q&A
2
What is Oracle Data Guard?
• Oracle high availability, data protection, and disaster recovery solution for
enterprise data
3
Data Guard Architecture
Oracle Net Physical/Logical
Transactions Standby
Database
FAL
Primary Standby Backup /
Redo Reports
Database Logs
ARCH
ARCH
Archived Redo Logs
Archived Redo Logs
4
Physical versus Logical Standby
Physical Logical
• Maximum Availability
– Provides the highest level of data protection without compromising the availability
of the primary database
– Switches to maximum performance mode if a fault prevents it from writing its
redo stream to a remote standby redo log
• Maximum Performance
– The default protection mode
– Offers slightly less data protection on the primary database…
– ...however, provides the higher performance
6
Agenda
• A quick introduction to Data Guard
concepts
• What choice for the RLS database?
• Data Guard implementation for the RLS
• Tested Data Guard scenarios
• Data Guard monitoring
• Next steps
• Q&A
7
How to Determine the Proper Data
Guard Configuration for the RLS?
Is data loss acceptable if the primary site fails? NO → physical standby + maximum
protection/availability mode
How much data loss is tolerated if a site is lost? NONE → physical standby +
maximum protection/availability
mode
Is potential data loss between the production and NO → physical standby + maximum
the standby databases tolerated when a standby protection
host or network connection is temporarily
unavailable?
How far away will the disaster recovery site be If the network round trip time is
from the primary site? What is the network greater than 10 milliseconds →
bandwidth and latency between sites? physical standby + maximum
performance for applications that can
not tolerate a change in performance
or response time
How many standby databases will be configured? At the first time only one → physical
standby + maximum availability +
standby redo log 8
Agenda
• A quick introduction to Data Guard
concepts
• What choice for the RLS database?
• Data Guard implementation for the RLS
• Tested Data Guard scenarios
• Data Guard monitoring
• Next steps
• Q&A
9
The RLS Testing Environment
• Two testbed nodes: the primary database on lxn4252
and one physical standby on the lxn4253 (Linux ia32,
CPU servers)
10
Data Guard Prerequisites for the
RLS (1/2)
1. Implement FORCE LOGGING mode (PRI)
11
Data Guard Prerequisites for the
RLS (2/2)
3. …But a local archiving destination should be defined (PRI)
Changes to initrls1.ora:
- removed
#rls1.log_archive_dest=/ORA/dbs02/oracle/admin/arch/
- and added
rls1.log_archive_dest_1='LOCATION=/ORA/dbs02/oracle/admin/arch/
MANDATORY‘
4. Set up other initialization parameters required for the data guard (PRI)
13
Creating the Physical Standby for
the RLS (2/6)
2. Make a copy of the primary database (PRI)
4. Copy files from the primary system to the standby system (PRI -> SEC)
- backup datafiles
- online redo logs
- standby control file
- all archived redo logs
- initialization parameter file initrls1.ora
14
Creating the Physical Standby for
the RLS (3/6)
5. Set initialization parameters on a physical standby database (SEC) – in
initrls1.ora
control_files='/ORA/dbs03/oradata/rls1/rls1hs_control01‘
rls1.standby_archive_dest='/ORA/dbs02/oracle/admin/arch/‘
15
Creating the Physical Standby for
the RLS (4/6)
7. Create Oracle Net Service name for the standby database -
$ORACLE_BASE/admin/network/tnsnames.ora (PRI + SEC)
rls1hs=(DESCRIPTION= (ADDRESS=(PROTOCOL=TCP)
(HOST=lxn5243.cern.ch)(PORT=1521))
(CONNECT_DATA=(SID=rls1))
16
Creating the Physical Standby for
the RLS (5/6)
9. Create standby redo log files (PRI + SEC)
17
Creating the Physical Standby for
the RLS (6/6)
10. Initiate Log Apply Services (SEC)
18
Setting the Data Protection Mode
for the RLS database
19
Agenda
• A quick introduction to Data Guard
concepts
• What choice for the RLS database?
• Data Guard implementation for the RLS
• Tested Data Guard scenarios
• Data Guard monitoring
• Next steps
• Q&A
20
Managing the RLS database
• Starting Up the Physical Standby
– for read-only access
• the static parameter audit_trail has to be set to „NONE” (currently
equals to „DB”)
• the temporary tablespace has to be added on the standby database
in order to sort a huge amount of data
– for managed recovery operations
21
Managing the RLS database
• Role Management – Switchover
– a role reversal between the primary database and one of its standby databases
in case of planned maintenance of the primary system.
22
Agenda
• A quick introduction to Data Guard
concepts
• What choice for the RLS database?
• Data Guard implementation for the RLS
• Tested Data Guard scenarios
• Data Guard monitoring
• Next steps
• Q&A
23
Verifying the Physical Standby
Database (1/2)
1. Identify the existing archived redo logs (PRI + SEC)
24
Verifying the Physical Standby
Database (2/2)
3. Verify that the new archived redo log was received (SEC)
4. Verify that the new archived redo log was applied (SEC)
SEQUENCE# APP
---------- ---
4 YES
25
Data Guard Monitoring
• Alert log in /ORA/dbs00/oracle/admin/rls1/bdump/alert_rls1.log
26
Agenda
• A quick introduction to Data Guard
concepts
• What choice for the RLS database?
• Data Guard implementation for the RLS
• Tested Data Guard scenarios
• Data Guard monitoring
• Next steps
• Q&A
27
Stress testing in the pre-production
RLS environment (April 2003)
• Evaluate the Data Guard performance
28
Evaluating Data Guard Broker
• Data Guard Broker is distributed management framework that
– automates and centralizes the creation, maintenance, and monitoring of
Data Guard configurations
29
Data Guard CLI
• Prerequisites:
– requires the SPFILE and password file
– the primary database and a standby database must already exist
• Failure for
– changing the configuration protection mode
– performing a switchover
30
Oracle Data Guard and 10g
• more ?
31