Link to home
Start Free TrialLog in
Avatar of avoorheis
avoorheis

asked on

tnsnames.org set up

this is actually from another thread, but, got off topic...below question is one response from sumit2906:
----------
ok, working on figuring out how to fill in tnsnames.ora. Doesn't seem like devleoper connection info maps to the tns:
developer connection info is:
Connection Name: Tst Srvr1 (that's just an alias, right?)
user: xxx
password: xxx
role: default, connection type: LDAP, OS Authentication Kerberow Auth. and Proxy Conn. not checked
LDAP Server: oid.xxx.com:123:456   (not sure what this is)
DB Service: POST.xxx.com  (not sure what this is)

So, need to fill in tnsnames.ora
(ADDRESS = (PROTOCOL = TCP)     ---leave that as is?
(HOST = <hostname or IP>)   ---will oid.xxx.com:123:456 work?
(PORT = <port>)   ---no clue here
not sure on the following, except service might be POST.xxx.com
(CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = <database service name>)

then, does it matter wher this file is saved?
------------------
In your case, it will be like this:
tstsrvr1 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <hostname or IP>)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = POST.xxx.com)
    )
  )

you should be able to ping the hostname or IP, the default port is 1521, it could be different.
Also, the file location is fixed, it is under oracle_home\network\admin directory. You can also use command tnsping test to see where is it expecting the file.

The best way is to take the tns entry from your server machine, and use it.

Also, this is not a related question, so better to open a new question, that way you will get more responses.
Avatar of avoorheis
avoorheis

ASKER

SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yes, I can connect from SQL Developer, but, not SQL plus and the Developer is using LDAP.

I got a copy of the tnsnames.ora and saved to
D:\Oracle\app\voorheis\product\11.2.0\client_1\Network\Admin
followed directions on http://www.orafaq.com/wiki/Ldap.ora and used the info from the working connection in sql developer, but, am not able to connect from sql plus (or to create a odbc connection, seems like the problem in both is related to the tnsname file...one thing that is strange is when configuring the odbc connection, the tns service name drop down contains garbage characters).
thanks for the help guys...there were a couple of things, I had only installed the instant client and needed the admin version, there was a problem with the tnsnames file and a few typos on my part. However, both suggestions were helpful.