Troubleshooting
This section discusses solutions for various exceptions you may encounter when using ODP.NET for TimesTen.
-
Exception "ORA-12154: TNS: Could not resolve the connect identifier specified" or "ORA-12541: TNS: No listener"
To connect to a TimesTen database from an ODP.NET application, the
Data Source
attribute in the ODP.NET connection string must be set either to the TNS name of a TimesTen entry in thetnsnames.ora
file or to a TimesTen easy connect string.If the
tnsnames
naming method is used to connect, verify that an entry in thetnsnames.ora
file is associated with a TimesTen DSN. Also verify that theTNS_ADMIN
environment variable is set to the directory where thetnsnames.ora
file is located.If the easy connect naming method is used to connect, verify that
service_name
is set to a TimesTen DSN and thatserver
is set to eithertimesten_direct
ortimesten_client
, depending on whether the DSN configures a direct connection or a client/server connection. -
Exception "ORA-29158: Unable to open library"
If you are connecting to a TimesTen database, verify either that the entry in the
tnsnames.ora
file is associated with a TimesTen DSN or thatservice_name
in the easy connect string is set to a TimesTen DSN.This error may also occur due to a path issue, if ODP.NET cannot find the TimesTen ODBC driver, which is located in the TimesTen
timesten_home
\bin
directory. (Also see the next troubleshooting item.) -
Exception "ORA-29159: Unable to read library"
In addition to the steps for
ORA-29158
above, verify that the server setting in thetnsnames.ora
file entry or easy connect string istimesten_direct
ortimesten_client
, as appropriate for the type of TimesTen DSN.See Connecting to a TimesTen Database from OCI in Oracle TimesTen In-Memory Database C Developer's Guide for information about
tnsnames.ora
and easy connect. -
Exception "The application has failed to start because ttcommonxxxx.dll was not found. Re-installing the application may fix the problem"
This indicates that the location of the TimesTen shared libraries at
timesten_home
\bin
is not in thePATH
environment variable setting.Note:
Instead of "xxxx", the TimesTen release number is indicated. In TimesTen Release 22.1 releases the file name is
ttcommon221.dll
.