in reply to httpd fail to start when I include DBD::Oracle in the startup.pl

Does it work from the command line?

First glance says you don't need to the line "use DBD::Oracle;", just DBI. You load the DBI later. For example:

use strict; use DBI; my $dbname = 'ORCL'; #name of database # Here is where DBI loads DBD::Oracle my $dbh = DBI->connect( "dbi:Oracle:$dbname", 'scott', 'tiger', ) || die "Database connection not made: $DBI::e +rrstr"; $dbh->disconnect;

HTH

Update: You should probably search the mod_perl site for "persistent database connections"

Clarified comment about "use DBI::Oracle;"

  • Comment on Re: httpd fail to start when I include DBD::Oracle in the startup.pl
  • Download Code

Replies are listed 'Best First'.
Re: Re: httpd fail to start when I include DBD::Oracle in the startup.pl
by Anonymous Monk on Sep 17, 2002 at 16:26 UTC
    The whole purpose of using DBD::Oracle is to read BLOB's.I need to set the ora_type to ORA_BLOB when I read it.Also I tried what perrin said, to set ORACLE_HOME before we use any modules. and it does'nt work.Please let me know if you have any other suggestion