Documente Academic
Documente Profesional
Documente Cultură
December 2005
Roy Rossebo
RAC Pack
Oracle Corporation
“This presentation is for informational purposes only and may not be incorporated into a contract or agreement.”
Session Objectives
Object,e.g. Table
Data Blocks
Object,e.g. Table
Data Blocks
Connection Pool
Instance Join
C1
C2
C3 Instance 1
C4
Instance 2
C5
C6 Instance 3
Connection Pool
Instance Join –Undesired Cases
Option 1: Nothing Happens
C1
C2
C3 Instance 1
C4
Instance 2
C5
C6 Instance 3
Connection Pool
Instance Join –Undesired Cases
Option 2: Add New Connections
Randomly
C1
C2
C3 Instance 1
C4
Instance 2
C5
C6 Instance 3
C7
C8
Service across RAC
C9
Connection Pool
Instance Join –Desired Result
C1
C2
C3 Instance 1
C4
Instance 2
C5
C6 Instance 3
C7
C8
Service across RAC
C9
Connection Pool
Node Leaves
C1
C2
C3 Instance 1
C4
Instance 2
C5
C6
C7
C8
Service across RAC
C9
Connection Pool
Runtime Connection Load Balancing
CRM Client connection requests
connection
cache ?
60% 30%
10%
$ocrdump
$view OCRDUMPFILE
...
[SYSTEM.css.node_numbers.node2.privatename]
ORATEXT : stnsp014-rac
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION :
PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root,
GROUP_NAME : root}
Interconnect
Ÿ Jumbo Frames (NIC and switch) –test properly first!
$ /sbin/ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:0E:0C:09:6C:81
inet6 addr: fe80::20e:cff:fe09:6c81/64 Scope:Link
UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1
…
$ ping -s 8972 -M do stnsp013-rac
From stnsp014-rac (138.2.238.74) icmp_seq=0 Frag needed and DF set (mtu =
1500)
Ÿ Full Duplex
$ /sbin/mii-tool -v eth0
eth0: 100 Mbit, full duplex, link ok
product info: vendor 00:50:43, model 2 rev 3
basic mode: 100 Mbit, full duplex
basic status: link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
7. Use Cluster Verification
Utility -pre dbcfg
Configures
RAC DB
-pre dbinst
Installs
RAC
-pre crsinst
Installs
CRS
-post crsinst
-pre cfs
Sets up OCFS
( OPT )
-post cfs
Ÿ CRS Home
– $ORA_CRS_HOME/bin/cluvfy
– $ORA_CRS_HOME/cv/rpm/cvuqdisk-1.0.1-
1.rpm
Ÿ Oracle Home
– $ORACLE_HOME/bin/cluvfy
Deployment of cluvfy
l Install only on local node. Tool deploys itself on remote nodes during
execution, as required.
CVU
Ÿ User installs on
local node
Ÿ Issues verification
command for multiple
nodes
l Executes
verification tasks
on all nodes and
generates report
8. Test, Test, Test…
Ÿ Why?
– Verify that System Infrastructure meets SLO
– Verify Correct Install / Configuration
– Build Skills
Ÿ How?
– Test Plan
– Separate Test Cluster
– Realistic Configuration –matching production
– Realistic Workload
Ÿ Best Insurance, but can be difficult / expensive
– Functional, Performance and Destructive Testing
– Include Normal and Exception Operational Procedures
9. Monitor Performance
@?/rdbms/admin/ashrpt.sql
10. Prepare Diagnostics
Procedures, just in case…
Ÿ Capture max possible diagnostics before restarting
system etc.
– Tradeoff with recovery time
Ÿ Oracle side
– Hanganalyze
– Systemstate dumps
– gv$views
– Statspack / AWR
Ÿ OS setup, e.g. Linux
– Netdump Utility (Metalink note 226057.1)
– Alt SysRq Keys Utility (Metalink node 228203.1)
– Serial Console (Metalink node 228204.1)
– Performance / load data
And Don’t Forget …
A
ANSWERS