OID 10g LDIFWRITE Command Failing with Error "Could not connect to the Database" (Doc ID 748571.1)

Last updated on SEPTEMBER 14, 2016

Applies to:

Oracle Internet Directory - Version 10.1.4 to 10.1.4 [Release 10gR3]
Information in this document applies to any platform.

Symptoms

This ldifwrite error was faced during setup of Advanced replication on MDS node(Master node).

1.ORACLE_HOME and ORACLE_SID was set correctly.

2.Connection to ods schema was successful via sqlplus as below with and without domain name in the connect string.

>sqlplus ods/<ods_passwd>@oiddb.abc.kr

>sqlplus ods/<ods_passwd>@oiddb

3. ldifwrite command was failing with error as below even after using the same ods password as used to connect via sqlplus.

ORACLE_HOME/ldap/bin $ ./ldifwrite connect=oiddb basedn="" ldiffile=/tmp/data.ldif
This tool can only be executed if you know database user password for OiD
Enter OiD Password ::
Could not connect to the Database.

ORACLE_HOME/ldap/bin $ ./ldifwrite connect=oiddb.abc.kr basedn="" ldiffile=/tmp/data.ldif
This tool can only be executed if you know database user password for OiD
Enter OiD Password ::
Could not connect to the Database.

4.No ldifwrite.log file was created in ORACLE_HOME/ldap/log directory after running the command.

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