I am connecting Oracle 10 XE with an SQL server 2008 using ODBC in windows 7.

I have successfully done following steps:

  1. Configured ODBC and test it, runs ok!
  2. Configured listener in tnsnames.ora and listener.ora
  3. Started listener from command prompt
  4. Created database link from interface SQL command line

After creating database link, when i issue a query to SQL server an error is returned: ORA-12154: TNS:could not resolve the connect identifier specified.

Below are the contents of *.ora files:

***************************** listener.ora *****************


         (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)





Please help since i have tried almost every solution found.


  • Check "NAMES.DEFAULT_DOMAIN" parameter, may be your Oracle Databases are in non-default domain
    – Isaac
    Nov 19, 2014 at 6:15

1 Answer 1


Use the parameter NAMES.DEFAULT_DOMAIN to set the domain from which the client most often looks up names resolution requests. When this parameter is set, the default domain name is automatically appended to any unqualified net service name or service name.

For example, if the default domain is set to us.acme.com, the connect string CONNECT scott/tiger@sales gets searched as sales.us.acme.com. If the connect string includes the domain extension, such as CONNECT scott/[email protected], the domain is not appended.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.