These instructions are for upgrading SharePlex when configured for an open target database running on a Linux or Unix system.
Important!
|
Pre-requisite for Snowflake database setup: If any user has used Snowflake setup utility of a version prior to 11.4, they should first perform the following cleanup steps:
|
To run the upgrade:
Log in to the system as the user that will be named as the SharePlex Administrator during this installation. This user will own the installation files and binaries.
Grant executable permissions to the file.
# chmod 555 installation_file
Run the .tpm file. If installing SharePlex in a cluster, run the installer from the primary node (the one to which the shared disk is mounted)
# ./installation_file
You are prompted for the following:
Prompt for: | Input |
---|---|
Installation type |
Select <New Installation>. |
Product directory location (path) |
Enter the path to the existing SharePlex installation directory. |
Variable data directory location |
Enter the name of the existing variable-data directory. |
SharePlex Admin group |
Enter the DBA-privileged group to which the SharePlex Administrator user belongs, which owns the SharePlex binaries. |
TCP/IP port for SharePlex |
Enter the port number of the SharePlex instance you are upgrading. |
License key (do you want to upgrade?) |
Press Enter to accept the default of N (no) to keep the existing license, or enter Y to specify a new license key if required for this upgrade. |
Please specify platform for license key (select a number): |
Select the appropriate number from the following list of platforms to install the license key: 1) Oracle 2) PostgreSQL 3) SQL Server 4) MySQL 5) MariaDB 6) Snowflake 7) Kafka 8) Event Hubs 9) JMS 10) File - Local Storage 11) File - Cloud Storage 12) All Platforms q) Quit License Utility NOTE: To install a trial version of SharePlex, users need to select the All Platforms option. |
License key |
(If Y was selected) Enter the new license key that you received from Quest. |
Run the appropriate Database Setup utility for your database to upgrade the SharePlex database account. See SharePlex Utilities
These instructions are for upgrading SharePlex on the Windows platform.
Important!
|
To upgrade SharePlex from 10.x to 12.x on Windows for Oracle target:
Log into Windows as the SharePlex Administrator.
On the target, set the SP_OPO_UPDATE_SCN parameter to 1 and restart the Poster process.
On the target, run show_scn for the source Oracle Data Source ID. The Poster process will be in a "stopped by user" state.
Note down the SCN value from the last posted SCN. (In case of multiple targets, select the minimal SCN value.) Also, copy the reconcile commands from the show_scn output.
Deactivate the configuration on the source.
Shut down SharePlex on the source and target/s.
Run ora_cleansp on the source and respective cleanup utility on targets, even if the target SharePlex is not upgraded.
Take a backup of the configuration and relevant files from the 10.x installation var directory.
Run the sp_setup installation program and follow the prompts:
Prompt | Input |
---|---|
Destination Folder |
Install the upgrade into the existing SharePlex product directory. |
Port number |
Select the port that this instance of SharePlex currently uses. |
Variable Data directory |
Specify the existing SharePlex variable-data directory. |
Program Manager group |
Specify the existing Programs menu location. |
Confirm installation | Confirm the installation information. |
Finish |
If you were prompted to restart the system, you may do so at any time after exiting the installer. |
Uninstall SharePlex and PTC Nutcracker.
Install version 12.0 with separate prod and var directories, following the installation process. For more information about the installation process see SharePlex Installation and Setup Guide .
Run the appropriate setup utility for the upgraded SharePlex.
Using spUtils, add a license for the respective database, install the SharePlex service, and start the service.
Run sp_ctrl and stop the Poster process on the target.
Activate the configuration using the SCN noted in step 4.
On the target, execute the reconcile commands from the show_scn output in sp_ctrl.
On the target, start the Poster service.
Verify that replication is working correctly.
To upgrade SharePlex from 10.x to 12.x on Windows for open targets:
Log into Windows as the SharePlex Administrator.
On the source Oracle database, run SELECT current_scn FROM V$DATABASE; and note down the SCN value.
Stop the capture service on the source and wait for the Poster queue to be empty.
Deactivate the configuration on the source.
Shut down SharePlex on the source and target/s.
Run ora_cleansp on the source and respective cleanup utility on targets, even if the target SharePlex is not upgraded.
Take a backup of the configuration and relevant files from the 10.x installation var directory.
Run the sp_setup installation program and follow the prompts:
Prompt | Input |
---|---|
Destination Folder |
Install the upgrade into the existing SharePlex product directory. |
Port number |
Select the port that this instance of SharePlex currently uses. |
Variable Data directory |
Specify the existing SharePlex variable-data directory. |
Program Manager group |
Specify the existing Programs menu location. |
Confirm installation | Confirm the installation information. |
Finish |
If you were prompted to restart the system, you may do so at any time after exiting the installer. |
Uninstall SharePlex and PTC Nutcracker.
Install version 12.0 with separate prod and var directories, following the installation process.For more information about the installation process see SharePlex Installation and Setup Guide .
Run the appropriate setup utility for the upgraded SharePlex.
Using spUtils, add a license for the respective database, install the SharePlex service, and start the service.
Run sp_ctrl and activate the configuration using the SCN noted in step 2.
Verify that replication is working correctly.
Note: If you are upgrading SharePlex from Oracle to an Open Target, it is recommended to perform the upgrade when there are no transactions on the database. Users may encounter out-of-sync issues on the Open Target, which will need to be resolved manually. Additionally, error logs related to the processing of duplicate records may appear in the target logs.
To upgrade SharePlex from 12.0 to 12.1 on Windows
(If using copy/append) Stop sp_sync_launcher on the target systems before applying the SharePlex upgrade.
sp_ctrl> stop launcher
(Oracle as source only) In sp_ctrl, use the set param command to stop DDL replication (if active) by setting the SP_OCT_REPLICATE_ALL_DDL parameter to 0.
sp_ctrl>set param SP_OCT_REPLICATE_ALL_DDL 0
Important! Keep the setting at 0 until prompted otherwise.
Stop the SharePlex service:
Run the sp_setup installation program and follow the prompts:
Prompt | Input |
---|---|
Destination Folder |
Install the upgrade into the existing SharePlex product directory. |
Port number |
Select the port that this instance of SharePlex currently uses. |
Variable Data directory |
Specify the existing SharePlex variable-data directory. |
Program Manager group |
Specify the existing Programs menu location. |
Confirm installation | Confirm the installation information. |
SharePlex license |
Accept the existing license shown or enter a new one if applicable. |
Finish |
If you were prompted to restart the system, you may do so at any time after exiting the installer. |
If you are upgrading from a SharePlex version earlier than 9.0, the method of creating and storing partition schemes and row partitions for horizontal partitioning has changed. This information no longer is stored in the database.
When you run database setup during an upgrade, it converts the data from the SHAREPLEX_PARTITION table to the new internal storage format. After the conversion, you can view the partitions with the view partitions command in sp_ctrl to ensure that the partitions converted properly.
Note: For more information about the view partitions command, see theSharePlex Reference Guide.
To view row partitions:
Issue the following command with either option, depending on whether you want to view all partitions or just those for a particular partition scheme.
sp_ctrl> view partitions for {scheme_name | all}
The following is an example of converted partition schemes. Note that the conversion program populates the Name field with the name of the queue from the Route column.
Scheme Name Route Hash Condition ----------- ------------- ------------------------------ ------ --------------- HASH4 hash sys02:hash|#@o.ora112 4 ROWID TEST_CT highvalues sys02:highvalues@o.ora112 sales>=10000 TEST_CT lowvalues sys02:lowvalues@o.ora112 sales<10000