Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
more useful options
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
I'm trying to get a connection to an Oracle DB. It works via the command line but craps out through the browser. Here is the code
use CGI qw(:all); use CGI::Carp qw(fatalsToBrowser); use strict; use DBI; print header; my $dbh = DBI->connect("dbi:Oracle:host=pikachu;sid=DEVORANT", "so", " +so") or die "Can\'t connect to -- $DBI::errstr\n"; print "hello world";
Here is what gets dumped to the browser:
Content-type: text/html Software error: install_driver(Oracle) failed: [Tue Jun 6 14:53:43 2000] C:\InetPub\cgi-bin\spmc\search.pl: [Tue Jun 6 14:53:43 2000] C:\InetPub\cgi-bin\spmc\search.pl: Can't load 'C:/Perl/site/lib/auto/DBD/Oracle/Oracle.dll' for module DBD::Oracle: load_file:Access is denied at C:/Perl/lib/DynaLoader.pm line 169. [Tue Jun 6 14:53:43 2000] C:\InetPub\cgi-bin\spmc\search.pl: [Tue Jun 6 14:53:43 2000] C:\InetPub\cgi-bin\spmc\search.pl: [Tue Jun 6 14:53:43 2000] C:\InetPub\cgi-bin\spmc\search.pl: [Tue Jun 6 14:53:43 2000] C:\InetPub\cgi-bin\spmc\search.pl: at (eval 7) line 3 at C:\InetPub\cgi-bin\spmc\search.pl line 17 For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
I've checked out the DynaLoader.pm file at line 169 but it tells me (just above in a comment) that "Many dynamic extension loading problems will appear to come from this section of code: XYZ failed at line 123 of DynaLoader.pm. Often these errors are actually occurring in the initialisation C code of the extension XS file. Perl reports the error as being in this perl code simply because this was the last perl code it executed." I can't tell if this is the case. If it is, can I work around it, if it isn't can anyone help me?

In reply to DBI Oracle and IIS by johnmbd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (10)
    As of 2014-04-19 15:36 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      April first is:







      Results (482 votes), past polls