Friday, March 21, 2014

Golden gate replication when the redo logs are in ASM

In order for the extract process to read from the redo logs located on ASM diskgroup you need to specify a connect string in the tnsnames.ora like the following.


ASM=
(DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = +ASM)
    )
  )



To test the connection run a remote connection sqlplus session

[oracle@localhost admin]$ sqlplus sys@asm as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Fri Mar 21 12:59:43 2014

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Automatic Storage Management option

SQL> select instance_name,status from v$instance;

INSTANCE_NAME    STATUS
---------------- ------------
+ASM             STARTED



In the extract parameter file make an entry like following.


TRANLOGOPTIONS ASMUSER SYS@ASM, ASMPASSWORD XXXXX


There is another option to read from ASM .Some versions support the following option.

TRANLOGOPTIONS DBLOGREADER