Last updated on JULY 01, 2016
Applies to:Oracle Internet Directory - Version 126.96.36.199.0 and later
Information in this document applies to any platform.
***Checked for relevance on 06-SEP-2012***
When using a valid database connect string as per the tnsnames.ora in the Metadata Repository database ORACLE_HOME, oidctl status fails with 'Could not Connect to the Database':
oidctl connect=testdb1 status
oidctl : ORACLE_INSTANCE is not set, defaulting to /apps/opt/oracle/fmw/mid/IDM/ldap/
oidctl : INSTANCE_NAME is not set, defaulting to inst1
oidctl : COMPONENT_NAME is not set, defaulting to oid1
Could not connect to the Database.
This is a new install of OID 11g
* opmnctl status shows that oid1 is Alive.
* tnsping to connect string is successful:
Used parameter files: /apps/opt/oracle/db/product/11.1.0/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = mydbhost01)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = testdb1.oracle.com)))
OK (10 msec)
* sqlplus to the database using the connect string is successful
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms