Documente Academic
Documente Profesional
Documente Cultură
Administration Workshop
Student Guide
D67016GC20
Edition 2.0
January 2011
D71669
Authors Copyright © 2010, Oracle and/or it affiliates. All
rights reserved.
Peter Fusek
Disclaimer
Jean-Francois Verrier
Mark Fuller This document contains proprietary information and is
protected by copyright and other intellectual property
Dave Winter laws. You may copy and print this document solely for
your own use in an Oracle training course. The
document may not be modified or altered in any way.
Technical Contributors Except where your use constitutes "fair use" under
and Reviewers copyright law, you may not use, share, download,
upload, copy, print, display, perform, reproduce, publish,
Andrew Babb Sue Lee license, post, transmit, or distribute this document in
whole or in part without the express authorization of
Bharat Baddepudi Juan Loaiza
Oracle.
Maria Billings Barb Lundhild
The information contained in this document is subject to
Robert Carlin Varun Malhotra change without notice. If you find any problems in the
Michael Cebulla Louis Nagode document, please report them in writing to: Oracle
University, 500 Oracle Parkway, Redwood Shores,
Nilesh Choudhury Dan Norris California 94065 USA. This document is not warranted
Christian Craft Michael Nowak to be error-free.
David Hitchcock Sundararaman Sridharan Oracle and Java are registered trademarks of Oracle
Bill Hodak Vijay Sridharan and/or its affiliates. Other names may be trademarks of
their respective owners.
Vimala Jacob Mahesh Subramaniam
Martin Jensen Lawrence To
Kevin Jernigan Alex Tsukerman
Caroline Johnston Kodi Umamageswaran
Larry Justice Douglas Utzig
Vikram Kapoor Harald van Breederode
Bruce Kyro Mark Van de Wiel
Sumeet Lahorani Dave Winter
Publishers
Sujatha Nagendra
Giri Venugopal
Contents
1 Introduction
Course Objectives 1-2
Audience and Prerequisites 1-3
Course Scope 1-4
Course Contents 1-5
Terminology 1-6
Additional Resources 1-7
Practice 1 Overview: Introducing the Laboratory Environment 1-8
2 Exadata Overview
Objectives 2-2
Traditional Enterprise Database Storage Deployment 2-3
Exadata Storage Deployment 2-4
Exadata Implementation Architecture Overview 2-6
Introducing Exadata 2-7
Exadata Hardware Details (Sun Fire X4270 M2) 2-8
Exadata Specifications 2-9
InfiniBand Network 2-10
Classic Database I/O and SQL Processing Model 2-11
Exadata Smart Scan Model 2-12
Exadata Smart Storage Capabilities 2-13
Exadata Smart Scan Scale-Out Example 2-16
Exadata Hybrid Columnar Compression 2-19
Exadata Hybrid Columnar Compression Architecture Overview 2-20
Exadata Smart Flash Cache 2-21
Exadata Storage Index 2-23
Storage Index with Partitions Example 2-25
Database File System 2-26
I/O Resource Management 2-27
Benefits Multiply 2-28
Exadata Key Benefits for Data Warehousing 2-29
Exadata Key Benefits for OLTP 2-31
Quiz 2-32
Summary 2-34
iii
Additional Resources 2-35
Practice 2 Overview: Introducing Exadata Features 2-36
3 Exadata Architecture
Objectives 3-2
Exadata Software Architecture Overview 3-3
Exadata Software Architecture Details 3-5
Exadata Smart Flash Cache Architecture 3-7
Exadata Monitoring Architecture 3-9
Disk Storage Entities and Relationships 3-10
Interleaved Grid Disks 3-12
Flash Storage Entities and Relationships 3-13
Disk Group Configuration 3-14
Quiz 3-15
Summary 3-17
Additional Resources 3-18
Practice 3 Overview: Introducing Exadata Cell Architecture 3-19
4 Exadata Configuration
Objectives 4-2
Exadata Installation and Configuration Overview 4-3
Initial Network Preparation 4-4
Configuration of New Exadata Servers 4-6
Answering Questions During the Initial Boot Sequence 4-7
Exadata Administrative User Accounts 4-11
Configuring a New Exadata Cell 4-12
Important I/O Metrics for Oracle Databases 4-13
Testing Performance Using CALIBRATE 4-14
Configuring the Exadata Cell Server Software 4-15
Creating Cell Disks 4-16
Creating Grid Disks 4-17
Creating Flash-Based Grid Disks 4-18
Configuring Hosts to Access Exadata Cells 4-19
Configuring ASM and Database Instances for Exadata 4-20
Configuring ASM Disk Groups for Exadata 4-21
Optional Configuration Tasks 4-22
Exadata Storage Security Overview 4-23
Exadata Storage Security Implementation 4-24
Quiz 4-26
Summary 4-29
iv
Additional Resources 4-30
Practice 4 Overview: Configuring Exadata 4-31
v
Category Plan Example 6-16
Complete Example 6-17
Using Database I/Os Metrics 6-20
Quiz 6-21
Summary 6-25
Additional Resources 6-26
vi
9 Database Machine Configuration
Objectives 9-2
Database Machine Implementation Overview 9-3
Configuration Worksheet Overview 9-5
Getting Started 9-6
Configuration Worksheet Example 9-7
Configuring ASM Disk Groups with Configuration Worksheet 9-11
Generating the Configuration Files 9-13
Other Pre-Installation Tasks 9-14
The Result After Installation and Configuration 9-15
Supported Additional Configuration Activities 9-17
Unsupported Configuration Activities 9-18
Quiz 9-20
Summary 9-22
Additional Resources 9-23
vii
Quiz 11-13
Summary 11-15
Additional Resources 11-16
Practice 11 Overview: Bulk Data Loading with Database Machine 11-17
viii
A New Features in Update Release 11.2.1.3.1
Objectives A-2
New Features Overview A-3
Auto Service Request (ASR) A-4
The ASR Process A-5
ASR Requirements A-6
Oracle Linux 5.5 A-7
Enhanced Operating System Security A-8
Pro-active Disk Quarantine A-9
Other New Features A-10
Summary A-11
ix
I t d ti
Introduction
Course Scope
This course covers two main subject areas:
• The first section introduces students to Exadata Storage Server X2 X2-2
2 (formerly known
as Exadata Storage Server Version 2). Students learn about the architecture and key
capabilities of Exadata along with how to configure, monitor and optimize it.
• The second section introduces students to Oracle Exadata Database Machine. Students
learn about the various Database Machine configurations. The installation and
configuration process is covered so that students are equipped to make appropriate up-
front configuration decisions. They also learn how to maintain, monitor and optimize
Database Machine after initial configuration. Students are introduced to various options
for migrating to Database Machine and learn how to select the best approach.
Although the hardware components of Database Machine are introduced and described to
varying degrees throughout this course, you should consult the hardware documentation for
specific hardware installation and maintenance details.
1. Introduction
2. Exadata Overview
3. Exadata Architecture
4. Exadata Configuration
5. Exadata Monitoring and Maintenance
6. Exadata and I/O Resource Management
7. Optimizing Database Performance with Exadata
8. Database Machine Overview and Architecture
9. Database Machine Configuration
10
10. Migrating Databases to Database Machine
11. Bulk Data Loading with Database Machine
12. Backup and Recovery with Database Machine
13. Database Machine Monitoring and Maintenance
Course Contents
The slide shows the ordering of lessons in this course.
Terminology
The slide indicates the conventions used throughout this course to abbreviate the formal
product names for Exadata Storage Server and Oracle Exadata Database Machine
Machine.
• Demonstrations (Viewlets)
– http://www.oracle.com/technetwork/tutorials/index.html
– Enter the Oracle Learning Library and conduct a search for
content in the Database Machine functional category.
g y Look
out for demonstrations with Exadata and Database Machine
Version 2 Series in the title.
• Oracle Technology Network (OTN) Exadata and Database
Machine Page
– http://www.oracle.com/technetwork/database/exadata/index.
html
• OTN Exadata Discussion Forum
– http://forums.oracle.com/forums/forum.jspa?forumID=829
Storage Arrays
Smart
I/O Resource Management
storage
operations
High performance
storage network
Storage
consolidation
(Transparent to
databases)
Data compression
p
Disk … …
Disk
Introducing Exadata
Exadata is highly optimized for use with Oracle Database. Exadata delivers outstanding I/O
and SQL processing performance for data warehousing and online transaction processing
(OLTP) applications.
Exadata is based on a 64 bit Intel-based Sun Fire server. Oracle provides the storage server
software to impart database intelligence to the storage, and tight integration with Oracle
Database and its features. Each cell is shipped with all the hardware and software
components preinstalled including the Exadata Storage Server Software, Oracle Linux
x86_64 operating system and InfiniBand protocol drivers.
Since March 2010, Exadata is no longer offered as a standalone storage product. Now
Exadata is only available for use in conjunction with Database Machine. Individual Exadata
servers can still be purchased, however they must be connected to Database Machine.
Custom configurations using Exadata are no longer supported for new installations.
Memory 24 GB (6 x 4 GB)
Disk Controller Disk controller HBA with 512 MB battery backed cache
N t
Network
k T InfiniBand
Two I fi iB d 4X QDR (40Gb/
(40Gb/s)) ports
t
(1 dual-port PCIe 2.0 HCA)
Four embedded Gigabit Ethernet ports
Remote Management 1 Ethernet port (ILOM)
HP Disks HC Disks
Exadata Smart Flash Cache1 384 GB 384 GB
Flash I/Os p
per Second (IOPS)
( ) 75,000 75,000
1 - Raw capacity calculated using 1 GB = 1000 x 1000 x 1000 bytes and 1 TB = 1000 x 1000 x 1000 x 1000 bytes.
2 - User Data: Actual space for uncompressed end-user data, computed after single mirroring (ASM normal redundancy)
and after allowing space for database structures such as temporary space, logs, undo space, and indexes. Actual user data
capacity varies by application. User Data capacity calculated using 1 TB = 1024 * 1024 * 1024 * 1024 bytes.
Exadata Specifications
Exadata is available in two configurations: with high performance (HP) disks or with high
capacity (HC) disks.
disks The table in the slide lists the key capacity and performance
specifications for both configuration options.
Note: MBPS stands for megabytes per second, IOPS stands for I/Os per second.
Note: These metrics do not take into account compression. With compressed data, you can
achieve much higher effective throughput rates. In all cases, actual performance will vary by
application.
InfiniBand:
• Is the Exadata storage network:
– Provides highest performance available – 40 Gb/sec each direction
– Is widely used in high-performance computing since 2002
• Looks
oo s like
e normal
o a Ethernet
e e too host
os so
software:
ae
– All IP-based tools work transparently – TCP/IP, UDP, HTTP, SSH,
and so on
• Has the efficiency of a SAN:
– Zero copy and buffer reservation capabilities
• Is used for both storage and RAC interconnect:
– Less configuration
configuration, lower cost
cost, higher performance
• Uses high-performance ZDP InfiniBand protocol (RDS V3):
– Zero-copy, zero-loss Datagram protocol
– Open Source software developed by Oracle
– Very low CPU overhead
InfiniBand Network
InfiniBand is the only storage network supported by Exadata because of its performance and
proven track record in high-performance
p g p computing.
p g InfiniBand works like normal Ethernet but
much faster. It has the efficiency of a SAN, using zero copy and buffer reservation. Zero copy
means that data is transferred across the network without intermediate buffer copies in the
various network layers. Buffer reservation is used so that the hardware knows exactly where
to place buffers ahead of time. These are two important characteristics that distinguish
InfiniBand from normal Ethernet.
InfiniBand is also supported as a unified network fabric for Exadata and the Oracle RAC
interconnect. This facilitates easier configuration and fewer cables and switches. You can
also
l use it ffor hi
high-performance
h f external
t l connectivity,
ti it such h as tto connectt bbackup
k servers or
ETL servers.
On top of InfiniBand, Exadata uses the Zero Data loss UDP (ZDP) protocol. ZDP is open
source software that is developed by Oracle. It is like UDP but more reliable. Its full technical
name is RDS (Reliable Datagram Sockets) V3. The ZDP protocol has a very low CPU
overhead with tests showing only a 2 percent CPU utilization while transferring 1 GB/sec of
data.
E hE
Each Exadata
d t server iis configured
fi d with
ith one ddual-port
l t InfiniBand
I fi iB d card dddesigned
i d tto b
be
connected to two separate InfiniBand switches for high availability. Each InfiniBand link is
able to carry the full data bandwidth of the entire cell, which means you can lose an entire
network without losing any performance.
SELECT customer_id 1 6
FROM orders Row returned
WHERE order_amount>20000;
SELECT customer_id 1 6
FROM orders Row returned
WHERE order_amount>20000;
• Predicate filtering:
– Only the rows requested are returned to the database server
rather than all the rows in a table.
• Column filtering:
g
– Only the columns requested are returned to the database
server rather than all the columns in a table.
• Join processing:
– Simple star join processing is performed within Exadata.
• Scans on encrypted data
• Scans on compressed data
• Scoring for Data Mining:
– All data mining scoring functions are offloaded.
– Up to 10x performance gains.
• Backups:
– I/O for incremental backups is much more efficient because
only changed blocks are returned to the database server.
• Create/extend tablespace:
p
– Exadata formats database blocks.
Database dbs1
Server
Exadata
Cell
edsc1 edsc2 … edsc13 edsc14
Exadata
Cell
edsc1 edsc2 … edsc13 edsc14
0 357 GB/s
0.357
Disks
(12/cell)
Exadata
Cell
edsc1 edsc2 … edsc13 edsc14
1 8 GB/s
1.8 Each
E h cellll can scan att a
speed of 1.8 GB/s,
and send its matching
rows to the database
instance. This represents
a total scan at a speed
of 25.2 GB/s!
Disks
(12/cell)
Region Index
SELECT * FROM T1 WHERE B<2;
B:1/5 B:3/8
E:a/j
G:4/9
… …
1 ASM AU
… 1MB Storage Region
1 ASM Disk
DBA
Traditional
I/O FIFO Disk Queue
Requests
Storage Server
RDBMS H L H L L L
Y cannott
You High-priority Low-priority
influence the workload workload
I/O scheduler. request request
I/O
Requests
H H
RDBMS L H H H
L L L L
Results in
real-time on
Database
Storage index skips Smart scan means Machine
worthless I/O that only the results
are returned to the
database
Benefits Multiply
This is an example that shows you how the main Exadata features that were introduced in this
lesson can work together to multiply the benefits of Exadata
Exadata.
Assume you have a multi-terabyte table and somebody runs a query that is interested in a
small subset of the data, but causes a full table scan. Traditionally, the system would have to
scan the terabytes of data.
However, using Exadata Hybrid Columnar Compression could reduce the size of the table.
If the table is partitioned, the optimizer could use partition pruning to eliminate a substantial
proportion of the data
data.
Using storage indexes, Exadata might further reduce the amount of physical I/O that is
executed.
Finally, because of Smart Scan, the only data returned to the database is the data of interest
to the query, some of which may have been cached inside Exadata Smart Flash Cache.
This example shows how the various Exadata and Oracle Database features can work in
harmony to improve the performance of a single operation using Database Machine
Machine.
Answer: 2
Answer: 2, 3, 5
DB 1 DB 1 DB
est
est
Read Reque
Read Reque
3 1 3 3
Acknowledgement
cellsrv
cellsrv
cellsrv
2 2 2 4
4
Exadata Smart
Flash Cache
Exadata Cell
Exadata Cell From the Enterprise
Exadata Cell
Enterprise Manager
Smart
Data Flash Cache OMS agent dcli
CellCLI
cellsrv MS
adrci
SSH / CellCLI
CELLSRV
ADR
eth0
eth0
Network switch
First two
Data LUNs only
Storage Grid
Partition Disk
System Area
OR Cell OR Visible to
Disk ASM
Grid Disk
(hot part)
LUN
Other ten
LUNs Grid Disk
(cold part)
b
Slower Tracks Slowest Tracks Fast Tracks Slowest Tracks
Grid Disk 2 Grid Disk 4
FLASHCACHE
Flash
Cache
Flash Cell
OR
LUN Disk
Flash Cache
Grid Disk
Visible to
ASM
DATA
CELL1 Failure Group CELL2 Failure Group
Disk Group
FRA
CELL1 Failure Group CELL2 Failure Group
Disk Group
Answer: 2, 4, 5
If you use NORMAL ASM redundancy for all of your disk groups
in conjunction with ASM failure groups spread across two
Exadata cells, under which of the following scenarios will you
maintain data availability?
1. A single disk failure in a single cell
2. Simultaneous failure of multiple disks in a single cell
3. Simultaneous failure of a single disk in both cells
4. Complete failure of a single cell
Answer: 1 ,2, 4
The prescribed configuration may provide protection against failure scenario 3 if, and only if,
there are no data extents mirrored to both of the failed disks. To g
guarantee data availability
y in
cases where simultaneous failures affect two cells, you must use HIGH ASM redundancy in
conjunction with failure groups spread across at least three Exadata cells.
Initial network
1 preparation
Configuring
ASM disk group Configuration
6 for Exadata
2 of new Exadata
servers
Configuring
ASM and Database
5 instances 3 Configuring
Exadata software
for Exadata
4
Configuring hosts
to use Exadata
Three operating system users are configured for each Exadata server:
• The root user can:
– Edit configuration files such as cellinit.ora and cellip.ora
– Change network configuration settings
– Run support and diagnostic utilities located under the
/opt/oracle.SupportTools directory
– Run the CellCLI CALIBRATE command
– Perform all the tasks that the celladmin user can perform
• The celladmin user can:
– Perform administrative tasks (CREATE
(CREATE, DROP, ALTER and so on)
DROP ALTER,
using the CellCLI utility
– Package incidents for Oracle Support using the adrci utility
• The cellmonitor user can only view (LIST) Exadata cell
objects using the CellCLI utility.
Repeat
for each
cell
Need large
Need high RPM and
I/O channel
fast seek time
OLTP DW/OLAP
(Small random I/O) (Large sequential I/O)
CALIBRATE
CellCLI>
CellCLI>
$ cd /etc/oracle/cell/network-config
Exadata
• Oracle Database and ASM software must be at least
version 11.2.0.1
• Use ASM to store OCR and voting disks on Exadata
• Set the ASM_DISKSTRING
ASM DISKSTRING ASM initialization parameter:
– ASM_DISKSTRING='o/*/*'
• Set the COMPATIBLE database initialization parameter:
– COMPATIBLE='11.2.0.0.0'
Repeat
for each
host
ASM cluster A
ASM-scoped
security Non-RAC RAC
DB DB
mode Instance Instances
Grid
disk
Non-RAC RAC
DB DB Database-scoped
Instance Instances
security mode
ASM cluster B
Exadata
Cell
ASM cluster
hosts
CREATE KEY A A
S S /etc/oracle/cell/network.config
M M
cellkey.ora
D
CREATE/ALTER B $ORACLE_HOME/admin/<db_unique_name>/pfile
Answer: 2
The first grid disk you create uses the slowest tracks of the
corresponding physical disk.
1. TRUE
2 FALSE
2.
Answer: 2
When you create a disk group for which you want Exadata
smart storage capabilities enabled, what three attributes must
you specify?
1. compatible.rdbms
p
2. compatible.asm
3. au_size
4. disk_repair_time
5. cell.smart_scan_capable
Answer: 1, 2, 5
1 2 3
Metrics Alerts Active requests
4 5 6
Execution V$ Wait
plans views events
Monitoring Overview
After Exadata is configured and in use, the administrative focus shifts to ongoing monitoring
and maintenance
maintenance. To monitor Exadata
Exadata, you can use the following tools and information:
1. Exadata cell metrics
2. Exadata cell alerts
3. Exadata active requests
4. Database SQL statement execution plans
5. Database V$ views
6. Database wait events
7. Oracle Enterprise Manager Exadata monitoring plug-in
MS keeps a
set of the metric values.
Collected metrics: One hour of LIST METRICCURRENT
Cell, Cell Disks,
Grid Disk, IORM, in-memory
Interconnect
Metric metric values
thresholds
CELLSRV
exceeded
internal
errors
Every hour MS
CELLSRV
flushes metric
collects CELLSRV ADR MS values to disk.
metrics
Metrics
IORM_CONSUMER_GROUP
IORM_DATABASE
CREATE|ALTER THRES
Th h ld
Thresholds IORM_CATEGORY
CELL
CELLDISK
name CELL_FILESYSTEM
comparision
critical GRIDDISK
occurances HOST_INTERCONNECT
observation
warning FLASHCACHE
Alerts
name
BMC warning stateful
ADR critical stateless alertAction
Metric clear
info alertMessage
failedMail
ALTER ALERTHISTORY ALL examinedBy="<administrator>"
y f il dSNMP
failedSNMP
beginTime
0 EndTime
1
2 notificationState
3 …
Active Requests
parentID asmDiskGroupNumber
requestState asmFileIncarnation
file initialization
read
sessionID asmFileNumber
write
predicate pushing
sessionSerNumber filtered backup read consumerGroupName
predicate push read
t bl
tablespaceNumber
N b dbN
dbName
sqlID instanceNumber
V$CELL V$SQL
- CELL_PATH cellip.ora - SQL_TEXT
- CELL_HASHVAL - PHYSICAL_READ_BYTES
- PHYSICAL_WRITE_BYTES
cell - IO_INTERCONNECT_BYTES
cell p
physical
y IO
flash cache - IO CELL OFFLOAD ELIGIBLE BYTES
IO_CELL_OFFLOAD_ELIGIBLE_BYTES
read hits bytes saved during
optimized RMAN file - IO_CELL_UNCOMPRESSED_BYTES
cell physical IO restore
bytes eligible for - IO_CELL_OFFLOAD_RETURNED_BYTES
cell physical IO
predicate offload
interconnect bytes - OPTIMIZED_PHY_READ_REQUESTS
cell physical IO ...
interconnect bytes cell physical IO
returned by smart bytes saved by
scan storage index
physical write
total bytes physical read
total bytes V$BACKUP_DATAFILE
cell physical IO - DATAFILE_BLOCKS
bytes saved during
- BLOCKS_READ
V$SYSSTAT optimized file
creation - BLOCKS_SKIPPED_IN_CELL
- NAME
cell IO ...
- VALUE uncompressed
bytes
...
• Planned maintenance
– Examples
— Patch or upgrade Exadata software
– Procedure overview
1. Take the corresponding ASM failure groups offline.
2. Execute your planned maintenance operation.
3. Bring the ASM failure groups back online.
• Unplanned maintenance
– Examples
p
— Disk failure, Cell hardware failure, or CELLSRV process failure
– Procedure overview
1. Remedy the failure.
2. Bring online or re-create the affected ASM failure groups.
2 Replace
physical disk.
20:5
LIST PHYSICALDISK normal
Answer: 2
Thresholds are supported on cell disk and grid disk I/O error count metrics (CD_IO_ERRS_MIN
and GD_IO_ERRS_MIN), along with the cell memory utilization (CL_MEMUT ) and cell file system
utilization (CL_FSUT) metrics. In addition, you can set thresholds for I/O Resource Management
(IORM) related metrics. The CellCLI LIST ALERTDEFINITION command lists the metrics for
which thresholds can be set.
Answer: 2
The CELL_OFFLOAD_PROCESSING parameter is used to enable SQL processing offload.
Database A Database B
Finance OnlineQuery
consumer group Interactive consumer group
category
HR BatchQuery
consumer group
consumer group
I/O
Resource
Management
Inside Across
one multiple
database databases
IORM Plan
Exadata Cell
Database A Database A CELLSRV
CG1Database
queue A
CG1Database
queue A
Database CG1Database
CG2 queuequeue A
CG1 queue
sends CG2 queue
IO requests
… CG2 queue
… CG2 queue
to cells
cells. ……
CG queue
CGn
CGn queue
CGn queue
CGn queue
BG queues
IO request tag: …
BG queues
- DB name …BG queues
Database
BGZqueues
- Type …
CG1 queue Z
Database
- Consumer group CG1Database
queue Z
CG1Database
CG2 queuequeue Z
CG1 queue IORM
CG2 queue Cell disk
… CG2 queue Disk queue
… CG2 queue
……
CGn queue
CGn queue
CGn queue
CGn queue Performance
BG queues statistics
BG queues Resource
BG queues plans
Database Z BG queues
IORM Architecture
IORM manages Exadata I/O resources on a per-cell basis. Whenever the I/O requests start to
saturate the cell, IORM schedules incoming I/O requests according to the configured resource
plans.
l IORM schedules
h d l I/O b by selecting
l ti requests t ffrom diff
differentt CELLSRV queues. The
Th resource
plans are used to determine the order in which the queued I/O requests are issued to disk. The
goal of IORM is to fully utilize the available disk resources. Any allocation that is not fully utilized
is made available to other workloads in proportion to the configured resource plans.
IORM only intervenes when needed. For example, IORM does not intervene if there is only one
active consumer group on one database because there is no possibility of contention with
another consumer group or database.
Background I/Os are scheduled based on their priority relative to the user I/Os.
I/Os For example,
example
redo writes and control file I/Os are critical to performance and are always prioritized above all
user I/Os. Writes by the database writer process (DBWn) are scheduled at the same priority level
as user I/Os.
The diagram in the slide illustrates the high-level implementation of IORM. For each cell disk,
each database accessing the cell has one I/O queue per consumer group and three background
I/O queues. The background I/O queues correspond to high, medium, and low priority requests
with different I/O types mapped to each queue. If you do not set an intradatabase resource plan,
all nonbackground I/O requests are grouped into a single consumer group called
OTHER_GROUPS.
Note: IORM is only used to manage I/O requests to physical disks. IORM does not manage
requests to flash-based grid disks or requests serviced by Exadata Smart Flash Cache.
Exadata and Database Machine Administration Workshop 6 - 7
I/O Resource Management Plans Example
Database A Database B
(Single Inst) (RAC)
Disk … Disk
DB A Plan DB B Plan
10%
22%
18%
35%
40%
15%
45%
Interdatabase
70%
30%
70%
30%
Categories
40% 60%
BATCH INTERACTIVE
All
User I/Os
(100%)
BEGIN
DBMS_RESOURCE_MANAGER.CREATE_SIMPLE_PLAN(SIMPLE_PLAN => 'my_plan',
CONSUMER_GROUP1 => 'high_priority', GROUP1_PERCENT => 80,
CONSUMER_GROUP2 => 'low_priority' , GROUP2_PERCENT => 20);
END;
/
DBA_RSRC_CONSUMER_GROUPS
CONSUMER_GROUP CATEGORY
---------------------------- --------------- DBMS_RESOURCE_MANAGER.CREATE_CATEGORY
SYS_GROUP ADMINISTRATIVE
BATCH_GROUP BATCH
INTERACTIVE_GROUP INTERACTIVE
ORA$… MAINTENANCE
OTHER_GROUPS OTHER
Category Level 1 Level 2 Level 3
DEFAULT_CONSUMER_GROUP OTHER
LOW_GROUP OTHER Interactive 90%
AUTO_TASK_CONSUMER_GROUP OTHER
Batch 80%
Database A
BEGIN
DBMS_RESOURCE_MANAGER.CREATE_SIMPLE_PLAN(SIMPLE_PLAN => ‘DB_A_Plan',
CONSUMER_GROUP1 => ‘CG1', GROUP1_PERCENT => 15,
CONSUMER_GROUP2 => ‘CG2', GROUP1_PERCENT => 10,
CONSUMER_GROUP3 => ‘CG3', GROUP1_PERCENT => 35,
CONSUMER_GROUP4 => ‘CG4’, GROUP2_PERCENT => 40);
DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
DBMS_RESOURCE_MANAGER.UPDATE_CONSUMER_GROUP(CONSUMER_GROUP => ‘CG1’,
NEW_CATEGORY => ‘BATCH’);
DBMS_RESOURCE_MANAGER.UPDATE_CONSUMER_GROUP(CONSUMER_GROUP => ‘CG2’,
NEW_CATEGORY => ‘BATCH’);
DBMS_RESOURCE_MANAGER.UPDATE_CONSUMER_GROUP(CONSUMER_GROUP => ‘CG3’,
NEW_CATEGORY => ‘INTERACTIVE’);
DBMS RESOURCE MANAGER UPDATE CONSUMER GROUP(CONSUMER GROUP => ‘CG4’,
DBMS_RESOURCE_MANAGER.UPDATE_CONSUMER_GROUP(CONSUMER_GROUP ‘CG4’
NEW_CATEGORY => ‘INTERACTIVE’);
DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA();
END;
/
Complete Example
This slide is the first in a series of 3 slides which provide a more complete example showing
the use of the different IORM plan types at the same time.time The example is based on the
scenario introduced on pages 8, 9 and 10 of this lesson.
On this slide, the commands required to configure DBRM on Database A are shown.
Note that the example does not show the creation of any categories using
DBMS_RESOURCE_MANAGER.CREATE_CATEGORY because the categories used in the
scenario (BATCH and INTERACTIVE) are categories that are predefined inside Oracle
Database byy default.
Database B
BEGIN
DBMS_RESOURCE_MANAGER.CREATE_SIMPLE_PLAN(SIMPLE_PLAN => ‘DB_B_Plan',
CONSUMER_GROUP1 => ‘CG5', GROUP1_PERCENT => 22,
CONSUMER_GROUP2 => ‘CG6', GROUP1_PERCENT => 18,
CONSUMER_GROUP3 => ‘CG7', GROUP1_PERCENT => 15,
CONSUMER_GROUP4 => ‘CG8’, GROUP2_PERCENT => 45);
DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
DBMS_RESOURCE_MANAGER.UPDATE_CONSUMER_GROUP(CONSUMER_GROUP => ‘CG5’,
NEW_CATEGORY => ‘BATCH’);
DBMS_RESOURCE_MANAGER.UPDATE_CONSUMER_GROUP(CONSUMER_GROUP => ‘CG6’,
NEW_CATEGORY => ‘BATCH’);
DBMS_RESOURCE_MANAGER.UPDATE_CONSUMER_GROUP(CONSUMER_GROUP => ‘CG7’,
NEW_CATEGORY => ‘INTERACTIVE’);
DBMS RESOURCE MANAGER UPDATE CONSUMER GROUP(CONSUMER GROUP => ‘CG8’,
DBMS_RESOURCE_MANAGER.UPDATE_CONSUMER_GROUP(CONSUMER_GROUP ‘CG8’
NEW_CATEGORY => ‘INTERACTIVE’);
DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA();
END;
/
Exadata Cells
Answer: 3
Answer: 1, 2, 3
All of the conditions listed in this question must be present for IORM to intervene.
Answer: 3
Answer: 2
You can create your own categories using the CREATE_CATEGORY procedure in the
DBMS_RESOURCE_MANAGER package, and then assign your category to a consumer group
using the CREATE_CONSUMER_GROUP or UPDATE_CONSUMER_GROUP procedures.
You can then manage I/O resources based on categories by creating a category plan. The
category plan can be created using the CellCLI utility.
In this lesson, you should have learned how to use Exadata I/O
Resource Management to manage workloads within a
database and across multiple databases.