aspose file tools*
The moose likes JDBC and the fly likes JDBC platform independent ?? HOW?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC platform independent ?? HOW??" Watch "JDBC platform independent ?? HOW??" New topic
Author

JDBC platform independent ?? HOW??

sunil mirani
Ranch Hand

Joined: Jan 24, 2001
Posts: 36
Hi guys, I have a question , is it possible for me to write an JDBC application that can run of windows and the same application on unix . considering we have an oracle db on unix or windows , is yes, how do i create DSN's like we do in Jdbc dbc bridge , one more thing how do we use pure java drivers , plz help,
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Yes we do this can of feature. You don't have to use a odbc jdbc bridge. Oracle provide a jdbc driver of different type in the classes12.zip file. There is 4 types of jdbc driver. But you can use thin (platform independant) and oci driver (need system library but are faster) with oracle on unix, linux, win or mac....
no troubles .... only register the good driver
the way to register driver is explain in the Oracle Doc....
------------------
Benjamin l�onard
evisor
sunil mirani
Ranch Hand

Joined: Jan 24, 2001
Posts: 36
say i want to develop a PLATFORM INDEPENDENT tool that can access any data base which driver is the best option ??
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
that's it jdbc racle:thin:@yourServer:1521:yourSID
and we use the same on lots of system (HP,linux,NT,Win2K)
so i think it's platform independant
------------------
Benjamin l�onard
evisor
www.evisor.com
 
Don't get me started about those stupid light bulbs.
 
subject: JDBC platform independent ?? HOW??