pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
What may be the url we need to use to connect the Postgres Database with Java
4+ messages / 2 participants
[nested] [flat]

* What may be the url we need to use to connect the Postgres Database with Java
@ 2001-10-15 07:49 Moovarkku Mudhalvan <mudhalvan@vasunas.com>
  2001-10-15 13:14 ` Re: What may be the url we need to use to connect the Postgres Database with Java Nick Fankhauser <nickf@ontko.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Moovarkku Mudhalvan @ 2001-10-15 07:49 UTC (permalink / raw)
  To: pgsql-admin; Tom Lane <tgl@sss.pgh.pa.us>

Hi friends,
    Greetings. if we use the oracle as backend with Java programming we use
the url like

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

The Driver i got it from the Package...

Thanks
Mudhalvan M.M




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: What may be the url we need to use to connect the Postgres Database with Java
  2001-10-15 07:49 What may be the url we need to use to connect the Postgres Database with Java Moovarkku Mudhalvan <mudhalvan@vasunas.com>
@ 2001-10-15 13:14 ` Nick Fankhauser <nickf@ontko.com>
  2001-10-16 03:57   ` Re: What may be the url we need to use to connect the Postgres Database with Java Moovarkku Mudhalvan <mudhalvan@vasunas.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Nick Fankhauser @ 2001-10-15 13:14 UTC (permalink / raw)
  To: Moovarkku Mudhalvan <mudhalvan@vasunas.com>; pgsql-admin

 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/




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: What may be the url we need to use to connect the Postgres Database with Java
  2001-10-15 07:49 What may be the url we need to use to connect the Postgres Database with Java Moovarkku Mudhalvan <mudhalvan@vasunas.com>
  2001-10-15 13:14 ` Re: What may be the url we need to use to connect the Postgres Database with Java Nick Fankhauser <nickf@ontko.com>
@ 2001-10-16 03:57   ` Moovarkku Mudhalvan <mudhalvan@vasunas.com>
  2001-10-16 16:23     ` Re: What may be the url we need to use to connect the Postgres Database with Java Nick Fankhauser <nickf@ontko.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Moovarkku Mudhalvan @ 2001-10-16 03:57 UTC (permalink / raw)
  To: nickf@ontko.com; pgsql-admin

Hi Nick,

   Greetings. Thanks for ur mail.

    Permission denied when i go for the backup. The steps i am doing is

1. Logins as root
2. su postgres
3. pg_dump Databasename redirected to file name...

   Let me know why i am getting this error

Thanks
Mudhalvan M.M

----- Original Message -----
From: "Nick Fankhauser" <nickf@ontko.com>
To: "Moovarkku Mudhalvan" <mudhalvan@vasunas.com>;
<pgsql-admin@postgresql.org>
Sent: Monday, October 15, 2001 6:44 PM
Subject: Re: [ADMIN] What may be the url we need to use to connect the
Postgres Database with Java


> 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/
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: What may be the url we need to use to connect the Postgres Database with Java
  2001-10-15 07:49 What may be the url we need to use to connect the Postgres Database with Java Moovarkku Mudhalvan <mudhalvan@vasunas.com>
  2001-10-15 13:14 ` Re: What may be the url we need to use to connect the Postgres Database with Java Nick Fankhauser <nickf@ontko.com>
  2001-10-16 03:57   ` Re: What may be the url we need to use to connect the Postgres Database with Java Moovarkku Mudhalvan <mudhalvan@vasunas.com>
@ 2001-10-16 16:23     ` Nick Fankhauser <nickf@ontko.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Nick Fankhauser @ 2001-10-16 16:23 UTC (permalink / raw)
  To: pgsql-admin


>     Permission denied when i go for the backup. The steps i am doing is
>
> 1. Logins as root
> 2. su postgres
> 3. pg_dump Databasename redirected to file name...
>
>    Let me know why i am getting this error


Maybe the postgres user does not have permission to create a file in this
directory.

If this is true, the error you are getting would be from the operating
system, not from pg_dump.

To test this, try the same steps, but instead of starting pg_dump, do:
"touch test" to see if the postgres user can create a file. If you get an
error it is simply a directory permission problem.

-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/




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2001-10-16 16:23 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-10-15 07:49 What may be the url we need to use to connect the Postgres Database with Java Moovarkku Mudhalvan <mudhalvan@vasunas.com>
2001-10-15 13:14 ` Nick Fankhauser <nickf@ontko.com>
2001-10-16 03:57   ` Moovarkku Mudhalvan <mudhalvan@vasunas.com>
2001-10-16 16:23     ` Nick Fankhauser <nickf@ontko.com>

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