You are on page 1of 4

☎ +91 965 246 5533  +1 512 808 5399 ✉ info@netsoftmate.com  www.netsoftmate.

com

Netsoftmate IT Solutions
Expert Services from Service Experts

DATABASES | CLOUD | MSP| ENGINEERED SYSTEMS | REPLICATION | CONSULTING | INFRASTRUCTURE | SECURITY

Exadata Useful Commands Exadata Useful Commands Cont…


Get Exadata Model: Drop and Create Flash Cache:
# exadata.img.hw --get model # cellcli -e drop flashcache all
-or- # cellcli -e create flashcache all
CellCLI> list cell attributes makeModel Drop and create flashlog
-or- cellcli -e drop flashlog all
# dmidecode -s system-product-name cellcli -e create flashlog all
-or- List alert history on compute node and storage cell
# grep -i MACHINETYPES /opt/oracle.SupportTools/onecommand/databasemachine.xml # dbmcli -e list alerthistory
Get Exadata master Serial: # cellcli -e list alerthistory
# ipmitool sunoem cli 'show /SP system_identifier' Drop alert history on compute node and storage cell
Get Serial number of individual Servers: # dbmcli -e drop alerthistory all
# ipmitool sunoem cli "show /SYS product_serial_number" # cellcli -e drop alerthistory all
-or- Check cache policy (WriteThru or WriteBack):
# dmidecode -s system-serial-number # cellcli -e list cell detail" | grep "flashCacheMode"
Get Serial number of Infiniband Switch: Check Flash Cache Compress:
# showfruinfo # cellcli -e list cell attributes FlashCacheCompress
Check Storage software version: To check the current active image on all storage cells:
# imageinfo # dcli -g ~/cell_group -l root imageinfo
Check Storage software version history: To check all cell services are up and running:
# imagehistory # dcli -g ~/cell_group -l root service celld status
Check Infiniband Switch version: To check the current active image on all compute nodes:
# version # dcli -g ~/dbs_group -l root imageinfo
Check cell service status: Exacli command to list grid disks:
# service celld status exacli -l celladmin -c edw01cel01 -e list griddisk detail
Restart the cell service software:
# service celld restart Exadata Utilities
# cellcli -e alter cell restart services all dbmcli
Stop/Start the cell service software: Command-line administration tool for configuring database servers, and managing
# service celld stop objects in the server environment.
# cellcli -e alter cell shutdown services all
# service celld start cellcli
# cellcli -e alter cell startup services all Command-line administration tool for Oracle Exadata Storage Server Software
List Physical disk on Storage Cell:
# lsscsi -v dcli
List Physical disk on Storage Cell and their size: Runs commands on multiple compute nodes and cells in parallel threads
# cellcli -e list physicaldisk where disktype=HardDisk attributes name, physicalSize
List Flash disk on Storage Cell: exacli
# lsscsi -v|grep MARVELL Command-line administration tool for Oracle Exadata Storage Server Software. It
List Flash disk on Storage Cell and their Size: runs on compute nodes and enables you to manage cells remotely.
# cellcli -e list physicaldisk where disktype='FlashDisk' attributes name, disktype, physicalSize
List Flash Cache and Flash Log: exadcli
# cellcli -e list flashcache detail The exadcli utility runs commands on multiple cells in parallel threads. You can
# cellcli -e list flashlog detai issue an ExaCLI command to be run on multiple cells.
Setup SSH Equivalence:
# /opt/oracle.SupportTools/setup_ssh_eq.sh ~/dbs_group root welcome1 OEDA
Get Storage cell details: The Exadata Deployment Assistant tool used to gather the information needed to
# cellcli -e list cell detail deploy the Exadata Database Machine. The information entered in the tool is used
Get Database server details: to create the configuration files used to deploy the machine.
# dbmcli -e list dbserver detail
Drop grid and cell disks checkip.sh
# cellcli -e drop griddisk all Run the Network Check script on the network where the machine will be deployed
# cellcli -e drop celldisk all to validate the specified names and IP addresses have been added correctly to the
Create cell and grid diks name server, and they do not conflict with the existing network configuration.
# cellcli -e create celldisk all harddisk
# cellcli -e create griddisk all harddisk prefix='DATA', size=400G exachk
Exachk utility used to conduct a comprehensive Exadata Health Check on Exadata
Database Machine to validate hardware, firmware and configuration.

Netsoftmate IT Solutions Private Limited


#8-2-695/E/4, Plot No. 195, Rock House, First Floor, Road No. 12, Banjara Hills, Hyderabad - 500034, Telangana, India.
☎ +91 965 246 5533  +1 512 808 5399 ✉ info@netsoftmate.com  www.netsoftmate.com

Exadata Diagnostic Utilities Exadata Patching Commands

sundiag.sh Storage Cell Patching:


/opt/oracle.SupportTools/sundiag.sh # ./patchmgr -cells cell_group -reset_force
# ./patchmgr -cells cell_group -cleanup
exawatcher # ./patchmgr -cells cell_group -patch_check_prereq
/opt/oracle.ExaWatcher/GetExaWatcherResults.sh # ./patchmgr -cells ~/cell_group –patch
./patchmgr -cells cell_group –cleanup
ipconfig
/opt/oracle.cellos/ipconf Compute Node Patching:
# ./dbnodeupdate.sh -u -l
CheckSWProfile.sh /u01/app/oracle/software/ESS_121220/p21825906_121220_Linux-x86-64.zip -v
/opt/oracle.SupportTools/CheckSWProfile.sh # ./dbnodeupdate.sh -u -l
/u01/app/oracle/software/ESS_121220/p21825906_121220_Linux-x86-64.zip -b
verify-topology # ./dbnodeupdate.sh -u -l
/opt/oracle.SupportTools/ibdiagtools/verify-topology /u01/app/oracle/software/ESS_121220/p21825906_121220_Linux-x86-64.zip
# ./dbnodeupdate.sh -c
ibdiagnet -or-
/usr/bin/ibdiagnet # ./patchmgr -dbnode dbs_group -dbnode_upgrade -dbnode_loc
/u01/app/oracle/software/ESS_121220/p21825906_121220_Linux-x86-64.zip -
infinicheck dbnode_version 12.1.2.2.0.150917
/opt/oracle.SupportTools/ibdiagtools/infinicheck
Infiniband Switch Patching:
CheckHWnFWProfile # ./patchmgr -ibswitches ibswitches.lst -upgrade -ibswitch_precheck -force
/opt/oracle.SupportTools/CheckHWnFWProfile # ./patchmgr -ibswitches ibswitches.lst -upgrade -force

sosreport
/usr/sbin/sosreport

Connecting to Exadata Components Exadata ILOM Commands

Compute Node Connecting to ILOM


Open a putty session or use SSSH and enter the compute node hostname/IP address # ssh root@dm01db01-ilom
Login: root/password Password:
# ssh dm01db01 ->
Storage Cell
Open a putty session or use SSSH and enter the Storage cell hostname/IP address Display information about targets:
Login: root/password -> show
# ssh dm01cel01 Display host boot properties:
Infiniband Switch -> show /HOST
Open a putty session or use SSSH and enter the IB Switch hostname/IP address Display SP Console:
Login: root/password -> start /SP/console
# ssh dm01sw-iba01 Display System properties:
Compute node ILOM -> show /System
Open a putty session or use SSSH and enter the compute node ILOM hostname/IP Show Service Processor:
address -> show /SP
Login: root/password Display host details:
# ssh dm01db01-ilom -> show /SYS
Storage Cell ILOM Reset/Restart Server:
Open a putty session or use SSSH and enter the Storage Cell ILOM hostname/IP address -> reset /SYS
Login: root/password Start Server:
# ssh dm01cel01-ilom -> start /SYS
Infiniband Switch ILOM Display Network Configuration:
Open a browser and enter the IB Switch hostname/IP address -> show /SP/network
Login: root/password check ILOM time
http://dm01sw-iba01.int.netsoftmate.com/ -> show -d properties /SP/clock
Cisco Switch Check ILOM uptime
Open a putty session or use SSSH and enter the Cisco Switch hostname/IP address -> show -d properties /SP/clock uptime
Login: admin/password Check ILOM event logs
# ssh dm01sw-admin -> show /SP/logs/event/list
PDU Check Hardware Fault
Open a browser and enter the PDU hostname/IP address -> show -d properties -level all /SYS/MB fault_state==Faulted
Login: admin/password Clear Fault
http://dm01sw-pdua01.int.netsoftmate.com/ -> set /SYS/MB/P0 clear_fault_action=true
KVM Create User:
http://dm01sw-kvm.int.netsoftmate.com/ -> cd /SP/users
login: Admin/password -> create oemuser

Netsoftmate IT Solutions Private Limited


#8-2-695/E/4, Plot No. 195, Rock House, First Floor, Road No. 12, Banjara Hills, Hyderabad - 500034, Telangana, India.
☎ +91 965 246 5533  +1 512 808 5399 ✉ info@netsoftmate.com  www.netsoftmate.com

Exadata Key Features


Exadata Smart Scan Exadata Storage Indexes
Smart scans occurs when:
- Query performs a full table scan or fast full index scan Enable Storage Indexes (Default is enabled):
- The objects that are scanned qualify for direct path reads SQL> alter system set "_kcfis_storageidx_disabled"=FALSE scope=both sid='*';
- Query does not contain any functions that are not offloadable
- Database storage resides on Exadata cells Disable Storage Indexes:
SQL> alter system set "_kcfis_storageidx_disabled"=TRUE scope=both sid='*';
List offloadable operations:
SQL> select name,offloadable from v$sqlfn_metadata where offloadable='YES'; Monitor Storage Indexes:
SQL> select name, value from v$mystat s, v$statname n where s.statistic# =
Enable Cell offloading: n.statistic# and name like '%storage index%';
SQL> alter session set cell_offload_processing=true;
SQL> alter sytem set cell_offload_processing=true; Enable Storage Indexes Tracing:
CellCLI> alter cell events="immediate
Disable Cell offloading: cellsrv.cellsrv_setparam('_cell_storage_index_diag_mode',2)"
SQL> alter session set cell_offload_processing=false;
SQL> alter sytem set cell_offload_processing=false; Disabled Storage Indexes Tracing:
CellCLI> alter cell events="immediate
Enable/Disable offloading for ASM DG: cellsrv.cellsrv_setparam('_cell_storage_index_diag_mode',0)"
SQL> alter diskgroup DATA set attribute 'cell.smart_scan_capable'='TRUE';
SQL> alter diskgroup DATA set attribute 'cell.smart_scan_capable'='FALSE';

Identifying Smart Scan using 10046 tracing:


SQL> alter session set events '10046 trace name context forever, level 8';

Exadata Smart Flash Cache Exadata Smart Flash Log

List Smart Flash Cache List Smart Flash Log


# dcli -g ~/cell_group cellcli -e list flashcache attributes name,size,status # dcli -g ~/cell_group cellcli -e list flashlog attributes name,size,status

Drop Smart Flash Cache Drop Smart Flash Log


# dcli -g ~/cell_group cellcli -e drop flashcache all # dcli -g ~/cell_group cellcli -e drop flashlog all

Create Smart Flash Cache Create Smart Flash Log


# dcli -g ~/cell_group cellcli -e create flashcache all # dcli -g ~/cell_group cellcli -e create flashlog all

Create Flash Cache using size attribute


# dcli -g ~/cell_group cellcli -e create flashcache all size=500g

List database Objects in Flash Cache


# dcli -g ~/cell_group cellcli -e list flashcachecontent attributes
dbUniqueName,hitCount,missCount,cachedSize,objectNumber

Display flash cache metrics and their descriptions:


# cellcli -e list metricdefinition where objectType='FLASHCACHE' attributes
name,description

Exadata Hybrid Columnar Compression Exadata IO Resource Manager

Four EHCC Compression algorithm: List IORM Plan:


COMPRESS FOR QUERY LOW # dcli -g ~/cell_group cellcli -e list iormplan
COMPRESS FOR QUERY HIGH # cellcli -e list iormplan detail
COMPRESS FOR ARCHIVE LOW
COMPRESS FOR ARCHIVE HIGH Disable IORM Plan:
# dcli -g ~/cell_group cellcli -e alter iormplan inactive
Examples:
Enable IORM Plan:
SQL> CREATE TABLE NSM.EHCC_COMP_QL NOLOGGING PARALLEL 16 COMPRESS FOR # dcli -g ~/cell_group cellcli -e alter iormplan active
QUERY LOW AS SELECT /*+ parallel (a 16) */ * FROM NSM.TAB_NOCOMP a;
Monitoring IORM:
SQL> CREATE TABLE NSM.EHCC_COMP_QH NOLOGGING PARALLEL 16 COMPRESS # cellcli -e list metricdefinition where objectType='IORM_CATEGORY' attributes
FOR QUERY HIGH AS SELECT /*+ parallel (a 16) */ * FROM NSM.TAB_NOCOMP a; name,description
# cellcli -e list metricdefinition where objectType='IORM_DATABASE' attributes
SQL> CREATE TABLE NSM.EHCC_COMP_AL NOLOGGING PARALLEL 16 COMPRESS FOR name,description
ARCHIVE LOW AS SELECT /*+ parallel (a 16) */ * FROM NSM.TAB_NOCOMP a; # cellcli -e list metricdefinition where objectType='IORM_CONSUMER_GROUP'
attributes name,description
SQL> CREATE TABLE NSM.EHCC_COMP_AH NOLOGGING PARALLEL 16 COMPRESS FOR
ARCHIVE HIGH AS SELECT /*+ parallel (a 16) */ * FROM NSM.TAB_NOCOMP a;

Netsoftmate IT Solutions Private Limited


#8-2-695/E/4, Plot No. 195, Rock House, First Floor, Road No. 12, Banjara Hills, Hyderabad - 500034, Telangana, India.
☎ +91 965 246 5533  +1 512 808 5399 ✉ info@netsoftmate.com  www.netsoftmate.com

Exadata Parameters Exadata Wait events

cell_offload_decryption cell list of blocks physical read


cell_offload_plan_display cell manager cancel work request
cell_offload_processing cell manager closing cell
_small_table_threshold cell manager discovering disks
_serial_direct_read cell manager opening cell
_serial_direct_read cell multiblock physical read
_kcfis_storageidx_disabled cell single block physical read
_kcfis_storageidx_diag_mode cell smart file creation
_cell_storidx_mode cell smart flash unkeep
_cell_storidx_minmax_enabled cell smart incremental backup
parallel_adaptive_multi_user cell smart index scan
parallel_automatic_tuning cell smart restore from backup
parallel_degree_limit cell smart table scan
parallel_degree_policy cell statistics gather
parallel_execution_message_size cell worker idle
parallel_force_local cell worker online completion
parallel_instance_group cell worker retry
parallel_io_cap_enabled
parallel_max_servers
parallel_min_percent
parallel_min_servers Exadata Configuration Files
parallel_min_time_threshold Exadata Compute node:
parallel_server
parallel_server_instances /opt/oracle - contains dbserver software
parallel_servers_target /opt/oracle.cellos - Contains all cell OS configuration files, image
parallel_threads_per_cpu executables, and so forth
_parallel_statement_queuing /opt/oracle.exacli - Contains exacli and exadcli executables
cluster_database /opt/oracle.ExaWatcher - Contains ExaWatcher utilities and output/archive
cluster_database_instances files/directories
cluster_interconnects /opt/oracle.oswatcher - Contains OSWatcher utilities and output/archive
local_listener files/directories
remote_listener /opt/oracle.SupportTools - Contains support and configuration files
/opt/oracle.SupportTools/onecommand - Contains OneCommand files used
for Exadata install/config
/etc/oracle/cell/network-config - Contains files that enable compute
servers to communicate with storage servers
/etc/oracle/cell/network-config/cellinit.ora - Contains IB IP subnet
for storage cells
/etc/oracle/cell/network-config/cellip.ora - Contains IB IP addresses
for each storage cell
/u01/app/oracle - Oracle Base
/u01/app/12.1.0.x/grid - Grid Infrastructure Home
/u01/app/oracle/product/12.1.0.x/db - Oracle Database Home

Storage Cells:

/opt/oracle - Contains cell software


/opt/oracle.cellos - Contains Exadata cell software and utilities
/opt/oracle.cellos/cell.conf - Contains cell configuration file
/opt/oracle.exacli - Contains exacli and exadcli executables
/opt/oracle.ExaWatcher - Contains ExaWatcher utilities and output/archive
files/directories
/opt/oracle.oswatcher - Contains OSWatcher utilities and output/archive
files/directories
/opt/oracle.SupportTools - Contains OneCommand files used for Exadata
install/config
/var/log/oracle - Contains cell server log files, alerts, and trace files
/var/log/oracle/cellos - Contains log and trace files for Cell Services utilities
and cell server startup/shutdown events
/var/log/oracle/diag/asm - Contains log and trace files for cell storage-related
events in your cell

Netsoftmate IT Solutions Private Limited


#8-2-695/E/4, Plot No. 195, Rock House, First Floor, Road No. 12, Banjara Hills, Hyderabad - 500034, Telangana, India.

You might also like