Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle Diriver / DSN on UNIX system
snehalssawant_at_gmail.com schrieb:
> fitzjarrell_at_cox.net wrote:
> ================= > > Hi... thanks for the suggestion... but sorry to say that neither this > url helped me nor the suggestion.... > > If you know how to connect to Oracle9 using JDBC on unix please let me> know...
I should admit that i don't know almost nothing about java, but it
seems to me, you are trying to use jdbc:odbc bridge as jdbc driver. If
that is not a requirement, you should reconsider and use instead native
jdbc driver. The jdbc:odbc bridge introduces an additional layer in your
network connectivity and make the setup too complex compared to native
jdbc driver. In addition, Oracle ships native jdbc driver ( at least
with the last versions ) for most ( may be all?) plattforms, that is not
the case for odbc driver - they are shipped only for MS plattforms and
recently for Linux IIRC. So to build a jdbc:odbc bridge you have to buy
a 3rd party software ( for example DataDirect ). In that case you can
look in the documentation of this particular vendor (and it is mostly
well documented) how to configure this bridge on unix (it may require to
install and configure one of ODBC driver manager, such as iODBC or
unixODBC) .
To use in opposite the native jdbc is (hell, i hope i'm correct here) as
simple as
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@myhost:1521:orcl", "scott", "tiger");
Of course it can be well found in the documentation from the link David provided for you.
Best regards
Maxim Received on Tue Aug 15 2006 - 08:24:21 CDT