Introduction
Steps to configure Shareplex for Oracle Replication.
Posted by Hemanth Sathavalli
Prerequisites for Shareplex Setup on Oracle database :
- Create tablespace splex with 2GB space with autoextend-on in both source & Target databases.
- Ensure Archive log is enabled in Source and target databases.
- Enable supplemental Logging at Database Level in the Source database :
< ALTER DATABASE ADD SUPPLEMENTAL LOG DATA > – This enables Minimal Database Level Logging
Note : Supplemental logging places additional column data into the redo log file whenever an UPDATE operation is performed. At the least, minimal database-level supplemental logging must be enabled for any Change Data Capture in the source database.
Source Setup :
- Change Directory to <shareplex proddir>/bin
cd /u03/db/shareplex__01/proddir
- Ensure to set source database env
- Run ./ora_setup
- When prompted asking ,Will the SharePlex install be using a BEQUEATH connection?, Enter n
- When prompted asking , Are you configuring SharePlex for an AWS RDS Database?, Enter n
- When Prompted to enter Enter the TNS alias for which SharePlex should be installed , Enter the Tns name entry of source database
- When prompted to enter DBA user for source database , enter system user
- When prompted to enter password for DBA Account , Enter system user password
- When prompted asking , Would you like to create a new SharePlex user ? , Ensure it is Y and press enter
- When prompted to enter username for new shareplex user , enter splex/<shareplex password>
- When prompted asking Do you want to enable replication of tables with TDE?, ensure n and press enter
- When prompted to enter the default tablespace, enter splex
- When prompted to enter the temporary tablespace , enter temp
- When prompted to enter the index tablespace , enter splex
- When prompted asking Will the current setup for sid: [<source SID>] be used as source (including cases as source for failover or master-master setups)? , Ensure it is Y and press enter
- When prompted asking, Do you wish to connect to ASM using BEQUEATH connection? , Ensure it is Y and press enter
n . When prompted to enter the asm SID , ensure asm sid is correct, else enter the correct sid
Source Setup stage completed.
Target Setup :
- Change Directory to <shareplex proddrr>/bin
cd /u03/db/shareplex__01/proddir
- Ensure to source the target database .env
- Run ./ora_setup
- When prompted asking ,Will the SharePlex install be using a BEQUEATH connection?, Enter n
- When prompted asking , Are you configuring SharePlex for an AWS RDS Database?, Enter n
- When Prompted to enter Enter the TNS alias for which SharePlex should be installed , Enter the Tns name entry of target database
- When prompted to enter DBA user for source database , enter system user
- When prompted to enter password for DBA Account , Enter system user password
- When prompted asking , Would you like to create a new SharePlex user ? , Ensure it is Y and press enter
- When prompted to enter username for new shareplex user , enter splex/<shareplex password>
- When prompted asking Do you want to enable replication of tables with TDE?, ensure n and press enter
- When prompted to enter the default tablespace, enter splex
- When prompted to enter the temporary tablespace , enter SPLEX_TEMP
- When prompted to enter the index tablespace , enter splex
- When prompted asking Will the current setup for sid: [<target SID>] be used as source (including cases as source for failover or master-master setups)? , enter n and Hit enter
Target Setup stage completed
- Disable the Check & Referential Constraints in the Target Database.
- Disable the Triggers in the Target Database
Shareplex Startup and shutdown :
Steps to start the shareplex service
- Start screen session
- Change Directory to <shareplex proddrr>/bin
cd /u03/db/shareplex/proddir
- Ensure to set source database env or target database env
- Run ./sp_cop -u2100 &
Steps to stop the shareplex service
- Start screen session
- Change Directory to <shareplex proddrr>/bin
cd /u03/db/shareplex/proddir
- Ensure to set source database env or target database env
- Run ./sp_ctrl
- Enter shutdown command in sp_ctrl prompt : sp_ctrl > shutdown