RE: Perl:DBI

or to verify it is available at all something like

perl -e 'use DBI; use DBD::Oracle'

will do the trick

rodney

-----Oorspronkelijk bericht-----
Van: Gogala, Mladen [mailto:Mladen.Gogala@xxxxxxxx]
Verzonden: donderdag 2 september 2004 3:33
Aan: 'oracle-l@xxxxxxxxxxxxx'
Onderwerp: RE: Perl:DBI


If it is a uniox box, script would look like this:

        #!/usr/bin/perl -w
        use strict;
        use DBI;
        print "DBI Version is:", $DBI::VERSION,"\n";
        my @drivers=DBI->available_drivers();
        foreach (@drivers) {
          if ( /oracle/i ) {
             use DBD::Oracle;
             print "Oracle driver version is:",$DBD::Oracle::VERSION,"\n";
          }
        }



> -----Original Message-----
> From: Goulet, Dick [SMTP:DGoulet@xxxxxxxx]
> Sent: Wednesday, September 01, 2004 3:10 PM
> To:   oracle-l@xxxxxxxxxxxxx
> Subject:      Perl:DBI
> 
> While we're on the subject of Perl, being a perl novice of the lowest =
> order, I have a duhveloper whose trying to write a cgi script that =
> invokes perl.  Anyone got a quick way to verify that the perl:dbi module =
> is installed & working correctly??
> 
> Dick Goulet
> Senior Oracle DBA
> Oracle Certified 8i DBA
> 
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
> put 'unsubscribe' in the subject line.
> --
> Archives are at http://www.freelists.org/archives/oracle-l/
> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------
----------------------------------------------------------------
To unsubscribe send an email to:  oracle-l-request@xxxxxxxxxxxxx
and put 'unsubscribe' in the subject line.

Recent messages - http://freelists.org/archives/oracle-l/09-2004
---
To unsubscribe - mailto:oracle-l-request@xxxxxxxxxxxxx&subject=unsubscribe 
To read recent messages - http://freelists.org/archives/oracle-l/09-2004

Other related posts: