Escolar Documentos
Profissional Documentos
Cultura Documentos
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracles products remains at the sole discretion of Oracle.
Agenda
Answer most common questions about Oracle Clusterware and Oracle RAC
<Insert Picture Here>
Architecture Oracle Clusterware Group Membership Oracle Cluster Registry The Interconnect The Public Network and the Virtual IP (VIP) Oracle RAC Startup/Shutdown Advanced Features of Oracle RAC Appendix
Architecture
RAC Architecture
public network
Node1
Node n
Operating System
Operating System
shared storage
Redo / Archive logs all instances Database / Control files OCR and Voting Disks
VIP
Event Management
Oracle Clusterware
VIP
Oracle Clusterware
Group Membership and Heartbeats
Oracle Clusterware
Group Membership and Heartbeats
Cluster needs to know who is a member at all times Oracle Clusterware has 2 heartbeats:
Network heartbeat If a node does not send a heartbeat for MissCount (time in seconds), then node is evicted from cluster Disk heartbeat If disk heartbeat is not updated in I/O timeout, then node is evicted from cluster
Mirrored by Oracle Clusterware or externally (RAID) Supports both automatic (every 4 hours) and manual (new in 11.1) backups
ocrconfig manualbackup
Interconnect
Failure Protection and Scalability
Private Interconnect
//
public network
Node1
Node 2
Node n
Operating System
Operating System
Operating System
Switch 1
cluster interconnect
Switch 2
The Interconnect
Interconnect is typically a standard GigE network
IP over IB is supported
For high availability and scalability use OS based solution to combine multiple physical links into a single logical link
Same technology can be applied to public network
Only logical link should be provided to Oracle Clusterware and therefore Oracle RAC
10
11
Listener.ora
SID_LIST_LISTENER_PMRAC1 = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /u01/oracle/product/10gR2/asm) (PROGRAM = extproc) ) ) LISTENER_PMRAC1 = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = pmrac1-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = 144.25.214.45)(PORT = 1521)(IP = FIRST))
) )
12
Application VIPs
New resource as of Oracle RAC 10g Release 2 Created as functional VIPs which can be used to connect to an application regardless of the node it is running on VIP is a dependent resource of the user registered application There can be many VIPs, one per User Application
13
Operating System
14
Oracle Dependencies
public network
Node1
Node 2
Operating System
Operating System
shared storage
Redo / Archive logs all instances Database / Control files OCR and Voting Disks
Oracle Dependencies
Prior to 10.2.0.3
public network
Node1
Node2
Operating System
Operating System
shared storage
Redo / Archive logs all instances Database / Control files OCR and Voting Disks
15
Services
Application workloads can be defined as Services
Individually managed and controlled Assigned to instances during normal startup On instance failure, automatic re-assignment Service performance individually tracked Finer grained control with Resource Manager Integrated with other Oracle tools / facilities (E.G. Scheduler, Streams) Managed by Oracle Clusterware Several services created and managed by database server
Many features discussed do not apply to default database service
16
What is FAN?
Fast Application Notification (FAN) is a RAC notification mechanism FAN HA Events: Notification of Up/Down for service, instance & node Load Balancing Advisory Events: Advise clients of current load for service and where to send connection requests Enable it, and Forget it.
17
Fan Clients
HA Events: JDBC Implicit Connection Cache, OCI, ODP.NET Connection Pools, Listener, Server Side Callouts, CMAN Load Balancing Advisory Events: JDBC Implicit Connection Cache, ODP.NET Connection Pools, Listener, CMAN New with 11.1.0.7: Universal Connection Pool for JAVA
18
19
Web Client
Connect to me
Instance1
Instance2
20
Q & A
QUESTIONS ANSWERS
21
Appendix
http://search.oracle.com
REAL APPLICATION CLUSTERS
or otn.oracle.com/rac
22
OTN.ORACLE.COM/RAC
Workload Management with Oracle Real Application Clusters (FAN, FCF, Load Balancing) Using standard NFS to support a third voting disk on a stretch cluster configuration on Linux Using Oracle Clusterware to Protect 3rd Party Applications New: otn.oracle.com/clusterware RAC Sample Code Page
http://www.oracle.com/technology/sample_code/products/rac/index.html
23
24