<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi Dirk:<BR>
&nbsp;<BR>
&nbsp;&nbsp; I would try running your script with DBAUDIT=FULL option. It might give you a clue.<BR>
&nbsp;&nbsp; <BR>
&nbsp;&nbsp; From the DBAUDIT you should be able to see the SQL that PowerHouse is generating.<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;Is possible that there is an insert &nbsp;trigger on one of the tables that being populated by<BR>
&nbsp;&nbsp; the delete trigger? This&nbsp;insert trigger may be causing an insert on REC under certain conditions?<BR>
&nbsp;&nbsp;&nbsp;i.e. circular trigger logic.<BR>
&nbsp;<BR>
&nbsp;&nbsp; Make sure you have the right Oracle client linked in with PowerHouse.<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;Customer support should be able to help you with that.<BR>
&nbsp;<BR>
&nbsp;&nbsp; Good luck,<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;Peter<BR><BR>
<HR>
Subject: Not All Records Being Deleted<BR>Date: Thu, 14 Aug 2008 10:56:49 -0700<BR>From: Dirk.Rohde@vpgroup.com<BR>To: powerh-l@lists.sowder.com<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_shape
{;}
</STYLE>

<STYLE>
.ExternalClass p.EC_MsoNormal, .ExternalClass li.EC_MsoNormal, .ExternalClass div.EC_MsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass a:link, .ExternalClass span.EC_MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.EC_MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass span.EC_EmailStyle17
{font-family:Arial;color:windowtext;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass div.EC_Section1
{page:Section1;}

</STYLE>
<BR>
<DIV class=EC_Section1>
<P class=EC_MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">We are running a little script to delete some records in an Oracle table “REC” as follows:</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">Q T P&nbsp;&nbsp; (PowerHouse&nbsp; 8.43.D1)</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">Copyright 2005 COGNOS INCORPORATED</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">Licensed PH8-UNIX-RUNTIME for customer</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&nbsp;</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&gt; access REC</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&gt; select if REC_CREATE_DATE &lt;= 20080715</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&gt; subfile SAVE_REC keep include REC</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&gt; output REC delete</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&gt; go</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&nbsp;</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">Executing request 1 ...</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&nbsp;</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">Records read:</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&nbsp; REC &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3,473</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&nbsp;</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">Transactions processed:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 340</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&nbsp;</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">Records processed:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Added&nbsp;&nbsp;&nbsp; Updated&nbsp; Unchanged&nbsp;&nbsp;&nbsp; Deleted</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&nbsp; REC &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 61</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&nbsp; SAVE_REC&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 340&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&nbsp;</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">Finished.</SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face="Lucida Console" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: 'Lucida Console'">&gt; </SPAN></FONT><SPAN lang=EN-CA></SPAN></P>
<P class=EC_MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">This is version 8.43.D1 running on HP-UX using an Oracle 10.2 database. REC_CREATE_DATE is a date (with century included) field. There is a delete trigger on REC but it is only used to generate some data in another Oracle table. When we tried to delete just the remaining 279 records using the same code, it still would not delete the records, yet it selected them for the subfile. Has anyone seen this sort of thing happen before or have any thoughts as to why it cannot delete some of the records (without reporting an error)?</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</SPAN></FONT></P>
<TABLE class=EC_MsoNormalTable style="WIDTH: 100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="PADDING-RIGHT: 0cm; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; PADDING-TOP: 0cm">
<P class=EC_MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Dirk Rohde<BR>VantagePoint Systems, Inc.<BR>T: 604-685-4209 x&nbsp;239 <BR>F: 604-685-4186<BR></SPAN></FONT><SPAN lang=EN-CA>&nbsp; </SPAN></P></TD></TR>
<TR>
<TD style="PADDING-RIGHT: 0cm; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; PADDING-TOP: 0cm">
<P class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-CA style="FONT-SIZE: 12pt"><A href="http://www.vpgroup.com/" target=_blank><SPAN style="TEXT-DECORATION: none"><IMG id=EC__x0000_i1025 height=105 src="cid:image001.gif@01C8FDFC.73F23C20" width=672 border=0></SPAN></A></SPAN></FONT></P></TD></TR></TBODY></TABLE>
<P class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-CA style="FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></P></DIV><BR>This email may contain information that is privileged, confidential, or otherwise exempt from disclosure under applicable laws. Unauthorized use, reproduction or dissemination of this email is strictly prohibited. If you have received this e-mail in error please inform the sender and delete it from your mailbox or any other storage mechanism. VantagePoint Systems, Inc. cannot accept liability for any statements made which are clearly the sender's own and not expressly made on behalf of VantagePoint Systems, Inc. or one of its agents. <br /><hr /> <a href='' target='_new'></a></body>
</html>