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

Re: Connecting to a remote Oracle database from CGI scripts

by tinman (Curate)
on May 25, 2001 at 23:33 UTC ( #83396=note: print w/ replies, xml ) Need Help??


in reply to Connecting to a remote Oracle database from CGI scripts

I try the client test.. if I can get a SQL plus client to connect successfully to the remote database from the webserver machine, then, most of my connection worries are solved. IIRC, DBD::Oracle requires that the Oracle client libraries be installed. The easiest way to do this is to actually install the SQL-plus client on the server machine..

Make sure that any user privileges/permissions issues are sorted out, and thereafter,

use DBI; my $dbh = DBI->connect('dbi:Oracle:host=machine_name;sid=ORCL;port=152 +1', 'scott', 'tiger', { RaiseError => 1, AutoCommit => 0 });
or even the conventional connection method (using the TNS entry) will work.. try these links for some further information... http://www.med.univ-rennes1.fr/~poulique/cours/perl/dbi_oracle.html
http://thomas.eibner.dk/oracle/dbi/

HTH


Comment on Re: Connecting to a remote Oracle database from CGI scripts
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2015-07-29 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls