Chatta subito con l'assistenza
Chat con il supporto

SharePlex 12.0 - Reference Guide

Revision History About this guide Conventions used in this guide SharePlex Commands for Oracle SharePlex parameters SharePlex Commands for PostgreSQL SharePlex Parameters for PostgreSQL Heterogenous compare-repair commands General SharePlex utilities Oracle Cloud Infrastructure SharePlex environment variables

PG_cleansp

pg_cleansp Utility

Description

Use the pg_cleansp utility to remove the current replication state on a system where SharePlex is replicating data from PostgreSQL Database as a Service to a PostgreSQL target.

Caution: The effects of pg_cleansp are not reversible.

Usage guidelines

  • To use this utility, the Korn (ksh) shell must be installed on the system. The utility calls this shell during processing.

  • pg_cleansp must be run on all PostgreSQL source and target systems in the replication configuration.
  • To fully remove the replication environment, run the pg_cleansp utility on all PostgreSQL source systems in the replication configuration. To verify if and when pg_cleansp was run on a system, view the SharePlex event log on that system.

What this utility does

pg_cleansp does the following on the source system:

  • Truncates all the SharePlex Client internal tables in the SharePlex schema and any other SharePlex-installed tables as applicable.
  • Removes the following from the variable-data directory: the queue files, the process log files, the statusdb file, the contents of the dump and state directories, and all but one entry in the event log (the status entry for pg_cleansp)
  • Drops replication slots (physical/logical)

pg_cleansp preserves the following:

  • The SharePlex database, account, and password, and only cleans the data in the SharePlex tables.
  • User-created files such as the paramdb and the target configuration settings

To run the pg_cleansp utility on PostgreSQL source and target:

  1. Stop all SharePlex processes on the system.
  2. Shut down sp_cop.
  3. Run the pg_cleansp utility from the bin sub-directory of the SharePlex product directory with the following syntax:

    <installationDirectiory\ProductDirectory>/binpg_cleansp [portnumber ] database_name/user_name

    where:

    • portnumber is the port number of the SharePlex instance, if other than the default of 2100.
    • database_name is the name of the SharePlex database.
    • user_name is the name of the SharePlex user account.
  4. Enter the password at the prompt.

    Enter the password for the SharePlex User :

  5. Type Y to confirm that you want to run cleanup for this SharePlex instance.

    Are you sure you want to perform the clean for '/splex/vardir/var2' and port 2200? [N] :Y

A successful setup terminates with a message similar to the following:

Clean port 3800

sh: /splex/atul/1100B51/opt/.app-modules//clean_vardir.sh: /bin/ksh: bad interpreter: No such file or directory

postgress internal tables are cleaned up.

Note: In SharePlex 11.1, physical or logical slots created at activation will get dropped from the database after cleanup.

Snowflake_Cleansp Utility

Description

Use the snowflake_cleansp utility to remove the current replication state on a system where SharePlex is replicating to a Snowflake target.

Caution: The effects of snowflake_cleansp are not reversible.

Usage guidelines

  • To use this utility, the Korn (ksh) shell must be installed on the system. The utility calls this shell during processing.
  • snowflake_cleansp must be run on all Snowflake target systems in the replication configuration.
  • To fully remove the replication environment, run the snowflake_cleansp utility on all Snowflake target systems in the replication configuration. To verify if and when snowflake_cleansp was run on a system, view the SharePlex event log on that system.

What this utility does

snowflake_cleansp does the following on the target system:

  • Truncates all the SharePlex Client internal tables in the SharePlex schema and any other SharePlex-installed tables as applicable.
  • Removes the following from the variable-data directory: the queue files, the process log files, the statusdb file, the contents of the dump and state directories, and all but one entry in the event log (the status entry for snowflake_cleansp)

snowflake_cleansp preserves the following:

  • The SharePlex database, account, and password, and only cleans the data in the SharePlex internal tables.
  • User-created files such as the paramdb and the target configuration settings

To run the snowflake_cleansp utility on Snowflake target:

  1. Stop all SharePlex processes on the system.
  2. Shut down sp_cop.
  3. Run the snowflake_cleansp utility from the bin sub-directory of the SharePlex product directory with the following syntax:

    <installationDirectiory\ProductDirectory>/binsnowflake_cleansp [portnumber ] database_name/ schema name / user_name

    where:

    • portnumber is the port number of the SharePlex instance, if other than the default of 2100.
    • database_name is the name of the SharePlex database.
    • schema_name is the name of the Shareplex schema.

    • user_name is the name of the SharePlex user account.
  4. Enter the password at the prompt.

    Enter the password for the SharePlex User :

    Note: This option will not be displayed for the RSA based user.

  5. Type Y to confirm that you want to run cleanup for this SharePlex instance.

    Are you sure you want to perform the clean for '/splex/vardir/var2' and port 2200? [N] :Y

A successful setup terminates with a message similar to the following:

Clean port 5626

Cleaning /splex/aparopka/sf_datatypes/var subdirectories

DEMO_SCHEMA_20.SHAREPLEX_OPEN_TRANS table truncated.

License utilities

SharePlex License Utilities

Description

Use the SharePlex license utilities to view, add, and remove license keys to hosts in the SharePlex replication environment. Each installation of SharePlex requires a valid license key.

There are three types of SharePlex license keys for each supported platforms:

  • Trial license keys

  • Perpetual License keys (Permanent)
  • Term license keys

Following is the list of supported platforms for which licenses are available:

  • Oracle

  • File

  • JMS

  • Kafka

  • SQL Server

  • PostgreSQL

  • MySQL

  • Snowflake

  • MariaDB

  • Event Hubs

  • All Platforms

Note: To install a trial version of SharePlex, users need to select the All Platforms option when prompted during installation of SharePlex or while running the splex_add_key utility.

SharePlex licensing information can be found in the Quest Software Product Guide. Please contact your account manager if you have questions.

If you do not have a valid license key, you may obtain one from Quest Technical Support or your Quest sales representative for the required platform from the above list of supported platforms. Use the appropriate procedure in this documentation to obtain the necessary information to support your license request.

splex utility

This utility can be used on the Linux, Unix, and Windows platforms to:

Add a license key

Use the splex_add_key utility to add a license key to a machine during the installation of SharePlex or afterward to convert from one type of license to another.

You can use the splex_add_key utility as follows:

  • You can use splex_add_key on the primary node of a cluster to install licenses for all secondary nodes in the cluster, because they all share one variable-data directory.
  • You cannot use splex_add_key to add licenses for non-clustered machines from one machine. It must be run on each non-clustered replication system so that the license information is stored in the variable-data directory on each system.

To run splex_add_key:

  1. Log on to the system as the SharePlex Administrator.
  2. Run sp_ctrl on the machine where you want to install a license key.
  3. If SharePlex is running, shut it down.

    sp_ctrl> shutdown

  4. Run splex_add_key from the install sub-directory of the SharePlex product directory.

    $ /proddir/install/splex_add_key

  5. Choose a platform to add/update license key:

    SharePlex License Utility
    1) Oracle
    2) File
    
    3) JMS
    4) Kafka
    5) SQL Server
    6) Postgres
    7) MySQL
    8) Snowflake
    9) MariaDB
    10) Event Hubs
    11) All Platforms
    q) Quit License Utility
    Enter option:

    Note: To install a trial version of SharePlex, users need to select the All Platforms option.

  6. Enter the appropriate number from the above list to choose the platform.

  7. Enter the key manually as received from Quest. Press Enter when finished entering the key.

  8. Enter q to exit the utility.
  9. Start SharePlex when you are ready for replication to resume.

View a license key

Use the splex_get_key utility to view the SharePlex license key related details. Run this utility from the install sub-directory of the SharePlex product directory.

$ /proddir/install/splex_get_key

The information is similar to the following example:

$ /splex/proddir/install/splex_get_key 
Platform           = All
Product Name       = SharePlex
Product Version    = 11
License Number     = 123-456-789
License Key Type   = Trial
License Expiry     = Midnight of Jan 01, 2050
License Key        = lxxjLny9CqMCqdPZKZGRXIjnz7vpbTPQANliJi7PXJ7+Q8=

Remove a license key

Use the splex_remove_key utility to remove already installed SharePlex license key for a particular platform. If no license key is installed on the machine, it will display the "No license installed" message.

To run splex_remove_key:

  1. Log on to the system as the SharePlex Administrator.
  2. Run splex_remove_key from the install sub-directory of the SharePlex product directory to remove a license key. Remove key will display a list of previously added licence keys.

    $ /proddir/install/splex_remove_key

  3. Choose the appropriate platform to remove a license key:

    SharePlex License Utility

    1) Oracle

    2) Postgres

    q) Quit License Utility

    Enter option: 1

A successful removal of the license terminates with a message similar to the following:

The SharePlex for Oracle license has been successfully removed.

spUtil utility

This utility can be used only on the Windows platform to:

Add a license key

Users can add a license key using the following steps.

To add a key:

  1. Log on to the system as the SharePlex Administrator.
  2. Right-click the spUtils shortcut from the desktop and select Run as administrator.

    The SharePlex Utilities window appears.

  3. Navigate to the License Key tab.

  4. Choose a platform from the Platform dropdown to add a license key.

  5. Click Add License.

  6. Enter the key provided by the licensing team in the Enter Oracle <platform name> key field and click OK.

A successful addition of the license key terminates with a message similar to the following:

The SharePlex license has been successfully added.

View the license details

Users can view the license details using the following steps.

To view a license details:

  1. Log on to the system as the SharePlex Administrator.
  2. Right-click the spUtils shortcut from the desktop and select Run as administrator.

    The SharePlex Utilities window appears.

  3. Navigate to the License Key tab.

  4. Choose a platform from the Platform dropdown to add a license key.

    • If the license for the chosen platform is not installed, the License Status section displays the message No license installed.

    • If a license is already installed, the License Status section will show the license details as follows. For example:

      Platform           = All
      Product Name       = SharePlex
      Product Version    = 11
      License Number     = 123-456-789
      License Key Type   = Trial
      License Expiry     = Midnight of Jan 01, 2050

Remove a license key

Users can add a license key using the following steps. If no license key is installed on the machine, it will display the "No license installed" message.

To run splex_remove_key:

  1. Log on to the system as the SharePlex Administrator.

  2. Right-click the spUtils shortcut from the desktop and select Run as administrator.

    The SharePlex Utilities window appears.

  3. Navigate to the License Key tab.

  4. To remove a license for any platform, click Remove License.

  5. In the Select Platform to remove license window, select the relevant platform from the drop-down and click OK.

A successful removal of the license key terminates with a message similar to the following:

The SharePlex for Oracle <platform name> license has been successfully removed.

provision

Description

Use the provision utility to change a host name or IP address in the SharePlex configuration.

The SharePlex processes rely on the host names or IP addresses of the source and target machines to route data properly. The provision utility enables you to change host names or IP addresses within an active SharePlex instance, without reactivating a new configuration.

Note: The provision utility does not change anything in the database. It only affects SharePlex internal objects.

Supported databases

All databases supported by SharePlex on all supported platforms

Guidelines for using provision

  • If running SharePlex on an AIX machine, set EXTSHM before running provision.

    export EXTSHM=ON

  • Run provision on all of the machines in the SharePlex configuration. Each machine can reference the IP addresses of all the other machines.

Run provision

  1. Stop sp_cop. If sp_cop is running, provision will fail.

Note: provision prevents sp_cop from being started while it is running.

  1. Using the command line of the operating system, run provision from the SharePlex util sub-directory of productdir with the following syntax:

    provision -f old_name[:old_ipaddress] -t new_name[:new_ipaddress] [-p port] [-n]

    provision -h <new hostid> [-p <port>] -n
    provision -i [-p <port>]
    Argument Input
    -f old_hostname[:old_ipaddress]
    • -f is required and represents "from."
    • old_hostname is the old (current) host name.
    • old_IPaddress is the old IP address. Use if the IP address cannot be obtained from the network.
    -t new_hostname[:new_ipaddress]
    • -t is required and represents "to."
    • new_hostname is the new host name.
    • new_IPaddress is the new IP address. Use if the IP address cannot be obtained from the network.
    -p port

    For Windows systems, specifies the port of the SharePlex instance for which provision is being run.

    (You can run the "-p"port provision only on the Windows system.)

    -n

    Runs provision without actually making any changes. Generates a report on the changes that provision will make.

    Important! The best practice is to run provision with -n first, to make certain you agree with the potential changes, then run it without -n to make the changes.

    -hnew_hostID
    • -h is required and represents changing host ID or replacing host ID
    • new_hostid is the new IP address
    -i -i is required and represents host information

Example:

provision -h newid -n
provision -i
provision -f oldname -t newname -n
  1. View the event log to view every change that was made. If the provision run fails or you do not agree with the changes that were made, you can undo them by running the undo_provision script. See Undo changes made by provision .

Undo changes made by provision

The provision utility creates an undo_provision script that can be used to restore the host names and IP addresses to their previous state. Run the undo_provision script from the util subdirectory of the SharePlex product directory. There are no input arguments to this script.

Known issues

The following may occur but do not affect the integrity of the replication environment:

  • The provision utility does not change the active configuration file. This means that the configuration file no longer represents the current state of replication after provision is run. If you need to run the compare config command, or if you decide to reactivate the configuration, update the host name or IP address in the configuration file first.
  • If an Export or Import error occurred when SharePlex connected to a machine before the name or address was changed, the error status persists and cannot be cleared.
  • If the new or changed machine is a source machine, provision generates new routing information, but the Read process may still have the old routing in its cache. When you start sp_cop, Read might generate a warning that the stored IP address does not match the one for the machine. You can ignore this error.
  • After provision is run for a source host, it might not update the "hostname" column in SHAREPLEX_ACTID table with the new host name details. If that column is not correctly updated, you must update the SHAREPLEX_ACTID table manually to specify the new host name. This is only required if the name change affected a source machine.
Related Documents

The document was helpful.

Seleziona valutazione

I easily found the information I needed.

Seleziona valutazione