Create a remote database using an existing database as a model. A schema, remote users, publications, subscriptions, and triggers are also generated.
Prérequis
There are no prerequisites for this task.
Use the Extraction utility (dbxtract) to extract the database schema and data to files. For example, run the following command:
dbxtract -c "UID=DBA;PWD=sql;DBF=c:\cons\cons.db" "c:\remote1\reload.sql" UserName |
By default, subscriptions for the specified remote user are started automatically.
Edit the reload.sql, if required.
Create an empty SQL Anywhere database.
For example, run the following command:
dbinit -dba DBA,sql c:\remote1\rem1.db |
Connect to the database from Interactive SQL, and run the reload.sql script file.
For example, execute the following statement:
READ remote1\reload.sql |
The new remote database, rem1.db, is created with the appropriate schema, remote users, publications, subscriptions, and triggers. However, the Extraction utility (dbxtract) does not start the SQL Remote Message Agent, so no messages are exchanged.
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |