Hi,
I am running the following code:
<%@ LANGUAGE = PerlScript%>
<%
use Config::IniFiles; # This is to get infile data
use File::Basename; # Return the name of the directory
use DBI; # Use the dbi driver
# Connect to the database
$dbh = DBI->connect("dbi:Oracle
ID1", "pdms", "pdms", {AutoCommit => 0,RaiseError => 1}) or die "Connection failed to database $my_dbi: $DBI::errstr\n";
$Response->write("\$dbh value is: " . $dbh);
# Create a new statement handle to fetch table information
@tables = $dbh->tables();
# DisConnect from the database
$dbh->disconnect or die "Disconnection failed from destination database $DBI::errstr\n";
$test = "ddd";
%>
This code runs fine the first time, but if I try to access the page again (or if I do a refresh), I get the following error:
$dbh value is: DBI::db=HASH(0x79be39c)
use Config::IniFiles; # This is to get infile data use File::Basename; # Return the name of the directory use DBI; # Use the dbi driver # Connect to the database $dbh = DBI->connect("dbi:Oracle
ID1", "pdms", "pdms", {AutoCommit => 0,RaiseError => 1}) or die "Connection failed to database $my_dbi: $DBI::errstr\n"; $Response->write("\$dbh value is: " . $dbh); # Create a new statement handle to fetch table information @tables = $dbh->tables(); # DisConnect from the database $dbh->disconnect or die "Disconnection failed from destination database $DBI::errstr\n"; $test = "ddd"; error '80004005'
Internal Error
?
What could be the reason for this?
Regards,
Thierry
I am running the following code:
<%@ LANGUAGE = PerlScript%>
<%
use Config::IniFiles; # This is to get infile data
use File::Basename; # Return the name of the directory
use DBI; # Use the dbi driver
# Connect to the database
$dbh = DBI->connect("dbi:Oracle
$Response->write("\$dbh value is: " . $dbh);
# Create a new statement handle to fetch table information
@tables = $dbh->tables();
# DisConnect from the database
$dbh->disconnect or die "Disconnection failed from destination database $DBI::errstr\n";
$test = "ddd";
%>
This code runs fine the first time, but if I try to access the page again (or if I do a refresh), I get the following error:
$dbh value is: DBI::db=HASH(0x79be39c)
use Config::IniFiles; # This is to get infile data use File::Basename; # Return the name of the directory use DBI; # Use the dbi driver # Connect to the database $dbh = DBI->connect("dbi:Oracle
Internal Error
?
What could be the reason for this?
Regards,
Thierry