?
Solved

tnsnames.org set up

Posted on 2010-09-20
5
Medium Priority
?
1,500 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:avoorheis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 77

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 800 total points
ID: 33718150
>>The best way is to take the tns entry from your server machine, and use it.

Just copy it over.
0
 
LVL 10

Accepted Solution

by:
ravindran_eee earned 1200 total points
ID: 33718171
Your initial requirement was to identify methods to get data from a remote Oracle database server. One of the options is to use SQL Plus. Now you can connect to the DB using SQL Developer, but not SQL plus. SQL Developer uses LDAP authentication. Is that correct?

Please find instructions for setting up LDAP authentication.

http://www.orafaq.com/wiki/Ldap.ora

You can get values for the parameters from SQL developer. Let me know if there are any questions!
0
 

Author Comment

by:avoorheis
ID: 33720691
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).
0
 

Author Comment

by:avoorheis
ID: 33734544
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.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question