Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

Shareplex Setup/Configuration for Oracle Replication

$
0
0


Pre-requisites for Shareplex Setup on Oracle database :

1.     Create tablespace splex with 2GB space with autoextend-on in both source & Target    databases.
2.       Ensure Archive log is enabled in Source and target databases.
3.    Enable supplemental Logging at Database Level in the Source database :
 <  ALTER DATABASE ADD SUPPLEMENTAL LOG DATA> - This enables Minimal Database Level Logging
NoteSupplemental 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 :


1.Change Directory to <shareplex proddir>/bin
    cd /u03/db/shareplex_src_01/proddir
2.Ensure to set source database env 
3.Run ./ora_setup

a. When prompted asking ,Will the SharePlex install be using a BEQUEATH connection?, Enter n
b. When prompted asking , Are you configuring SharePlex for an AWS RDS Database?, Enter n
c.   When Prompted to enter Enter the TNS alias for which SharePlex should be installed , Enter the Tns name entry of source database
d. When prompted to enter DBA user for source database , enter system user
e. When prompted to enter password for DBA Account , Enter system user password
f. When prompted asking , Would you like to create a new SharePlex user ? , Ensure it is Y and press enter
g.   When prompted to enter username for new shareplex user , enter splex/<shareplex password>
h.   When prompted asking Do you want to enable replication of tables with TDE?, ensure n and press enter
i. When prompted to enter the default tablespace, enter splex
j. When prompted to enter the temporary tablespace , enter temp
k. When prompted to enter the index tablespace , enter splex
l.   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
m.   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 :


1.Change Directory to <shareplex proddrr>/bin
        cd  /u03/db/shareplex_src_01/proddir
2.Ensure to source the target database .env 
3.Run ./ora_setup

a.When prompted asking ,Will the SharePlex install be using a BEQUEATH connection?, Enter n
b.When prompted asking , Are you configuring SharePlex for an AWS RDS Database?, Enter n
c.When Prompted to enter Enter the TNS alias for which SharePlex should be installed , Enter the Tns name entry of target database
d.When prompted to enter DBA user for source database , enter system user
e.When prompted to enter password for DBA Account , Enter system user password
f.When prompted asking , Would you like to create a new SharePlex user ? , Ensure it is Y and press enter
g.When prompted to enter username for new shareplex user , enter splex/<shareplex password>
h.When prompted asking Do you want to enable replication of tables with TDE?, ensure n and press enter
i.When prompted to enter the default tablespace, enter splex
j.When prompted to enter the temporary tablespace , enter SPLEX_TEMP
k.When prompted to enter the index tablespace , enter splex
l.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
                               
4.Disable the Check & Referential Constraints in the Target Database.
5.Disable the Triggers in the Target Database 


Shareplex Startup and shutdown :

Steps to start the shareplex service 
1.Start screen session
2.Change Directory to <shareplex proddrr>/bin
cd /u03/db/shareplex/proddir
3.Ensure to set source database env or target database env 
4.Run ./sp_cop -u2100 &

Steps to stop the shareplex service
1.Start screen session
2.Change Directory to <shareplex proddrr>/bin
cd /u03/db/shareplex/proddir
3.Ensure to set source database env or target database env 
4.Run ./sp_ctrl
5.Enter shutdown command in sp_ctrl prompt : sp_ctrl > shutdown






Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>