Professional Documents
Culture Documents
Eric Barrett Technical Global Advisor Bikash R. Choudhury Technical Global Advisor Bruce Clarke Consulting Systems Engineer Blaine McFadden Technical Marketing Tushar Patel Technical Marketing Ed Hsu Systems Engineer Christopher Slater Database Consulting Systems Engineer Michael Tatum Database Consulting Systems Engineer
Table of Contents
1. Introduction .......................................................................................................................................................... 5 2. NetApp System Configuration ............................................................................................................................. 5 2.1. Appliance Network Settings .......................................................................................................................... 5 2.1.1. EthernetGigabit Ethernet, Autonegotiation, and Full Duplex.................................................................. 5 2.2. Volume, Aggregate Setup and Options......................................................................................................... 6 2.2.1. Databases .................................................................................................................................................. 6 2.2.2. Aggregates and FlexVol Volumes or Traditional Volumes ........................................................................ 6 2.2.3 Volume Size ................................................................................................................................................ 6 2.2.4 Recommended Volumes for Oracle Database Files and Logfiles .............................................................. 6 2.2.5. Oracle Optimal Flexible Architecture (OFA) on NetApp Storage............................................................... 7 2.2.6. Oracle Home Location:............................................................................................................................... 8 2.2.7. Best Practices for Control and Log Files.................................................................................................... 9 2.3. RAID Group Size......................................................................................................................................... 10 2.3.1 Traditional RAID ........................................................................................................................................ 10 2.3.2 RAID-DP.................................................................................................................................................... 10 2.4. Snapshot and SnapRestore ..................................................................................................................... 10 2.5. Snap Reserve.............................................................................................................................................. 11 2.6. System Options ........................................................................................................................................... 11 2.6.1. The minra Option...................................................................................................................................... 11 2.6.2. File Access Time Update ......................................................................................................................... 11 2.6.3. NFS Settings ............................................................................................................................................ 12 3. Operating Systems ............................................................................................................................................ 12 3.1. Linux ............................................................................................................................................................ 12 3.1.1. LinuxRecommended Versions.............................................................................................................. 12 3.1.2. LinuxKernel Patches............................................................................................................................. 13 3.1.3. LinuxOS Settings .................................................................................................................................. 13 3.1.4. Linux NetworkingFull Duplex and Autonegotiation............................................................................... 14 3.1.5. Linux NetworkingGigabit Ethernet Network Adapters .......................................................................... 14 3.1.6. Linux NetworkingJumbo Frames with GbE .......................................................................................... 14 3.1.7. Linux NFS ProtocolMount Options ....................................................................................................... 15
3.1.8. iSCSI Initiators for Linux........................................................................................................................... 15 3.1.9. FCP SAN Initiators for Linux .................................................................................................................... 15 3.2. Sun Solaris Operating Systems............................................................................................................... 15 3.2.1. SolarisRecommended Versions ........................................................................................................... 15 3.2.2. SolarisKernel Patches .......................................................................................................................... 15 3.2.3. SolarisOS Settings................................................................................................................................ 16 3.2.4. Solaris NetworkingFull Duplex and Autonegotiation ............................................................................ 17 3.2.5. Solaris NetworkingGigabit Ethernet Network Adapters........................................................................ 17 3.2.6. Solaris NetworkingJumbo Frames with GbE........................................................................................ 18 3.2.7. Solaris NetworkingImproving Network Performance............................................................................ 18 3.2.8. Solaris IP Multipathing (IPMP) ................................................................................................................. 19 3.2.9. Solaris NFS ProtocolMount Options..................................................................................................... 20 3.2.10. iSCSI Initiators for Solaris ...................................................................................................................... 22 3.2.11. Fibre Channel SAN for Solaris ............................................................................................................... 22 3.3. Microsoft Windows Operating Systems.................................................................................................... 22 3.3.1. Windows Operating SystemRecommended Versions ......................................................................... 22 3.3.2. Windows Operating SystemService Packs .......................................................................................... 22 3.3.3. Windows Operating SystemRegistry Settings...................................................................................... 22 3.3.4. Windows NetworkingAutonegotiation and Full Duplex......................................................................... 23 3.3.5. Windows NetworkingGigabit Ethernet Network Adapters .................................................................... 23 3.3.6. Windows NetworkingJumbo Frames with GbE .................................................................................... 23 3.3.7. iSCSI Initiators for Windows..................................................................................................................... 24 3.3.8. FCP SAN Initiators for Windows .............................................................................................................. 24 4. Oracle Database Settings .................................................................................................................................. 24 4.1. DISK_ASYNCH_IO ..................................................................................................................................... 24 4.2. DB_FILE_MULTIBLOCK_READ_COUNT.................................................................................................. 24 4.3. DB_BLOCK_SIZE ....................................................................................................................................... 25 4.4. DBWR_IO_SLAVES and DB_WRITER_PROCESSES ............................................................................. 25 4.5. DB_BLOCK_LRU_LATCHES ..................................................................................................................... 25 5. Backup, Restore, and Disaster Recovery.......................................................................................................... 25 5.1. How to Back Up Data from a NetApp System ............................................................................................ 26
5.2. Creating Online Backups Using Snapshot Copies...................................................................................... 26 5.3. Recovering Individual Files from a Snapshot Copy .................................................................................... 27 5.4. Recovering Data Using SnapRestore ......................................................................................................... 27 5.5. Consolidating Backups with SnapMirror ..................................................................................................... 27 5.6. Creating a Disaster Recovery Site with SnapMirror.................................................................................... 27 5.7. Creating Nearline Backups with SnapVault ................................................................................................ 28 5.8. NDMP and Native Tape Backup and Recovery.......................................................................................... 28 5.9. Using Tape Devices with NetApp Systems................................................................................................. 28 5.10. Supported Third-Party Backup Tools ........................................................................................................ 28 5.11. Backup and Recovery Best Practices ....................................................................................................... 29 5.11.1. SnapVault and Database Backups ........................................................................................................ 29 5.12. SnapManager for Oracle - Backup and Recovery Best Practices ............................................................ 32 5.12.1 SnapManager for Oracle ASM based backup and restore .................................................................. 33 5.12.2 SnapManager for Oracle RMAN based backup and restore ............................................................... 33 5.12.3 SnapManager for Oracle Cloning......................................................................................................... 33 References............................................................................................................................................................. 33 Revision History ..................................................................................................................................................... 35
1. Introduction
Thousands of Network Appliance (NetApp) customers have successfully deployed Oracle Databases on NetApp filers for their mission- and business-critical applications. NetApp and Oracle have worked over the past several years to validate Oracle products on NetApp filers and a range of server platforms. NetApp and Oracle support have established a joint escalations team that works hand in hand to resolve customer support issues in a timely manner. In the process, the team discovered that most escalations are due to failure to follow the best established practices when deploying Oracle Databases with NetApp filers. This document describes best practices guidelines for running Oracle Databases on NetApp storage systems with system platforms such as Solaris, HP/UX, AIX, Linux, and Windows. This document reflects the work done by NetApp, Oracle and by NetApp engineers at various joint customer sites. This document should be treated as a starting reference point and is the bare minimum requirements for deployment of Oracle on NetApp. This guide assumes a basic understanding of the technology and operation of NetApp products and presents options and recommendations for planning, deployment, and operation of NetApp products to maximize their effective use.
If the output of the ifstat a command does not show full flow control, then the switch port will also have to be configured to support it. (The ifconfig command on the filer will always show the requested setting; ifstat shows what flow control was actually negotiated with the switch.)
Flexible Volumes and Aggregates Database binaries Database config files Transaction log files Archive logs Data files Temporary datafiles Cluster related files Dedicated FlexVol volume Dedicated FlexVol volume Dedicated FlexVol volume Dedicated FlexVol volume Dedicated FlexVol volume Dedicated FlexVol volume Dedicated FlexVol volume Do not make Snapshot copies of this volume Multiplex with transaction logs Multiplex with config files Use SnapMirror
Traditional Volumes For traditional volumes, we generally recommend that you create one volume each for datafiles and logs. Create an additional volume if ORACLE_HOME will reside on the storage system.
For more information about Oracle OFA for RAC or Non-RAC and Oracle9i vs. Oracle10g, visit the following links: OFA for Non-RAC: http://download-west.oracle.com/docs/html/B14399_01/app_ofa.htm#i633126 For RAC, OFA for ORACLE_HOME changes as: http://download-west.oracle.com/docs/cd/B19306_01/install.102/b14203/apa.htm#CHDCDGFE
ORACLE_BASE ORACLE_HOME (home1) /DBS /LOG /Admin ORACLE_HOME (home2) /DBS /LOG /Admin
Description Oracle libraries and binaries Oracle database files Oracle redo archive logs Oracle CRS HOME Oracle CRS HOME
Location Local filesystem or storage system NFS mount on storage subsystem NFS mount on storage subsystem NFS mount on storage subsystem NFS mount on storage subsystem
Database files
/u02/oradata
Log Files
/u03/oradata
/u01/app/oracle/product/10.1.0/crs_1