OID remtool -asrsetup -v Fails With ORA-12154 TNS:could not resolve service name (Doc ID 462289.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Internet Directory - Version 10.1.4 and later
Information in this document applies to any platform.

Symptoms

Oracle Internet Directory (OID) MDS master and RMS replica are on different machines (and may have same SID names as example below).

Remtool -asrsetup fails with:   ORA-12154: TNS:could not resolve service name

Both node's tnsnames.ora files have aliases / servicenames for connection to each database ok.

Sqlplus connections via these aliases work ok to/from both nodes.

Sample remtool output:

$ remtool -asrsetup -v
ASR Setup for OID Replication
******************************************************************************
WARNING :
Make sure that the replication administrator that you
enter below does not exist already in any of the nodes
that will be part of the DRG to be created now. If the
user exists, that user will be dropped and will be
created newly.
******************************************************************************
Enter replication administrator's name : repadmin
Enter replication administrator's password :
Reenter replication administrator's password :

Enter Master Definition Site (MDS) details :
Enter global name of MDS : PROD1_LDAP9I
Enter SYSTEM user password of MDS :

Enter Remote Master Site (RMS) details :
Enter global name of RMS # 1 : PROD5_LDAP9I
Enter SYSTEM user password of RMS # 1 :
Are there more Remote Master Sites in the group? [y/n/q] : n

Please verify the details you had entered.
******************************************************************************
Replication admin name : repadmin
Master Definition Site : PROD1_LDAP9I
Remote Master Site # 1 : PROD5_LDAP9I
Are these details correct? [y/n/q] : y

DB1.MYCOMPANY.COM : Dropping replication administrator repadmin... 
DB1.MYCOMPANY.COM : Creating replication administrator repadmin... 
DB1.MYCOMPANY.COM : Granting receiver/propagator role to repadmin... 
DB1.MYCOMPANY.COM : Granting receiver/propagator role to repadmin... 
DB1.MYCOMPANY.COM : Granting receiver/propagator role to repadmin...
ASR setup has failed. 
DB1.MYCOMPANY.COM : ORA-12154: TNS:could not resolve service name

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms