Querying the Cluster Aware AIX solidDB database.Did you know that you can connect to and query the new solidDB database used by Cluster Aware AIX (CAA)?
You can connect to the solidDB instance and issue SQL queries against the database. In the following example, I issued two queries: one to list the tables in the database and another to query information relating to the nodes in the cluster. The formatting in the second query is a mess, but you get the idea.
root@node1:/>
/opt IBM solidDB SQL Editor (teletype) - Version: 6.5.0.3 Build 2010-10-04 (c) Solid Information Technology Ltd. 1993, 2010 Connected to 'tcp localhost 2188'. Execute SQL statements terminated by a semicolon. Exit by giving command: exit;
list tables; RESULT ------ Catalog: CAA Schema: CAA TABLES: ------- CLUSTERS NODES REPOSNAMESPACE REPOSSTORES SHAREDDISKS INTERFACES INTERFACE_ATTRS PARENT_CHILD ENTITIES
1 rows fetched.
select * from clusters;
CLUSTER_ID
CLUS
---------- ----
1
SIRC
2 node 2 rows fetched.
exit
quit; IBM solidDB SQL Editor exiting. root@node1:/>
The new Redbook on IBM PowerHA 7.1 SystemMirror for AIX has some more information on and examples of using the solsql tool in a PowerHA 7.1 (with CAA) environment. Refer to section 8.3.2 CAA commands and log files:
http
You can find more information on the solsql command here:
|