For information about automatically extracting remote databases, see Extracting remote databases.
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 command 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 command 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 |
Editing the reload.sql file
Extracting databases for a multi-tier hierarchy system
Creating multiple remote databases
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |