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 > "list history" command - How to remove entries?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-08, 07:51
Shyckymn Shyckymn is offline
Registered User
 
Join Date: Mar 2007
Posts: 11
"list history" command - How to remove entries?

How do I delete some entries that are result of the query below?

db2 list history containing schema.table for database

I want to remove some entries from the List History command.

It is possible?
Reply With Quote
  #2 (permalink)  
Old 01-31-08, 08:04
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The only way I know is the PRUNE HISTORY command, but it is only able to remove items before a timestamp:

http://publib.boulder.ibm.com/infoce...c/r0001992.htm

It will remove all items regardless of the type.

Andy
Reply With Quote
  #3 (permalink)  
Old 01-31-08, 11:04
Shyckymn Shyckymn is offline
Registered User
 
Join Date: Mar 2007
Posts: 11
Oops. Doesn't work...

After execute the command "db2 prune history 200801", all the items remain when I type the command "list history"...

Reply With Quote
  #4 (permalink)  
Old 01-31-08, 11:18
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What is the output of the list history?

What is the output of db2ckrst?
http://publib.boulder.ibm.com/infoce...c/r0004471.htm

Maybe it thinks it still needs those entries.

Andy
Reply With Quote
  #5 (permalink)  
Old 02-08-08, 11:12
Shyckymn Shyckymn is offline
Registered User
 
Join Date: Mar 2007
Posts: 11
Here's the output of db2ckrst

The command "db2 prune history 200801" was executed without errors.
But the "list history" command until has all the entries.

Here's the output of db2ckrst:

Quote:
db2ckrst -d dbname -t 20080101000000 -r database

Error: db2ckrst - No image found for timestamp 20080101000000
Return code of -8 seen at line 1363
Any tips?
Reply With Quote
  #6 (permalink)  
Old 02-08-08, 13:04
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
No. Maybe you should check with IBM.

Andy
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