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.

A P P E N D I X ACellCLI and dcliCellCLI is a command interpreter through which you can manage a storage cell. It is to a cell whatSQL*Plus is to a database instance. dcli is a utility by which you can send a single command to all yourdatabase servers and/or storage cells in one go. We describe both utilities briefly in this appendix.CellCLI Command Syntax<strong>Exadata</strong> storage software uses the CellCLI utility as its command-line interface. Unfortunately, althoughthe documentation set that comes with <strong>Exadata</strong> does have many examples of CellCLI commands, andeven a chapter dedicated to CellCLI, it does not include any reference material on the syntax itself(particularly the LIST command). So we thought we would include a few of the things we learned whileworking with it.It’s interesting that <strong>Oracle</strong> chose to write an entirely new command-line tool for managing thestorage cell. They could have used SQL*Plus, which has become the most well-known tool for managingdatabases and ASM. Be that as it may, CellCLI is the tool you will use for managing the storage cells. Thesyntax is somewhat different from SQL*Plus, but there are similarities, particularly with the LISTcommand. LIST is used to execute queries, and it looks very similar to the SELECT command that DBAshave become accustomed to. Like SELECT, it has WHERE and LIKE keywords that allow you to filter outunwanted information from the output.Following is our top-ten list of things you should know about CellCLI:1. CellCLI does implement a handful of SQL*Plus commands (START (@), SETECHO ON, SPOOL, DESCRIBE, and HELP).2. SELECT is replaced by LIST, and it must be the first keyword on the commandline.3. There is no FROM keyword (the LIST keyword must be immediately followedby the ObjectType, which is equivalent to a table name).4. There is a DESCRIBE command, which displays the attributes (columns) thatmake up an ObjectType (table),5. Column names are specified with the ATTRIBUTES keyword followed by thecolumns you wish to be displayed.6. There is a default set of columns for each ObjectType that will be returned ifthe ATTRIBUTES keyword is not specified.7. There is a WHERE clause that can be applied to any attribute and multipleconditions can be ANDed together; however, there is no support for OR.535

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

Saved successfully!

Ooh no, something went wrong!