Remote database extraction to a reload file

For information about automatically extracting remote databases, see Remote database extraction.

In most deployment scenarios, you need to customize the extraction and creation of remote databases. You can create a custom extraction by choosing to extract the database into a script file and a series of text files. Then, you can edit these files as required.

When you extract the database into files, you decide whether to create:

  • A SQL script file named reload.sql that contains the statements necessary to build the remote database schema   See -n option Extraction utility (dbxtract).

    For example, run the following command:

    dbxtract -c "UID=DBA;PWD=sql;DBF=c:\cons\cons.db" -n "c:\remote\reload.sql" UserName

  • A series of data files, each of which contains the contents of a database table   A series of data files, each of which contains the contents of a database table. A new directory is created, named extract, to contain the data files. You can use these files to load data into an existing remote database. See -d option Extraction utility (dbxtract).

    For example, run the following command:

    dbxtract -c "UID=DBA;PWD=sql;DBF=c:\cons\cons.db" -d "c:\remote1" UserName

  • Both the reload.sql file and the data files   A new directory is created, named extract, to contain the data files. The reload.sql file contains instructions to load the data files. For example, run the following command:
    dbxtract -c "UID=DBA;PWD=sql;DBF=c:\cons\cons.db" "c:\remote1\reload.sql" UserName

 The reload.sql file
 See also

reload.sql file editing
Database extraction for a multi-tier hierarchy system
Creating multiple remote databases