If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Minimise Logging

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-01-05, 22:59
AnilKale AnilKale is offline
Registered User
 
Join Date: Feb 2005
Posts: 118
Minimise Logging

Hi Folks !

We have a stored procedure (SP), called the master SP. The Master SP calls several other SPs in it.
Towards the end, there is one SP that does a clean up. To clean up, it does a DELETE FROM tablename;
The are not hundreds of thousands records to be deleted , but are certainly in few thousands per table (and there are three such tables).
Now if this was the os/390 world, and this was a step within a JCL, I would have just recommended a LOAD REPLACE a dummy dataset with LOG NO.
In the UDB on AIX world, although I could LOAD a empty dataset with non-recoverable option, I am not sure if that is possible in this case. esp. given that its a SP within a stream of other Sps called by a master sp.
does anyone have any ideas as to how could I clear tables using a SP and minimise the logging overhead.

thank you.
Anil
Reply With Quote
  #2 (permalink)  
Old 03-02-05, 00:39
jacampbell jacampbell is offline
Registered User
 
Join Date: Jan 2005
Posts: 191
ALTER TABLE xxx ACTIVATE NOT LOGGED INITIALLY WITH EMPTY TABLE
?

James Campbell
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On