Solved

tnsnames.org set up

Posted on 2010-09-20
5
1,452 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
  • 3
5 Comments
 

Author Comment

by:avoorheis
ID: 33717839
0
 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 200 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 300 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
ORACLE SQL DEVELOPER Query ? 5 60
Left Justify field in Oracle 6 70
Oracle SQL Syntax 8 57
Salary Amount Format 13 56
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to recover a database from a user managed backup

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now