Escolar Documentos
Profissional Documentos
Cultura Documentos
on Linux
15. September 2004
Roland Knapp
RAC Pack
Agenda
! Planning Best Practices
! Implementation Best Practices
! Operational Best Practices
VIP2
VIP1
Node1
Node 2
ASM instance 1
Database
instance 1
VIP3
Node3
ASM instance 2
cluster
interconnect
ASM instance 3
cluster
interconnect
Database
instance 2
Database
instance 3
CRS
CRS
CRS
Operating System
Operating System
Operating System
shared storage
redo logs all instances
database & control files
OCR & voting disk
(oracle_home)
...
! Hardware components
! Software components
! Local ORACLE_HOME
Agenda
! Planning Best Practices
! Implementation Best Practices
! Operational Best Practices
Implementation Flowchart
Configure HW
Configure OS,
Public Network,
Private interconnect
Configure
Shared storage
Validate cluster/RAC
configuration
Operating System
Configuration
! Confirm OS requirements from
Configure ssh
! 10g OUI uses ssh/scp if configured otherwise rsh/rcp
Configure Private Interconnect
! Use UDP and GigE
! Non-routable IP addresses (eg 10.0.0.x)
! Redundant switches as std configuration for ALL cluster sizes.
! NIC teaming configuration (platform dependant)
Configure Public Network
! VIP and name must be DNS-registered in addition to the
standard static IP information
! Will not be visible until VIPCA install is complete
Linux Itanium
! Operating System Requirements
NIC Bonding
! Required for private interconnect resiliency.
! Various 3rd party vendor solutions available:
Linux
! NIC bonding in RHEL 3.0 ES
http://www.kernel.org/pub/linux/kernel/people/marcelo/li
nux-2.4/Documentation/networking/bonding.txt
! Intel Advanced Network Services (ANS)
http://www.intel.com/support/network/adapter/1000/linu
x/ans.htm
! HANIC
http://oss.oracle.com/projects/hanic/
! Configure IO Multi-pathing
Use devlabel
! Use devlabel to create a unique binding to the OCR and
Voting device.
The third column is the scsi unique id ( actually it is uuid) which is stored in
disk for the life of the LUN and never changes.
! http://www1.us.dell.com/content/topics/global.aspx/power/en/ps1q03_lerh
aupt
! http://linux.dell.com/devlabel/devlabel.html
! For Suse use the following option
DBCA
NETCA
Oracle Installation
! The Oracle 10g Installation can be performed after
CRS is installed and running on all nodes.
! Start the runInstaller (do not cd in your /mnt/cdrom
directory)
! Run root.sh on all nodes
VIP Installation
! The VIP Configuration Assistant (vipca) starts
automatically from $ORACLE_HOME/root.sh
! After the welcome screen you have to choose only the
public interfaces(s)
! The next screen will ask you for the Virtual IPs for
cluster nodes, add your /etc/hosts defined name
under IP Alias Name.
! After finishing this you will see a new VIP interface eg:
eth0:1. Use ifconfig (on most platforms) to verify this.
HA Resource
ora.RO.RO1.inst
ora.RO.RO2.inst
ora.RO.db
ora.mars.LISTENER_MARS.lsnr
ora.mars.gsd
ora.mars.ons
ora.mars.vip
ora.venus.LISTENER_VENUS.lsnr
ora.venus.gsd
ora.venus.ons
ora.venus.vip
Target
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
State
ONLINE on mars
ONLINE on venus
ONLINE on venus
ONLINE on mars
ONLINE on mars
ONLINE on mars
ONLINE on mars
ONLINE on venus
ONLINE on venus
ONLINE on venus
ONLINE on venus
ADDR
INDX
INST_ID P PICK NAME_KSXPIA
IP_KSXPIA
---------------- ---------- ---------- - ---- --------------- --------00000003936B8580
0
1
OCR eth1
10.0.0.1
Pick: OCR Oracle Clusterware
OSD Operating System dependent
CI indicates that the init.ora parameter
cluster_interconnects is specified
SRVCTL
! SRVCTL is a very powerful tool
! SRVCTL uses information from the OCR file
! GSD in 10g is running just for compatibility to serve 9i
clients if 9i and 10g is running on the same cluster.
! srvctl status nodeapps -n <nodename> will show all
services running on a node
Post Installation
! Enable asynchronous I/O if available
Post Installation
! Install @@@ARU: 10.1.0.2 ARU 6076422 to fix the
use of the private interconnect.
! Adjust UDP send / receive buffer size to 256K
sysctl -w net.core.rmem_max=262144
sysctl -w net.core.wmem_max=262144
sysctl -w net.core.rmem_default=262144
sysctl -w net.core.wmem_default=262144
2.4.9-e.XX-Uniprocessor kernel
2.4.9-e.XX-smp-SMP kernel capable of handling up to 4GB of
physical memory
2.4.9-e.XX-enterprise-SMP kernel capable of handling up to about
16GB of physical memory
2.4.21-XX.EL-Uniprocessor kernel
2.4.21-XX.Elsmp-SMP kernel capable of handling up to 16GB of
physical memory
2.4.21-XX.Elhugemem-SMP kernel capable of handling beyond
16GB, up to 64GB
(XX = number of the errata kernel)
NTP Protocol
! We recommend setting up the Network Time Protocol
(NTP) on all cluster nodes.
This will synchronize the clocks among all nodes, and
facilitate analysis of tracing information based on
timestamps.
! Note that adjusting clocks by more than 15 minutes
can cause instance evictions. It is strongly advised to
shutdown all instances before date/time adjustments.
Overall tools
sar, vmstat
CPU
/proc/cpuinfo, mpstat, top
Memory
/proc/meminfo, /proc/slabinfo, free
Disk I/O
iostat
Network
/proc/net/dev, netstat, mii-tool
Kernel Version and Rel.cat /proc/version
Types of I/O Cards
lspci -vv
Kernel Modules Loaded lsmod, cat /proc/modules
List all PCI devices
lspci v
Startup changes
/etc/sysctl.conf, /etc/rc.local
Kernel messages
/var/log/messages, /var/log/dmesg
OS error codes
/usr/src/linux/include/asm/errno.h
OS calls
/usr/sbin/strace-p
Agenda
! Planning Best Practices
! Implementation Best Practices
! Operational Best Practices
ASSM
! Automatic Segment Space Management (ASSM)
Application Deployment
! Same guidelines as single instance
SQL Tuning
Sequence Caching
Partition large objects
Use different block sizes
Avoid DDL
Use LMTs and ASSM as noted earlier
Operations
! Same DBA procedures as single instance, with some
minor, mostly mechanical differences.
! Managing the Oracle environment
http://biz.yahoo.com/prnews/040913/sfm121_1.html
http://www.tpc.org/
QUESTIONS
ANSWERS