Académique Documents
Professionnel Documents
Culture Documents
Revisions
Date
Description
January 2014
Initial release
THIS WHITE PAPER IS FOR INFORMATIONAL PURPOSES ONLY, AND MAY CONTAIN TYPOGRAPHICAL ERRORS AND
TECHNICAL INACCURACIES. THE CONTENT IS PROVIDED AS IS, WITHOUT EXPRESS OR IMPLIED WARRANTIES OF
ANY KIND.
2014 Dell Inc. All rights reserved. Reproduction of this material in any manner whatsoever without the express
written permission of Dell Inc. is strictly forbidden. For more information, contact Dell.
PRODUCT WARRANTIES APPLICABLE TO THE DELL PRODUCTS DESCRIBED IN THIS DOCUMENT MAY BE FOUND
AT: http://www.dell.com/learn/us/en/19/terms-of-sale-commercial-and-public-sector Performance of network
reference architectures discussed in this document may vary with differing deployment conditions, network loads, and
the like. Third party products may be included in reference architectures for the convenience of the reader. Inclusion
of such third party products does not necessarily constitute Dells recommendation of those products. Please consult
your Dell representative for additional information.
Trademarks used in this text:
Dell, the Dell logo, Dell Boomi, Dell Precision ,OptiPlex, Latitude, PowerEdge, PowerVault,
PowerConnect, OpenManage, EqualLogic, Compellent, KACE, FlexAddress, Force10 and Vostro are
trademarks of Dell Inc. Other Dell trademarks may be used in this document. Cisco Nexus, Cisco MDS , Cisco NX
0S , and other Cisco Catalyst are registered trademarks of Cisco System Inc. EMC VNX , and EMC Unisphere are
registered trademarks of EMC Corporation. Intel , Pentium , Xeon , Core and Celeron are registered trademarks of
Intel Corporation in the U.S. and other countries. AMD is a registered trademark and AMD Opteron, AMD
Phenom and AMD Sempron are trademarks of Advanced Micro Devices, Inc. Microsoft , Windows , Windows
Server , Internet Explorer , MS-DOS , Windows Vista and Active Directory are either trademarks or registered
trademarks of Microsoft Corporation in the United States and/or other countries. Red Hat and Red Hat Enterprise
Linux are registered trademarks of Red Hat, Inc. in the United States and/or other countries. Novell and SUSE are
registered trademarks of Novell Inc. in the United States and other countries. Oracle is a registered trademark of
Oracle Corporation and/or its affiliates. Citrix , Xen , XenServer and XenMotion are either registered trademarks or
trademarks of Citrix Systems, Inc. in the United States and/or other countries. VMware , Virtual SMP , vMotion ,
vCenter and vSphere are registered trademarks or trademarks of VMware, Inc. in the United States or other
countries. IBM is a registered trademark of International Business Machines Corporation. Broadcom and
NetXtreme are registered trademarks of Broadcom Corporation. Qlogic is a registered trademark of QLogic
Corporation. Other trademarks and trade names may be used in this document to refer to either the entities claiming
the marks and/or names or their products and are the property of their respective owners. Dell disclaims proprietary
interest in the marks and names of others.
Oracle Database 12c Best Practices for Dell Compellent Storage Center
Table of contents
Revisions ............................................................................................................................................................................................. 2
1
Preface ......................................................................................................................................................................................... 4
1.1
Audience ........................................................................................................................................................................... 4
1.2
Introduction ................................................................................................................................................................................ 5
5.1
5.2
6.2
6.3
6.4
6.5
6.6
Database setup and configuration direct I/O and async I/O ............................................................................ 15
6.7
7.2
10 Conclusion ................................................................................................................................................................................ 22
A
Additional resources................................................................................................................................................................ 23
A.1
A.2
A.3
Oracle Database 12c Best Practices for Dell Compellent Storage Center
Preface
This document reviews Dell Compellent features and key considerations of using Oracle databases on Dell
Compellent Storage Center. It should not be considered a how-to or a comprehensive user guide, but a
best practices guide that should be adjusted for each environment. For detailed information on Oracle
configuration, use the information provided in Oracle documentation and at My Oracle Support
(http://support.oracle.com). For additional information, see the references at the end of this document.
1.1
Audience
The intended audience for this document is database administrators (DBAs), system administrators and
storage administrators that need to understand best practices for using Oracle on Dell Compellent Storage
Center. Readers should be familiar with Dell Compellent Storage Center and have prior experience in
configuring and operating the following:
1.2
Oracle Architecture
Oracle 10g, 11g, and 12c databases
Real Application Clusters (RAC) or Single Instance
Oracle Automated Storage Management (ASM)
General understanding of SAN technologies
OS platform architecture
OS administration
Customer support
Dell Compellent provides live support 1-866-EZSTORE (866.397.8673), 24 hours a day, 7 days a week, and
365 days a year. For additional support, email Dell Compellent at support@compellent.com. Dell
Compellent responds to emails during normal business hours.
Oracle Database 12c Best Practices for Dell Compellent Storage Center
Introduction
When designing the physical layer of a database, DBAs must consider many server and storage
configuration options. The solution must facilitate high performance I/O and it must also protect against
failure of hardware, such as disks, host bus adapters (HBAs), and fabric switches. The strains of a growing
and ever changing workload imposed on the storage solution require the server and storage configuration
to be dynamic. These same strains also create additional work for storage administrators and require them
to be much more responsive to the needs of the business. Automating storage related tasks reduces the
risk of human error, and allows DBAs to concentrate on other business critical database administration
functions and services.
Oracle Database 12c Best Practices for Dell Compellent Storage Center
Oracle Database 12c Best Practices for Dell Compellent Storage Center
Consistency group
The Dell Compellent consistency group feature allows storage administrators to take a usable snapshot of
an Oracle database, which then can be used for database cloning or offloading RMAN or user-managed
backups to a dedicated server. A consistency group, in part, guarantees the atomicity of the database if all
the volumes (LUNS) that make up the database are members of the consistency group, and the database is
placed in BEGIN BACKUP mode when the snapshot is made. Without the combined use of a consistency
group in Storage Center and placing the database in BEGIN BACKUP mode, a usable snapshot of a running
database cannot be made. Once the replay is made, the database can be taken out of BEGIN BACKUP
mode. A database can not span multiple consistency groups and, a consistency group are currently limited
to 40 LUNs.
The consistency group feature does not exist in Storage Center 4.x or earlier. Therefore, when using
snapshots in Storage Center 4.x or earlier, all Oracle online redo logs, control files, and database files must
exist on the same volume, and the database must be placed in BEGIN BACKUP mode to guarantee
database atomicity within the snapshot. This implies that multiplexing online redo logs and control files
across volumes is not allowed if snapshots are implemented. If the Storage Center is on 5.x code or
higher, then there is no restriction on placement of multiplexed online redo logs, multiplexed control files,
or database files as long as all database volumes are members of the same consistency group and the
database is placed in BEGIN BACKUP mode.
Oracle Database 12c Best Practices for Dell Compellent Storage Center
Figure 1
Consistency group
Here is an example showing a consistency group named MT_ASM_clone, and its volumes, which are ASM
disks.
Oracle Database 12c Best Practices for Dell Compellent Storage Center
Figure 2
Oracle Database 12c Best Practices for Dell Compellent Storage Center
RAID5/FC/
SAS 15K
rpm
RAID5/FC/
SAS 15K
rpm
RAID5/FC/
SAS 10K
rpm
Recommend
ed (W)
OK (W)
DP
DP
DP
Recommended
(W)
OK (W)
OK (W)
Not
required
Not
required
Not
required
Recommended
(W)
OK (W)
OK (W)
Avoid
Avoid
Avoid
Archived
redo logs
Recommend
ed (W)
OK (W)
Not
required
Not
required
DP
Flashback
Recommend
ed (W)
OK (W)
Not
required
Not
required
DP
OCR files /
Voting Disks
Recommend
ed (W)
OK (W)
Avoid
Avoid
Avoid
Description
RAID10 SSD
Data files
OK (W)
Control files
Online redo
logs
RAID10/FC/
SAS 15K rpm
Abbreviations:
1. W Writes
2. DP Data Progression
a. If Fast Track is licensed, then it is enabled by default and will be utilized behind the scenes. No
manual configuration is required.
b. Drives with higher RPM provide higher overall random-access throughput and shorter
response times than drives with lower RPM.
c. Because of better performance, SAS or Fibre Channel drives with 15K rpm are always
recommended for storing Oracle datafiles and online redo logs.
d. Serial ATA and lower cost Fibre Channel drives have slower rotational speed and therefore
recommended for Oracle archived redo logs and flashback recovery area with Data
Progression.
10
Oracle Database 12c Best Practices for Dell Compellent Storage Center
5.1
Dell Compellent provides an additional solution with SSDs in a new storage solution, the flash-optimized
array. This solution delivers SSD storage in an innovative way, and delivers flash performance at spinning
media price.
For additional information on using the flash-optimized array in an Oracle OLTP environment, see
Accelerating Oracle OLTP with Compellent Flash Optimized Array, which discusses a reference
architecture that delivers all flash array at the price of 15K SAS spinning media.
5.2
11
Oracle Database 12c Best Practices for Dell Compellent Storage Center
6.1
Figure 3
12
Oracle Database 12c Best Practices for Dell Compellent Storage Center
6.2
Figure 4
6.3
13
Oracle Database 12c Best Practices for Dell Compellent Storage Center
Figure 5
6.4
6.5
File system
Dell Compellent Storage Center supports various file systems and raw devices, such as:
JFS & JFS2
UFS
14
Oracle Database 12c Best Practices for Dell Compellent Storage Center
6.6
VxFS
EXT2 & 3 & 4
ReiserFS
NTFS
OCFS
6.7
Based on a small workload OLTP database, create one volume for the Oracle database files, one volume
for the Oracle online redo logs, and one volume for the Oracle archived redo logs in addition to other
volumes such as Oracle binaries and any non-Oracle related data.
When creating volumes for the Oracle database server, software striping at the OS level is unnecessary.
The data in the Dell Compellent volume is automatically striped depending on which RAID level has been
selected for the volume. For a larger workload database, create multiple LUNs. If ASM is not used, use OS
striping mechanism (e.g. LVM, VxVM) to get better performance because of multiple disk queues at the OS
level.
For a more complex database, create multiple volumes dedicated to data files, assuming data tablespaces
have been separated from index tablespaces.
Refer to the operating system manual on how to mount these volumes with direct I/O and async I/O
options. This will enhance database performance. Also remember to set the filesystemio_options to
setall or DirectIO in the database initialization parameter file.
15
Oracle Database 12c Best Practices for Dell Compellent Storage Center
When creating volumes for a database, it is recommended to initially create the volumes (datafiles,
archived redo logs, and flash recovery area) larger than needed for future database growth. Since Dell
Compellent Storage Center has the ability to thinly and dynamically provision storage, disk space is not
taken up until actual data has been written to it. Tablespaces can be created with the AUTOEXTEND
parameter so space is only used when needed.
16
Oracle Database 12c Best Practices for Dell Compellent Storage Center
If export and import are used frequently, create a separate volume dedicated for the export dump files.
In order to use Data Progression effectively, Data Instant Replay must be used whether or not backup and
recovery is required. For Data Progression to work effectively, a replay (snapshot) should be taken at least
once a week on all volumes. The next section details the recommended Data Progression setting for
Oracle database volumes.
17
Oracle Database 12c Best Practices for Dell Compellent Storage Center
7.1
SSD configuration
In an SSD configuration, SSD becomes Tier 1, 15K and 10K RPM disks become Tier 2, and SATA becomes
Tier 3.
Table 2
Writeable Data
Replay Data
R10
N/A
R5/5
N/A
N/A
R5/9
N/A
N/A
RAID
Writeable Data
Replay Data
R10
Datafiles
Archived logs
FRA disk group
OCR & Voting disks
N/A
R5/5
N/A
Datafiles
R5/9
N/A
Datafiles
RAID
Writeable Data
Replay Data
R10
N/A
N/A
R5/5
N/A
Archived logs
FRA disk group
R5/9
N/A
Archived logs
FRA disk group
R6
N/A
(900GB+ drives)
Archived logs
FRA disk group
Tier 1
SSD
Tier 2
15K/10K
FC/SAS
Tier 3
15K/10K
FC/SAS
18
Oracle Database 12c Best Practices for Dell Compellent Storage Center
7.2
Non-SSD configuration
In a non-SSD configuration, 15K rpm disks will be in Tier 1, 10K rpm disks will become Tier 2, and SATA is
still Tier 3.
Table 3
Writeable Data
Replay Data
R10
Datafiles
Archived logs
FRA disk group
OCR and Voting disks
N/A
R5/5
N/A
Datafiles
R5/9
N/A
Datafiles
RAID
Writeable Data
Replay Data
R10
N/A
R5/5
N/A
Datafiles
R5/9
N/A
Datafiles
RAID
Writeable Data
Replay Data
R10
N/A
N/A
R5/5
N/A
Archived logs
FRA disk group
R5/9
N/A
Archived logs
FRA disk group
R6
(900GB+
drives)
N/A
Archived logs
FRA disk group
Tier 1
15K FC/SAS
Tier 2
10K
FC/SAS
Tier 3
SATA
When not using SSD, for optimal database performance create volumes with the following:
19
Oracle Database 12c Best Practices for Dell Compellent Storage Center
Public IP
Network
DELL Compellent
Storage Center
Private IP
Network
Interconnect
switch
Private IP
Network
Public IP
Network
FC Switch
Node 2
Figure 6
Table 4
Network configuration
Description
CRS Setting
1 or switch A
Client Network
Public
2 or switch B
RAC Interconnect
Private
If possible, configure jumbo frames for private network. If configuring jumbo frames is not possible,
configure the interconnect network with at least a 1 Gpbs link.
Note: When configuring jumbo frames, configure on all legs of the RAC interconnect network (for
example, servers and switches)
20
Oracle Database 12c Best Practices for Dell Compellent Storage Center
21
Benefit
Details
Greater manageability
Simplified RAC
Implementation
Dell Compellent
Information Life Cycle
(ILM) benefits
Oracle Database 12c Best Practices for Dell Compellent Storage Center
10
Conclusion
Coupling Dell Compellent Storage Virtualization and Dynamic Block Architecture with Oracle best
practices, where the data files should be spread across as many spindles as possible, makes Storage
Center a very robust and scalable SAN solution for Oracle databases. Having the ability and granularity of
looking at each individual block gives Compellent the advantage in ensuring that data is always spread
evenly across all spindles at all times without requiring the DBA or storage administrators to continually
revisit or dedicate certain spindles of the storage subsystem to maintain performance of the database.
Benefits include dramatically reducing the time and effort required for capacity planning and volume
management. Traditional systems are prone to hot spots because there are very few drives allocated to a
specific volume for that server. Spreading the access across multiple drives eliminates these hot spots and
increases performance. With Dell Compellent, volumes are easily created and performance is optimized
with all the drives acting together.
22
Oracle Database 12c Best Practices for Dell Compellent Storage Center
Additional resources
A.1
23
Oracle Database 12c Best Practices for Dell Compellent Storage Center
/dev/raw/test1
/dev/raw/test2
/dev/raw/test3
/dev/raw/test4
IMPORTANT: Tests which include a write component can destroy data. Never include a volume that
contains important data in this list, rather create new volumes for testing purposes. Verify that connectivity
exists to the test volumes.
As the ORION test is dependent on asynchronous I/O, ensure that the platform is capable of
asynchronous I/O. With Windows this capability is built in, but in Linux or Solaris the library libaio needs to
be in one of the standard lib directories, on the environment's library path. From the command line,
navigate to the directory which holds the ORION application and run the test. There are 3 mandatory
parameters: run, testname, and num_disks, where:
Table 6
-run
-testname
The unique name of the test run, change each run or output files get
overwritten.
-num_disks
So a minimalistic test run on volumes(s) comprising 5 physical disks would look like this:
orion run simple testname iotest num_disks 5
Orion will responed similar to this:
ORION: ORacle IO Numbers -- Version x.x.x.x.x
Test will take approximately xx minutes
Larger caches may take longer
When compete, the results output to files prefixed with a unique test run name. For example:
24
Oracle Database 12c Best Practices for Dell Compellent Storage Center
Table 7
Description
iotest_summary.txt
iotest_mbps.csv
iotest_iops.csv
iotest_lat.csv
iotest_tradeoff.csv
iotest_trace.txt
The .txt files are text files with summary data and unprocessed data, respectively. The summary text file is
useful, providing the maximum value for each I/O type, allowing one to a best case scenario for
performance expectations.
The .csv files are a list of comma-separated values that can be loaded into MS Excel, or another database
application then converted into a graph for easier evolution of results.
An ORION test can be tailored more closely to the environmental variables by using the advanced
designator with the run command. Here are some of the options available:
Table 8
-size_small
-size_large
-type
-num_streamIO
-simulate
25
Oracle Database 12c Best Practices for Dell Compellent Storage Center
-stripe
-write
-cache_size
-duration
-matrix
-num_small
-num_large
-verbose
26
Oracle Database 12c Best Practices for Dell Compellent Storage Center
Again, the ORION tool is meant to be used to test a pre-production environment, prior to installing Oracle
and does not require that Oracle or a database be in place at the time of testing. Also, ORION tests writes
as well as reads, so caution should be used because the data residing on the volumes will be destroyed.
A more detailed description of the use of ORION can be accessed from within ORION, using the following
command:
orion -help
Also, an excellent introduction to ORION can be found on Oracles website:
http://docs.oracle.com/cd/E11882_01/server.112/e16638/iodesign.htm#BABFCFBC
A.2
A.3
27
Oracle Database 12c Best Practices for Dell Compellent Storage Center
support.dell.com is focused on meeting customer needs with proven services and support.
DellTechCenter.com is an IT Community allowing communication with Dell Customers and Dell
employees for the purpose of sharing knowledge, best practices, and information about Dell products
and installations.
28
Oracle Database 12c Best Practices for Dell Compellent Storage Center