back to forum.

Topic: Oracle access using TNS

Topic by
uesker

2011-05-20
16:57

Oracle access using TNS

Hi!
Is there possible to connect to an oracle database using TNS (Transparent Network Substrate)?

Reply by
kasper

2011-05-22
17:41
Hi uesker,

Don't know much about TNS (haven't tried this approach before), but from doing a quick google search on the subject it seems that you need to run datacleaner with a command line parameter to instruct the database driver on where some oracle files are located.

Check out this blog entry on the subject. http://java.sogeti.nl/JavaBlog/2008/02/03/oracle-thin-jdbc-to-tns-name/...

The easiest approach would be to get the platform independent distribution of datacleaner. It contains .cmd and .sh launch files that you can edit and add the command line parameter to.

Reply by
asbjorn

2011-05-23
09:11
Hi Uesker
My experience is that if you are using the thin jdbc you need to specify hostname and port. If you dont know the hostname and port you can use tnsping to translate.

Reply by
ctian

2011-05-26
15:30
Another way would be also just to check the tnsnames.ora file to get all the required tokens for Oracle access and prepare then a set of required db-connections in advance.

You need to be logged in to participate

In order to post your own comments on this topic, you need to be logged in.

Username:

Log in by clicking the login link at the top of the screen

 

Go back to forum.