In OID 11G 'OIDCTL Status' Command Returns 'Could Not Connect to the Database'
(Doc ID 1066474.1)
Last updated on AUGUST 17, 2021
Applies to:Oracle Internet Directory - Version 11.1.1 and later
Information in this document applies to any platform.
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=<DB_NAME> status
oidctl : ORACLE_INSTANCE is not set, defaulting to <ORACLE_INSTANCE_DIR>
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: <DB_ORACLE_HOME_DIR>/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = <DB_HOSTNAME>)(PORT = <DB_PORT>)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = <DB_SERVICE_NAME>)))
OK (10 msec)
* sqlplus to the database using the connect string is successful
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