> From: "Shah, Urmil" <[EMAIL PROTECTED]> > Date: 2004/08/13 Fri PM 07:48:44 GMT > > $sth1 = $dbh->prepare(qq{insert into temp values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}) or > die"Cannot prepare sql:$DBI::errstr\n";
My understanding was that placeholders must have column names associated with them, so I dont' think that would work... HTH, and HINW, amonotod -- `\|||/ amonotod@ | sun|perl|windows (@@) charter.net | sysadmin|dba ooO_(_)_Ooo____________________________________ _____|_____|_____|_____|_____|_____|_____|_____|
Here is the code if it helps. I do not know how to run trace 10046 but I have put output from V$session_wait for my session.
my $dbh = $db->connect("$graph_fab");
$sth1 = $dbh->prepare(qq{insert into temp values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}) or die"Cannot prepare sql:$DBI::errstr\n";
foreach my $type(sort keys %H_CNT_BY_PGM){ foreach my $pgm(sort keys %{$H_CNT_BY_PGM{$type}}){
my $string=$H_CNT_BY_PGM{$type}{$pgm}; ($dev_type_err,$test_type_err,$lot_type_err,$temp_type_err,$rmenu_dev_type_err,$rmenu_test_type_err,$rmenu_lot_type_err,$rmenu_temp_type_err)=split(/,/,$string);
print "Values to insert: $mydate,$site,$type,$pgm,$Tot,$Tot_yes,$Tot_rmenu,$dev_type_err,$test_type_err,$temp_type_err,$lot_type_err,$rmenu_dev_type_err,$rmenu_test_type_err,$rmenu_temp_type_err,$rmenu_lot_type_err\n\n";
$sth1->execute($mydate,$site,$type,$pgm,$Tot,$Tot_yes,$Tot_rmenu,$dev_type_err,$test_type_err,$temp_type_err,$lot_type_err,$rmenu_dev_type_err,$rmenu_test_type_err,$rmenu_temp_type_err,$rmenu_lot_type_err) or die"Cannot execute with values:$DBI::ERRSTR";
}#foreach }#foreach
print "Finished Inserting in temp\n";
$sth1->finish(); $dbh->disconnect();
select * from v$session_wait where sid=21
I will try to contact my DBA and get the 10046 trace but it will take some time. If its short and simple and if some one is willing to explain I can try to do it myself.
[Reidy, Ronald] Did you commit before trying to rename the table?
-- Currently I am just testing to see if my code works to populate the table. I did not change the name or did any commit. After I hit ‘ok’ button it populates all the data in db without any problems. I delete all the data “delete from temp” and then try to run the sql since there are some PK and unique value constraints.
Urmil
-----Original Message-----
See below ...
-----------------
|
<<image001.jpg>>