1.0

Table Of Contents
-client-port=1531 -host-data=false
sqlf server start -dir=dir5 -locators=localhost:3241
-client-port=1532 -host-data=false
- check from the SQLFire command shell
- connect using the locator's client-port (default 1527)
-- for load balanced connection to one of the
servers/accessors
-- transparently and for reliable failover in case the
-- server/accessor goes down
sqlf
sqlf> connect client 'localhost:1527';
sqlf> select ID, KIND from sys.members;
- output will show six members with one as locator, three
-- data stores and two accessors
Example: Servers and Locator Using BUILTIN Authentication
- start a locator for peer discovery on port 3241
-- with authentication; below specifies a builtin
-- system user on the command-line itself
-- (sqlfire.user.gem1=gem1) but it is recommended
-- to be in sqlfire.properties in encrypted form
-- using the "sqlf encrypt-password" tool
sqlf locator start -peer-discovery-port=3241
-auth-provider=BUILTIN -sqlfire.user.gem1=gem1 -user=gem1
-password=gem1
- start three servers using different client
-- ports and using the above started locator
sqlf server start -dir=dir1 -locators=localhost:3241
-client-port=1528 -auth-provider=BUILTIN
-sqlfire.user.gem1=gem1 -user=gem1 -password=gem1
sqlf server start -dir=dir2 -locators=localhost:3241
-client-port=1529 -auth-provider=BUILTIN
-sqlfire.user.gem1=gem1 -user=gem1 -password=gem1
sqlf server start -dir=dir3 -locators=localhost:3241
-client-port=1530 -auth-provider=BUILTIN
-sqlfire.user.gem1=gem1 -user=gem1 -password=gem1
- check from the SQLFire command shell
- connect using the locator's client-port
-- (default 1527) for load balanced
- connection to one of the servers/accessors
-- transparently and for reliable
-- failover in case the server/accessor goes down
sqlf
sqlf> connect client 'localhost:1527;user=gem1;password=gem1';
- add a new database user
sqlf> call sys.create_user('sqlfire.user.gem2', 'gem2');
- check members
sqlf> select ID, KIND from sys.members;
- output will show four members with one as
-- locator and three data stores
Example: Servers and Accessors with Server Groups and Locator
- start a locator for peer discovery on port 3241
sqlf locator start -peer-discovery-port=3241
- start three servers using different client
vFabric SQLFire User's Guide366
vFabric SQLFire Reference