Chris,

I usually get this when my database is not running.  Or if the listener is
down.  Check your host and sid, make sure the listener is up.

Regards,
Drew

-----Original Message-----
From: Chris Saunders [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 11:50 AM
To: [EMAIL PROTECTED]
Subject: Oracle



Hi,

I'm having some problems connecting to a Oracle db. The syntax I'm using
is..

$dsn = "DBI:Oracle:host=$host;sid=$sid";
$dbh = DBI->connect($dsn, $user, $password) or die "Error...$DBI::errstr\n";

but I keep getting the error

ORA-12203: TNS:unable to connect to destination (DBD ERROR: OCIServerAttach)

This is my first attempt at using DBI so I apologise in advance if I've
missed something obvious.

          Chris


--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

Reply via email to