Skip to Main Content

Java Database Connectivity (JDBC)

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!

PostgreSQL connection refused

843854Mar 12 2002 — edited Mar 13 2002
Hi, Im using the latest version of PostgreSQL on SuSE Linux 7.3 using the jxDBCon v2 driver (type 4).

I can access my database OK using psql, but not from my Java program. I think the problem is either my connection string is incorrect, or my DB isn't set up to allow client access.

It's a fresh install of PostgreSQL and I think I followed the instructions to the letter, but I can't connect. I checked the conf file (in <pgsql>/data) and it specifies the subnet address of 255.255.255.255 - do I need to include this in the connection string along with the ip address? Also, what about the port number it is listening on? I tried 1521 as a guess, but no luck. Also, the DB is set to "all" trust, so dont know if there is a permission problem in there?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2002
Added on Mar 12 2002
4 comments
416 views