Replication Deployment
A Look at the Tasks Involved in Replication Deployment
The following topics provide several tutorials to show how to deploy a database for replication:
All examples in the DataExchange documentation assume a 64-bit Windows system, so the installation location is C:\Program Files (x86)\Actian\PSQL rather than the 32-bit system location C:\Program Files\Actian\PSQL.
Deployment Process
Most users run the DataExchange Deployment Wizard to create and deploy a replication network. This wizard automatically takes care of most of the things needed for replication.
One way to learn the DataExchange replication deployment in deeper detail is to step through an example using the sample database Demodata that is included with PSQL. The example concentrates on what to do. You can then learn about why you perform certain actions by reading Working with Your Database.
This topic illustrates a working example of preparing a database for real-time backup between two systems. It involves the use of the DataExchange utility DXdeploy and the manual copying of a file.
The typical deployment process has four steps:
1
2
3
4
An optional fifth step involves setting up a replication schedule with DataExchange Manager.
Tip The deployment process described here can also be performed using DX Deployment Wizard, which provides a graphical user interface and partial automation of replication deployment. For more information, see Replication Deployment Using the DX Deployment Wizard.
Replication Deployment Using the DX Deployment Wizard
DataExchange Deployment Wizard is the simplest and quickest way to create and deploy a replication network. The wizard is used on both First and Partner sites and includes a means of creating a replication schedule.
You can open DX Deployment Wizard by selecting it from the Start menu or from PSQL Control Center by selecting DataExchange > Deployment Wizard. Before you use the wizard, be sure to follow the instructions under Administrator Rights for DataExchange users.
To get ready to use DX Deployment Wizard, first write down the following deployment attributes. As you run the wizard, you will enter these items at various points in the process.
Project Name – this corresponds to a specific database. If your goal is to replicate a database named mydatabase, then you may want to call the project mydatabase project or something similar.
The wizard automates almost all of the steps that you must follow in using the DXdeploy utility on the command line. The wizard does require you to do one thing manually:
1
After you run the wizard on the First Site, look for the file projectname.dxb in C:\Program File(x86)\Actian\PSQL\Replication\projects. If the project name is mydatabase, as in the example above, this file will be named mydatabase.dxb.
2
3
For More Advanced Explanation
If you want to find out more about how DataExchange works, see the tutorial Replication Deployment Using DXdeploy with an XML Descriptor File. It steps through replication deployment from the command line using an XML file that contains all needed settings, including the deployment attributes mentioned above.
We expect only advanced users to routinely use the command-line method with DataExchange, but it may be useful to those who want a more detailed understanding of the product.
Replication Deployment Using DXdeploy with an XML Descriptor File
This command-line tutorial provides a more detailed understanding of the creation and deployment of replication networks in DataExchange. The tutorial uses the Demodata sample database as an example. Demodata is provided with PSQL Server, Server Vx, and Workgroup.
The steps presented here focus on what to do rather than why. Afterwards you can read about why how it works in the next topic, Working with Your Database. This topic includes an explanation of the structure and elements of the XML Deployment Descriptor File.
Working with the sample consists of two procedures, each with several tasks:
Since this deployment is only an example, it does not show how to set up a replication schedule.
Note PSQL contains security models for Btrieve applications. The example used here assumes that you deploy Demodata on sites with the Classic security model (the default model).
If DefaultDB uses either Mixed or Database security, you must ensure that Demodata can be deployed. The easiest way to do this is to disable security by removing the password for DefaultDB on each site where security is set.
To do so, in PCC right-click DefaultDB and select Properties. Click the Security tab, select the checkbox Disable database security, and click Apply. If you are not logged in to DefaultDB, provide the master password. Click OK. Remember to reenable security for DefaultDB after you complete the example deployment.
If you want to retain security, see the tutorial Replicating a Database with PSQL Security, which uses Demodata as an example.
Deploying Demodata for Replication
Before you work through this example, be sure you have already installed both a First Site and a Partner Site (backup site) as explained in Installing DataExchange with No Previous Installation.
Tip So that you can restore Demodata to its original state after this deployment exercise, we recommend saving a copy of the database files before proceeding with this example.
1
2
Make a copy of the XML descriptor file EXPRESS.XML and rename the copy ExampleRTB.xml.
You may save the file to the location you choose on your First Site machine.
3
Open ExampleRTB.xml in a text editor.
This template file is explained under XML Deployment Descriptor File.
4
For example, if the name of your First Site is SiteA:
<First
  ServerName="SiteA"
5
For the First Site DataDirectory, change C:\MYDATA to C:\ProgramData\Actian\PSQL\Demodata.
The configuration should now be something similar to the following:
<First
  ServerName="SiteA"
  DSN="DXDatabase"
  DataDirectory="C:\ProgramData\Actian\PSQL\Demodata">
Because this is just an example, leave the DSN as DXDatabase.
6
The Demodata data files use an .mkd extension, so keep the line <Include Path="*.mkd" />. You may include any extension used by Btrieve files in your PSQL environment.
7
<Include Path="*.btr" />
<Include Path="*.dat" />
Demodata has DDFs, so keep <Include Path="*.ddf" />. Typically, you will want to replicate DDFs. Note that the DSN created by DXdeploy does not use Demodata DDFs but rather uses its own in replication.
8
Change remote.hostname to your site name or IP address. For example, if the Partner Site machine is SiteB:
<Partner
  ServerName="SiteB"
9
For the Partner Site DataDirectory, change C:\MYDATA to C:\Demodata.
The information should now read something like the following:
<Partner
  ServerName="SiteB"
  DSN="DXDatabase"
  DataDirectory="C:\Demodata" />
 
Note The data directory on the Partner Site could be C:\ProgramData\Actian\PSQL\Demodata if you want to overwrite the sample database. This example uses a different directory to preserve Demodata as installed by PSQL.
10
Open a command prompt on the First Site and run the following. The string is not case-sensitive.
dxdeploy /Site=First "C:\Program Files (x86)\Actian\PSQL\Replication\Docs\ExampleRTB.xml"
As it runs, DXdeploy displays high-level status messages:
The file dxdeploy.log in C:\ProgramData\Actian\PSQL\Replication\LogFiles records more detail. To view its entries on-screen while DXdeploy runs, you can use the /LOGFILE= option. For example, dxdeploy /Site=First /LOGFILE= ExampleRTB.xml. A space follows the equal sign after LOGFILE=.
DXdeploy is finished when the command prompt reappears, having entered the following message in the log file:
Successfully completed all deployment actions.
You can visually verify that deployment has succeeded.
1
Start PCC if it is not already running. (Select PSQL Control Center & Documentation from the Start menu.)
The name of the First Site appears under the Engines branch.
2
DXDatabase is listed as a database.
3
The letter A in the Replication node shows that the database is activated.
After DXdeploy finishes on the First Site, do the following:
1
C:\Program Files (x86)\Actian\PSQL\Replication\Docs\ExampleRTB.xml
to the same folder on the Partner Site.
2
3
C:\Program Files (x86)\Actian\PSQL\Replication\Templates\DXDatabase
to C:\Demodata on the Partner Site.
Note Demodata files reside in a relative location that can be wherever you choose on the Partner Site. Your application may require absolute paths to certain data files. See File Copying for details.
Open a command prompt on the Partner Site and run the following. The string is not case-sensitive.
dxdeploy /Site=Partner "C:\Program Files (x86)\Actian\PSQL\Replication\Docs\ExampleRTB.xml"
As it runs, DXdeploy displays high-level status messages:
The file dxdeploy.log in C:\ProgramData\Actian\PSQL\Replication\LogFiles records more detail. To view its entries on-screen while DXdeploy runs, you can use the /LOGFILE= option. For example,
dxdeploy /Site=Partner /LOGFILE= ExampleRTB.xml
A space follows the equal sign after LOGFILE=.
DXdeploy is complete when the command prompt reappears and when it enters the following message in the log file:
Successfully completed all deployment actions.
When DXdeploy runs on the Partner Site, it also performs an initial replication between the First Site and the Partner Site. The initial replication populates the data on the Partner Site so that it is the same as on the First Site.
You have now successfully deployed Demodata for replication.
XML Deployment Descriptor File
The XML deployment descriptor file is a text file in which you set information for the DXdeploy utility. For real-time backup between two machines, you use the descriptor file EXPRESS.XML. This file is located in C:\Program Files (x86)\Actian\PSQL\Replication\Docs. The contents of the file has the following elements and also includes comments not shown here to help document them.
<?xml version="1.0"?>
<DXDeployment>
  <Configuration Project="DXProj" Network="DXNet" Release="1.0" Method="1-way">
    <Sites>
      <First
        ServerName="this.hostname" DSN="DXDatabase" DataDirectory="C:\MYDATA">
          <Files>
            <Include Path="*.mkd" />
            <Include Path="*.btr" />
            <Include Path="*.dat" />
            <Include Path="*.ddf" />
          </Files>
      </First>
      <Partner
        ServerName="remote.hostname" DSN="DXDatabase" DataDirectory="C:\MYDATA" />
    </Sites>
  </Configuration>
</DXDeployment>
To use this XML file you must always edit it for your situation. The following table explains the elements in the file that may require editing. The default value for some of the attributes may be adequate. With the exception of Exclude Path, DXdeploy requires all of the attributes. DXdeploy is further discussed under dxdeploy.
 
Project often corresponds to a specific database. If your goal is to replicate a database named mydb, then you may want to call the project mydb project or something similar that helps you remember which database is involved.
Removing the Example Deployed Database
You do not need to keep the example deployed database. The following tasks explain how to remove it from the First Site and the Partner Site.
Task 1: Deactivate the example database on both sites
1
On the First Site machine, open a command prompt and run the following.
dxdeact dxdatabase
The example database on the First Site is now deactivated.
2
1
Select DX Template Remover from the Start menu.
In PCC, select DataExchange > Template Remover.
2
3
In the templates pane, select LOCAL:DXDATABASE as the template to remove.
4
Select Remove DataExchange System Tables and click Yes in the warning message to continue.
5
Select Remove DSN and database name.
The wizard should now resemble the following:
6
Click Next.
The wizard removes the template and presents a summary.
7
Click Close.
1
On the First Site, find the DX_projectname directory under C:\ProgramData\Actian\PSQL\Demodata that was created during deployment.
DX_projectname is the name given to your replication project in the XML deployment file, in this case DXProj in the following line in ExampleRTB.xml:
<Configuration Project="DXProj" Network="DXNet" Release="1.0" Method="1-way">
2
Stop replication services as described under Starting and Stopping Replication. Replication must be stopped to do the next step as well.
3
Delete the DXDatabase folder under C:\Program Files (x86)\Actian\PSQL\Replication\Templates.
1
2
3
4
Click Yes to confirm the deletion.
5
In the confirmation dialog, verify that DXDatabase is the database name selected.
6
For the option Always remove associated DSN entries, do one of the following:
7
Click OK to remove DXDatabase from the Databases list in PCC.
8
To complete removal of the deployed replication database on the Partner Site, delete the directory C:\Demodata. This was the directory created in Task 4: Copy the Template to the Partner Site. You may have to temporarily stop PSQL services to delete the directory.
1
2
In this example, the location to which files are restored is \ProgramData\Actian\PSQL\Demodata.
Working with Your Database
The Demodata example demonstrates the four required steps in the replication deployment process. This topic reviews that process and its components in more detail.
1
2
3
4
This topic discusses the process in more detail so that you can apply it to your own database. Before beginning the process, however, you need to determine which tables to replicate and ensure that they can be replicated.
Tip When you work with the examples in this documentation, you should always make a copy of your database before performing the steps so that you can use it to restore the original database when you are done. Also, you do not need to keep the example deployed database. After each deployment, you can perform the steps associated with your deployment method to remove the replication files and templates and restore your database from the copy you made.
What to Do First
To deploy a database for replication, you need first to do the following:
Which Tables To Replicate
Determine which tables need to be replicated. Consider any situations in which tables created dynamically also need to be replicated. See Adding Dynamic Tables to an Activated Database.
You set the tables to be replicated in the XML deployment descriptor file. See XML Deployment Descriptor File.
System Data and Key
For real-time backup replication, DataExchange requires that each table to be replicated has a unique system key. The replication control tables track changes by using the unique keys.
You may use the PSQL utility Butil to determine whether a table contains system key and data. For example, to check table mytable.mkd located in c:\mydata, you would enter the following at a command prompt:
butil -stat c:\mydata\mytable.mkd
Among other information, the statistics output informs you about system data and key. If the output shows that System Data = Yes and SYSKEY Status = Present, then system data and key is present.
If the existing database does not have system keys, you must add system data and keys with the PSQL Rebuild utility. See the Rebuild Utility topic in the PSQL Advanced Operations Guide.
PSQL Security with DataExchange
PSQL provides security models for Btrieve applications. However, an activated database created by DXdeploy does not automatically use security, even if its source database does. You can manually configure security for the replication database. For an example of this using the Demodata sample database, see Replicating a Database with PSQL Security.
DXdeploy Utility on First Site
After you edit the XML descriptor file, you run the DXdeploy utility on the First Site. The utility creates a template of the source data files. Hereafter, for ease of discussion, the source data files will be referred to collectively as the source database.
A template is a special type of database specifically for use with the replication tools. It contains various types of control tables used for replication. A template may also contain the data from the source database. DXdeploy creates a template without source data. (In step four of the deployment process, the source data gets replicated from the First Site to the Partner Site.)
You use a template to activate a database. Activation is the process of enabling a database for replication and establishing it as belonging to a site. DXdeploy also activates the source database on the First Site.
The following table explains where DXdeploy places the deployment files.
Note The activation process performed by DXdeploy may take a few minutes to several hours depending on the size and number of data tables. However, you may proceed with the next step, copying the template files to the Partner Site, as soon as DXdeploy finishes creating the template.
Check the screen for the message: “Starting the Activate action . . .” After it appears, copy the template files to the Partner Site. Typically, the template is created rapidly, even for a large number of data files.
File Copying
After DXdeploy creates the template on the First Site, manually copy the template to your Partner Site.
Example of What to Copy Where
DXdeploy creates template directories to show where to copy files to the Partner Site. For example, if the application DSN is mydbdsn with database name mydb and mydb uses four data files on your First Site:
Your edited XML descriptor file would resemble the following:
<First ServerName="SiteA" DSN="mydbdsn" DataDirectory="C:\myapp\data" >
    <Files>
     <Include Path="*.mkd" />
     <Include Path="other\*.mkd" />
     <Include Path="c:\employees\accting\table4.mkd"/>
The first and second Include Path statements are relative to DataDirectory. Assuming that table4.mkd is a bound table and must be located at C:\employees\accting, then it requires an absolute path.
Given this example, the following tables explain where on the Partner Site to copy the template files.
 
Note If data files already exist on the Partner Site, overwrite them with the template data files.
DXdeploy Utility on Partner Site
After you use DXdeploy to activate the template on the First Site, copy the template to the Partner Site and use DXdeploy to activate it on that site by running DXdeploy with the XML deployment descriptor file used for the First Site. The template file is found in the database directory under C:\Program Files (x86)\Actian\PSQL\Replication\Templates. In the example above, this is C:\Program Files (x86)\Actian\PSQL\Replication\Templates\mydbdsn\mydb.
Caution DXdeploy must finish activation on the First Site before you run it on the Partner Site. On the First Site, check on-screen for the message “Activation done, now synchronizing tables.” Once the message appears, you can then run DXdeploy on the Partner Site.
Replication Schedule
After DXdeploy finishes on the Partner Site, it performs an initial replication with the First Site. The initial replication between the sites fully populates the data tables on the Partner Site.
Following deployment, you may want to set up a replication schedule to keep Partner Site data current with First Site data. See Schedule Tasks for steps to set up a replication schedule.
Note Replication works in either direction and is determined only by where you set the schedule. If the data changes that you want to back up occur on the First Site, then set the schedule on the First Site so that backups flow from the First Site to the Partner Site. If in your environment data changes occur instead on the Partner Site, then you must set the schedule there so that backups flow in the other direction, from the Partner Site to the First Site.
Disaster Recovery
If your First Site is catastrophically destroyed, you may restore your data from the Partner Site to a new First Site and reestablish your replication network. See Disaster Recovery.
Removing Databases Deployed with Designer
DataExchange Designer is a deprecated utility that was included with DataExchange prior to version 5.1. You may need to remove a database that was deployed with DataExchange Designer. Use the following tasks to complete the removal of a database deployed using DataExchange Designer.
1
2
3
4
Deactivate the Database on Both Sites
For this example, the value for DSN is Demodata.
1
Run DXdeact DSN at the First Site.
2
Run DXdeact DSN at the Partner Site.
Run Template Remover on the First Site
1
On the First Site, in the Start menu select Actian DataExchange 13 > DX Template Remover.
2
3
In the templates pane, when asked to choose a template to remove, click LOCAL:DSN. In this example, the value of DSN is DXDATABASE.
4
Select Remove DataExchange System Tables and click Yes to confirm that you wish to continue.
5
Select Remove DSN and database name and click Next.
6
Delete Database and Files on the Partner Site
Before deleting a database or its files, you may need to stop replication. See Starting and Stopping Replication.
1
2
Restore the Database Copy
1
2
1-Way Deployment Using DXdeploy
This topic provides a step-by-step discussion on deploying a replication solution using the DXdeploy utility and the EXPRESS.XML descriptor template to create your XML descriptor file. This example can be used with either the Real-Time Backup or the Data Synchronization edition. It is similar to the tutorial Replication Deployment Using DXdeploy with an XML Descriptor File.
You need two machines for the example session. One machine must have DataExchange installed as a First Site. The other machine must have DataExchange installed as a Partner Site. Before you use DXdeploy, be sure to follow the instructions under Administrator Rights for DataExchange users.
This topic contains the following tasks:
1
2
3
4
Note This topic covers only deployment and does not discuss setting up a replication schedule.
Before You Get Started
Before performing this task you must install DataExchange on First Site and a Partner Site.
Tip So that you can restore your database to its original state after this deployment exercise, we recommend saving a copy of your database files before proceeding with this example.
To create your version of the XML descriptor file, first make note of the following items:
Caution All applications using the database you are about to deploy must be shut down before using this deployment method.
Create the XML Descriptor File
1
2
Make a copy of the XML descriptor file EXPRESS.XML and rename the copy EXP_1WAY.XML.
You may move the file to any location on your First Site machine. For this task we assume that you keep it in its original location. If EXPRESS.XML is no longer on your system, copy the text from the next step to recreate it.
3
Open EXP_1WAY.XML in a text editor.
This template file has the contents explained under XML Deployment Descriptor File.
4
<?xml version="1.0"?>
<DXDeployment>
  <Configuration Project="mydbproject" Network="sales dept net" Release="1.0" Method="1-way">
    <Sites>
      <First
        ServerName="SiteA" DSN="SalesDB" DataDirectory="C:\CompanyData\SalesData">
          <Files>
            <Include Path="*.mkd" />
            <Include Path="*.ddf" />
            <Include Path="SalesReports\*" />
            <Include Path="*SalesReports\Q1Rept.mkd" />
           <Include Path="C:\Employee\SalesRep\sample.mkd" />
          </Files>
      </First>
      <Partner
        ServerName="SiteB" DSN="SalesDB" DataDirectory="C:CompanyData\SalesData" />
    </Sites>
  </Configuration>
</DXDeployment>
Run DXdeploy on the First Site
1
dxdeploy "C:\Program Files (x86)\Actian\PSQL\Replication\Docs\EXP_1WAY.XML"
The command is not case-sensitive.
2
Press Enter.
As DXdeploy executes, high-level status messages display on the screen as it completes certain actions. For a successful deployment, the following messages appear:
By default, detailed messages from DXdeploy are written to dxdeploy.log, not to the screen. This log is located in C:\ProgramData\Actian\PSQL\Replication\LogFiles. If you want to view detailed messages on the screen while DXdeploy executes, use the /LOGFILE= option.
3
dxdeploy /LOGFILE= "C:\Program Files (x86)\Actian\PSQL\Replication\Docs\EXP_1WAY.XML"
DXdeploy is complete when the command prompt reappears. You may also check the DXdeploy log file to determine when DXdeploy finishes. The following message appears at the bottom of the log file: “Successfully completed all deployment actions.”
1
Optionally, start PCC if it is not already running. (Select PSQL Control Center & Documentation from the Start menu.)
2
Copy the Template to the Partner Site
1
After DXdeploy finishes on the First Site, copy the SalesData directory from \Program Files (x86)\Actian\PSQL\Replication\Templates\SalesDB to C:\CompanyData on your Partner Site.
Note Note that the example used here contains data files in both relative and absolute locations. When copying your files, you must include absolute paths to data residing outside the DataDirectory location you specified. For information on where to copy your files, see File Copying in the Real-Time Backup replication example.
Tip When using DXdeploy deployment, the template is a copy of the database files. These files are located in the directory C:\Program Files (x86)\Actian\PSQL\Replication\Templates.
Run DXdeploy on the Partner Site
1
2
dxdeploy C:\CompanyData\SalesData\EXP_1WAY.XML
The command is not case-sensitive.
3
Press Enter.
DXdeploy provides high-level status messages on the screen as it completes certain actions. For a successful deployment, the following messages appear:
By default, detailed messages from DXdeploy are written to dxdeploy.log rather than to the screen. DXdeploy is complete when the command prompt reappears. You may also check the DXdeploy log file to determine when DXdeploy finishes. The following message appears at the bottom of the log file: “Successfully completed all deployment actions.”
When DXdeploy runs on the Partner Site, it performs an initial replication with the First Site. This replication populates data on the Partner Site so that it is the same as on the First Site.
Note Depending on database size and connection bandwidth, initial replication can take from a few minutes to several hours.
Tip For steps to remove the deployed database you just created, see Removing the Example Deployed Database.
2-Way Deployment Using DXdeploy
This topic discusses at a high level how to deploy a database for replication using the DXdeploy utility. It uses the sample database, TRACKER, as a working example. This sample database is provided with the installation of any PSQL Server or Workgroup product. This example can be used only with the Data Synchronization edition, since the Real-Time Backup edition supports only 1-way replication.
The example session requires two machines. One must have DataExchange installed as a First Site. The other must have DataExchange installed as a Partner Site. Before you use DXdeploy, be sure to follow the instructions under Administrator Rights for DataExchange users.
To step through the example, you will use the following tasks:
1
2
3
4
These steps omit setting up a replication schedule. Since the TRACKER deployment is only an example, setting up a regular replication schedule is unnecessary.
Before You Get Started
Before performing this task you must install Actian DataExchange on a First Site and a Partner Site.
Tip So that you can restore your database to its original state after this deployment exercise, we recommend saving a copy of your database files before proceeding with this example.
In order to complete the changes necessary to the XML descriptor file, we recommend that you make note of the following items:
Caution All applications using the database you are about to deploy must be shut down before using this deployment method.
Create the XML Descriptor File
1
You may move the file to any location on your First Site machine. For this task we assume that you keep it in its original location. If CUSTOM.XML is no longer on your system, copy the text from the next step to recreate it.
2
Open CUST_2WAY.XML in a text editor.
This template file differs slightly from EXPRESS.XML as documented under XML Deployment Descriptor File. It has the following contents:
<?xml version="1.0"?>
<DXDeployment>
  <Configuration Project="DXProj" Network="DXNet" Release="1.0" Method="1-way">
    <Sites>
      <First ServerName="this.hostname" DSN="DXDatabase" DataDirectory="C:\MYDATA">
        <Files>
          <Include Path="*.mkd" />
          <Include Path="MoreData\dataFile.dat" />
          <Exclude Path="DontNeed.dat" />
          <Include Path="C:\OtherDir\*" />
          <Exclude Path="C:\OtherDir\Temp*" />
          <Include Path="*.ddf" />
        </Files>
      </First>
      <Partner ServerName="remote.hostname" DSN="DXDatabase" DataDirectory="C:\MYDATA" />
    </Sites>
  </Configuration>
  <Actions>
    <CreateDSN />
    <Design />
    <Activate />
  </Actions>
</DXDeployment>
3
<?xml version="1.0"?>
<DXDeployment>
  <Configuration Project="
mydbproject" Network="admin dept net" Release="1.0" Method="2-way">
    <Sites>
      <
First ServerName="SiteA" DSN="TrackerDB" DataDirectory="C:\ProgramData\Actian\PSQL\Replication\Demodb">
        <Files>
          <Include Path="*.mkd" />
          
<Include Path="Misc\*.dat" />
          <Include Path="Misc\misc_file3.dat" />
          <
Include Path="C:\Archive\*.dat" />
          <Include Path="C:\Archive\History.dat" />
          <Include Path="*.ddf" />
        </Files>
      </First>
      <
Partner ServerName="SiteB" DSN="TrackerDB" DataDirectory="C:\Program Files\Actian\PSQL\Replication\Demodb" />
    </Sites>
  </Configuration>
  <Actions>
    <CreateDSN />
    <Design />
    <Activate />
  </Actions>
</DXDeployment>
Run DXdeploy on the First Site
1
dxdeploy "C:\Program Files (x86)\Actian\PSQL\Replication\Docs\CUST_2WAY.XML"
2
Press Enter.
DXdeploy provides high-level status messages on the screen as it completes certain actions. For a successful deployment, the following messages appear:
By default, detailed messages from DXdeploy are written to dxdeploy.log, not to the screen. This log is located in C:\ProgramData\Actian\PSQL\Replication\LogFiles. If you want to view detailed messages on the screen while DXdeploy executes, use the /LOGFILE= option. For example, dxdeploy /LOGFILE= CUST_2WAY.XML. A space character follows the equal sign.
DXdeploy is complete when the command prompt reappears. You may also check the DXdeploy log file to determine when DXdeploy finishes. The following message appears at the bottom of the log file: “Successfully completed all deployment actions.”
3
Copy the Template to the Partner Site
After DXdeploy finishes on the First Site, copy the DemoDB directory on the First Site from
C:\Program Files (x86)\Actian\PSQL\Replication\Templates\TrackerDB
to the following directory on your Partner Site:
C:\Program Files (x86)\Actian\PSQL\Replication
This example contains data files in both relative and absolute locations. When copying your files, you must include absolute paths to data residing outside the DataDirectory location you specified. For information on the copy locations, see File Copying.
Note When using DXdeploy deployment, the template consists of a copy of the database files. These files are all located in C:\Program Files (x86)\Actian\PSQL\Replication\Templates on 64-bit systems and C:\Program Files\Actian\PSQL\Replication\Templates on 32-bit systems.
Run DXdeploy on the Partner Site
1
dxdeploy "C:\Program Files (x86)\Actian\PSQL\Replication\DemoDB\CUST_2WAY.XML"
2
Press Enter.
DXdeploy provides high-level status messages on the screen as it completes certain actions. For a successful deployment, the following messages appear:
By default, detailed messages from DXdeploy are written to dxdeploy.log, not to the screen. DXdeploy is complete when the command prompt reappears. You may also check the DXdeploy log file to determine when DXdeploy finishes. The following message appears at the bottom of the log file: “Successfully completed all deployment actions.”
When DXdeploy runs on the Partner Site, it performs an initial replication with the First Site. This replication populates data on the Partner Site so that it is the same as on the First Site.
Note Depending on database size and connection bandwidth, initial replication can take from a few minutes to several hours.
Tip For steps to remove the deployed database you created, see Removing the Example Deployed Database.