RAC and Oracle Clusterware Best Practices and Starter Kit (Windows)_811271.1
RAC and Oracle Clusterware Best Practices and Starter Kit (Windows) (文件 ID 811271.1)
In this Document
Purpose |
Scope |
Details |
RAC and Oracle Clusterware Best Practices and Starter Kit (Platform Independent) |
RAC Platform Specific Starter Kits and Best Practices |
RAC on Windows Step by Step Installation Instructions |
RAC on Windows Best Practices |
OS Configuration Considerations |
Network Considerations |
Storage Considerations |
Hardware/Vendor Specific Considerations |
Oracle Software Considerations |
Installation and Upgrade and Patching |
General |
Community Discussions |
References |
Applies to:
Oracle Database - Enterprise Edition - Version 10.2.0.1 to 12.1.0.1 [Release 10.2 to 12.1]
Microsoft Windows x64 (64-bit)
Microsoft Windows Itanium (64-bit)
Microsoft Windows (32-bit)
Purpose
The goal of the Oracle Real Application Clusters (RAC) series of Best Practice and Starter Kit notes is to provide customers with quick knowledge transfer of generic and platform specific best practices for implementing, upgrading and maintaining an Oracle RAC system. This document is compiled and maintained based on Oracle's experience with its global RAC customer base.
This Starter Kit is not meant to replace or supplant the Oracle Documentation set, but rather, it is meant as a supplement to the same. It is imperative that the Oracle Documentation be read, understood, and referenced to provide answers to any questions that may not be clearly addressed by this Starter Kit.
All recommendations should be carefully reviewed by your own operations group and should only be implemented if the potential gain as measured against the associated risk warrants implementation. Risk assessments can only be made with a detailed knowledge of the system, application, and business environment.
As every customer environment is unique, the success of any Oracle Database implementation, including implementations of Oracle RAC, is predicated on a successful test environment. It is thus imperative that any recommendations from this Starter Kit are thoroughly tested and validated using a testing environment that is a replica of the target production environment before being implemented in the production environment to ensure that there is no negative impact associated with the recommendations that are made.
Scope
This article applies to all new and existing RAC implementations as well as RAC upgrades.
Details
RAC and Oracle Clusterware Best Practices and Starter Kit (Platform Independent)
The following document focuses on RAC and Oracle Clusterware Best Practices that are applicable to all platforms including a white paper on available RAC System Load Testing Tools and RAC System Test Plan outlines for 10gR2 & 11gR1 and 11gR2:
RAC Platform Specific Starter Kits and Best Practices
The following notes contain detailed platform specific best practices including Step-By-Step installation cookbooks (downloadable in PDF format):
Document 811280.1 RAC and Oracle Clusterware Best Practices and Starter Kit (Solaris)
Document 811271.1 RAC and Oracle Clusterware Best Practices and Starter Kit (Windows)
Document 811293.1 RAC and Oracle Clusterware Best Practices and Starter Kit (AIX)
Document 811303.1 RAC and Oracle Clusterware Best Practices and Starter Kit (HP-UX)
RAC on Windows Step by Step Installation Instructions
Click here for a Step By Step guide for installing Oracle RAC 11gR1 on Windows (2003 and 2008)
Click here for a Step By Step guide for installing Oracle RAC 11gR2 on Windows (2003 and 2008)
Click here for a Step By Step guide for installing Oracle RAC 12cR1 on Windows (2003 and 2008)
RAC on Windows Best Practices
The Best Practices in this section are specific to the Windows Platform. That said, it is essential that the Platform Independent Best Practices found in Document 810394.1 be reviewed in addition to the content provided in this Document.
OS Configuration Considerations
- Disable Anti-Virus software running on cluster nodes before and for the entire duration of the installation of Oracle on Windows (be mindful of manual reboots during this time). Anti-Virus software may of course be re-enabled following the installation but the following should be excluded from being scanned:
- Oracle Software directories
- OCFS filesystems
- ACFS filesystems
- Network scanning of the private interconnect
- Disable the Windows firewall. If the Windows firewall must be re-enabled, it MUST NOT be configured for the private network.
- Heed the list of Oracle executables that should be excluded if Firewall will be implemented. Reference: http://docs.oracle.com/cd/E11882_01/win.112/e10845/config.htm#CEGFDJHJ
- The use of Disk Encryption software on RAC servers is highly discouraged and is to be avoided as Disk encryption software has been known to cause problems during multi-node installation and patching.
-
For Windows 2008 systems modify the elevation prompt behavior for administrators to "Elevate without prompting":
1. Open a command prompt and type 'secpol.msc' to launch the Security Policy Console management utility.
2. From the Local Security Settings console tree, click Local Policies, and then Security Options
3. Scroll down to and double-click User Account Control: Behavior of the elevation prompt for administrators.
4. From the drop-down menu, select: "Elevate without prompting (tasks requesting elevation will automatically run as elevated without prompting the administrator)"
5. Click OK to confirm the changes -
Ensure that the Administrators group has the ability to manage auditing and security logs:
1. Open a command prompt and type 'secpol.msc' to launch the Security Policy Console management utility.
2. Click on 'Local Policies'
3. Click on 'User Rights Assignment'
4. Locate and double click the 'Manage auditing and security log' in the listing of User Rights Assignments.
5. If the Administrators group is NOT listed in the 'Local Security Settings' tab, add the group now.
6. Click OK to save the changes (if changes were made) - Set /USEPMTIMER in the boot.ini to prevent excessive LMD and LMS trace generation and to prevent connectivity issues as described in Document 437101.1.
- Increase the size of the default Non-Interactive Desktop Heap to 1MB to prevent instability due to Desktop Heap exhaustion. Information on how to increase this value can be found in Document 744125.1 and Microsoft Knowledge Base Article KB947246. It is advised that you consult with Microsoft for further tuning of the Non-Interactive Desktop Heap beyond 1MB.
- Do not set ORACLE_HOME as an environment variable in Oracle (RAC on) Windows environments. If needed (for example, when running opatch) set this variable as needed in a command prompt window. Reference Document 969581.1. In particular, this can cause undesired behavior (for example: listeners starting under the wrong ORACLE_HOME) during upgrade.
-
Windows 2000 and 2003 systems should be optimized for Memory Usage of Programs not System Caching (not an option in 2008):
Start -> Settings -> Control Panel -> System -> Advanced -> Performance -> Memory Usage: Adjust for best performance of -> Programs instead of System Caching
- Run Perfmon to monitor CPU, Memory, Network, Disk IO Rates - To aid in troubleshooting, configure Perfmon to monitor these OS statistics and to generate binary log files (.BLG). Instructions for implementing this change can be found on the Microsoft support website using the following link: http://support.microsoft.com/kb/146005
- Download and install Debugging Tools for Windows (containing, among others, adplus and windbg) on each node of your RAC on Windows cluster. These tools can be an invaluable resource when troubleshooting complex issues. The downloads and instructions for implementation can be found on the Download and Install Debugging Tools for Windows MSDN website.
- Download and familiarize the DBA team with useful Sysinternals Windows utilities such as Process Explorer. These utilities are available on the Microsoft Sysinternals Website.
- Keep memory allocation under 80%. We recommend shooting for 75% allocated, that is, more than 20-25% free. This will allow for ample memory needed for Windows OS operations (including collection of physical memory dumps if required).
- There is a general requirement for Oracle RAC to synchronize the time on all nodes. If the Windows Time Service is being used, modify the Windows Time service settings to avoid large jumps in time and allow the time to gradually match with the reference time. Restart the Windows Time service after you complete this task.
2. Within the registry editor locate the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config key.
3. Set the value for MaxPosPhaseCorrection = 600 (DECIMAL - as this is meant to represent 10 minutes)
4. Set the value for MaxNegPhaseCorrection = 600 (DECIMAL - as this is meant to represent 10 minutes)
5. Set the value for MaxAllowedPhaseOffset = 600 (DECIMAL - as this is meant to represent 10 minutes)
Be sure to run 'w32tm /config /update' after changing the settings so that the new settings take effect.
Note that with these values set, if there is a time discrepancy between a cluster node and the reference node that is greater than 10 minutes, time will not be adjusted and a message will be logged (to the Windows Event Viewer)
Reference: Bug:13360724 - ENH: RAC ON WINDOWS: W32TIME REQUIREMENTS FOR ORACLE GRID INFRASTRUCTURE
* Consider also setting the 'updateinterval' parameter. Reference: http://technet.microsoft.com/en-us/library/cc773263%28v=ws.10%29.aspx
** Consider also setting 'Maximum Tolerance for Computer Clock Synchronization' (Reference: http://technet.microsoft.com/en-us/library/cc779260%28v=WS.10%29.aspx). Note that Kerberos Authentication will fail if the time difference between the nodes is greater than the 'Maximum Tolerance for Computer Clock Synchronization'.
Note: With 11gR2, Cluster Time Synchronization Daemon (CTSSD) can be used in place of Windows Time Service. CTSSD will synchronize time with a reference node in the cluster when Windows Time Service is not found to be configured. Should you require synchronization from an external time source you must use Windows Time Service which will cause CTSSD to run in "observer" mode. However, if Windows Time Service is running, then it must to be configured as shown above.
Network Considerations
-
The Public network MUST be listed first in the network interface binding order. To make this change perform the following:
1. Click Start, click Run, type 'ncpa.cpl', and then click OK.
2. In the menu bar on the top of the window click 'Advanced' and choose 'Advanced Settings' (For Windows 2008, if the "Advanced" is not showing, click 'Alt' to enable that menu item).
3. Under the Adapters and Bindings tab use the up arrow to move the Public interface to the top of the Connections list.
4. Under Binding order for increase the priority of IPv4 over IPv6
5. Click OK to save the changes
-
Uncheck 'Register this connection's addresses in DNS' (Windows 2008 specific). Reference: Grid Infrastructure / RAC on Windows: IP Addresses for HOST, VIP, AND SCAN Get Scrambled Upon Reboot (Doc ID 1504625.1)
By default in Windows 2008, the 'Register this connection's addresses in DNS' option is turned ON for all network interface cards. In prior versions of windows (Windows 2000/2003 for instance) checking 'Register this connection's addresses in DNS' (on a particular Network Interface Card (NIC)'s TCP/IP properties) only registered the primary/first NIC ip address in DNS. In Windows 2008 checking 'Register this connection's addresses in DNS' seems automatically registers ALL NIC ip addresses configured for that NIC. This can cause a scrambling of host, VIP and SCAN IPs upon node reboot. Therefore, 'Register this connection's addresses in DNS' should be unchecked for all Public NIC cards in RAC on Windows 2008 environments, as follows:
1. Invoke Server Manager
2. select 'View Network Connections'
3. select the 'public' network interface
4. choose 'Properties' from the right click menu
5. select 'Internet Protocol Version 4(TCP/IPv4)' from the 'Networking' tab
6. click 'Properties'
7. click 'Advanced...' from the 'General' tab
8. select the 'DNS' tab
9. unclick the radio button for 'Register this connection's addresses in DNS' -
DHCP Media Sense MUST be disabled. This change must be manually implemented for Windows 2000 but is disabled by default in 2003. Additional information (including instructions for disabling) for Windows 2000 and Windows 2003 can be found in MS Knowledge Base Article KB239924. For Windows 2008, this feature is once again enabled. To disable DHCP Media Sense on 2008, execute the following from a command window as the Administrator user:
C:\Users\Administrator> netsh interface ipv4 set global dhcpmediasense=disabled
C:\Users\Administrator> netsh interface ipv6 set global dhcpmediasense=disabled
Validate the change with:
C:\Users\Administrator> netsh interface ipv4 show global
C:\Users\Administrator> netsh interface ipv6 show global - After installing Windows Server 2003 Service Pack 2 (SP2) or Windows Server 2003 Scalable Networking Pack (SNP), turn off default SNP features. On a computer that has a TCP/IP Offload-enabled network adapter, you may experience many network-related problems like network adapters consuming lots of nonpaged pool memory or adapters requesting large blocks of contiguous memory causing the computer to stop responding when it tries to free the memory. This problem also affects Windows 2008 operating systems. See My Oracle Support Document 988008.1 and Microsoft Knowledge Base Articles KB948496 and KB951037 for details around this issue and instructions on how to take corrective action. Essentially, you can apply this recommendation by issuing the following commands:
C:\Users\Administrator> netsh int tcp set global chimney=disabled
C:\Users\Administrator> netsh int tcp set global rss=disabled
Validate these changes with:
C:\Users\Administrator> netsh interface tcp show global
- Do not use the names: PUBLIC and PRIVATE (all caps) for your public and interconnect networks (NICs) due to unpublished Bug 6844099. The words public and private themselves may be used, for example: Public and Private are acceptable.
- Please note that IPv6 addressing is currently not (yet) supported with RAC. For more information, reference: http://www.oracle.com/technetwork/database/enterprise-edition/oracledatabaseipv6sod-2141330.pdf
-
Network interface names in 'Network Connections' (under Control Panel\All Control Panel Items\Network Connections) must match 'name' as indicated by 'Ethernet adapter
' in the ipconfig /all output.
- Note that there is currently no plan to enable the (11.2 or 12.1) Redundant Interconnect Usage feature and HAIPs on Windows.
- For 11.2, the Oracle ARP protocol driver is not installed during Oracle Grid Infrastructure Installation. Install the oraarpdrv post-GI installation as per Oracle? Database Release Notes 11g Release 2 (11.2) for Microsoft Windows.
Storage Considerations
-
It is strongly advised to bring the entire Oracle software stack down in order to complete all disk virus scans for conventional Fat 16/32/NTFFS as well as OCFS file systems. This is because Oracle and the virus scan software use different types of locking which are not compatible. Hence a shared disk for the database configured with OCFS could have 2 nodes virus scanning at the same time and could potentially cause the cluster to crash. We strongly suggest that you virus scan only from one node and only during maintenance windows. OCFS disks that only contain Oracle database datafiles do not need to be virus scanned. OCFS disks that contain any non-database datafiles or database configuration files should be scanned periodically (with the entire Oracle stack down).
- Desupport of the Oracle Cluster File System (OCFS) on Windows is final with Oracle Database 12. Customers currently using OCFS on Windows to host either the Oracle cluster files (Oracle Cluster Registry - OCR - and Voting Files) or database files or both will need to migrate these files off OCFS prior to upgrading to Oracle Database 12. See My Oracle Support Document 1392280.1 for more details.
Hardware/Vendor Specific Considerations
- Ensure minimum BIOS version 2.35.3.3 is used for SUN V40Z DUAL CORE machines, for ECC memory checking.
- Ensure SUN V40Z 2.6V memory management voltage regulator issues. A SUN CE can identify if the voltage regulator is beginning to fail. The new VRM (Voltage Regulator Module) revision board from rev 1.0 to rev 2.0.
Oracle Software Considerations
The Software Considerations in this section are specific to the Windows Platform. That said, it is highly recommended that the Platform Independent Best Practices found in Document 810394.1 be reviewed in addition to the content below.
Installation and Upgrade and Patching
- While ORACLE_HOME should never be set as a system environment variable for any Oracle on Windows environment, in particular do not set ORACLE_HOME set (to any value) during an upgrade will cause many and diverse issues.
- Read through the Release Notes before beginning any 11gR2 Grid Infrastructure installation. In particular, be sure to install the Oracle ARP Protocol Driver. Reference: http://docs.oracle.com/cd/E11882_01/relnotes.112/e23557/toc.htm#CJAHFJGC. Note that the Oracle ARP Protocol Driver should be re-installed following a Grid Infrastructure upgrade (such as from 11.2.0.2 to 11.2.0.3).
- Install both Grid Infrastructure software and RDBMS software under 'generic' usernames. Note that elimination of a software owner username will require a reinstall of Oracle software.
- Prevent installation failures by disabling the Windows Firewall prior to installation of Oracle, this applies to all Oracle versions. See the OS Configuration Considerations section within this note for details.
- Prevent installation failures by disabling Anti-Virus software prior to installation of Oracle, this applies to all Oracle versions. See the OS Configuration Considerations section within this note for details.
- Prevent installation, upgrade, and patching failures by stopping 'Distributed Transaction Coordinator' (MSDTC) on each node prior to installation or upgrade or patching.
- Prevent patching failures by stopping and disabling 'Windows Management Instrumentation' (WMI) services on each node.
- Prepare for resolution of potential locked file issues by downloading 'Process Explorer' from Microsoft's sysinternals website prior to installation or patching.
General
- Be sure that the latest windows bundle patch has been applied to ensure optimal performance and stability of the system. This applies to ALL Oracle releases. The latest available patch bundles can be found in Document 161549.1.
- Note that as a normal function of our Oracle Clusterware / Grid Infrastructure, OraFenceService is designed to fence (I/O) and reboot a node if it perceives that that node is 'hung' once its configured timeout has been reached. The default timeout for the OraFence driver is a (very low) 5 seconds. What this means is that if the OraFence driver detects what it perceives to be a hang at the operating system level and that hang persists beyond 5 seconds, it's possible that the OraFence driver - of its own accord - will fence and evict the node. It is advisable in some cases to increase the OraFence timeout value as high as 10 seconds in some cases. The OraFence timeout is controlled by the following Windows registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OraFenceService\Timeout. Note that modification of the OraFenceService timeout value requires restarting Oracle Clusterware (at minimum) or a node reboot (if preferred).
ReferencesNOTE:811271.1 - RAC and Oracle Clusterware Best Practices and Starter Kit (Windows)NOTE:811293.1 - RAC and Oracle Clusterware Best Practices and Starter Kit (AIX) NOTE:811303.1 - RAC and Oracle Clusterware Best Practices and Starter Kit (HP-UX) NOTE:811280.1 - RAC and Oracle Clusterware Best Practices and Starter Kit (Solaris) NOTE:810394.1 - RAC and Oracle Clusterware Best Practices and Starter Kit (Platform Independent) NOTE:988008.1 - RAC on Windows: Recurring Instance and/or Node Evictions May Be Caused by Default SNP Features Available for Windows Server 2003 SP2 and 2008 NOTE:811306.1 - RAC and Oracle Clusterware Best Practices and Starter Kit (Linux) NOTE:437101.1 - EXCESSIVE LMS AND LMD TRACE FILE SIZES GENERATED ON WINDOWS RAC NOTE:1392280.1 - Desupport of Oracle Cluster File System (OCFS) on Windows with Oracle Database 12 NOTE:744125.1 - Windows: Connections Fail with ORA-12640 or ORA-21561 BUG:13360724 - ENH: RAC ON WINDOWS: W32TIME REQUIREMENTS FOR ORACLE GRID INFRASTRUCTURE NOTE:969581.1 - How to Set or Switch Oracle Homes on Windows |
|
- RACGuides_12cR1_Windows(1.42 MB)
- RACGuides_Rac10gR2OnWindows.pdf(9.58 MB)
- RACGuides_Rac11gR1OnWindows.pdf(11.19 MB)
- Rac11gR2OnWindows.pdf(2 MB)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1326291/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RAC and Oracle Clusterware Best Practices and Starter Kit (Solaris)_811280.1Oracle
- RAC Assurance Support Team: RAC and Oracle Clusterware Starter Kit and Best Practices (Generic)Oracle
- RAC and Oracle Clusterware Best Practices and Starter Kit (AIX)_811293.1OracleAI
- RAC Assurance Support Team: RAC and Oracle Clusterware Starter Kit and Best Practices (Generic) [IDOracle
- RAC and Oracle Clusterware Best Practices and Starter Kit (Linux)_811306.1OracleLinux
- RAC and Oracle Clusterware Best Practices and Starter Kit (HP-UX)_811303.1OracleUX
- RAC and Oracle Clusterware and Starter Kit (Platform Independent)-810394.1OraclePlatform
- ORACLE RAC clusterwareOracle
- Mobile Web Best Practices 1.0Web
- Best Practices and Recommendations for RAC databases with SGA size over 100GBDatabase
- Data Guard Switchover and Failover Best PracticesAI
- 轉享:Architecting for the Cloud: Best PracticesCloud
- Best Practices for Speeding up Your Web SiteWeb
- 微軟推出Microsoft Exchange Server Best Practices Analyzer Tool微軟ROSServer
- React Starter Kit 中文文件React
- java單元測試:unit testing best practicesJava
- 【RAC】Oracle Clusterware 診斷收集指令碼Oracle指令碼
- Best Practices for failover during server failures [ID 1323472.1]AIServer
- Oracle 12.2 RAC on Linux Best Practice DocumentationOracleLinux
- 升級oracle 10g clusterware 和 racOracle 10g
- ORACLE 11G RAC--CLUSTERWARE工具集1Oracle
- Microsoft® SQL Server® 2008 R2 Best Practices AnalyzerROSSQLServer
- Master Note for RAC Oracle Clusterware and Oracle Grid Infrastructure 1096952.ASTOracleStruct
- Information Center: Oracle Scalability GI/Clusterware and RAC_1452965.2ORMOracle
- 補接_oracle rac_node addition and deletion for clusterware or softwareOracle
- oracle clusterwareOracle
- OPatch/Patch Questions/Issues for Oracle Clusterware/ RAC Environments_1339140.1Oracle
- 新增節點oracle10g rac(rhel4)_clusterwareOracle
- Oracle10g RAC clusterware split-brain - 腦裂OracleAI
- Oracle 10gR2 RAC Clusterware ONS服務的管理Oracle 10g
- Oracle RAC/Clusterware 多種心跳heartbeat機制介紹 RAC超時機制分析Oracle
- Oracle RAC實現--Oracle Clusterware, RAC認證第三方認證軟體HACMP,SUN cluster,HPclusterOracleACM
- Oracle RAC實現--Oracle Clusterware, RAC認證第三方認證軟體HACMP,SUN cluster,HPclOracleACM
- ASP.NET Jumpstart:Media Share Library Starter Kit 簡介ASP.NET
- Oracle Clusterware的心跳Oracle
- Oracle Clusterware工具集Oracle
- Oracle Clusterware and Oracle Grid InfrastructureOracleASTStruct
- RAC 和 Oracle Clusterware 最佳實踐和初學者指南 (AIX)1526555.1OracleAI