MySql与数据库oracle.jdbc.pool.OracleDataSource

时间:2014-05-02 07:00:27

标签: java java-ee

是否可以将MySql与oracle.jdbc.pool.OracleDataSource类一起使用?

我试图这样做,但得到例外......

   "Exception in thread "main" java.sql.SQLException: Invalid Oracle URL specified
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:301)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:221)"

其中url是,

" String url =" jdbc:mysql:// localhost:3306 / test";"

0 个答案:

没有答案