Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Check the following pre-requisites before starting Dbvisit Replicate. If these are not correct, then the replication will NOT function.

1.
iConnect to the source server as oracle.

No Format
su - oracle

2. The database orcl XE on both the source and target server should be started and available. To check if the database orcl XE is running, check the pmon process (on both source and target)

No Format
$ ps -ef | grep pmon
oracle    2467     1  0 13:31 ?        00:00:00 oraxe_pmon_orclXE
oracle    2974  2933  0 13:35 pts/1    00:00:00 grep pmon

If the oraxe_pmon_orcl XE process is running, that is a good indication that the Oracle database is running.

ii3. On the source server, check the TNS connection to the source database

No Format
[oracle@source ~]$ tnsping ttorcl_src
tnsping SOURCE
 
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 1124-JANMAY-20142017 1323:3930:1330
Copyright (c) 1997, 20102011, Oracle.  All rights reserved.
Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = source-int)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orclXE)))
OK (010 msec)

iii4. On the source server, check the TNS connection to the target database

No Format
[oracle@source ~]$ tnsping ttorcl_trg
tnsping TARGET

TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 1124-JANMAY-20142017 1323:4430:1458
Copyright (c) 1997, 20102011, Oracle.  All rights reserved.
Used parameter files:

Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = target-int)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orclXE)))
OK (1060 msec)

iv5. Connect to the target server as oracle.

No Format
su - oracle

6. On the target server, check the TNS connection to the source database.

No Format
[oracle@target ~]$ tnsping ttorcl_srctnsping SOURCE

TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 1124-JANMAY-20142017 1323:4531:2155
Copyright (c) 1997, 20102011, Oracle.  All rights reserved.
Used parameter files:

Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = source-int)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orclXE)))
OK (020 msec)
[oracle@target ~]$

...

7. On the target server, check the TNS connection to the target database.

No Format
[oracle@target ~]$ tnsping ttorcl_trgtnsping TARGET

TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 1124-JANMAY-20142017 1323:4632:3700
Copyright (c) 1997, 20102011, Oracle.  All rights reserved.
Used parameter files:

Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = target-int)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orclXE)))
OK (0 msec)

8. On the source server, check the database connection to the source database.

No Format
sqlplus system/manager@SOURCE

SQL*Plus: Release 11.2.0.2.0 Production on Wed May 24 23:35:47 2017
Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production


SQL>

Then select the hostname from v$instance.

No Format
SQL> SELECT host_name FROM v$instance;
HOST_NAME
----------------------------------------------------------------
source

Type exit to exit out of SQL*Plus.

No Format
SQL> exit

9. On the source server, check the database connection to the target database.

No Format
sqlplus system/manager@TARGET

SQL*Plus: Release 11.2.0.2.0 Production on Wed May 24 23:37:35 2017
Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

SQL>

Then select the hostname from v$instance.

No Format
SQL> SELECT host_name FROM v$instance;
HOST_NAME
----------------------------------------------------------------
target

Type exit to exit out of SQL*Plus.

No Format
SQL> exit

10. On the target server, check the database connection to the source database.

No Format
sqlplus system/manager@SOURCE

SQL*Plus: Release 11.2.0.2.0 Production on Wed May 24 23:39:51 2017
Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

SQL>

Then select the hostname from v$instance.

No Format
SQL> SELECT host_name FROM v$instance;
HOST_NAME
----------------------------------------------------------------
source

Type exit to exit out of SQL*Plus.

No Format
SQL> exit

11. On the target server, check the database connection to the target database.

No Format
sqlplus system/manager@TARGET

SQL*Plus: Release 11.2.0.2.0 Production on Wed May 24 23:40:39 2017
Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

SQL>

 Then select the hostname from v$instance.

No Format
SQL> SELECT host_name FROM v$instance;
HOST_NAME
----------------------------------------------------------------
target

Type exit to exit out of SQL*Plus.

No Format
SQL> exit

If any of the pre-requisites fail, then verify if all the previous steps have been done correctly before continuing.