Installing the xDB RPM Package on x86-64 v6.2
xDB Replication Server is supplied as an RPM package available in the EDB Yum Repository. Use the Yum package manager to install xDB Replication Server from the RPM package.
For information about using Yum, see the Yum project website located at:
To request credentials to the EDB Yum Repository, visit the following website:
For information about using the EDB Yum Repository see Installing EDB Postgres Advanced Server.
Note
Although the following primarily describes the installation of xDB Replication Server version 6.2, access to the RPM packages for prior xDB Replication Server versions are also described in order to differentiate the installation of these different versions.
Each xDB Replication Server component is available as an individual RPM package. Thus, you can install all xDB Replication Server components with a single yum install command, or you may choose to install selected, individual components by installing only those particular RPM packages.
The following table lists the RPM packages and the xDB Replication Server component it contains.
Table 3 1: xDB Replication Server Component RPM Packages
Package Name | xDB Replication Server Component |
ppas-xdb | All components |
ppas-xdb-console | xDB Replication Console and the xDB Replication Server Command Line Interface |
ppas-xdb-publisher | Publication server |
ppas-xdb-subscriber | Subscription server |
ppas-xdb-libs | Library files required by all components |
The Advanced Server server libs package must be available for access by Yum when installing any xDB RPM package component. The edb-asxx-server-libs package is a component of the Advanced Server repository package for version 10 or later. Step 3 shows how to enable access to the Advanced Server repository so Yum can access its server libs package.
Note
You might have to enable the [extras] repository definition in the CentOS-Base.repo file (located in /etc/yum.repos.d)
.
To install any of the packages, invoke the following command as the root account:
yum install package_name
package_name
is any of the packages listed under the Package Name column of the preceding table.
For example to install all xDB components, invoke the following:
yum install ppas-xdb --exclude edb-xdb
To install only the xDB Replication Console and xDB Replication Server Command Line Interface, invoke the following:
yum install ppas-xdb-console
To install only the publication server, invoke the following:
yum install ppas-xdb-publisher
Note
Though all xDB components are dependent upon and thus require installation of the server libs package, by using Yum, the dependency on the server libs is recognized when any xDB component is installed. Yum automatically installs the server libs package from the enabled Advanced Server repository along with your selected xDB RPM package.
The following are the steps to perform a complete xDB Replication Server installation with all xDB components.
Step 1: You must have Java Runtime Environment (JRE) version 1.8 or later installed on the hosts where you intend to install any xDB Replication Server component (xDB Replication Console, publication server, or subscription server). Any Java product such as Oracle Java or OpenJDK may be used.
Follow the directions for your host operating system to install Java runtime.
Note
When Replication Server is installed on a machine where Java is not present, the JDK is installed as part of the installation process. Since in this case the JDK was installed via Replication Server as its dependency, if you subsequently remove the JDK, Replication Server is also removed.
If Java 1.8 or greater exists before installing Replication Server, the installed Replication Server is not removed on removal of the JDK.
Step 2: From the EDB Yum Repository, click on the following link to download the repository RPM for all the EnterpriseDB RPMs.:
As the root
account, run the following command to install this repository configuration package:
On RHEL or CentOS 7:
yum -y install https://yum.enterprisedb.com/edb-repo-rpms/edb-repo-latest.noarch.rpm
On RHEL or Rocky Linux or AlmaLinux 8:
dnf -y install https://yum.enterprisedb.com/edb-repo-rpms/edb-repo-latest.noarch.rpm
Step 3: In the directory /etc/yum.repos.d
, the repository configuration file edb.repo
is created, which a text file is containing a list of EnterpriseDB repositories, each denoted by an entry starting with the text [repository_name]
.
Access to the packages in any of these repositories is accomplished by enabling the repository by editing the following in the repository entry:
- Using your requested credentials for the EDB Yum Repository, substitute the user name and password for the
<username>:<password>
placeholders of the baseurl parameter. - Change the setting of the enabled parameter to
enabled=1
.
For example, to access the server libs
package from the repository for Advanced Server version 14, enable the following entry:
To enable the appropriate repository for installing the desired version of xDB Replication Server, enable one of the following entries:
- To install version 6.2, enable the entry for [
enterprisedb-xdb60
]. - To install a prior version, enable the entry for [
enterprisedb-tools
].
Whichever version is chosen, be sure the other entries are disabled (that is, the parameter setting is enabled=0 for the non-selected entries).
For example, to access xDB Replication Server version 6.2, enable the following entry:
Step 4: Install the xDB Replication Server RPM package.
The following syntax installs the xDB RPM package:
yum install ppas-xdb --exclude edb-xdb
The following is an example:
The xDB Replication Server is installed in directory location /usr/ppas-xdb-x.x
where x.x
is the xDB Replication Server version number as shown by the following:
Successful installation of xDB Replication Server results in the creation of directory structures and files in your host environment as described in Section Post-Installation Host Environment.
Note
Neither the publication server nor the subscription server are running immediately following installation. If after reviewing the remaining steps, you wish to start the publication server, see Registering a Publication Server. For starting the subscription server see Registering a Subscription Server.
Step 5: Install a JDBC driver. See Installing a JDBC driver for more information.
Step 6: In the xDB Replication Configuration file /etc/edb-repl.conf
, you can either use the default password (edb
) as the admin user password, or you can substitute a password of your choice. If you want to use your own password, see Encrypting the Password in the xDB Replication Configuration File on how to generate the encrypted form of the password. Place the encrypted password in the admin_password parameter of the xDB Replication Configuration file. The default admin user name is set to admin and can be changed as well. See xDB Replication Configuration File for information on the xDB Replication Configuration file.
Step 7: The JAVA_EXECUTABLE_PATH
parameter in the xDB Startup Configuration file should be set so that the Java runtime program can be accessed upon startup of the publication server and subscription server. If the publication server or subscription server startup fails due to inaccessibility to the Java program, be sure to set the path to your Java runtime program in the xDB Startup Configuration file. See xDB Startup Configuration File for information on the xDB Startup Configuration file. See Post-Installation Host Environment for the location of this file.
Updating an RPM Installation
If you have an existing xDB RPM installation, you can use yum to upgrade your repository configuration file and update to a more recent product version. To update the edb.repo
file, assume superuser privileges and enter:
yum upgrade edb-repo
yum
will update the edb.repo
file to enable access to the current EDB repository, configured to connect with the credentials specified in your edb.repo
file. Then, you can use yum to upgrade any installed packages:
yum upgrade ppas-xdb* --exclude edb-xdb*
- On this page
- Updating an RPM Installation