Paul Clapham wrote:Don't do that. If you have an Oracle database then the way to access it from Java is via JDBC, not ODBC. So get the Oracle JDBC driver which corresponds to your version of the Oracle database and work with that.
If you don't know about JDBC then your first step should be to read a JDBC tutorial (Google keywords: jdbc tutorial).
SCJP
Visit my download page
Randall Twede wrote:it has been 10 years since i did this sort of thing but there was what they called jdbc-odbc bridge. made it very simple. like Paul suggested google JDBC tutorial
Pranit Sonawane wrote:That's what am gonna do...but it needs a driver to create a DSN and am not able to find the driver in list...
please Help me how can i connect it to the database if i have oracle 10 g using jdbc-odbc bridge
Pranit Sonawane wrote:
Randall Twede wrote:it has been 10 years since i did this sort of thing but there was what they called jdbc-odbc bridge. made it very simple. like Paul suggested google JDBC tutorial
That's what am gonna do...but it needs a driver to create a DSN and am not able to find the driver in list...please Help me how can i connect it to the database if i have oracle 10 g using jdbc-odbc bridge
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Ireneusz Kordal wrote:
Pranit Sonawane wrote:That's what am gonna do...but it needs a driver to create a DSN and am not able to find the driver in list...
please Help me how can i connect it to the database if i have oracle 10 g using jdbc-odbc bridge
Download drivers from Oracle - here: http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
Get the newest version for 11g, it is compatible with earlier versions of the database - 9g and 10g.
ojdbc6.jar is for Java 1.6, ojdbc5.jar works with Java 1.5, choose one for your java version and place this jar in the classpath.
The rest is in the tutorial: http://docs.oracle.com/javase/tutorial/jdbc/index.html
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Spoor wrote:You can't connect to an ODBC database using HTTP. You need to use an ODBC connection String. The one matching your driver class is not "http://127.0.0.1:8080/apex" but "jdbc:odbc:apex", assuming that "apex" is the ODBC name.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |