Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

dbiproxy

by jadame (Initiate)
on Sep 24, 2002 at 19:43 UTC ( [id://200471]=perlquestion: print w/replies, xml ) Need Help??

jadame has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to connect to an Oracle database via the DBI::ProxyServer module. I am able to connect to the dbiproxy application, but the application fails to return a database handle. I am a bit baffled, however, as I am able to connect to the database using DBI on the local machine.

Below is the error I get, as well as the connection being logged in the dbiproxy log:

DBI->connect(hostname=139.61.200.119;port=12000;debug=1;dsn=DBI:Oracle:testca) failed: Constructor didn't return a handle.

The error occurs in line 129 of DBD::Proxy.

I can see, in the dbiproxy log, that the dbiproxy application is accepting the connection on port 12000, but the child process it forks immediately dies. See log entry below:

Mon Sep 23 17:58:53 2002 debug, Connection from 139.61.200.119, port 1562
Mon Sep 23 17:58:53 2002 debug, Child clone: DBI::ProxyServer=HASH(0x14035cef8)
Mon Sep 23 17:58:53 2002 debug, New child starting (DBI::ProxyServer=HASH(0x14035cef8)).
Mon Sep 23 17:58:53 2002 debug, Accepting client from 139.61.200.119, port 1562
Mon Sep 23 17:58:53 2002 debug, Client logs in: Application DBI:Oracle:prodca, version 0.2003, user amex_ca_loading
Mon Sep 23 17:58:53 2002 debug, Connecting to DBI:Oracle:prodca as amex_ca_loading
Mon Sep 23 17:58:54 2002 debug, Accepting client
Mon Sep 23 17:58:54 2002 debug, Child terminating.

Replies are listed 'Best First'.
Re: dbiproxy
by jlongino (Parson) on Sep 24, 2002 at 22:36 UTC
    You might want to check the documentation for DBI::ProxyServer--specifically the where it discusses the mode (--mode=modename) options. In summary, if you are using Perl 5.005 or higher compiled successfully for threads you can use the --mode=threads. If you don't have threads but have a working fork(), use --mode=fork. If neither of the above is true you can try using --mode=single, but will be limited to a single connection. Also, IIRC the dbiproxy should be running on an NT/2K/XP class computer (if you're using Windows).

    --Jim

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-19 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found