Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Create a datasource for Postgres

444312Jan 12 2006 — edited May 3 2007
I'm having problems attempting to create a datasource for a Postgres database. I've tried various combinations of data-source-class and URL without success. Currently, I have it configured as:

data-source-class : oracle.jdbc.pool.OracleDataSource
URL : jdbc:postgresql:XPGSQL

This is give the error: java.sql.SQLException: Invalid Oracle URL specified

I have a feeling I should be using a url of the form jdbc:oracle:thin:@host:<port>:<SID> but I'm not sure exactly what it should be.

It's only when attempting to access the database through a datasource that I run into difficulties. I can make DriverManager connections without any problems.

Any thoughts would be much appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2007
Added on Jan 12 2006
13 comments
2,904 views