Adding a Subscription Database (addsubdb) v6.2
For SMR only: The addsubdb
command adds a subscription database definition.
Synopsis
The addsubdb
command creates a new subscription database definition. The addsubdb
command displays a unique subscription database ID that is assigned to the newly created subscription database definition. The subscription database ID is used to identify the subscription database definition on which to operate when running other xDB Replication Server CLI commands.
See Adding a Subscription Database for details on the database connection information that must be supplied when adding a subscription database definition.
Parameters
subsvrfile
The file containing the subscription server login information.
-dbtype
Specify oracle if the database is an Oracle database. Specify enterprisedb if the database is an Advanced Server database in Oracle compatible configuration mode. Specify
postgresql
if the database is a PostgreSQL database or an Advanced Server database in PostgreSQL compatible configuration mode. Specifysqlserver
if the database is a Microsoft SQL Server database.
host
The IP address of the host on which the subscription database server is running.
port
The port number on which the database server is listening for connections.
user
The subscription database user name.
encrypted_pwd
The encrypted password of the subscription database user. See Encrypting Passwords for directions on using the encrypt command to generate an encrypted password.
pwdfile
The file containing the encrypted password of the subscription database user.
-oraconnectiontype
Specify sid if the
Oracle system ID (SID)
is used to identify the subscription database in the database parameter. Specifyservicename
if the Oracle service name is used to identify the subscription database in the database parameter. Note: For Oracle 12c, use the service name.
dbname
The Postgres or SQL Server database name, the
Oracle SID
, or the Oracle service name of the subscription database.
jdbc_url_parameters
Extended usage of JDBC URL parameters such as for support of SSL connectivity. (See Using Secure Sockets Layer (SSL) Connections for information on SSL connectivity to the subscription database.)
Examples
The following example adds a subscription database definition for an Oracle database. The encrypted password is given on the command line with the dbpassword
parameter. A subscription database ID of 1 is assigned to the database by the subscription server.
The following example adds a subscription database definition for an Advanced Server database. The encrypted password is read from a file named pwdfile with the dbpassfile
parameter. A subscription database ID
of 2
is assigned to the database by the subscription server.