Académique Documents
Professionnel Documents
Culture Documents
1. Oracle Corporation (Oracle) is pleased to allow its business partner (Partner) to download and copy the
information, documents, and the online training courses (collectively, Materials") found on this Site. The use of the
Materials is restricted to the non-commercial, internal training of the Partners employees only. The Materials may not
be used for training, promotion, or sales to customers or other partners or third parties.
2. All the Materials are trademarks of Oracle and are proprietary information of Oracle. Partner or other third party at
no time has any right to resell, redistribute or create derivative works from the Materials.
3. Oracle disclaims any warranties or representations as to the accuracy or completeness of any Materials. Materials
are provided "as is" without warranty of any kind, either express or implied, including without limitation warranties of
merchantability, fitness for a particular purpose, and non-infringement.
4. Under no circumstances shall Oracle or the Oracle Authorized Delivery Partner be liable for any loss, damage,
liability or expense incurred or suffered which is claimed to have resulted from use of this Site of Materials. As a
condition of use of the Materials, Partner agrees to indemnify Oracle from and against any and all actions, claims,
losses, damages, liabilities and expenses (including reasonable attorneys' fees) arising out of Partners use of the
Materials.
5. Reference materials including but not limited to those identified in the Boot Camp manifest cannot be redistributed in
any format without Oracle written consent.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 1 of 87
Exadata 2014 Implementation Specialist Boot Camp
Table of Contents
CONNECT TO THE ENVIRONMENT
4
TASK
1:
CONNECT
TO
THE
ENVIRONMENT:
5
TASK
2:
CONNECT
TO
THE
EXADATA
STORAGE
CELLS
6
TASK
3:
CHECK
CELL
ENVIRONMENT
7
CREATE DATABASE
17
TASK
1:
CONNECT
AND
VERIFY
THE
CELLS
TO
THE
DATABASE
ENVIRONMENT
17
TASK
2:
CREATE
ASM
DISKGROUPS
19
TASK
3:
CREATE
A
DATABASE
USING
THE
EXADATA
STORAGE
CELLS
(ASM)
25
SMART SCAN
36
TASK
1:
LOAD
DATA
INTO
THE
DATABASE
36
TASK
2:
SMART
SCAN
AND
QUERY
OFFLOAD
37
COMPRESSION
50
TASK
1:
COMPRESSION
50
REPROVISION DISKS
52
TASK
1:
VERIFY
DISK
SETUP
52
TASK
2:
DROP
GRIDDISKS
53
TASK
3:
RECREATE
GRIDDISKS
54
IORM
62
TASK
1:
IO
RESOURCE
MANAGER
(IORM)
62
SUPPLEMENTAL EXERCISES
66
TASK
1:
SECURITY
66
TASK
2:
FLASH
CACHE
75
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 2 of 87
Exadata 2014 Implementation Specialist Boot Camp
TROUBLESHOOTING
86
CONNECTING
TO
VNC
(MAC)
86
SSH
ISSUES
86
FIXING
IP
ISSUES
86
CELLS
86
DBS
87
CELLDISK
ERROR
87
RESTART
CELLD
PROCESS
87
HOW
TO
START
ASM
IF
ITS
DOWN
87
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 3 of 87
Exadata 2014 Implementation Specialist Boot Camp
Instructions:
In this practice you will learn how to use the laboratory environment that supports all the practices in this boot camp.
You will also create a database that uses the Exadata storage cells.
The laboratory environment for this course consists of three virtual machines configured to provide a database server
and two Exadata storage cells. To access the three virtual machines you will establish a VNC session to the database
server. From there you will create terminal sessions as required to connect to the Exadata storage cells.
Assumptions:
You must have been provided with the IP address for the hands on systems by your instructor. Fill in the
tables below with the IP addresses.
You have installed VNC viewer (or equivalent software) on your laptop or the provided machine.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 4 of 87
Exadata 2014 Implementation Specialist Boot Camp
Hostname IP address
db
cell1
cell2
Username Password
root oracle
celladmin oracle
oracle oracle
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 5 of 87
Exadata 2014 Implementation Specialist Boot Camp
As a result you should see the result of the date command on the screen. The date will be different than what
shown above.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 6 of 87
Exadata 2014 Implementation Specialist Boot Camp
2. Using the terminal session establish a connection to your second Exadata cell (cell2) using the celladmin
user. Confirm that you are connected to the cell and execute the following cellcli commands and then exit
the session
[oracle@db ~]$ ssh celladmin@cell2
celladmin@cell2's password:
Last login: Tue Sep 13 12:21:36 2011 from db.exadata.local
[celladmin@cell2 ~]$ cellcli -e list cell
cell2 online
[celladmin@cell2 ~]$ cellcli -e list cell detail
name: cell2
bmcType: absent
cellVersion: OSS_11.2.0.1.0_LINUX.X64_091102
cpuCount: 1
fanCount: 1/1
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 7 of 87
Exadata 2014 Implementation Specialist Boot Camp
fanStatus: normal
id: c679d044-1f81-4e1e-8dc3-eecd31099645
interconnectCount: 1
interconnect1: eth0
iormBoost: 0.0
ipaddress1: 10.216.212.39/24
kernelVersion: 2.6.18-164.9.1.0.1.el5xen
makeModel: Fake hardware
metricHistoryDays: 7
offloadEfficiency: 1.0
powerCount: 1/1
powerStatus: normal
status: online
temperatureReading: 0.0
temperatureStatus: normal
upTime: 36 days, 22:05
cellsrvStatus: running
msStatus: running
rsStatus: running
[celladmin@cell2 ~]$ exit
Connection to cell2 closed.
[oracle@db ~]$
You should now have a general feeling for the cellcli command environment. In the next chapters we will go a bit
deeper into cellcli commands and start building out our Exadata environment. We will also use the cellcli
command shell.
Do not proceed to the next section until you have clearance from
your instructor.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 8 of 87
Exadata 2014 Implementation Specialist Boot Camp
CellCLI>
3. Before we can use the Exadata storage cell disks, we need to create celldisks (stamp the disks with Exadata
information for example) and Griddisks (partitioning, naming etc.). First we create the celldisks.
An Exadata Storage cell contains 12 hard disks. Typically, cell disks and grid disks are created on each hard
disk so that data can be spread evenly across the cell. Use the following command to list the LUNs (disks) that
currently do not contain cell disks. The hard disk is specified because we only want hard disks and not flash
disks displayed.
CellCLI> list lun where disktype = harddisk
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk01
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk01 normal
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk02
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk02 normal
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk03
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk03 normal
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 9 of 87
Exadata 2014 Implementation Specialist Boot Camp
CellCLI>
4. Create cell disks on all available hard disks; that is, the hard disks that dont already contain cell disks. We
specify the hard disk section because we only want hard disks (not flash disks) to be used in these celldisks.
CellCLI> create celldisk all harddisk
CellDisk CD_disk01_cell1 successfully created
CellDisk CD_disk02_cell1 successfully created
CellDisk CD_disk03_cell1 successfully created
CellDisk CD_disk04_cell1 successfully created
CellDisk CD_disk05_cell1 successfully created
CellDisk CD_disk06_cell1 successfully created
CellDisk CD_disk07_cell1 successfully created
CellDisk CD_disk08_cell1 successfully created
CellDisk CD_disk09_cell1 successfully created
CellDisk CD_disk10_cell1 successfully created
CellDisk CD_disk11_cell1 successfully created
CellDisk CD_disk12_cell1 successfully created
CellCLI>
5. Exit your CellCLI session but keep your terminal session open.
CellCLI> exit
quitting
[celladmin@cell1 ~]$
6. Establish a new terminal connection to the cell2 Exadata cell as the celladmin user.
7. Launch the Exadata cell command-line interface (CellCLI) using the command cellcli. The Efficiency ratio
displayed is the ratio between data accessed by the storage cell and data processed by the database for the
cell. Larger values mean more offloading to the cell. The value will be different in your environment.
[oracle@db ~]$ ssh celladmin@cell2
celladmin@cell2's password:
Last login: Wed Sep 28 12:25:29 2011 from db.exadata.local
[celladmin@cell2 ~]$ cellcli
CellCLI: Release 11.2.1.2.0 - Production on Wed Sep 28 12:30:08 EDT 2011
CellCLI>
8. Before we can use the Exadata storage cell disks, we need to create cell disks (stamp the disks with Exadata
information for example) and Griddisks (partitioning, naming etc.). First we create the cell disks.
An Exadata Storage cell contains 12 hard disks. Typically, cell disks and grid disks are created on each hard
disk so that data can be spread evenly across the cell. Use the following command to list the LUNs (disks) that
currently do not contain cell disks. The hard disk is specified because we only want hard disks and not flash
disks displayed.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 10 of 87
Exadata 2014 Implementation Specialist Boot Camp
CellCLI>
9. Create cell disks on all available hard disks; that is, the hard disks that dont already contain cell disks. We
specify the hard disk section because we only want hard disks (not flash disks) to be used in these celldisks.
CellCLI> create celldisk all harddisk
CellDisk CD_disk01_cell2 successfully created
CellDisk CD_disk02_cell2 successfully created
CellDisk CD_disk03_cell2 successfully created
CellDisk CD_disk04_cell2 successfully created
CellDisk CD_disk05_cell2 successfully created
CellDisk CD_disk06_cell2 successfully created
CellDisk CD_disk07_cell2 successfully created
CellDisk CD_disk08_cell2 successfully created
CellDisk CD_disk09_cell2 successfully created
CellDisk CD_disk10_cell2 successfully created
CellDisk CD_disk11_cell2 successfully created
CellDisk CD_disk12_cell2 successfully created
CellCLI>
Note that the default cell disk naming convention used in this virtualized environment is slightly different to a native
Exadata cell.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 11 of 87
Exadata 2014 Implementation Specialist Boot Camp
Now that the cell disks have been created, you will create two Griddisks on each of the 24 cell disks.
1. Establish a terminal connection to the cell1 Exadata cell as the celladmin user.
2. Launch the Exadata cell command-line interface (CellCLI) using the command cellcli. The Efficiency ratio
displayed is the ratio between data accessed by the storage cell and data processed by the database for the
cell. Larger values mean more offloading to the cell. The value will be different in your environment.
[oracle@db ~]$ ssh celladmin@cell1
celladmin@cell1's password:
Last login: Wed Sep 28 12:25:29 2011 from db.exadata.local
[celladmin@cell1 ~]$ cellcli
CellCLI: Release 11.2.1.2.0 - Production on Wed Sep 28 12:30:08 EDT 2011
CellCLI>
3. The official guideline is to have two partitions on every griddisk. The fastest partition for the production data
and the slowest partition for archive logging etc. When you are creating the Griddisk, you can specify sizes
and naming. Note that the first Griddisk you create will be on the fastest part of the disk. The second will be on
a slower part and so on.
From the CellCLI, list the celldisks with free space.
CellCLI> list celldisk attributes name,freespace where freespace != 0
CD_disk01_cell1 448M
CD_disk02_cell1 448M
CD_disk03_cell1 448M
CD_disk04_cell1 448M
CD_disk05_cell1 448M
CD_disk06_cell1 448M
CD_disk07_cell1 448M
CD_disk08_cell1 448M
CD_disk09_cell1 448M
CD_disk10_cell1 448M
CD_disk11_cell1 448M
CD_disk12_cell1 448M
CellCLI>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 12 of 87
Exadata 2014 Implementation Specialist Boot Camp
4. Create a set of grid disks on all the available hard disk based cell disks. Set the size of each grid disk to
250MB.
CellCLI> create griddisk all harddisk prefix=data, size=250M
GridDisk data_CD_disk01_cell1 successfully created
GridDisk data_CD_disk02_cell1 successfully created
GridDisk data_CD_disk03_cell1 successfully created
GridDisk data_CD_disk04_cell1 successfully created
GridDisk data_CD_disk05_cell1 successfully created
GridDisk data_CD_disk06_cell1 successfully created
GridDisk data_CD_disk07_cell1 successfully created
GridDisk data_CD_disk08_cell1 successfully created
GridDisk data_CD_disk09_cell1 successfully created
GridDisk data_CD_disk10_cell1 successfully created
GridDisk data_CD_disk11_cell1 successfully created
GridDisk data_CD_disk12_cell1 successfully created
CellCLI>
5. Create another set of grid disks on all the available hard disk based cell disks, This time do not set a size for
these grid disks so they can consume all of the remaining unallocated free space.
CellCLI> create griddisk all harddisk prefix=archive
GridDisk archive_CD_disk01_cell1 successfully created
GridDisk archive_CD_disk02_cell1 successfully created
GridDisk archive_CD_disk03_cell1 successfully created
GridDisk archive_CD_disk04_cell1 successfully created
GridDisk archive_CD_disk05_cell1 successfully created
GridDisk archive_CD_disk06_cell1 successfully created
GridDisk archive_CD_disk07_cell1 successfully created
GridDisk archive_CD_disk08_cell1 successfully created
GridDisk archive_CD_disk09_cell1 successfully created
GridDisk archive_CD_disk10_cell1 successfully created
GridDisk archive_CD_disk11_cell1 successfully created
GridDisk archive_CD_disk12_cell1 successfully created
CellCLI>
6. List all the grid disks and some specific attributes. Can you see the grid disks you created? How big are they?
The value UNUSED for ASMModeStatus indicates that the newly created grid disks have not yet been
consumed by ASM.
CellCLI> list griddisk attributes name, size, ASMModeStatus
archive_CD_disk01_cell1 208M UNUSED
archive_CD_disk02_cell1 208M UNUSED
archive_CD_disk03_cell1 208M UNUSED
archive_CD_disk04_cell1 208M UNUSED
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 13 of 87
Exadata 2014 Implementation Specialist Boot Camp
CellCLI>
7. Exit your CellCLI session but keep your terminal session open. You should remain connected to cell1 as the
celladmin user.
CellCLI> exit
quitting
[celladmin@cell1 ~]$
8. We have to do the same steps on the other Exadata cell. Establish a terminal connection to the cell2
Exadata cell as the celladmin user.
9. Launch the Exadata cell command-line interface (CellCLI) using the cellcli command. The Efficiency ratio
displayed is the ratio between data accessed by the storage cell and data processed by the database for the
cell. Larger values mean more offloading to the cell. The value will be different in your environment.
[oracle@db ~]$ ssh celladmin@cell2
celladmin@cell2's password:
Last login: Wed Sep 28 12:47:05 2011 from db.exadata.local
[celladmin@cell2 ~]$ cellcli
CellCLI: Release 11.2.1.2.0 - Production on Wed Sep 28 13:52:58 EDT 2011
CellCLI>
10. The official guideline is to have two partitions on every griddisk. The fastest partition for the production data
and the slowest partition for archive logging etc. When you are creating the Griddisk, you can specify sizes
and naming. Note that the first Griddisk you create will be on the fastest part of the disk. The second will be on
a slower part and so on.
From the CellCLI, list the celldisks with free space.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 14 of 87
Exadata 2014 Implementation Specialist Boot Camp
CellCLI>
11. Create a set of grid disks on all the available hard disk based cell disks. Set the size of each grid disk to
250MB.
CellCLI> create griddisk all harddisk prefix=data, size=250M
GridDisk data_CD_disk01_cell2 successfully created
GridDisk data_CD_disk02_cell2 successfully created
GridDisk data_CD_disk03_cell2 successfully created
GridDisk data_CD_disk04_cell2 successfully created
GridDisk data_CD_disk05_cell2 successfully created
GridDisk data_CD_disk06_cell2 successfully created
GridDisk data_CD_disk07_cell2 successfully created
GridDisk data_CD_disk08_cell2 successfully created
GridDisk data_CD_disk09_cell2 successfully created
GridDisk data_CD_disk10_cell2 successfully created
GridDisk data_CD_disk11_cell2 successfully created
GridDisk data_CD_disk12_cell2 successfully created
CellCLI>
12. Create another set of grid disks on all the available hard disk based cell disks, This time do not set a size for
these grid disks so they can consume all of the remaining unallocated free space.
CellCLI> create griddisk all harddisk prefix=archive
GridDisk archive_CD_disk01_cell2 successfully created
GridDisk archive_CD_disk02_cell2 successfully created
GridDisk archive_CD_disk03_cell2 successfully created
GridDisk archive_CD_disk04_cell2 successfully created
GridDisk archive_CD_disk05_cell2 successfully created
GridDisk archive_CD_disk06_cell2 successfully created
GridDisk archive_CD_disk07_cell2 successfully created
GridDisk archive_CD_disk08_cell2 successfully created
GridDisk archive_CD_disk09_cell2 successfully created
GridDisk archive_CD_disk10_cell2 successfully created
GridDisk archive_CD_disk11_cell2 successfully created
GridDisk archive_CD_disk12_cell2 successfully created
CellCLI>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 15 of 87
Exadata 2014 Implementation Specialist Boot Camp
13. List all the grid disks and some specific attributes. Can you see the grid disks you created? How big are they?
The value UNUSED for ASMModeStatus indicates that the newly created grid disks have not yet been
consumed by ASM.
CellCLI> list griddisk attributes name, size, ASMMOdeStatus
archive_CD_disk01_cell2 208M UNUSED
archive_CD_disk02_cell2 208M UNUSED
archive_CD_disk03_cell2 208M UNUSED
archive_CD_disk04_cell2 208M UNUSED
archive_CD_disk05_cell2 208M UNUSED
archive_CD_disk06_cell2 208M UNUSED
archive_CD_disk07_cell2 208M UNUSED
archive_CD_disk08_cell2 208M UNUSED
archive_CD_disk09_cell2 208M UNUSED
archive_CD_disk10_cell2 208M UNUSED
archive_CD_disk11_cell2 208M UNUSED
archive_CD_disk12_cell2 208M UNUSED
data_CD_disk01_cell2 240M UNUSED
data_CD_disk02_cell2 240M UNUSED
data_CD_disk03_cell2 240M UNUSED
data_CD_disk04_cell2 240M UNUSED
data_CD_disk05_cell2 240M UNUSED
data_CD_disk06_cell2 240M UNUSED
data_CD_disk07_cell2 240M UNUSED
data_CD_disk08_cell2 240M UNUSED
data_CD_disk09_cell2 240M UNUSED
data_CD_disk10_cell2 240M UNUSED
data_CD_disk11_cell2 240M UNUSED
data_CD_disk12_cell2 240M UNUSED
CellCLI>
14. Exit your CellCLI session but keep your terminal session open. You should remain connected to cell2 as the
celladmin user.
CellCLI> exit
quitting
[celladmin@cell2 ~]$
,,,,,,
24
Do not proceed to the next section until you have clearance from
your instructor.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 16 of 87
Exadata 2014 Implementation Specialist Boot Camp
3. Verify that the ASM instance is running on the db node by executing the command
ps ef | grep +ASM
[oracle@db ~]$ ps -ef | grep +ASM
oracle 2545 1 0 Oct26 ? 00:00:00 asm_pmon_+ASM
oracle 2547 1 0 Oct26 ? 00:00:00 asm_vktm_+ASM
oracle 2551 1 0 Oct26 ? 00:00:00 asm_gen0_+ASM
oracle 2553 1 0 Oct26 ? 00:00:00 asm_diag_+ASM
oracle 2555 1 0 Oct26 ? 00:00:00 asm_psp0_+ASM
oracle 2557 1 0 Oct26 ? 00:00:01 asm_dia0_+ASM
oracle 2559 1 0 Oct26 ? 00:00:00 asm_mman_+ASM
oracle 2561 1 0 Oct26 ? 00:00:00 asm_dbw0_+ASM
oracle 2563 1 0 Oct26 ? 00:00:00 asm_lgwr_+ASM
oracle 2565 1 0 Oct26 ? 00:00:00 asm_ckpt_+ASM
oracle 2567 1 0 Oct26 ? 00:00:00 asm_smon_+ASM
oracle 2569 1 0 Oct26 ? 00:00:00 asm_rbal_+ASM
oracle 2571 1 0 Oct26 ? 00:00:00 asm_gmon_+ASM
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 17 of 87
Exadata 2014 Implementation Specialist Boot Camp
4. Set the environment variables to reflect the +ASM Instance already running. This has to be done as the
oracle user.
[oracle@db ~]$ . oraenv
ORACLE_SID = [oracle] ? +ASM
The Oracle base for ORACLE_HOME=/u01/oracle/product/11.2.0/grid is /u01/oracle
5. Verify that the cells are visible using the kfod command.
[oracle@db ~]$ kfod
-------------------------------------------------------------------------
Disk Size Path User Group
=========================================================================
1: 208 Mb o/cell1/archive_CD_disk01_cell1 <unknown> <unknown>
2: 208 Mb o/cell1/archive_CD_disk02_cell1 <unknown> <unknown>
3: 208 Mb o/cell1/archive_CD_disk03_cell1 <unknown> <unknown>
4: 208 Mb o/cell1/archive_CD_disk04_cell1 <unknown> <unknown>
--------------------------------------------------------------------------
ORACLE_SID ORACLE_HOME
==========================================================================
+ASM /u01/oracle/product/11.2.0/grid
[oracle@db ~]$
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 18 of 87
Exadata 2014 Implementation Specialist Boot Camp
1. The ASM Instance has already been installed for you. You need to create 2 diskgroups based on the grid
disks you have created in earlier tasks. Set the environment variables to the GRID_HOME.
[oracle@db ~]$ . oraenv
ORACLE_SID = [+ASM] ? +ASM
The Oracle base for ORACLE_HOME=/u01/oracle/product/11.2.0/grid is /u01/oracle
[oracle@db ~]$
2. There are 2 ways of creating a diskgroup for ASM. One is using the GUI asmca, one is using SQL*Plus. First
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Automatic Storage Management option
SQL>
3. Verify that all disks are visible to ASM. You should be able to see all disks offered by the Exadata storage cell.
Note the path as this will be used when we create the ASM diskgroups.
SQL> SELECT path, label, header_status FROM v$asm_disk ORDER BY path;
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 19 of 87
Exadata 2014 Implementation Specialist Boot Camp
48 rows selected.
SQL>
4. Create a new ASM diskgroup consuming the hard drive based grid disks. Take care to use the correct DISK
search string so that you consume the correct disks. This step can also be done using the asmca utility, this is
the command line way of creating the diskgroup. Be patient, this might take a short while. (You can also
execute the following script: /home/oracle/scripts/7-4.sql if you dont want to type in the statement
below).
SQL> CREATE diskgroup DATA normal redundancy disk 'o/*/data*'
attribute 'compatible.rdbms' = '11.2.0.0.0',
'compatible.asm' = '11.2.0.0.0',
'cell.smart_scan_capable' = 'TRUE',
'au_size' = '4M';
Diskgroup created
SQL>
5. Execute the following query (or execute the SQL script /home/oracle/scripts/7-5.sql) to check if the
diskgroup has been created properly in ASM. Pay special attention to the failgroups and note how the grid
disks from each different Exadata cell are automatically grouped into separate failure groups.
SQL> SELECT dg.name,
d.name,
d.failgroup,
d.state
FROM v$asm_disk d,
v$asm_diskgroup dg
WHERE d.group_number = dg.group_number
AND dg.name = 'DATA';
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 20 of 87
Exadata 2014 Implementation Specialist Boot Camp
24 rows selected.
SQL>
SQL>
7. Exit your SQL*plus session.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Automatic Storage Management option
[oracle@db ~]$
8. Start the GUI for ASM using the asmca command.
[oracle@db ~]$ asmca
9. You will see a similar screen. It shows you the diskgroup DATA that you already have created.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 21 of 87
Exadata 2014 Implementation Specialist Boot Camp
11. Name the diskgroup ARCHIVE and keep the Normal Redundancy (default). Click on Show Eligible and click
on the box next to Disk Path. Please note the Failure Group information; it is by default filled with the name of
the cell.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 22 of 87
Exadata 2014 Implementation Specialist Boot Camp
12. Click on the Show Advanced Options Button and change the Database Compatibility to11.2.0.0.0. And then
click OK.
13. Your diskgroup will now be created. Be patient, this can take a little while.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 23 of 87
Exadata 2014 Implementation Specialist Boot Camp
14. Click OK. Now are presented with a screen that shows you both the diskgroups you have created; DATA and
ARCHIVE.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 24 of 87
Exadata 2014 Implementation Specialist Boot Camp
1. Establish a terminal session to the db host as the oracle user and set the environment variables correctly.
Note than the input to the ORACLE_SID is dbhome_1 because there is an entry in /etc/oratab that is named
dbhome_1 which points to the correct ORACLE_HOME. IMPORTANT: Using ORCL will not work.
[oracle@db ~]$ . oraenv
ORACLE_SID = [+ASM] ? dbhome_1
The Oracle base for ORACLE_HOME=/u01/oracle/product/11.2.0/dbhome_1 is /u01/oracle
[oracle@db ~]$
2. Start the Database Creation Assistant (dbca)
[oracle@db ~]$ dbca
3. You will be presented with the following screen. Click Next to start the assistant.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 25 of 87
Exadata 2014 Implementation Specialist Boot Camp
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 26 of 87
Exadata 2014 Implementation Specialist Boot Camp
8. Select Use the Same Administrative Password for All Accounts and use the password Oracle99.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 27 of 87
Exadata 2014 Implementation Specialist Boot Camp
9. Select Automatic Storage Management (ASM) from the Storage Type dropdown list. Click the Browse button
and select +DATA. Click next and enter the password oracle for the ASMSNMP credentials.
A pop-up window will be shown asking for the ASMSNMP password. Fill in the dialog box with the password oracle.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 28 of 87
Exadata 2014 Implementation Specialist Boot Camp
10. Specify the Flash Recovery Area (+ARCHIVE) by clicking on the Browse button and change the size to 2100 M
Bytes. Do not enable archiving (this is a must in a production environment but not in our lab environment).
11. Ignore the warning message about the size of the Flash Recovery Area by clicking yes.
12. Check the Sample Schemas check box and click next.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 29 of 87
Exadata 2014 Implementation Specialist Boot Camp
13. Change the Memory Size (SGA and PGA) to 400MB and click Next.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 30 of 87
Exadata 2014 Implementation Specialist Boot Camp
16. Verify that the configuration looks correct and click Ok.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 31 of 87
Exadata 2014 Implementation Specialist Boot Camp
17. Database creation starts. This can take about 20 minutes depending on the load of the test environment we
are using.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 32 of 87
Exadata 2014 Implementation Specialist Boot Camp
18. Make sure that the database is working by creating a new user and a table. The database you just created is
now using ASM and Exadata Storage Cells.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 33 of 87
Exadata 2014 Implementation Specialist Boot Camp
21. Execute the following command and verify that all of the listed series are online on db.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 34 of 87
Exadata 2014 Implementation Specialist Boot Camp
ora.orcl.db
1 ONLINE ONLINE db Open
[oracle@db ~]$
Do not proceed to the next section until you have clearance from your
instructor.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 35 of 87
Exadata 2014 Implementation Specialist Boot Camp
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL>
Tablespace created.
SQL>
3. Create a user called test with the password test and grant the user the dba role (not recommended in a real
world situation but for environment it is fine).
User created.
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
[oracle@db ~]$
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 36 of 87
Exadata 2014 Implementation Specialist Boot Camp
4. Exit SQL*plus and then login as the newly created user, test (password test). Once logged in as the user
test we will create a table called LARGE_TABLE. When the table is created exit SQL*Plus.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
Table created.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 37 of 87
Exadata 2014 Implementation Specialist Boot Camp
To force a select query to do only block I/O we will set the parameter cell_offload_oprocessing to FALSE. Once the
cell offload processing is disabled predicate filtering is not offloaded to the Exadata cells and only block I/O code path
is executed.
1. Connect to the database using SQL*Plus as the test user (password test).
[oracle@db ~]$ sqlplus test/test
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL>
2. Verify the cell parameters by running show parameter cell. The cell_offload_processing parameter should be
set to true.
3. Set the cell_offload_processing parameter to FALSE and verify that the parameter is set to FALSE by running
show parameter cell.
Session altered.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 38 of 87
Exadata 2014 Implementation Specialist Boot Camp
4. Set another parameter (hidden and should not be used in production systems) called
_serial_direct_read to TRUE. This way we will force every query to use a direct read (and therefore
BYPASSES/USES the Exadata smart scan options). To set this parameter the user must have DBA privileges
(which our test user do).
Session altered.
SQL>
999500
999501
999502
999503
6. View the statistics for the query by executing the following query (or execute the script
/home/oracle/scripts/2-6.sql). We will see the following information (save the query as we will use it
again):
Physical read_bytes (column A) is the same as IO_Interconnect_bytes (column B). This means that all
physical reads on the cell where retruned to the database. There was no smart scanning or offloading on
the cell
io_cell_offload_eligible_bytes (column C) and io_cell_offload_returned_bytes (column D) are both 0
which supports our findings.
SQL_ID A B C D
------------- ---------- ---------- ---------- ----------
297mg96w2afa7 130555904 130555904 0 0
7. We will now turn on the parameter cell_offload_processing and the hidden parameter _serial_direct_read (set
to TRUE). Even if those parameters have been enabled, not all queries get offloaded for a predicate filtering.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 39 of 87
Exadata 2014 Implementation Specialist Boot Camp
Only the queries that qualifty for predicate filtering (and direct read) are offloaded, other still go through the
block I/O code path.
Session altered.
Session altered.
999500
999501
999502
999503
9. Verify the statistics again by execute the following statement (or run the script /home/oracle/scripts/2-
6.sql). Note that youll see the statistics from our first run too. We will see the following information (save the
query as we will use it again):
io_cell_offload_eligible_bytes (column C) and io_cell_offload_returned_bytes (column D) are both non-
zero in this case, which means this query was eligible for offload filtering and that a certain amount of data
was actually offloaded. If you devide the column D and C, you can see that in this case less than 1% of the
data was returned although we did a full table scan.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 40 of 87
Exadata 2014 Implementation Specialist Boot Camp
SQL_ID A B C D
------------- ---------- ---------- ---------- ----------
297mg96w2afa7 127926272 28320 127918080 20128
SQL>
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
[oracle@db ~]$
Do not proceed to the next section until you have clearance from
your instructor.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 41 of 87
Exadata 2014 Implementation Specialist Boot Camp
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 42 of 87
Exadata 2014 Implementation Specialist Boot Camp
3. Create a new tablespace for the database file system (DBFS) using the DBFS ASM diskgroup you created
earlier.
Tablespace created.
SQL>
4. Create a new database user to support DBFS and grant the database user the required system privileges and
roles
User created.
SQL> GRANT CREATE session, CREATE TABLE, CREATE PROCEDURE, dbfs_role TO dbfs;
Grant succeeded.
SQL>
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
[oracle@db ~]$
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 43 of 87
Exadata 2014 Implementation Specialist Boot Camp
SQL>
9. Run the dbfs_create_filesystem_advanced.sql script file to create the database objects for your DBFS store.
The first parameter (dbfs) specififes the tablespace where the DBFS is created. The second parameter
(mydbfs) specifices the name of the DBFS store. The last four parameters specified various parameters inside
the DBFS store.
11. Create a file named dbfs_pwd.txt which contains the password for the DBFS database user.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 44 of 87
Exadata 2014 Implementation Specialist Boot Camp
[oracle@db mydbfs]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda2 4089720 2941056 1148664 72% /
/dev/xvda1 31077 16980 12493 58% /boot
/dev/xvdb1 8768128 7757848 564880 94% /u01
tmpfs 2097152 420592 1676560 21% /dev/shm
dbfs 448 25 423 6% /home/oracle/DBFS
[oracle@db mydbfs]$
2. Use the head command to list the first lines of the file
3. Now will you create an external table to reference the data. Connect to the database as a database
administrator
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 45 of 87
Exadata 2014 Implementation Specialist Boot Camp
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL>
Directory created.
SQL>
5. Grant read and write permissions on your newly created directory object to the test user.
Grant succeeded.
SQL>
7. Create an external table which references the data in your DBFS CSV data file by executing the following
statement as the test user (or run the /home/oracle/scripts/8-22.sql).
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 46 of 87
Exadata 2014 Implementation Specialist Boot Camp
Table created.
SQL>
8. Configure you session to display execution plans and run the following query to display the number of records
in the external table. Note the parallel execution and the EXTERNAL TABLE ACCESS FULL.
COUNT(*)
----------
100000
Execution Plan
----------------------------------------------------------
Plan hash value: 2705389078
-----------------------------------------------------------------------------
|Id |Operation | Name | Rows | Cost (%CPU)|Time |
TQ |IN-OUT|PQ Distrib|
-----------------------------------------------------------------------------|
0|SELECT STATEMENT | | 1| 16 (0)|00:00:01|
| | |
| 1| SORT AGGREGATE | | 1| | |
| | |
| 2| PX COORDINATOR | | | | |
| | |
| 3| PX SEND QC (RANDOM) | :TQ10000 | 1| | |
Q1,00| P->S |QC (RAND) |
| 4| SORT AGGREGATE | | 1| | |
Q1,00| PCWP | |
| 5| PX BLOCK ITERATOR | | 8168| 16 (0)|00:00:01|
Q1,00| PCWC | |
| 6| EXTERNAL TABLE ACCESS FULL| DBFS_CUSTOMERS| 8168| 16 (0)|00:00:01|
Q1,00| PCWP | |
-----------------------------------------------------------------------------
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 47 of 87
Exadata 2014 Implementation Specialist Boot Camp
10. Use CTAS (Create Table As Select) command to load the external table data contained in the CSV file into a
new regular table in the database
Table created.
SQL>
11. Verify the numbers of records in the database are the same as the number of rows in the CSV file.
COUNT(*)
----------
100000
12. Exit your SQL*Plus session and list the content of the DBFS directory.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
[oracle@db ~]$ ls -l $HOME/DBFS/mydbfs
total 7388
-rw-r--r-- 1 oracle oinstall 6 Feb 14 21:29 andy.txt
-rw-r--r-- 1 oracle oinstall 7552705 Feb 14 20:47 customers.csv
-rw-r--r-- 1 oracle dba 1377 Feb 14 21:55 custxt000_13640.log
-rw-r--r-- 1 oracle dba 1377 Feb 14 21:55 custxt000_13845.log
-rw-r--r-- 1 oracle dba 2754 Feb 14 21:55 custxt000_13877.log
-rw-r--r-- 1 oracle dba 5508 Feb 14 22:00 custxt000_14113.log
[oracle@db ~]$
13. Examine the content of the log files (note that the filename will be different than the sample below):
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 48 of 87
Exadata 2014 Implementation Specialist Boot Camp
[oracle@db ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda2 4089720 2949316 1140404 73% /
/dev/xvda1 31077 16980 12493 58% /boot
/dev/xvdb1 8768128 7775696 547032 94% /u01
tmpfs 2097152 424700 1672452 21% /dev/shm
[oracle@db ~]$
4. Unmounting the DBFS file system terminated the dbfs_client process. Verify that the process no longer
running.
5. What will happen if you try to query the external table after the DBFS is unmounted? Try!
Do not proceed to the next section until you have clearance from
your instructor.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 49 of 87
Exadata 2014 Implementation Specialist Boot Camp
Lab F Compression
Objective: Create tables using the multiple levels of
25 minutes
compression available in Exadata
Task 1: Compression
To demonstrate the value of compression with Exadata, we are going to create a number of tables, each with different
form of compression and then compare the result.
1. Establish a connection to the database using the user test (password test).
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL>
2. Execute the following statements to create four tables with different compressions. The elapsed time will vary.
Table created.
Elapsed: 00:00:28.73
SQL> CREATE TABLE large_normal_compress compress AS SELECT * FROM large_table;
Table created.
Elapsed: 00:00:20.58
SQL> CREATE TABLE large_ehcc_query compress FOR query low AS SELECT * FROM large_table;
Table created.
Elapsed: 00:00:06.56
SQL> CREATE TABLE large_ehcc_archive compress FOR archive high AS SELECT * FROM
large_table;
Table created.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 50 of 87
Exadata 2014 Implementation Specialist Boot Camp
Elapsed: 00:00:39.35
SQL>
Elapsed: 00:00:00.14
SQL>
4. Run the following query to compare the sizes of the tables (or run the script /home/oracle/scripts/4-
4.sql). You can calculate the compression ratio achieved by using the formula: Compression Ratio =
Uncompressed Size/ Compressed Size.
SEGMENT_NAME MB
------------------------------ ----------
LARGE_NORMAL_COMPRESS 72.0
LARGE_EHCC_ARCHIVE 8.0
LARGE_EHCC_QUERY 22.0
LARGE_TABLE 128.0
LARGE_UNCOMPRESSED 128.0
Elapsed: 00:00:00.02
SQL>
Do not proceed to the next section until you have clearance from
your instructor.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 51 of 87
Exadata 2014 Implementation Specialist Boot Camp
1. Connect to cell1 as the celladmin user and start the CellCLI command. The Efficiency ratio displayed is the
ratio between data accessed by the storage cell and data processed by the database for the cell. Larger
values mean more offloading to the cell. The value will be different in your environment.
CellCLI>
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk01
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk01 normal
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk02
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk02 normal
CellCLI>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 52 of 87
Exadata 2014 Implementation Specialist Boot Camp
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk01
CD_disk01_cell1
CellCLI>
CellCLI>
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Automatic Storage Management option
SQL>
6. Execute the following commands. Note that the drop disk command will return control to you immediately. In
the background data will be moved from the two griddisks to other locations. Only if the disks are empty they
will be released from ASM (this can take a while)
SQL>
SQL> alter diskgroup DATA drop disk data_CD_disk01_cell1;
Diskgroup altered.
Diskgroup altered.
SQL>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 53 of 87
Exadata 2014 Implementation Specialist Boot Camp
7. After the completion of the drop disk command on the ASM diskgroups we can drop the disks on the Exadata
cell (cell1). Open a session to cell1 as the celladmin user and start the CellCLI utility. The Efficiency ratio
displayed is the ratio between data accessed by the storage cell and data processed by the database for the
cell. Larger values mean more offloading to the cell. The value will be different in your environment.
CellCLI>
8. Execute the following commands to take the disk out of the configuration and can be replaced or setup for
another diskgroup.
If you get the following error you need to wait until ASM has rebalanced the data on the disk you want to drop.
Or you can and the attribute force with the drop command (drop griddisk data_CD_disk01_cell1
force)
CELL-02549: Grid disk is in use and FORCE is not specified for the operation.
CellCLI>
archive_CD_new_disk01_cell1 active
data_CD_disk02_cell1 active
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 54 of 87
Exadata 2014 Implementation Specialist Boot Camp
data_CD_new_disk01_cell1 active
CellCLI>
11. The new griddisks are available for ASM immediately. Login into the ASM instance and execute the following
command to add disks back into the diskgroups
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Automatic Storage Management option
Diskgroup altered.
Diskgroup altered.
SQL>
Do not proceed to the next section until you have clearance from
your instructor.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 55 of 87
Exadata 2014 Implementation Specialist Boot Camp
name: N_NIC_TRANS_SEC
description: "Total number of IO packets transmitted by
interconnects per second"
metricType: Rate
objectType: CELL
unit: packets/sec
name: N_RDMA_RETRY_TM
description: "Latency of the retry actions during RDMA transmission
to a particular host"
metricType: Cumulative
objectType: HOST_INTERCONNECT
unit: ms
CellCLI>
2. The list is very long so we can filter out the metrics we would like to see
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 56 of 87
Exadata 2014 Implementation Specialist Boot Camp
CellCLI>
name: N_NIC_TRANS_SEC
alertState: normal
collectionTime: 2011-10-21T15:55:52-04:00
metricObjectName: cell1
metricType: Rate
metricValue: 15.5 packets/sec
objectType: CELL
name: N_RDMA_RETRY_TM
alertState: normal
collectionTime: 2011-10-21T15:55:16-04:00
metricObjectName: db.exadata.local
metricType: Cumulative
metricValue: 0 ms
objectType: HOST_INTERCONNECT
CellCLI>
CellCLI>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 57 of 87
Exadata 2014 Implementation Specialist Boot Camp
name: Stateful_HardwareAlert
alertShortName: Hardware
alertSource: Hardware
alertType: Stateful
description: "Hardware Stateful Alert"
metricName:
name: Stateful_SoftwareAlert
alertShortName: Software
alertSource: Software
alertType: Stateful
description: "Software Stateful Alert"
metricName:
CellCLI>
6. Setup an threshold for latency rate metric CT_IO_WT_LG_RQ to generate stateful alerts for ASM category, if
latency per large IO request is greater than 10ms (wrning), or greater than 15ms (critical)
CellCLI>
CellCLI>
8. To check the status of an alert use the following command. There shouldnt be any alerts.
9. All runtime logging on the cells is done using the Advanced Diagnostic Repository, just as for the database.
Login into one of the cells as the celladmin user (password oracle)
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 58 of 87
Exadata 2014 Implementation Specialist Boot Camp
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
13. Set a home and show the logfile for the cell
14. Exit the alert log by pressing the Escape key and type q! (regular vi command)
15. Show any incidents in this cell. There should not be any incidents
adrci>
adrci> exit
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 59 of 87
Exadata 2014 Implementation Specialist Boot Camp
Task 2: DCLI
1. Start a new terminal session on the DB node and become root (password oracle). Make sure you are on
the home directory of root (/root)
2. Copy the dcli script from cell1 to the DB node. The dcli script is located in /opt/oracle/cell/cellsrv/bin
3. Create a new file in the home directory of root that contains information about the cells
6. List all physical disks on all cells using hostnames instead of the file where you have specified the cells
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 60 of 87
Exadata 2014 Implementation Specialist Boot Camp
cell1: /opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk01
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk01 normal
cell1: /opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk02
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk02 normal
cell2: /opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/FLASH01
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/FLASH01 normal
cell2: /opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/FLASH02
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/FLASH02 normal
cell2: /opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk01
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk01 normal
cell2: /opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk02
/opt/oracle/cell11.2.1.2.0_LINUX.X64_091102/disks/raw/disk02 normal
[root@db ~]#
Do not proceed to the next section until you have clearance from
your instructor.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 61 of 87
Exadata 2014 Implementation Specialist Boot Camp
Lab I IORM
Objective: Perform resource management tasks in the
30 minutes
Exadata Database
1. Connect to cell1 from the database node using the celladmin user (password oracle)
2. Start CellCLI. The Efficiency ratio displayed is the ratio between data accessed by the storage cell and data
processed by the database for the cell. Larger values mean more offloading to the cell. The value will be
different in your environment.
CellCLI>
3. Check the status of the IO Resource Manager Plans by executing the following command.
CellCLI>
4. Establish a connection from the DB node to the cell2 Exadata Storage Cell in a new terminal window.
5. Start CellCLI. The Efficiency ratio displayed is the ratio between data accessed by the storage cell and data
processed by the database for the cell. Larger values mean more offloading to the cell. The value will be
different in your environment.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 62 of 87
Exadata 2014 Implementation Specialist Boot Camp
CellCLI>
6. Check the status of the IO Resource Manager Plans by executing the following command:
CellCLI>
7. IORM has to be activated individually on every Exadata Storage Cell separately. This can be done by using
the dcli command utility. As we only have 2 cells we will use the CellCLI command on both cells. Execute thw
following command on cell1 and verify the status
CellCLI>
CellCLI>
9. Enable an inter-database resource plan, execute the following command in the cellcli interface for cell1
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 63 of 87
Exadata 2014 Implementation Specialist Boot Camp
10. Verify that the plan has been set correctly for cell1
CellCLI>
11. Logout out of CellCLI and check the alert log file for the cell1. The command should be on one line the
hyphen is there for display purposes only.
12. Before continuing with the exercises, disable the IORM plan on both cells (cell1 and cell2)
CellCLI>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 64 of 87
Exadata 2014 Implementation Specialist Boot Camp
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 65 of 87
Exadata 2014 Implementation Specialist Boot Camp
Task 1: Security
1. Establish a connection to the Exadata Storage Cell cell1 and show the security attributes and status of a
griddisk (in this case data_CD_disk01_cell1). Verify that the AvailableTo: filed is empty as we havent defined
any security rules yet). When done close the connection to the Exadata Storage Cell cell1. The Efficiency ratio
displayed is the ratio between data accessed by the storage cell and data processed by the database for the
cell. Larger values mean more offloading to the cell. The value will be different in your environment.
CellCLI>
2. We will now setup ASM scoped security. To be able to accomplish this we need to stop the database and the
ASM instance.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 66 of 87
Exadata 2014 Implementation Specialist Boot Camp
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Automatic Storage Management option
4. Establish a connection to the Exadata Storage Cell cell1 as the celladmin user (password oracle) and
start CellCLI. The Efficiency ratio displayed is the ratio between data accessed by the storage cell and data
processed by the database for the cell. Larger values mean more offloading to the cell. The value will be
different in your environment.
CellCLI>
5. We are now going to create a random key (you can create your own by yourself or you can have the Exadata
cell create one for you). Please note that the following command has to be executed on only one cell and the
result needs to be used on both cells. Also, the value of the key will be different than shown below.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 67 of 87
Exadata 2014 Implementation Specialist Boot Camp
CellCLI>
7. Establish a connection to the Exadata Storage Cell cell2 as the celladmin user (password oracle) and
start CellCLI. The Efficiency ratio displayed is the ratio between data accessed by the storage cell and data
processed by the database for the cell. Larger values mean more offloading to the cell. The value will be
different in your environment.
CellCLI>
CellCLI>
9. If you misplace the key, you can always use get it by executing the following command
CellCLI>
CellCLI>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 68 of 87
Exadata 2014 Implementation Specialist Boot Camp
CellCLI>
12. Now try to start the ASM instance on the DB system. ASM will report an insufficient number of disks for both
diskgroups because we limited the access to the disks but we didnt link the +ASM instance with the key we
used (there are more details in the alert.log).
SQL> startup
ASM instance started
SQL>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 69 of 87
Exadata 2014 Implementation Specialist Boot Camp
14. On the DB node, become the root user (password oracle) and change the prompt to the directory where the
key for the ASM instance is stored and create the file cellkey.ora that contains the key for the ASM instance.
15. Exit the root user session and start the ASM instance. The ASM instance will report the diskgroups as
mounted.
SQL> startup
ASM instance started
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 70 of 87
Exadata 2014 Implementation Specialist Boot Camp
18. Connect to the Exadata Storage Cell cell1 and assign the key for the ORCL instance (DB instance) on cell1
using the CellCLI command.
CellCLI>
19. Connect to the Exadata Storage Cell cell2 and assign the key for the ORCL instance (DB instance) on cell2
using the CellCLI command.
CellCLI>
20. Assign the ORCL database to the griddisks on the cell1. Make sure to include any current values because
altering the field overwrites the previous values
CellCLI>
21. Verify that the availableTo field has the correct information on a griddisk
CellCLI>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 71 of 87
Exadata 2014 Implementation Specialist Boot Camp
22. Assign the ORCL database to the griddisks on the cell2. Make sure to include any current values because
altering the field overwrites the previous values
CellCLI>
23. Verify that the availableTo field has the correct information on a griddisk
CellCLI>
24. Start the ORCL instance on the DB node. The database will start without a problem as no key has been
defined yet on the database level.
25. Shutdown the database and the ASM instance so we can define a key for the database.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 72 of 87
Exadata 2014 Implementation Specialist Boot Camp
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Automatic Storage Management option
26. On the DB system, create the directory that will hold the keyfile. Do NOT use the $ORACLE_BASE/admin
directory!
27. Create a dummy keyfile, without the correct key (so we can verify that security works).
28. Start the database again, this will fail as we didnt provide the system with the right key.
SQL> startup
ASM instance started
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 73 of 87
Exadata 2014 Implementation Specialist Boot Camp
29. Shutdown the database again and re-create the cellkey.ora file but this time use the proper values.
30. Start the database and check the status of the database.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 74 of 87
Exadata 2014 Implementation Specialist Boot Camp
1. Login into the Exadata Storage cell cell1 (password oracle) and look what objects are currently in the
Flash Cache using the CellCLI command. The Efficiency ratio displayed is the ratio between data accessed by
the storage cell and data processed by the database for the cell. Larger values mean more offloading to the
cell. The value will be different in your environment.
cachedKeepSize: 0
cachedSize: 401408
dbID: 2539498073
hitCount: 0
missCount: 0
objectNumber: 76669
tableSpaceNumber: 7
cachedKeepSize: 0
cachedSize: 1343488
dbID: 2539498073
hitCount: 1
missCount: 0
objectNumber: 76670
tableSpaceNumber: 7
CellCLI>
2. The result is a long list of objects which are currently in the flash cache, The attribute objectNumber refers to
the object_id in user_objects and by querying this table you can see exactly which objects are stored in flash
cache. Login to the database as the SYS user and take one of the numbers and execute the following query to
see which object it is.
OBJECT_NAME
----------------------------------------------------------------OBJECT_TYPE
-------------------
LARGE_EHCC_QUERY
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 75 of 87
Exadata 2014 Implementation Specialist Boot Camp
TABLE
SQL>
1. Login into the database as the user test (password test) and execute the following query to see the current
statistics for storage indexes (or execute the script /home/oracle/scripts/7-1.sql).
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
NAME MB
---------------------------------------------------------------- ---------
physical read total bytes 122.0
physical write total bytes .0
cell physical IO interconnect bytes .0
cell physical IO bytes saved during optimized file creation .0
cell physical IO bytes saved during optimized RMAN file restore .0
cell physical IO bytes eligible for predicate offload 121.9
cell physical IO bytes saved by storage index 121.0
cell physical IO interconnect bytes returned by smart scan .0
cell IO uncompressed bytes .9
9 rows selected.
SQL>
2. To see the benefits of storage indexes and query offloading we need to clear the storage indexes. Start by
stopping the database and ASM instance on the db node (if you dont do this the database might be corrupted
as we are simulating the Exadata environment in virtual machines).
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 76 of 87
Exadata 2014 Implementation Specialist Boot Camp
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Automatic Storage Management option
3. Verify that the database and ASM instance is not running before proceeding to the next step.
4. To see the benefits of storage indexes and query offloading we need to clear the storage indexes. As storage
indexes are only cleared when the cell is offline, we will stop and start the cells. Login into cell1 as the root
user (password oracle) and execute the following commands and logout of the cell.
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 77 of 87
Exadata 2014 Implementation Specialist Boot Camp
CellCLI> exit
quitting
5. Logon to cell2 as the root user and execute the same commands. Do NOT do this until the first cell is up and
running again. The Efficiency ratio displayed is the ratio between data accessed by the storage cell and data
processed by the database for the cell. Larger values mean more offloading to the cell. The value will be
different in your environment.
CellCLI> exit
quitting
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 78 of 87
Exadata 2014 Implementation Specialist Boot Camp
SQL> startup
ASM instance started
7. Exit the SQL*Plus Session and start the database instance. Verify that the database is running.
8. Login to the database as the test user (password test) and check the statistics (or execute the script
/home/oracle/scripts/7-1.sql). The cell physical IO bytes saved by storage index should be close to
0
NAME MB
--------------------------------------------------------------- ----------
physical read total bytes .296875
physical write total bytes 0
cell physical IO interconnect bytes .296875
cell physical IO bytes saved during optimized file creation 0
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 79 of 87
Exadata 2014 Implementation Specialist Boot Camp
9 rows selected.
SQL>
9. Run a query with timing on and check the statistics. Write down the result on how long the query took.
COUNT(*)
----------
101
Elapsed: 00:00:01.44
10. Execute the same query again and note the timing. As you can see the second execution was a lot faster. This
is because we are using the offloading capabilities and storage indexes.
SQL> select count(*) from large_table where id between 100 and 200;
COUNT(*)
----------
101
Elapsed: 00:00:00.02
11. Check the statistics for the query offloading by executing the following query (or run the script
/home/oracle/scripts/7-1.sql).
NAME MB
--------------------------------------------------------------- ----------
physical read total bytes 244.3125
physical write total bytes 0
cell physical IO interconnect bytes .349899292
cell physical IO bytes saved during optimized file creation 0
cell physical IO bytes saved during optimized RMAN file restore 0
cell physical IO bytes eligible for predicate offload 243.984375
cell physical IO bytes saved by storage index 121.070313
cell physical IO interconnect bytes returned by smart scan .021774292
cell IO uncompressed bytes 122.914063
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 80 of 87
Exadata 2014 Implementation Specialist Boot Camp
9 rows selected.
Elapsed: 00:00:00.02
SQL>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 81 of 87
Exadata 2014 Implementation Specialist Boot Camp
1. Open a terminal window (or use an already open one) and make sure that you are the oracle user.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL>
SQL>
4. The object USER_INDEXES has a new column named VISIBILITY to indicate whether the index is visible or
not.
INDEX_NAME VISIBILIT
------------------------------ ---------
CUST_ID_IDX VISIBLE
SQL>
SQL>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 82 of 87
Exadata 2014 Implementation Specialist Boot Camp
System altered.
SQL>
7. Run the following query. Note that the execution plan uses an index range scan on the CUSTOMERS_ID_IDX.
SQL> SELECT AVG(credit_limit) FROM customers WHERE customer_id BETWEEN 1000 AND 1500;
AVG(CREDIT_LIMIT)
-----------------
2728.14516
Elapsed: 00:00:00.01
Execution Plan
----------------------------------------------------------
Plan hash value: 416268997
--------------------------------------------------------------------------------
------------
--------------------------------------------------------------------------------
------------
| 1 | SORT AGGREGATE | | 1 | 10 |
| |
--------------------------------------------------------------------------------
------------
SQL>
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 83 of 87
Exadata 2014 Implementation Specialist Boot Camp
Index altered.
SQL>
INDEX_NAME VISIBILIT
------------------------------ ---------
CUST_ID_IDX INVISIBLE
SQL>
10. Run the same query again as in step 7. Notice that an Exadata Smart Scan is used rather than an index range
scan.
SQL> SELECT AVG(credit_limit) FROM customers WHERE customer_id BETWEEN 1000 AND 1500;
AVG(CREDIT_LIMIT)
-----------------
2728.14516
Execution Plan
----------------------------------------------------------
Plan hash value: 296924608
--------------------------------------------------------------------------------
--------
--------------------------------------------------------------------------------
--------
| 1 | SORT AGGREGATE | | 1 | 10 | |
|
--------------------------------------------------------------------------------
--------
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 84 of 87
Exadata 2014 Implementation Specialist Boot Camp
---------------------------------------------------
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
[oracle@db ~]$
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 85 of 87
Exadata 2014 Implementation Specialist Boot Camp
Appendix Troubleshooting
Objective: Resolve issues with the environment
To connect to VNC using MAC, use Chicken of the Sea VNC and connect to VNC running on port 50.
Display: 50
Password: oracle
SSH Issues
Fixing IP Issues
Cells
1. Login as root on both cells
2. Stop the cell service
a. service celld stop
3. Get the ipaddress of the server
a. ifconfig
4. Edit the network file
a. vi /etc/sysconfig/network-scripts/ifcfg_eth0
IPADDR=10.216.#.#
NETMASK=255.255.252.0
BOOTPROTO=static
5. Restart the network service
a. service network restart
6. Redploy the Exadata services
a. sh $OSS_SCRIPTS_HOME/unix/setup_dynamicDeploy
7. Startup the Exadata services
a. cellcli e alter cell startup services rs
b. cellcli e alter cell startup services ms
c. cellcli e create cell interconect1=eth0
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 86 of 87
Exadata 2014 Implementation Specialist Boot Camp
DBS
1. Login as root
2. Get the ip address
a. ifconfig
3. Edit nework
a. vi /etc/sysconfig/network-scripts/ifcfg_eth0
IPADDR=10.216.#.#
NETMASK=255.255.252.0
BOOTPROTO=static
4. service network restart
Celldisk Error
CellCLI> create celldisk all
No cell disks qualified for this create operation
For Oracle employees and authorized partners only. Do not distribute to third parties.
2014 Oracle Corporation Proprietary and Confidential Page 87 of 87