1.1

Table Of Contents
4.
To connect to the SQLFire cluster using the JDBC thin client driver, use the connect client command
and specify the host and port number of the SQLFire locator:
connect client 'ip_address:1527';
Notice that SQLFire does not have the concept of a "database". When you connect to a SQLFire cluster, the
distributed system that you connect to is dened by the locator (or alternately, the mcast-port) specied in
the JDBC or ADO.NET connection.
5. Use the following command to view tables in the "sys" schema:
show tables in sys;
You will use information from many of these tables to view information and statistics about a working
SQLFire cluster.
6. The sys.members table stores information about the SQLFire members. Execute the following query to see
the unique ID assigned to the two SQLFire servers and the locator that you started:
select id from sys.members;
You will see output similar to:
ID
-------------------------------
0.0.1.11(41533)<v2>:52614/50508
localhost(41149)<v0>:32977/50114
10.0.1.11(41502)<v1>:49915/50462
3 rows selected
The output displays the member process ID that is also logged when you start the members at the command
line (41149, 41502, and 41533 in the tutorial example).
Create Replicated Tables and Execute Queries
By default SQLFire replicates tables to members of the cluster. In this procedure you create new tables that are
replicated the SQLFire cluster.
Procedure
1.
In the same sqlf session, run the ToursDB_schema.sql script to create the tables associated with the
ToursDB sample database:
run 'ToursDB_schema.sql';
You see DDL output such as:
sqlf> CREATE TABLE AIRLINES
(
AIRLINE CHAR(2) NOT NULL CONSTRAINT AIRLINES_PK PRIMARY KEY,
AIRLINE_FULL VARCHAR(24),
BASIC_RATE DOUBLE PRECISION,
DISTANCE_DISCOUNT DOUBLE PRECISION,
BUSINESS_LEVEL_FACTOR DOUBLE PRECISION,
FIRSTCLASS_LEVEL_FACTOR DOUBLE PRECISION,
ECONOMY_SEATS INTEGER,
BUSINESS_SEATS INTEGER,
FIRSTCLASS_SEATS INTEGER
);
vFabric SQLFire User's Guide38
Getting Started with vFabric SQLFire