in reply to httpd fail to start when I include DBD::Oracle in the startup.pl
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;"
|
|---|
| 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 |