We use System.Data.OracleClient and the abstract base classes DbConnection, DbCommand (etc.) to connect to Oracle.
The connection works great in our development stages. During the phase, we encounter an ORA-12514: TNS error: the listener is currently unaware of the service requested in the connection descriptor.
Our goal was to connect without a TNS record and provide all relevant information in the connection string (www.connectionstrings.com/oracle#19)
I can confirm that SQL plus will connect to the desired schema from an intermediate server (the listener is listening). The TNS record connected to SQLPlus matches all the credentials of the constructed query string.
SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=MyPort))(CONNECT_DATA=(SERVICE_NAME=MyOracleSID)));uid=myUsername;pwd=myPassword;
Is there an installation on the server that we skipped? Is there something we can customize?
Any help is appreciated.
source
share