Beruflich Dokumente
Kultur Dokumente
Page 1 of 183
Manoj xerox
wilshire
Gayatri nager,behind HUDA complex, ameer pet.
CELL:8978989710
Page 2 of 183
Index
Oracle Grid Infrastructure ........................................................................................................................... 1 and ..................................................................................................................... Error! Bookmark not defined. Real Application Clusters ........................................................................................................................... 1 1. Real Application Clusters Concepts ...................................................................................................... 9
1.1. Introduction to Clusters ......................................................................................................................................... 9 1.1.1. Types of Clusters ......................................................................................................................................... 10 1.1.1.1. High-Availability (HA) Clusters ............................................................................................................... 10 1.1.1.2. Fail-Over Clusters .................................................................................................................................. 10 1.1.1.3. Load-Balancing Clusters........................................................................................................................ 11 1.1.1.4. High-Performance (HPC) Clusters ........................................................................................................ 11 1.1.2. Cluster Products ........................................................................................................................................... 11 1.1.2.1. SUN Clusters ......................................................................................................................................... 11 1.1.2.2. HP Serviceguard ................................................................................................................................... 12 1.1.2.3. IBM's HACMP ........................................................................................................................................ 12 1.1.2.4. MC Service Guard ................................................................................................................................. 12 1.1.2.5. Red Hat Cluster Suite ............................................................................................................................ 12 1.1.2.6. Veritas Cluster Server (VCS) ................................................................................................................. 13 1.1.2.7. Oracle Real Application Clusters (RAC) ................................................................................................ 13 1.1.3. Component of a Cluster ............................................................................................................................... 13 1.1.3.1. Cluster Nodes ........................................................................................................................................ 13 1.1.3.2. Cluster Manager .................................................................................................................................... 14 1.1.3.3. Shared Data Storage ............................................................................................................................. 14 1.1.3.3.1. Storage Area Networks (SAN) ........................................................................................................ 14 1.1.3.3.2. Network Attached Storage (NAS) .................................................................................................... 14 1.1.3.4. Networks................................................................................................................................................ 14 1.2. Benefits of Real Application Clusters .................................................................................................................. 14 1.2.1. High Availability ............................................................................................................................................ 14 1.2.2. Reliability ...................................................................................................................................................... 15 1.2.3. Recoverability ............................................................................................................................................... 15 1.2.4. Error Detection ............................................................................................................................................. 15 1.2.5. Continuous Operations ................................................................................................................................. 15 1.2.6. Scalability ..................................................................................................................................................... 15
Page 3 of 183
2.2.2. Enterprise Manager Enhancements for RAC ............................................................................................... 20 2.2.3. Server Control (srvctl) Enhancements.......................................................................................................... 20 2.2.4. Oracle Clusterware (10.2.0.1.0) ................................................................................................................... 20 2.2.5. Cluster Verification Utility (10.2.0.1.0) .......................................................................................................... 20 2.2.6. Oracle Load Balancing Advisory (10.2.0.1.0) ............................................................................................... 21 2.2.7. Oracle RAC Runtime Connection Load Balancing using JDBC and ODP.NET ........................................... 21 2.2.8. Oracle Fast Connection Failover (FCF) (10.2.0.1.0) .................................................................................... 21 2.2.9. Transparent Data Encryption and RAC (10.2.0.1.0) ..................................................................................... 21 2.2.10. RAC Configuration Assistant Enhancements (10.2.0.1.0) .......................................................................... 21 2.2.11. ASM Storage Consolidation ....................................................................................................................... 22 2.2.12. Dynamic RMAN Channel Allocation for RAC Environments ...................................................................... 22 2.2.13. Failover Improvements for Distributed Transaction Processing (DTP) in RAC........................................... 22 2.2.14. Multiple Oracle Clusterware Files ............................................................................................................... 22 2.2.15. Fast-Start Failover and Data Guard Environments..................................................................................... 22 2.3. 11gR2 New Features for RAC Administration ................................................................................................. 22 2.3.1. Oracle Real Application Clusters One Node (Oracle RAC One Node) ......................................................... 22 2.3.4. Grid Plug and Play ....................................................................................................................................... 23 2.3.5. Oracle Cluster Registry performance enhancements ................................................................................... 23 2.3.6. Enhanced Cluster Verification Utility ............................................................................................................ 23 2.3.7. Patch application with Oracle Enterprise Manager Database Control .......................................................... 23 2.3.8. Zero downtime for patching Oracle RAC ...................................................................................................... 23 2.3.9. Oracle ASM Dynamic Volume Manager ....................................................................................................... 23 2.3.10. Oracle Automatic Storage Management Cluster File System .................................................................... 24
Page 4 of 183
4.2.9. Configuring Kernel Tuning Parameters ........................................................................................................ 41 4.2.9.1. Configuring Shared Memory .................................................................................................................. 41 4.2.9.2. Configuring Semaphores ....................................................................................................................... 42 4.2.9.3. Configuring File Handles ....................................................................................................................... 43 4.2.10. Setting Shell Limits for the Oracle User ...................................................................................................... 43 4.2.11. Identifying Required Software Directories .................................................................................................. 44 4.2.11.1. Oracle Base Directory.......................................................................................................................... 44 4.2.11.2. Oracle Inventory Directory ................................................................................................................... 44 4.2.11.3. Oracle Grid Infrastructure Home Directory .......................................................................................... 44 4.2.11.4. Oracle Database Home Directory ........................................................................................................ 45 4.2.12. Configuration of Hangcheck-Timer Module ................................................................................................ 45 4.3. General Storage Considerations......................................................................................................................... 45 4.3.1. Identifying Required Partitions for Clusterware Files .................................................................................... 45 4.3.2. Identifying Requirements for Using a File System for Oracle Clusterware Files .......................................... 46 4.3.3. Creating Required Directories for Oracle Clusterware Files on Shared File Systems .................................. 48 4.3.4. Clusterware File Restrictions for Logical Volume Manager on Linux............................................................ 48
Page 5 of 183
7.4.3. Redo Log File Storage in RAC ..................................................................................................................... 70 7.4.4. Automatic Undo Management in RAC.......................................................................................................... 70 7.5. Administration of ASM in RAC ............................................................................................................................ 70 7.5.1. Automatic Storage Management components in RAC ................................................................................. 70 7.5.2. Modifying Disk-group configurations for ASM in RAC .................................................................................. 70 7.5.4. Administering ASM Instances with Enterprise Manager in RAC................................................................... 71 7.5.5. Administering ASM Instances with srvctl in RAC.......................................................................................... 71 7.5.6. Creation of ASM Instance in RAC ................................................................................................................ 76 7.5.6.1. Preparing Additional Storage for ASM ................................................................................................... 76 7.5.6.2. Initialization Parameters for ASM. ......................................................................................................... 77 7.5.6.3. Creating ASM Cluster Instances on RAC Nodes ................................................................................... 77 7.5.6.4. Starting ASM Cluster Instances and Mounting ASM Disk-groups ......................................................... 78 7.5.6.5. Registering ASM Instances with Oracle Cluster Ready Services .......................................................... 78 7.6. Creating Database in RAC ................................................................................................................................. 78 7.6.1. Overview of Initialization Parameter Files in RAC Database ........................................................................ 78 7.6.2. Setting Server Parameter File Parameter Values for RAC ........................................................................... 79 7.6.3. Parameter File Search Order in RAC ........................................................................................................... 79 7.6.4. Initialization Parameter for RAC Database ................................................................................................... 79 7.6.5. Backing up the Server Parameter File.......................................................................................................... 83
Page 6 of 183
9.3.1.5. RMAN recovery through resetlogs in RAC ......................................................................................... 97 9.3.1.6. RMAN and Oracle Networking in RAC ............................................................................................... 97 9.3.1.7. Instance Recovery in RAC ................................................................................................................. 98 9.3.1.8. Using RMAN to Create Backups in RAC ............................................................................................ 98 9.3.1.9. Channel Connections to Cluster Instances ........................................................................................ 98 9.3.1.10. Node Affinity Awareness of Fast Connections ................................................................................. 99 9.3.1.11. Deleting Archived Redo Logs after a Successful Backup................................................................. 99 9.3.1.12. Auto-location for Backup and Restore Commands .......................................................................... 99 9.3.2. RMAN Restore Scenarios for Real Application Clusters .............................................................................. 99 9.3.2.1. Cluster File System Restore Scheme .................................................................................................... 99 9.3.2.2. Non-Cluster File System Restore Scheme .......................................................................................... 100 9.3.3. RMAN Recovery through Resetlogs in Real Application Clusters .............................................................. 100 9.3.4. RMAN and Oracle Net in Real Application Clusters ................................................................................... 100 9.3.5. Instance Recovery in Real Application Clusters ......................................................................................... 101 9.3.5.1. Single Node Failure in Real Application Clusters ................................................................................ 101 9.3.6. Media Recovery in RAC ............................................................................................................................. 101 9.3.7. Parallel Recovery in RAC ........................................................................................................................... 101 9.3.8. Flash Recovery Area in RAC...................................................................................................................... 102
Page 7 of 183
15. Making Applications Highly Available Using Oracle Clusterware ................................................ 162
15.1. Managing Custom Applications with Oracle Clusterware Commands ............................................................ 162 15.2. Creating Application Profiles ........................................................................................................................... 163 15.3. Oracle Clusterware Action Program Guidelines.............................................................................................. 168 15.4. Oracle Clusterware Commands for Application Management ........................................................................ 169 15.4.1. Registering Application Resources........................................................................................................... 170 15.4.2. Starting Application Resources ................................................................................................................ 170 15.4.3. Relocating Applications and Application Resources................................................................................. 170 15.4.4. Stopping Applications and Application Resources ................................................................................... 171 15.4.5. Unregistering Applications and Application Resources ............................................................................ 172 15.4.6. Clusterware Application and Application Resource Status Information .................................................... 172
Page 8 of 183
16.1.1.2. Component Level Debugging ............................................................................................................ 174 16.1.1.3. Oracle Clusterware Shutdown and Startup........................................................................................ 175 16.1.1.4. Enabling and Disabling Oracle Clusterware Daemons ...................................................................... 175 16.1.1.5. Diagnostics Collection Script ............................................................................................................. 175 16.1.1.6. The Oracle Clusterware Alerts ........................................................................................................... 175 16.1.1.7. Resource Debugging ......................................................................................................................... 175 16.1.1.8. Checking the Health of the Clusterware ............................................................................................ 175 16.1.1.9. Clusterware Log Files and the Unified Log Directory Structure ......................................................... 176 16.1.2. Troubleshooting the Oracle Cluster Registry ............................................................................................ 177 16.1.3. Enabling Additional Tracing for RAC High Availability .............................................................................. 179 16.1.3.1. Generating Additional Trace Information for a Running Resource .................................................... 179 16.1.3.2. Verifying Event Manager Daemon Communications ......................................................................... 179 16.1.3.3. Enabling Additional Debugging Information for Cluster Ready Services ........................................... 179 16.1.4 Diagnosing Oracle RAC Components ....................................................................................................... 180 16.1.5. Using the Cluster Verification Utility ......................................................................................................... 181 16.1.5.1 Cluster Verification Utility Requirements............................................................................................. 181 16.1.5.2 UNDERSTANDING CVU COMMANDS, HELP, OUTPUT, AND NODELIST ..................................... 182 16.1.5.3. Using CVU Help ................................................................................................................................ 182 16.1.5.4. Verbose Mode and UNKNOWN Output ............................................................................................. 182 16.1.5.5. Cluster Verification Utility Nodelist Shortcuts ..................................................................................... 182 16.1.5.6. Cluster Verification Utility Configuration File ...................................................................................... 183
Page 9 of 183
Public Network
Private Rac1
SCSI Cable
Rac2
SCSI cable
Shared Storage
Page 10 of 183
Shared Storage
Page 11 of 183
Before Failover
After Failover
Page 12 of 183
1.1.2.2. HP Serviceguard
HP Serviceguard for Linux is a high availability (HA) clustering solution that leverages the strength of HP's experience in the HA business, bringing the best-in-class mission critical HP -UX technologies to the Linux environment and ProLiant and Integrity servers. The cluster kit includes high availability software that provides critical applications the high availability that enterprise customers require for 247 business operations. It is designed to protect applications from a wide variety of software and hardware failures, monitoring the health of each server (node) and quickly responding to failures including system processes, system memory, LAN media and adapters, and application processes. Serviceguard for Linux enables customers to cluster HP ProLiant and Integrity server families with shared storage from HP Modular Smart Array 500 to HP Storage Works XP disk arrays in a 2 to 4-node SCSI or 2 to 16- node Fiber Channel configurations.