Professional Documents
Culture Documents
Client Connectivity
Client Connectivity
in a DataGuard
Environment
Harald van Breederode
Oracle University
4-DEC-2007
About Me
Agenda
Introduction
What is DataGuard
Types of DataGuard Databases
Role Management Services
The Client Connection Problem
The Solution
Sample Implementation
Demonstration
Questions & Answers
What is DataGuard
Primary Database
The Database that needs protection
Transports Redo to its Standby Databases
Failover
An unplanned Role change
Used when the Primary is broken or unreachable
due to network issues
Can happen automatically with Fast-Start Failover
Question
How do clients connect to databases
generally and what special
considerations exist in DataGuard
configurations?
Server side:
PMON registers its instance with listeners
Client side:
connect user/password@NetServiceName
NetServiceName gets resolved to a TNS entry
Client sends connection request to a listener
Listener hands connection off to :
Dedicated server process
Dispatcher process
V1110 = (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = PRUTSER)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = V1110)))
V1110 = (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = PRUTSER)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = EL5)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = V1110)))
10
Question
What happens if connection requests
go to the wrong host or Database?
11
12
Question
How can one prevent clients from
connecting to the wrong Database?
13
14
Service Attributes
15
Managing Services
16
DBMS_SERVICE.CREATE_SERVICE( SERVICE_NAME => 'DG_PROD', NETWORK_NAME => 'DG_PROD', FAILOVER_METHOD => 'BASIC', FAILOVER_TYPE => 'SELECT', FAILOVER_RETRIES => 180, FAILOVER_DELAY => 1);
17
Question
How can we control Database
Services so that clients are
guaranteed connections to the
correct database in the DataGuard
Configuration?
19
20
21
Question
Now that we can control which
services are started in which
database instances, how do we
guarantee that clients can connect?
23
24
Demonstration
25
Scenario #1 and #2
26
Scenario #3 and #4
27
Q U E S T I O N S
&
ANSWERS
28
Final words
29