RAC Best Practices on Linux Kirk McGowan Technical Director – RAC Pack Server Technologies Oracle Corporation Session id: 40136 Roland Knapp Principal.

Slides:



Advertisements
Similar presentations
ITEC474 INTRODUCTION.
Advertisements

2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.
Diagnostics and Verification of Oracle Real Application Clusters 10g Jack Cai Principal Product Manager Oracle Corporation
Linux+ Guide to Linux Certification, Second Edition
Wim Coekaerts Director of Linux Engineering Oracle Corporation.
Self-Managing Database: Easy Upgrade Tom Graves Consulting Member of Technical Staff Oracle Corporation Session id:
Backup and recovery Basics of Backup and restoration Types of recovery Defining strategy Starting up and shutting down 80/20 rule SLA’s.
Merrill Holt Director Parallel Server Product Management Oracle Corporation.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
1 Web Server Administration Chapter 3 Installing the Server.
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
Hands-On Microsoft Windows Server 2003 Chapter 2 Installing Windows Server 2003, Standard Edition.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 1 Introduction to Managing the SUSE Linux Enterprise Server.
2 Copyright © 2009, Oracle. All rights reserved. Installing your Oracle Software.
Module 2: Planning to Install SQL Server. Overview Hardware Installation Considerations SQL Server 2000 Editions Software Installation Considerations.
Hardening Linux for Enterprise Applications Peter Knaggs & Xiaoping Li Oracle Corporation Sunil Mahale Network Appliance Session id:
VMware vCenter Server Module 4.
Oracle on Linux Installation for Non-DBAs Sheryl Calish Blue Heron Consulting Paper #36684.
Simplify your Job – Automatic Storage Management Angelo Session id:
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
6/1/2001 Supplementing Aleph Reports Using The Crystal Reports Web Component Server Presented by Bob Gerrity Head.
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.

Introduction and simple using of Oracle Logistics Information System Yaxian Yao
Bob Thome, Senior Director of Product Management, Oracle SIMPLIFYING YOUR HIGH AVAILABILITY DATABASE.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
M ODULE 2 D ATABASE I NSTALLATION AND C ONFIGURATION Section 1: DBMS Installation 1 ITEC 450 Fall 2012.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Oracle10g RAC Service Architecture Overview of Real Application Cluster Ready Services, Nodeapps, and User Defined Services.
ORACLE RAC. Definition Oracle Real Application Cluster (RAC) is a cluster system at the application level. It uses shared disk architecture that provides.
■ Decide on the local database name, and which domain will contain this database. These names are set in the initialization parameters DB_NAME and DB_DOMAIN.
INSTALLING MICROSOFT EXCHANGE SERVER 2003 CLUSTERS AND FRONT-END AND BACK ‑ END SERVERS Chapter 4.
© 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Introduction to HP Availability Manager.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
A Guide to Oracle9i1 Database Instance startup and shutdown.
CHAPTER 2. Overview 1. Pre-Installation Tasks 2. Installing and Configuring Linux 3. X Server 4. Post Installation Configuration and Tasks.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
Mark E. Fuller Senior Principal Instructor Oracle University Oracle Corporation.
Donna C. Hamby Sr. Principal Instructor Oracle University Oracle Corporation.
The Million Point PI System – PI Server 3.4 The Million Point PI System PI Server 3.4 Jon Peterson Rulik Perla Denis Vacher.
Ashish Prabhu Douglas Utzig High Availability Systems Group Server Technologies Oracle Corporation.
Alwayson Availability Groups
Installation of Storage Foundation for Windows High Availability 5.1 SP2 1 Daniel Schnack Principle Technical Support Engineer.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
CERN - IT Department CH-1211 Genève 23 Switzerland t High Availability Databases based on Oracle 10g RAC on Linux WLCG Tier2 Tutorials, CERN,
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
Oracle Applications 11i Concepts II Brian Hitchcock OCP 11i DBA -- OCP 10g DBA Sun Microsystems Brian Hitchcock.
Database CNAF Barbara Martelli Rome, April 4 st 2006.
3 Copyright © 2006, Oracle. All rights reserved. Installation and Administration Basics.
An Introduction to GPFS
PHD Virtual Technologies “Reader’s Choice” Preferred product.
Guide to Linux Installation and Administration, 2e
Dockerize OpenEdge Srinivasa Rao Nalla.
Chapter 2: System Structures
Oracle Solaris Zones Study Purpose Only
Get Oracle 8i Running on Your Linux Server Straight Away!
Introduction of Week 6 Assignment Discussion
Introduction of Week 3 Assignment Discussion
Oracle Architecture Overview
Microsoft Core Storage Update
Presentation transcript:

RAC Best Practices on Linux Kirk McGowan Technical Director – RAC Pack Server Technologies Oracle Corporation Session id: Roland Knapp Principal Member Technical Staff – RAC Pack Server Technologies Oracle Corporation

Agenda  Planning Best Practices – Architecture – Expectation setting – Objectives and success criteria – Project plan  Implementation Best Practices – Infrastructure considerations – Installation/configuration – Database creation – Application considerations  Operational Best Practices – Backup & Recovery – Performance Monitoring and Tuning – Production Migration

Planning  Understand the Architecture – Cluster terminology – Functional basics  HA by eliminating node & Oracle as SPOFs  Scalability by making additional processing capacity available incrementally – Hardware components  Private interconnect/network switch  Shared storage/concurrent access/storage switch – Software components  OS, Cluster Manager, DBMS/RAC, Application  Differences between cluster managers

RAC Hardware Architecture Clustered Database Servers Mirrored Disk Subsystem High Speed Switch or Interconnect Hub or Switch Fabric Network Centralized Management Console Storage Area Network Low Latency Interconnect ie. VIA or Proprietary Users No Single Point Of Failure Shared Cache

RAC Software Architecture Shared Disk Database Shared Data Model

RAC on Linux HW & SW Components public network Node1a shared storage redo log instance 1 … redo log instance 2 … control files database files Node2a Unbreakable Linux ORACM cluster interconnect cache to cache N3N4Nn Oracle 9i RAC instance 1 Oracle 9i RAC instance 2 DB cache concurrent access from every node = “scale out” more nodes = higher availability

Linux Cluster Hardware  Cluster interconnects – FastEthernet, Gigabit Ethernet  Public networks – Ethernet, FastEthernet, Gigabit Ethernet  Memory, swap & CPU Recommendations – Each server should have a minimum of 512Mb of memory, at least 1Gb swap space, and two CPUs.  Fiber Channel, SCSI, or NAS storage connectivity

Unbreakable Linux Distributions  Red Hat Enterprise Linux AS and ES  United Linux 1.0 – SuSE Linux Enterprise Server 8 (SuSE Linux AG) – Conectiva Linux Enterprise Edition (Conectiva S.A.) – SCO Linux Server 4.0 (The SCO Group) – Turbolinux Enterprise Server 8 (Turbolinux)  Oracle will support Oracle products running with other distributions but will not support the operating system.

RAC Certification for Unbreakable Linux  Certification – Enterprise class OS distribution (e.g. RH AS, United Linux 1.0) – Clusterware (Oracle Cluster Manager only) – Network Attached Storage (e.g. Network Appliance filers) – Most SCSI and SAN storage are compatible – 32 bit and 64 bit Itanium 2 Intel based servers are certified.  For more details on software certification:  Discuss hardware configuration with your HW vendor

Linux IA64 requirements  Operating System Requirements – Red Hat Linux Advanced Server 2.1 operating system with kernel e.14.ia64.rpm – glibc – Gnu gcc release – Linux Header Patch (available from Intel) – asynch libraries libaio – (Oracle9i Release Notes Release 2 ( ) for Linux Intel on Itanium (64-bit) Part No. B )

Set Expectations Appropriately  If your application will scale transparently on SMP, then it is realistic to expect it to scale well on RAC, without having to make any changes to the application code.  RAC eliminates the database instance, and the node itself, as a single point of failure, and ensures database integrity in the case of such failures

Planning: Define Objectives  Objectives need to be quantified/measurable – HA objectives  Planned vs unplanned  Technology failures vs site failures vs human errors – Scalability Objectives  Speedup vs scaleup  Response time, throughput, other measurements – Server/Consolidation Objectives  Often tied to TCO  Often subjective

Build your Project Plan  Partner with your vendors – Multiple stakeholders, shared success  Build detailed test plans – Confirm application scalability on SMP before going to RAC  optimize first for single instance  Address knowledge gaps and training – Clusters, RAC, HA, Scalability, systems management – Leverage external resources as required  Establish strict System and Application Change control – Apply changes to one system element at a time – Apply changes to first to test environment – Monitor impact of application changes on underlying system components  Define Support mechanisms and escalation procedures

Agenda  Planning Best Practices – Architecture – Expectation setting – Objectives and success criteria – Project plan  Implementation Best Practices – Infrastructure considerations – Installation/configuration – Database creation – Application considerations  Operational Best Practices – Backup & Recovery – Performance Monitoring and Tuning – Production Migration

Infrastructure Considerations  Architecture/Design – Eliminate SPOFs (Single Points of Failure) – Workload Distribution (load balancing) strategy – Systems management framework for monitoring and managing to SLAs  Hardware/Software – Processing nodes – sufficient CPU to accommodate failure – Scalable I/O Subsystem  Use S.A.M.E. – Private Interconnect  Gige, UDP, switched – Patch levels and certification

Impementation Flowchart Configure HW Configure private interconnect Install Unbreakable Linux Install cluster manager Install Oracle Install cluster manager Install Oracle Create database Configure storage and install OCFS

Boot Choose Language Select Keyboard & Mouse Choose – Advanced Server Option Use DRUID for Partition Setup Select Boot Loader Configure Network Configure Timezone Account Configuration Select Graphic Mode Boot Floppy Creation Installation Complete / Reboot Installation Flowchart for Red Hat Linux AS 2.1

Install tips for Red Hat Linux AS 2.1  As documented in: – “Tips and Techniques: Install and Configure Oracle9i on Red Hat Linux Advanced Server” by Deepak Patel, Oracle  Boot options – Always use Advanced Server install. As needed install required packages. CD 1 to 3 has all rpm packages. CD 3 and 4 has source packages. CD 5 includes docs.  Memory – Based on physical memory on machine smp or enterprise kernel is installed. ( 4 GB enterprise kernel )  Post Installation – Add users, configure network and other administrative tasks after installation.

Install tips for United Linux 1.0  You must install the latest UnitedLinux kernel update! Oracle was certified against an update kernel, the original UL-1.0 kernel is NOT certified!  After installing United Linux 1.0, install Service Pack 2a from: ftp://suse.us.oracle.com/pub/suse/i386/unitedlinux-1.0-iso/  You will also need to have the basic developments tools installed, like make, gcc_old(2.95.3), and the binutils package.  Full installation instructions: ftp://ftp.suse.com/pub/suse/i386/supplementary/commercial/Orac le/docs/920_sles8_install.pdf ftp://ftp.suse.com/pub/suse/i386/supplementary/commercial/Orac le/docs/920_sles8_install.pdf

Install tips for United Linux 1.0  Install the orarun.rpm package from either the SP2 CD – /UnitedLinux/i586/orarun i586.rpm or from – ftp://ftp.suse.com/pub/suse/i386/supplementary/commerci al/Oracle/sles-8/orarun.rpm  orarun.rpm  update kernel (ie. shmmax, shmmin)  UDP settings (256K)  Installs and configures hangcheck-timer

Prepare Linux Environment  Follow these steps on EACH node of the cluster – Set Kernel parameters in /etc/sysctl.conf – Add hostnames to /etc/hosts file – Establish file system or location for ORACLE_HOME (writable for oracle userid) – Setup host equivalence for oracle userid (.rhosts)

Install the rpm’s on all nodes Run ocfstool as root (configures /etc/ocfs.conf) on all nodes Run load_ocfs (insmod will load ocfs.o) on all nodes Create partition on the primary node Run ocfstool to format and mount your new filesystem Mount the new filesystem on all nodes Edit rc.local or equivalent add load_ocfs and ‘mount –t ocfs <mountpoint’ Download the latest OCFS rpm’s from Installation Flowchart for OCFS

OCFS and Unbreakable Linux  Redhat – currently ships 4 flavors of the AS 2.1 kernel, viz., UP, SMP, Enterprise and Summit (IBM x440) – Oracle provides a separate OCFS module for each of the kernel flavors – Minor revisions of the kernel do not need a fresh build of ocfs – e.g., ocfs built for e.12 will work for e.16, e.18, etc.  United Linux – United Linux ships 3 flavors of its kernel, for the GB- SMP, the GB and the GB-SMP kernel – OCFS is supported on UL 1.0 Service Pack 2a or higher – OCFS build is not currently upward compatible with kernel (pre SP3)  must ensure OCFS build exists for each new Kernel version prior to upgrading kernel

OCFS and RAC  Maintains cache coherency across nodes for the filesystem metadata only – Does not synchronize the data cache buffers across nodes, lets RAC handle that  OCFS journals filesystem metadata changes only – Filedata changes are journalled by RAC (log files)  Overcomes some limitations of raw devices on Linux – No limit on number of files – Allows for very large files (max 2TB) – Max volume size 32G (4K block) to 8T (1M block)  Oracle DB performance is comparable to raw  kernel e.25 is strongly recommended for use with OCFS (remove old kernel tuning parameters)

Install Tips for OCFS  Ensure OCFS rpm corresponds to kernel version – uname –r (i.e GB)  Remember to also download rpm’s for OCFS “Support Tools” and “Additional Tools”  Download the dd/tar/cp rpm that supports o_direct  Use rpm –Uv to install all 4 rpm’s on all nodes  Use OCFS for Oracle DB files only, not Oracle binaries (OCFS 1.0.x was not designed as a general purpose filesystem).

Installation Flowchart for oracm and Oracle Install the oracm from the CD-ROM Configure ocmargs.ora and cmcfg.ora Load the softdog and start with./ocmstart.sh the cluster manager on both nodes Install software with the RAC option Kill the oracm and watchdog process modify ocmargs.ora and cmcfg.ora (remove watchdog) Load the hangcheck-timer module with lsmod Install the oracm from the patchset Start with./ocmstart.sh the cluster manager Install the patchset Configure private interconnect and quorum device Fix empty directory bug

Oracle Instance Cluster Manager (including Node Monitor) Hangcheck-timer User-mode Kernel-mode Oracm maintains both, node status view and instance status view. The hangcheck-timer monitors the kernel for hangs, and resets the node if needed. Hangcheck NM, and CM Flow (After V )

Post Installation  To enable asynchronous I/O must re-link Oracle to use skgaioi.o  Adjust UDP send / receive buffer size to 256K  Larger Buffer Cache – Create an in-memory file system on the /dev/shm (mount -t shm shmfs -o size=8g /dev/shm) – To enable the extended buffer cache feature, set the init.ora paramter USE_INDIRECT_DATA_BUFFERS = true  Increasing Address Space – Default 1.7 GB of address space for its SGA. – See Metalink Note: for details and a sample program.

Create RAC database using DBCA Create Database  Use DBCA to simplify DB creation – Start gsd ( global services daemon ) on all nodes, if it is not already running.  Set MAXINSTANCES, MAXLOGFILES, MAXLOGMEMBERS, MAXLOGHISTORY, MAXDATAFILES (auto with DBCA)  Create tablespaces as locally Managed (auto with DBCA)  Create all tablespaces with ASSM (auto with DBCA)  Configure automatic UNDO management (auto with DBCA)  Use SPFILE instead of multiple init.ora’s (auto with DBCA)

Validate RAC Configuration  Instances running on all nodes SQL> select * from gv$instance  RAC communicating over the private Interconnect SQL> oradebug setmypid SQL> oradebug ipc SQL> oradebug tracefile_name /home/oracle/admin/RAC92_1/udump/rac92_1_ora_ trc – Check trace file in the user_dump_dest: SSKGXPT 0x2ab25bc flags info for network 0 socket no 10 IP UDP sflags SSKGXPT_UP info for network 1 socket no 0 IP UDP 0 sflags SSKGXPT_DOWN  RAC is using desired IPC protocol: Check Alert.log... cluster interconnect IPC version:Oracle UDP/IP IPC Vendor 1 proto 2 Version 1.0 PMON started with pid=2...  Use cluster_interconnects only if necessary

Configure srvconfig / srvctl  SRVCTL uses information from srvconfig – Reads $ORACLE_HOME/srvm/config /srvConfig.loc information  File can be a RAW Device or OCFS file  Srvconfig -init  gsd must be running  Add ORACLE_HOME – $ srvctl add database -d db_name -o oracle_home [-m domain_name] [-s spfile]  Add instances (for each instance enter the command) – $ srvctl add instance -d db_name -i sid -n node

Application Deployment  Same guidelines as single instance – SQL Tuning – Sequence Caching – Partition large objects – Use different block sizes – Tune instance recovery – Avoid DDL – Use LMT’s and ASSM as noted earlier

Agenda  Planning Best Practices – Architecture – Expectation setting – Objectives and success criteria – Project plan  Implementation Best Practices – Infrastructure considerations – Installation/configuration – Database creation – Application considerations  Operational Best Practices – Backup & Recovery – Performance Monitoring and Tuning – Production Migration

Operations  Same DBA procedures as single instance, with some minor, mostly mechanical differences.  Managing the Oracle environment – Starting/stopping cluster services (ocmstart.sh) – Starting/stopping gsd – Managing multiple redo log threads  Startup and shutdown of the database – Use srvctl  Backup and recovery  Performance Monitoring and Tuning  Production migration

Operations: srvconfig / srvctl  Use SRVCTL to administer your RAC database environment. – OEM and the Oracle Intelligent Agent use the configuration information that SRVCTL generates to discover and monitor nodes in your cluster.  Global Services Daemon (GSD) receives requests from SRVCTL to execute administrative job tasks, such as startup or shutdown. – GSD must be started on all the nodes in your RAC environment so that the manageability features and tools operate properly. (GSDCTL)

Operations: Backup & Recovery  RMAN is the most efficient option for Backup & Recovery – Managing the snapshot control file location. – Managing the control file autobackup feature. – Managing archived logs in RAC – choose proper archiving scheme. – Node Affinity Awareness  RMAN and Oracle Net in RAC apply – you cannot specify a net service name that uses Oracle Net features to distribute RMAN connections to more than one instance.  Oracle Enterprise Manager – GUI interface to Recovery Manager

Performance Monitoring and Tuning  Tune first for single instance 9i  Use Statspack: – Separate 1 GB tablespace for Statspack – snapshots at min intervals during stress testing, hourly during normal operations – Run on all instances, staggered  Supplement with scripts/tracing – Monitor V$SESSION_WAIT to see which blocks are involved in wait events – Trace events like 10046/8 can provide additional wait event details – Monitor Alert logs and trace files, as on single instance  Oracle Performance Manager  RAC-specific views  Supplement with System-level monitoring – CPU utilization never 100% – I/O service times never > acceptable thresholds – CPU run queues at optimal levels

Performance Monitoring and Tuning  Obvious application deficiency on a single node can’t be solved by multiple nodes. – Single points of contention. – Not scalable on SMP – I/O bound on single instance DB  Tuning on single instance DB to ensure applications scalable first – Identify/tune contention using v$segment_statistics to identify objects involved – Concentrate on the top 5 Statspack timed events if majority of time is spent waiting – Concentrate on bad SQL if CPU bound  Maintain a balanced load on underlying systems (DB, OS, storage subsystem, etc. ) – Excessive load on individual components can invoke aberrant behaviour.

Performance Monitoring and Tuning  Deciding if RAC is the performance bottleneck – Amount of Cross Instance Traffic  Type of requests  Type of blocks – Latency  Block receive time  buffer size factor  bandwidth factor

Production Migration  Adhere to strong Systems Life Cycle Disciplines – Comprehensive test plans (functional and stress) – Rehearsed production migration plan – Change Control  Separate environments for Dev, Test, QA/UAT, Production  System AND application change control  Log changes to spfile – Backup and recovery procedures – Security controls – Support Procedures

Next Steps….  Recommended sessions – List 1 or 2 sessions that complement this session  Recommended demos and/or hands-on labs – List of or two demos or labs that will let them see this product in action.  See Your Business in Our Software – Visit the DEMOgrounds for a customized architectural review, see a customized demo with Solutions Factory, or receive a personalized proposal. Visit the DEMOgrounds for more information.  Relevant web sites to visit for more information – List urls here.

Reminder – please complete the OracleWorld online session survey Thank you.

Resources  RedHat Linux –  Linux Center - Technical White Papers & Documentation –  “Tips and Techniques: Install and Configure Oracle9i on Red Hat Linux Advanced Server” by Deepak Patel, Oracle Corporation  “Tips and Techniques: Install and Configure Oracle9i on SLES8 / United Linux /9iR2_sles8.html

United Linux 1.0 Resources  United Linux –  SuSE –  Connectiva –  SCO Group (Formerly Caldera System) -  TurboLinux –

Recommended one-off patches  Bug ORA NODE EVICTION DESIGN ALGORITHM AND ABRUPT TIME CHANGE ARU: ARU completed for LINUX Intel  Bug GET ORA-600 [KSXPMPRP1] DURING STARTUP IN RAC MODE WITH LARGER BUFFERS. This was mysteriously included in , but not in Bug was opened for this issue. ARU: ARU completed for LINUX Intel  Bug GET ORA-600 [KSXPMPRP1] DURING STARTUP IN RAC MODE WITH LARGER BUFFERS Bug – Fractured block found during crash/instance recovery. Not an Oracle bug. Do not use ‘intr’ for the mount option.

Recommended one-off patches  Bug: MISSING LIBCXA.SO.3 LIBRARY ISSUE IN PSR ARU: ARU completed for LINUX Intel  Bug – node_list does not populated into oraInventory/ContentsXML/inventory.xml. opatch install will only apply to local node. Workaround is editing inventory.xml documented in bug  Bug , , and ORA-600 [KCCSBCK_FIRST], [2] on linux and W2K platform after installing Very important patch, missing from ARU: ARU completed for LINUX Intel ·

Hangcheck-timer and Oracle Cluster Manager  Download Patch from Metalink – #rpm -ivh  Detaching watchdogd from the Cluster Manager (Bug ) The removal of the watchdogd  ORACLE_HOME/oracm/admin/cmcfg.ora – WatchdogTimerMargin – WatchdogSafetyMargin  KernelModuleName=hangcheck-timer  CMDiskFile from optional to mandatory – CM quorum partition of cluster participation.

Hangcheck-timer and Oracle Cluster Manager  remove or comment out from the /etc/rc.local file: /sbin/insmod softdog nowayout=0 soft_noboot=1 soft_margin=60 ADD to rc.local, execute as root to load /sbin/insmod hangcheck-timer.o hangcheck_tick=30 hangcheck_margin=180

Hangcheck-timer and Oracle Cluster Manager  inclusion of the hangcheck-timer kernel module Parameter Service Value hangcheck_tick hangcheck-timer 30 seconds hangcheck_margin hangcheck-timer 180 seconds KernelModuleName oracm hangcheck-timer MissCount oracm > hangcheck_tick hangcheck_margin (> 210 seconds)

Hangcheck-timer and Oracle Cluster Manager  cmcfg.ora example - HeartBeat= ClusterName=Oracle Cluster Manager, version 9i - KernelModuleName=hangcheck-timer - PollInterval= MissCount=215 - PrivateNodeNames=int-node1 int-node2 - PublicNodeNames=node1 node2 - ServicePort= CmDiskFile=/ocfsdisk1/quorum/quorumfile - HostName=int-node1

Hangcheck-timer and Oracle Cluster Manager  Parameters for ocmargs.ora - oracm - norestart 1800

Linux Monitoring and Configuration Tools -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 Loadedlsmod, cat /proc/modules -List all PCI devices (HW)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

Post Installation Increasing Address Space Default 1.7 GB of address space for its SGA.  Shutdown all instances of Oracle  cd $ORACLE_HOME/lib  cp -a libserver9.a libserver9.a.org – to make a backup copy  cd $ORACLE_HOME/rdbms/lib  genksms -s 0x >ksms.s – lower SGA base to 0x  make -f ins_rdbms.mk ksms.o – compile in new SGA base address  make -f ins_rdbms.mk ioracle (relink)

Post Installation Increasing Address Space Cont.  sysctl –w kernel.shmmax=  Lower process base – Find out the pid of the process (shell) from where oracle will be started using ps (Oracle - echo $$) – changing /proc/$pid/mapped_base to 0x and restarting oracle  Metalink Note:

Variable SGA Reserved for kernel DB Buffers (SGA) Default Code, etc. 0xFFFFFFFF 0xC x x x Variable SGA Reserved for kernel DB Buffers (SGA) After Relink Code, etc. 0xFFFFFFFF 0xC x x x mapped_base (/proc/ /mapped_base) sga_base (relink Oracle) Lowering of mapped base Post Installation

Larger Buffer Cache does buffer cache increase with larger SGA  Create an in-memory file system on the /dev/shm  mount -t shm shmfs -o size=8g /dev/shm  To enable the extended buffer cache feature, set the init.ora paramter  USE_INDIRECT_DATA_BUFFERS = true  Don’t Use dynamic cache parameters  DB_CACHE_SIZE  DB_#K_CACHE_SIZE Limitations apply to the extended buffer cache feature on Linux: You cannot change the size of the buffer cache while the instance is running. You cannot create or use tablespaces with non-standard block sizes.

Post Installation Adjust send / receive buffer size to 256K Tuning the default and maximum window sizes: -/proc/sys/net/core/rmem_default - default receive window -/proc/sys/net/core/rmem_max - maximum receive window -/proc/sys/net/core/wmem_default - default send window -/proc/sys/net/core/wmem_max - maximum send window -sysctl -w net.core.rmem_max= sysctl -w net.core.wmem_max= sysctl -w net.core.rmem_default= sysctl -w net.core.wmem_default=262144

Post Installation  To enable asynchronous I/O must re-link Oracle to use skgaioi.o – cd to $ORACLE_HOME/rdbms/lib – make -f ins_rdbms.mk async_on – make -f ins_rdbms.mk ioracle – set 'disk_asynch_io=true' (default value is true) – set 'filesystemio_options=asynch‘ (RAW Only)