1.1

Table Of Contents
Example with BUCKETS, RECOVERYDELAY, and MAXPARTSIZE
-- example showing how to specify the BUCKETS, RECOVERYDELAY
-- and MAXPARTSIZE
CREATE TABLE COUNTRIES
(
COUNTRY VARCHAR(26) NOT NULL,
COUNTRY_ISO_CODE CHAR(2) NOT PRIMARY KEY,
REGION VARCHAR(26),
) PARTITION BY PRIMARY KEY BUCKETS 10 RECOVERYDELAY 10 MAXPARTSIZE 50
SERVER GROUPS Clause
The servers on which the table will be created is either specied by the SERVER GROUPS clause or deduced
from the colocated parent table's server groups, if a colocation clause is specied. If the server groups are not
specied, the default is to create the table on the default server group of the schema.
Syntax
[ SERVER GROUPS ( server_group_name [, server_group_name ]* ) ]
Description
The default group is specied in the DEFAULT SERVER GROUP directive of the CREATE SCHEMA on page
475 statement. If no server group is specied for the schema, the implicit default server group is used, which
includes all servers in the distributed system.
The server group names that you specify are converted to all-uppercase characters.
Note: In order for two partitioned tables to be colocated, the SERVER GROUPS clauses in both CREATE
TABLE statements must be identical.
Replicated tables must specify the same server groups, or one table's server groups must be a subset of
the other table's server groups.
You can congure both partitioned tables and replicated tables to use a gateway sender. However, you
must create replicated tables in the same server groups as the gateway sender(s) that you specify in the
CREATE TABLE statement. See Syntax on page 469.
Example with SERVER GROUPS Clause
CREATE TABLE COUNTRIES
(
COUNTRY VARCHAR(26) NOT NULL,
COUNTRY_ISO_CODE CHAR(2) NOT PRIMARY KEY,
REGION VARCHAR(26),
) SERVER GROUPS (SG1, SG2)
GATEWAYSENDER Clause
The GATEWAYSENDER keyword associates the new table with one or more named gateway senders, so that
DML operations against the table are replicated to the remote SQLFire cluster associated with the sender(s).
Note: You can optionally use the SQLFire ALTER TABLE command to add or remove gateway senders
after you have created a table.
Syntax
[ GATEWAYSENDER ( sender-name [,sender-name ] * ) ]
vFabric SQLFire User's Guide488
vFabric SQLFire Reference