my dog learned polymorphism
The moose likes Java in General and the fly likes ORACLE and MYSQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "ORACLE and MYSQL" Watch "ORACLE and MYSQL" New topic


vishwas bhatt
Ranch Hand

Joined: Nov 30, 2000
Posts: 129
Hi there,
Can i load simultaneously two drivers one for Oracle8i and one for MySQl. if then tell how to do this. or tell me what to do if i want t otransfer data from MYSQL to oracle from java Application.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

A Driver is required to register itself with the DriverManager when it loads. Once several Drivers have been loaded, you ask the DriverManager for a Connection to a database, and the DriverManager finds the correct Driver for you by asking each Driver if it will support a particular JDBC URL.

ie: Yes, you can support multiple SQL Drivers at the same time.
The second question is a bit harder...
I agree. Here's the link:
subject: ORACLE and MYSQL
It's not a secret anymore!