Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Oracle hangs at connect

by clscott (Friar)
on Aug 09, 2004 at 15:20 UTC ( [id://381263]=note: print w/replies, xml ) Need Help??


in reply to Oracle hangs at connect

I find that the form specifying host is prone to taking long times to connect.

Set up your TNS names file approriately ($ORACLE_HOME/network/admin/tnsnames.ora) and use the form:

$dsn = "dbi:Oracle:$database";

--
Clayton

Replies are listed 'Best First'.
Re^2: Oracle hangs at connect
by clscott (Friar) on Aug 17, 2004 at 20:25 UTC

    I'm following up to myself because I think someone has discovered the cause.

    Unless you specify which port Oracle is listening on it will try port 1526 first, which would explain a long delay in waiting for a response before trying the more standard port of 1521.

    my $dbh = DBI->connect("dbi:Oracle:host=$host;sid=$sid;port=$port");

    Source: http://use.perl.org/~jdavidb/journal/20440

    --
    Clayton
      this is realy good answer. its worksfine Thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://381263]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-20 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found