Upgrading from a Replication Server 6.2 installation on Linux v7
If you're using Replication Server 6.2.x that was installed using the Replication Server RPM package, you can upgrade to Replication Server 7 from an RPM package.
Note
Be sure the repository configuration file edb.repo
for Replication Server 7 is set up in the /etc/yum.repos.d
directory.
Before starting the upgrade process, replicate any pending backlog of transactions on the publication tables.
After all pending transactions are replicated to their target databases, stop the Replication Server 6.2.x publication server and subscription server. See Registering a publication server and Registering a subscription server).
Save a copy of the following configuration files:
/etc/edb-repl.conf
/usr/edb/xdb/etc/xdb_pubserver.conf
/usr/edb/xdb/etc/xdb_subserver.conf
/usr/edb/xdb/etc/sysconfig/xdbReplicationServer-70.config
Copies of these files are typically saved by the upgrade process if the files were modified since their original installation. However, it is safest to save copies in case the upgrade process doesn't. Use the saved files as your Replication Server 6.2.x configuration files for the updates described in Step 7.
If any Oracle publication or subscription databases are used in existing single-master replication systems, make sure a copy of the Oracle JDBC driver, version ojdbc5 or later, is accessible by the publication server and subscription server where Replication Server 7 will be installed. See Enabling access to Oracle for information.
Note
Two options are available: 1) Copy the Oracle JDBC driver to the
jre/lib/ext
subdirectory of your Java runtime environment. 2) Copy the Oracle JDBC driver to thelib/jdbc
subdirectory of the Replication Server installation directory.We recommend that you copy the Oracle JDBC driver to the
jre/lib/ext
subdirectory of your Java runtime environment. If you instead copy it tolib/jdbc
, you must copy the Oracle JDBC driver to the/usr/edb/xdb/lib/jdbc
directory after you install Replication Server 7.Make sure that the controller database is up and running. The other publication and subscription databases of existing SMR and MMR systems don't need to be up and running.
As the root account, invoke the yum update command to begin the upgrade from Replication Server 6.2.x to Replication Server 7 as shown by the following:
yum update ppas-xdb*
Be sure to include the asterisk character (*) to update all Replication Server components.
The following is an example:
At this point, the publication server and the subscription server for Replication Server 7 aren't running. The directories now contain the following:
- Replication Server 7 is installed in directory location
/usr/edb/xdb
. - Replication Server 6.2.x remains in directory location
/usr/ppas-xdb-6.2
but with the files removed from the subdirectories such asbin
andlib
. - In the
etc
subdirectory, there might be the configuration files renamed asxdb_pubserver.conf.rpmsave
andxdb_subserver.conf.rpmsave
. - In the
etc/sysconfig subdirectory
, there might be the configuration file renamed asxdbReplicationServer-62.config.rpmsave
. - In the
/etc directory
, there might be either one or two Replication Server configuration files namededb-repl.conf
and possiblyedb-repl.conf.rpmsave
. The fileedb-repl.conf
contains the connection and authentication information for the controller database used by the Replication Server 6.2.x publication server. The fileedb-repl.conf.rpmsave
contains only the new administrator user parametersadmin_user
andadmin_password
. Before starting the publication server and subscription server, be sure the controller database is up and running and that theedb-repl.conf
file contains the controller database connection and authentication parameters.
- Replication Server 7 is installed in directory location
Complete the publication server and subscription server configuration file setup.
In the
/usr/edb/xdb/etc
directory, a new set of configuration files for Replication Server version 7 was created. These files are namedxdb_pubserver.conf
andxdb_subserver.conf
. The new configuration files contain any new configuration options added for Replication Server 7. The old configuration files used by Replication Server version 6.2.x can be found in the/usr/ppas-xdb-6.2/etc
directory renamed asxdb_pubserver.conf.rpmsave
andxdb_subserver.conf.rpmsave
.Note
If these files don't exist, use the ones you saved in Step 3.
Merge the old and new configuration files so that the resulting, active configuration files contain any new Replication Server 7 configuration options as well as any nondefault settings you used with Replication Server 6.2.x and want to continue to use with Replication Server 7.
The final set of active configuration files must be contained in directory
/usr/edb/xdb/etc
namedxdb_pubserver.conf
andxdb_subserver.conf
. In the/usr/edb/xdb/etc/sysconfig directory
, make sure the Replication Server startup configuration filexdbReplicationServer-70.config
contains the parameter settings you want to use with Replication Server 7. See Replication Server configuration file for information on this file.Restart the publication server and the subscription server (see sections Registering a publication server and Registering a subscription server).
Check the publication server and subscription server log files to verify that no errors occurred (see Replication Server configuration file).
Adjust the publication server and subscription server port numbers if necessary.
The Replication Server 7 publication and subscription servers are installed to use the default port numbers 9051 and 9052, respectively. If the Replication Server 6.2.x replication systems used port numbers other than 9051 and 9052 for the publication and subscription servers, then make the changes to correct this inconsistency as described in Updating the publication and subscription server ports.
If you don't need to adjust the port numbers, register the publication server and subscription server with the Replication Server console as described in Registering a publication server and Registering a subscription server). The existing replication systems appear in the replication tree of the Replication Server console.
You are now ready to use Replication Server 7 to create new replication systems and manage existing ones.