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 > How to Prune "db2rhist.asc" file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-18-04, 05:22
pushp pushp is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 30
Unhappy How to Prune "db2rhist.asc" file

Hi All

I am working on db2 8.1 FP4 for AIX - 5l,
I want to know how to prune the history file as it is continously growing I am doing weekly reorg which causes this file (db2rhist.asc) to grow. The application is of warehouse.

I tried to prune with the command
prune history <timestamp>
but the size of the file was not decreased.

I also tried to stop/start the db/instance but no luck, the size of the file is still the same.

Is there any settings in db where one can restrict it , if so Please let me know.

Appreciated Quick response.

Cheers,
Push
Reply With Quote
  #2 (permalink)  
Old 07-18-04, 11:07
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
This is dbm parameter

REC_HIS_RETENTN

use update dbm cfg using REC_HIS_RETENTN <no of days>

regards,

mujeeb
Reply With Quote
  #3 (permalink)  
Old 06-03-09, 13:54
rbferronato rbferronato is offline
Registered User
 
Join Date: Jun 2009
Posts: 1
Update db cfg

Hi

Sorry, but is not Update dbm cfg , insted of that, user
update db cfg for <database alias> using REC_HIS_RETENTN <# of days>

BR

R FErronato
Reply With Quote
  #4 (permalink)  
Old 06-04-09, 08:29
wang.rayn wang.rayn is offline
Registered User
 
Join Date: Jun 2009
Posts: 1
You can try this command :

PRUNE HISTORY <timestamp> WITH FORCE OPTION

If "with force option" is not specified, all entries from the backup image forward will be maintained in the history. You mentioned that's warehouse database, so I guess you didn't take backup for a while, So even though you issued prune command, but those records still remain in the history file.
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