Not All Records Being Deleted

Peter Bateman peterbateman808 at hotmail.com
Thu Aug 28 19:17:29 CDT 2008


Hi Dirk:
 
   I would try running your script with DBAUDIT=FULL option. It might give you a clue.
   
   From the DBAUDIT you should be able to see the SQL that PowerHouse is generating.
 
   Is possible that there is an insert  trigger on one of the tables that being populated by
   the delete trigger? This insert trigger may be causing an insert on REC under certain conditions?
   i.e. circular trigger logic.
 
   Make sure you have the right Oracle client linked in with PowerHouse.
 
   Customer support should be able to help you with that.
 
   Good luck,
 
   Peter

Subject: Not All Records Being DeletedDate: Thu, 14 Aug 2008 10:56:49 -0700From: Dirk.Rohde at vpgroup.comTo: powerh-l at lists.sowder.com






We are running a little script to delete some records in an Oracle table “REC” as follows:
 
Q T P   (PowerHouse  8.43.D1)
Copyright 2005 COGNOS INCORPORATED
Licensed PH8-UNIX-RUNTIME for customer
 
> access REC
> select if REC_CREATE_DATE <= 20080715
> subfile SAVE_REC keep include REC
> output REC delete
> go
 
Executing request 1 ...
 
Records read:
  REC                                  3,473
 
Transactions processed:                  340
 
Records processed:                     Added    Updated  Unchanged    Deleted
  REC                                      0          0          0         61
  SAVE_REC                               340          0          0          0
 
Finished.
> 
 
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)?
 




Dirk RohdeVantagePoint Systems, Inc.T: 604-685-4209 x 239 F: 604-685-4186  



 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. 
_________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20080828/d78f3cc8/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 9443 bytes
Desc: not available
Url : http://lists.sowder.com/pipermail/powerh-l/attachments/20080828/d78f3cc8/attachment-0001.gif 


More information about the powerh-l mailing list