10.07.2015 Views

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APPENDIX A CELLCLI AND DCLI• Distribute a file to the same location on all servers/cells in the cluster• Distribute and execute a script on servers/cells in the cluster• Execute commands and scripts on servers/cells in the clusterdcli uses SSH equivalency to authenticate your session on the remote servers. If you do not haveSSH equivalency established across servers/cells, you can still use it, but it will prompt you for apassword for each remote system before executing the command. dcli executes all commands inparallel, aggregates the output from each server into a single list, and displays the output on the localmachine. For example, the following listing shows the pmon processes running on all database servers:[enkdb02:root] /root> /usr/local/bin/dcli -l root -g dbs_group ps -ef | grep ora_pmon | grep -v grepenkdb01: oracle 4973 1 0 Jun09 ? 00:00:16 ora_pmon_DEMO1enkdb01: oracle 9917 1 0 Jun06 ? 00:00:15 ora_pmon_BL16K1enkdb01: oracle 9929 1 0 Jun06 ? 00:00:20 ora_pmon_TEST1enkdb01: oracle 10325 1 0 Jun06 ? 00:00:15 ora_pmon_SANDBOX1enkdb01: oracle 32630 1 0 Jun06 ? 00:00:17 ora_pmon_DBFS1enkdb02: oracle 715 1 0 Jun09 ? 00:00:16 ora_pmon_DEMO2enkdb02: oracle 3718 1 0 Jun06 ? 00:00:15 ora_pmon_DBFS2enkdb02: oracle 9531 1 0 Jun06 ? 00:00:20 ora_pmon_EXDB2enkdb02: oracle 10072 1 0 Jun06 ? 00:00:10 ora_pmon_SNIFFenkdb02: oracle 10085 1 0 Jun06 ? 00:00:20 ora_pmon_TEST2enkdb02: oracle 10087 1 0 Jun06 ? 00:00:13 ora_pmon_BL16K2enkdb02: oracle 10136 1 0 Jun06 ? 00:00:14 ora_pmon_SANDBOX2enkdb02: oracle 23494 1 0 Jun06 ? 00:00:10 ora_pmon_SCRATCHdcli is particularly usefull when you want to collect information from all storage cells using theCellCLI commands. The following example shows how dcli and CellCLI commands can be usedtogether to report the status of all storage cells in a half rack cluster.[enkdb01:root] /root> dcli -g /root/cell_group -l root cellcli -e "list cell"enkcel01: enkcel01enkcel02: enkcel02enkcel03: enkcel03enkcel04: enkcel04enkcel05: enkcel05enkcel06: enkcel06enkcel07: enkcel07onlineonlineonlineonlineonlineonlineonlineYou may have recognized the /root/cell_group parameter in this example. This file is generatedduring the <strong>Exadata</strong> installation procedure (see Chapter 8 for more details). There are actually several ofthese “group files” that are useful for running distributed commands using dcli. These files may bedescribed as follows:dbs_group: This file contains the management hostnames for all databaseservers in your <strong>Exadata</strong> configuration. It provides a conventient way to executedcli commands on the database servers.543

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!