Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
2)
Operational Best Practices
Markus Michalewicz
Director of Product Management
Oracle Real Application Clusters (RAC)
October 1st, 2014
@OracleRACpm
http://www.linkedin.com/in/markusmichalewicz
http://www.slideshare.net/MarkusMichalewicz
Use Case
Area
Installation
Generic
Clusters
Extended
Cluster
Dedicated
(OLTP / DWH)
Consolidated
Environments
Storage
OS
Update
Network
Cluster
DB
SI
t
Copyright 2014, Oracle and/or its affiliates. All rights reserved.
Program Agenda
1
Generic Clusters
Extended Cluster
Dedicated Environments
Consolidated Environments
Appendices A D
Copyright 2014, Oracle and/or its affiliates. All rights reserved.
Program Agenda
1
Generic Clusters
Extended Cluster
Dedicated Environments
Consolidated Environments
Appendices A D
Copyright 2014, Oracle and/or its affiliates. All rights reserved.
More information:
How to Move GI Management Repository to
Different Shared Storage (Diskgroup, CFS or NFS etc)
(Doc ID 1589394.1)
Managing the Cluster Health Monitor Repository
(Doc ID 1921105.1)
Copyright 2014, Oracle and/or its affiliates. All rights reserved.
ACFS News
ACFS is Free of Charge!
All functionality
for non-database files;
no exception.
For database files, all
ACFS functionality; the
following exceptions apply:
Snapshots: require DB EE
Replication, Encryption,
Security, and Auditing:
not available for DB files
Respective DB functionality
should be used instead (e.g.
Advanced Security Option)
More information:
My Oracle Support (MOS) Note
1929629.1 Oracle ACFS Support
on Oracle Exadata Database
Machine (Linux only)
FREE
FREE
Snapshots
Oracle DB EE required
FREE
Encryption
Not Available
FREE
Security
Not Available
FREE
Replication
Not Available
FREE
Auditing
Not Available
FREE
10
Look for the gDBClone Database Clone/Snapshot Management Script and WP here:
http://www.oracle.com/technetwork/indexes/samplecode/index.html
Copyright 2014, Oracle and/or its affiliates. All rights reserved.
11
12
[GRID]> olsnodes -s -t
germany
argentina
brazil
Active
Active
Active
Unpinned
Unpinned
Unpinned
italy
spain
Active
Active
Unpinned
Unpinned
13
14
Oracle RAC
Oracle RAC
Oracle GI | HUB
Oracle GI | HUB
germany
argentina
Oracle GI | Leaf
Databases
1. rdwh, on all HUBs
italy
Oracle GI | Leaf
spain
15
diag
asm
rdbms
tnslsnr
clients
crs
(others)
16
Program Agenda
1
Generic Clusters
Extended Cluster
Dedicated Environments
Consolidated Environments
Appendices A D
Copyright 2014, Oracle and/or its affiliates. All rights reserved.
17
Generic
Clusters
Extended
Cluster
Dedicated
(OLTP / DWH)
Consolidated
Environments
Storage
OS
Network
Cluster
DB
18
Generic
Clusters
Extended
Cluster
Dedicated
(OLTP / DWH)
Consolidated
Environments
Appendix A
OS
Network
Cluster
DB
Step 1: Create GRID Disk Group Generic Cluster
Step 2: Move Clusterware Files
Step 3: Move ASM SPFILE / password file
More Information in Appendix A
19
Swapping
Oracle RAC
Oracle GI
germany
Oracle RAC
Oracle GI
argentina
Oracle RAC
Oracle GI
germany
Oracle RAC
Oracle GI
argentina
More information in
MOS notes 361323.1 & 401749.1
Avoid Transparent HugePages (Linux6)
See alert in MOS note 1557478.1
20
21
Generic
Clusters
Extended
Cluster
Dedicated
(OLTP / DWH)
Consolidated
Environments
Appendix A
Memory Config
+ OraChk / TFA
Network
Cluster
DB
22
Fragmentation
Reassembly
Send()
Oracle RAC
germany
Receive()
Oracle RAC
argentina
8K Data
Block
Size Interconnect for aggregated throughput
Define normal
23
DBI
APP
Guest
Server
24
APP
Guest
Server
25
Generic
Clusters
Extended
Cluster
Dedicated
(OLTP / DWH)
Consolidated
Environments
Appendix A
Memory Config
+ OraChk / TFA
As discussed
+Appendix B
Cluster
DB
26
Generic
Clusters
Extended
Cluster
Dedicated
(OLTP / DWH)
Consolidated
Environments
Appendix A
Memory Config
+ OraChk / TFA
Network
As discussed
+Appendix B
Cluster
Appendix D
DB
27
Program Agenda
1
Generic Clusters
Extended Cluster
Dedicated Environments
Consolidated Environments
Appendices A D
Copyright 2014, Oracle and/or its affiliates. All rights reserved.
28
29
Generic
Clusters
Extended
Cluster
Appendix A
Appendix A
Dedicated
(OLTP / DWH)
Consolidated
Environments
Memory Config
+ OraChk / TFA
Network
As discussed
+Appendix B
Cluster
Appendix D
DB
Step 1: Create GRID Disk Group Extended Cluster
Step 2: Move Clusterware Files
Step 3: Move ASM SPFILE / password file
Step 4: srvctl modify asm count all
Copyright 2014, Oracle and/or its affiliates. All rights reserved.
30
Extended Cluster OS
Use Case
Area
Storage
OS
Generic
Clusters
Extended
Cluster
Appendix A
Appendix A
Memory Config
+ OraChk / TFA
As for Generic
Clusters
Network
As discussed
+Appendix B
Cluster
Appendix D
Dedicated
(OLTP / DWH)
Consolidated
Environments
DB
More information: Oracle Real Application Clusters
on Extended Distance Clusters (PDF) http://www.oracle.com/technetwork/database/options/clu
stering/overview/extendedracversion11-435972.pdf
31
Define normal
The goal in an Extended RAC setup is to hide the distance.
VLANs are fully supported for Oracle RAC for more information, see:
http://www.oracle.com/technetwork/database/databasetechnologies/clusterware/overview/interconnect-vlan-06072012-1657506.pdf
32
Generic
Clusters
Extended
Cluster
Appendix A
Appendix A
Memory Config
+ OraChk / TFA
As for Generic
Clusters
Network
As discussed
+Appendix B
As discussed
+Appendix B
Cluster
Appendix D
Area
Storage
OS
Dedicated
(OLTP / DWH)
Consolidated
Environments
DB
33
Generic
Clusters
Extended
Cluster
Appendix A
Appendix A
Memory Config
+ OraChk / TFA
As for Generic
Clusters
Network
As discussed
+Appendix B
As discussed
+Appendix B
Cluster
Appendix D
As Generic
Area
Storage
OS
Dedicated
(OLTP / DWH)
Consolidated
Environments
DB
34
Program Agenda
1
Generic Clusters
Extended Cluster
Dedicated Environments
Consolidated Environments
Appendices A D
Copyright 2014, Oracle and/or its affiliates. All rights reserved.
35
Generic
Clusters
Extended
Cluster
Appendix A
Appendix A
Memory Config
+ OraChk / TFA
As for Generic
Clusters
Network
As discussed
+Appendix B
As discussed
+Appendix B
Cluster
Appendix D
As Generic
Area
Storage
OS
Dedicated
(OLTP / DWH)
Consolidated
Environments
DB
36
More Information:
More information:
SCAN on
Network 1
SCAN on
Network 2
37
Generic
Clusters
Extended
Cluster
Appendix A
Appendix A
Memory Config
+ OraChk / TFA
As for Generic
Clusters
Network
As discussed
+Appendix B
As discussed
+Appendix B
Cluster
Appendix D
As Generic
Area
Storage
OS
Dedicated
(OLTP / DWH)
Consolidated
Environments
Appendix B +
as discussed
DB
38
Oracle RAC
Oracle GI
germany
Oracle RAC
Oracle GI
argentina
39
1.
2.
3.
4.
5.
http://docs.oracle.com/database/121/JJUCP/rac.htm#JJUCP8197
Connection Pool
6.
40
Generic
Clusters
Extended
Cluster
Appendix A
Appendix A
Memory Config
+ OraChk / TFA
As for Generic
Clusters
Network
As discussed
+Appendix B
As discussed
+Appendix B
Cluster
Appendix D
As Generic
Area
Storage
OS
DB
Dedicated
(OLTP / DWH)
Consolidated
Environments
Appendix B +
as discussed
As discussed
41
Program Agenda
1
Generic Clusters
Extended Cluster
Dedicated Environments
Consolidated Environments
Appendices A D
Copyright 2014, Oracle and/or its affiliates. All rights reserved.
42
Oracle RAC
Oracle GI | HUB
germany
Oracle RAC
Oracle GI
germany
Oracle RAC
Oracle GI
Oracle RAC
Oracle GI | HUB
argentina
cons1_1
Oracle RAC
Oracle GI | HUB
Oracle RAC
Oracle GI | HUB
argentina
brazil
italy
cons
Database Consolidation
43
Oracle RAC
Oracle GI | HUB
germany
Oracle RAC
Oracle GI
germany
Oracle RAC
Oracle GI
Oracle RAC
Oracle GI | HUB
argentina
cons1_1
Oracle RAC
Oracle GI | HUB
Oracle RAC
Oracle GI | HUB
argentina
brazil
italy
cons
More information:
http://www.oracle.com/technetwork/database/focusareas/database-cloud/database-cons-best-practices-1561461.pdf
http://www.oracle.com/technetwork/database/options/cluste
ring/overview/rac-cloud-consolidation-1928888.pdf
44
Generic
Clusters
Extended
Cluster
Appendix A
Appendix A
Memory Config
+ OraChk / TFA
As for Generic
Clusters
Network
As discussed
+Appendix B
As discussed
+Appendix B
Cluster
Appendix D
As Generic
Area
Storage
OS
DB
Dedicated
(OLTP / DWH)
Consolidated
Environments
Appendix B +
as discussed
As dedicated +
as discussed
As discussed
45
Generic
Clusters
Extended
Cluster
Appendix A
Appendix A
Memory Config
+ OraChk / TFA
As for Generic
Clusters
Network
As discussed
+Appendix B
As discussed
+Appendix B
Cluster
Appendix D
As Generic
Area
Storage
OS
DB
Dedicated
(OLTP / DWH)
Consolidated
Environments
Appendix B +
as discussed
As dedicated +
as discussed
As discussed
As above
46
Appendix A
Creating GRID disk group to place the Oracle Clusterware files and the ASM files
Copyright 2014, Oracle and/or its affiliates. All rights reserved. Oracle Confidential Internal/Restricted/Highly Restricted
47
Use
quorum
whenever
possible.
48
More information:
http://www.oracle.com/technetwork/d
atabase/options/clustering/overview/e
xtendedracversion11-435972.pdf
49
[GRID]> whoami
Root
[GRID]> ocrconfig -add +GRID
[GRID]> ocrcheck
50
NAME
TYPE
VALUE
------------------------------------ ----------- -----------------------------Spfile
string
+GIMR/cup-cluster/ASMPARAMETER
FILE/registry.253.857666347
Perform rolling
through cluster.
12c DB instances
remain running!
51
52
Appendix B
Creating public and private (DHCP-based) networks including SCAN and SCAN Listeners
53
Result
[GRID]> srvctl config network -k 2
10.1.1.0
10.2.2.0
192.168.0.0
169.254.0.0
[GRID]> su
Password:
Network 2 exists
Subnet IPv4: 10.2.2.0/255.255.255.0/, dhcp
Subnet IPv6:
Ping Targets:
Network is enabled
Network is individually enabled on nodes:
Network is individually disabled on nodes:
54
Result
[GRID]> srvctl config scan -k 2
[GRID]> su
Password:
[GRID]> su
Password:
55
10.1.1.0
10.2.2.0
192.168.0.0
169.254.0.0
172.149.0.0
AFTER
eth3
56
eth2
eth3
57
eth1 10.2.2.0
eth2
eth2
eth3
eth3
192.168.0.0
169.254.128.0
172.149.0.0
169.254.0.0
Result
[GRID]> srvctl config network -k 2
Network 2 exists
Subnet IPv4: 10.2.2.0/255.255.255.0/, static
Subnet IPv6:
Ping Targets:
Network is enabled
Network is individually enabled on nodes:
Network is individually disabled on nodes:
[GRID]> su
Password:
58
Result
59
Result
#as root
[GRID]> srvctl add scan -scanname cupscan2 -k 2
[GRID]> exit
[GRID]> srvctl add scan_listener -k 2 -endpoints 1522
[GRID]> srvctl status scan_listener -k 2
SCAN Listener LISTENER_SCAN1_NET2 is enabled
SCAN listener LISTENER_SCAN1_NET2 is not running
60
Appendix C
Automatic Diagnostic Repository (ADR) support for Oracle Grid Infrastructure
61
ADR_base
diag
asm
rdbms
tnslsnr
clients
crs
(others)
62
63
Space Requirement
~6.6 GB
RAC DB Home
~5.5 GB
TFA Repository
GI Daemon Traces
ASM Traces
DB Traces
Listener Traces
Total over 3 months
For 2 RAC DBs
For 100 RAC DBs
10 GB
gnsd
~2.6 GB
~9 GB
ocssd
ghc
ocssdrim
hanfs
ghs
gns
APX
havip
helper
~43 GB
~483 GB
agent
exportfs
NFS
mgmtdb
Some
OC4J
Logs
Some
GI home
Logs
64
Appendix D
Flex Cluster add nodes as needed
65
66
67
68
Normal, can
be ignored.
69
Useful, if spain is
likely to become a HUB
at some point in time.
70
[GRID]> olsnodes -s -t
germany
argentina
brazil
Active
Active
Active
Unpinned
Unpinned
Unpinned
italy
spain
Active
Active
Unpinned
Unpinned
71
ora.LISTENER.lsnr
ONLINE ONLINE
ONLINE ONLINE
ONLINE ONLINE
argentina
brazil
germany
ora.LISTENER_LEAF.lsnr
OFFLINE OFFLINE
OFFLINE OFFLINE
ora.net1.network
ONLINE ONLINE
ONLINE ONLINE
ONLINE ONLINE
italy
spain
argentina
brazil
germany
STABLE
STABLE
STABLE
STABLE
STABLE
STABLE
STABLE
STABLE
72
73