Chapter 9. Deployingand Synchronizing Databases
Using the extraction utility
Theextraction utility is an aid to creating remote Adaptive Server Anywhere
databases. It cannot be used to create remote Adaptive Server Enterprise
databases.
Runningthe extraction
utility Theextraction utility can be accessed in the following ways:
FromSybase Central, if your consolidated database is Adaptive Server
Anywhere.
Asa command-line utility. This is the
dbxtract
utility(Adaptive Server
Anywhere),or the
ssxtract
utility(Adaptive Server Enterprise).
Caution
Do not run the Message Agent while running the extraction utility. The
results are unpredictable.

Creating a database from the reload files

Thecommand-line utility unloads a database schema and data suitable for
buildinga remote Adaptive Server Anywhere database for a named
subscriber. It produces a SQL command file with defaultname
reload.sql
anda set of data files. Youcan use these files to create a remote Adaptive
ServerAnywhere database.
Editingof reload.sql may be needed
The database extraction utility is intended to assist in preparing remote
databases,but is not intended as a black box solution for all circumstances.
Youshould edit the
reload.sql
command file as needed when creating
remotedatabases.
Tocreate a remote database from the reload file
1. Createan Adaptive Server Anywhere database using one of the following:
theSybase Central Create Database wizard (from the Tools menu,
chooseAdaptive Server Anywhere 9 Create Database)
the
dbinit
utility
2. Connect to the database from the Interactive SQL utility, and run the
reload.sql
commandfile. Thefollowing statement entered in the SQL
Statementspane runs the
reload.sql
commandfile:
read path\reload.sql
where
path
isthe path of the reload command file.
191