pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Moovarkku Mudhalvan <mudhalvan@vasunas.com>
To: pgsql-admin@postgresql.org
Subject: Re: What may be the url we need to use to connect the Postgres Database with Java
Date: Mon, 15 Oct 2001 08:14:13 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGCEHODMAA.nickf@ontko.com> (raw)
In-Reply-To: <00c401c1554d$e17e7b50$ec01a8c0@eth.net>

 jdbc.oracle.thin@ipaddress
> like this do we have any url need to be used in Postgres if so
> let me know.

jdbc:postgresql:database
jdbc:postgresql://host/database
jdbc:postgresql://host:port/database



if left out, host defaults to localhost- this is where you put your IP
address

if left out, port defaults to 5432

For example:

jdbc:postgresql://199.199.199.199/test

will connect you to the database named "test" on the host "199.199.199.199"

You will also need to have the database running with tcpip_socket set to "1"
or true in the postgresql.conf file, and set up authorization in pg_hba.conf
(search on these filenames in the interactive documentation for more.

-Nick

--------------------------------------------------------------------------
Nick Fankhauser  nickf@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/




view thread (4+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGCEHODMAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGCEHODMAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGCEHODMAA.nickf@ontko.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: nickf@ontko.com, mudhalvan@vasunas.com
  Subject: Re: What may be the url we need to use to connect the Postgres Database with Java
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGCEHODMAA.nickf@ontko.com>
  References: <00c401c1554d$e17e7b50$ec01a8c0@eth.net> <NEBBLAAHGLEEPCGOBHDGCEHODMAA.nickf@ontko.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox