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!

what is procedure for connecting to Postgres through JDBC

843854Sep 15 2003 — edited Sep 15 2003
I am going to develop an application for which I have to connect to postgres on my linux server through a java program (it is on local machine in windows environment). I have configured the postgres for access from any other network computer by making the tcp_ip socket true and also adding the line for the ip connection in the pg_hba.conf file. Now the server is ready to accept connections from any other network computer. I do not know that how can I connect to the server? I have two ways in my mind. One is that I will have to include postgres in odbc and then I use jdbc-odbc bridge to connect to odbc while odbc has already made connection with postgres. The other is that I directly connect to postgres by using appropiate driver. Tell me which method is used practically and what drivers will I need to connect to the server.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2003
Added on Sep 15 2003
1 comment
105 views