This is a discussion on JAVA Oracle connectivity with Jdbc-odbc bridge within the Java Programming forums, part of the Software Development category; Hello, I am newbie in JDBC. Can anybody provide me the code for connecting to oracle through Jdbc-Odbc bridge. ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hello, I am newbie in JDBC. Can anybody provide me the code for connecting to oracle through Jdbc-Odbc bridge. I have already created a system dsn (Microsoft ODBC for Oracle) named "orajava". |
| Sponsored Links |
| |||
| hi, Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc dbc rajava ","scott","tiger"); After this you can create statement or prepared Statement object depending on your application. |
| |||
| 1step is: getdriver Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 2 step is register the URL Connection con=DriverManager.getConnection("jdbc dbc rajava ","scott","tiger"); 3step is : create the statement Statemnt st=con.createStatement(); 4 step is: Execute the Query and get the results from resultset 4 step is: close the all connections
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
| |||
| hi aman, this link provides you sll the necessary details for making connection to oracle through java.... Java Database Connectivity Guide
__________________ Krishnakumar.S Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily |
| |||
| The Following code will help u.............. PHP Code: |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference between JDBC and ODBC? | vijayanand | Java Programming | 0 | 09-20-2007 08:05 AM |
| Which is the fastest type of JDBC driver in Java? | leoraja8 | Java Programming | 2 | 09-05-2007 08:31 AM |
| Can the JDBC-ODBC Bridge be used with applets? | bluesky | Mobile Software Development | 2 | 09-04-2007 08:04 AM |
| Parameters and Variables in Oracle through ODBC (VS2005) | $enthil | VB.NET Programming | 2 | 08-17-2007 06:56 AM |
| Open Database Connectivity (ODBC) | Murali | Database Support | 0 | 07-16-2007 04:02 AM |