Oracle Connection Problem

Hi,

I’m trying to establish a connection to oracle via the SmartClient Developer Console, but I always get this error-message:

“Failure: Unable to connect. Error from Driver:
java.lang.ClassCastException:
oracle.jdbc.driver.OracleDriver cannot be cast to javax.sql.DataSource”

These are the settings for my connection:

Database ID: oracletest
Database Type: Oracle
Obtain Connections Using: DataSource
Driver Implementer: oracle.jdbc.driver.OracleDriver
Server Name: 192.168.0.2
Port Number: 1521
Database Name/SID: TEST
User: myUser
Password: myPW
Driver Type: oci
Network Protocol: tcp

I hope you can help me!

Regards,
Arne

Hi Arne -

I think your problem is that you’re specifying the wrong Driver Implementer. If you’re going to use the “DataSource” mechanism for JDBC connections, you need to use the oracle.jdbc.pool.OracleDataSource class as the Driver Implementer. Alternatively, you can change to “DriverManager” as the connection mechanism and then use the oracle.jdbc.driver.OracleDriver class as the driver implementer.

Hi,

After I changed the Driver Implementer it works!!!
Thanks a lot for your help! :slight_smile:

With best regards,
Arne

Good to hear it’s working for you. Good luck with your development.