My Oracle Support Banner

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

Last updated on AUGUST 26, 2022

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/Primary Node and RMS replica Node 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.<DOMAIN_NAME> : Dropping replication administrator repadmin... 
DB1.<DOMAIN_NAME> : Creating replication administrator repadmin... 
DB1.<DOMAIN_NAME> : Granting receiver/propagator role to repadmin... 
DB1.<DOMAIN_NAME> : Granting receiver/propagator role to repadmin... 
DB1.<DOMAIN_NAME> : Granting receiver/propagator role to repadmin...
ASR setup has failed. 
DB1.<DOMAIN_NAME> : ORA-12154: TNS:could not resolve service name

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.