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 > replacing data in the table.(emptying)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-06-04, 09:05
shrinibv1 shrinibv1 is offline
Registered User
 
Join Date: Feb 2004
Posts: 7
replacing data in the table.(emptying)

Hi,
I am using the following statement for replacing the data in the table instead of deleting the records. If I do the delete the records which are in thousands, the transaction log will get filled up unnecessarily which I don't want to do. I use the following command to replace the data of the table.
load from C:\test.sql of ixf replace into alert_history;
where test.sql is a empty file and alert_history is the name of the table.
But the table records are not getting emptied.
May I know is there anything I need to do apart from this.
The alert_history table here has around 200,000 records and I am OK even if I loose the data of the table after replacement.
Please respond.
Thx
Shrini
Reply With Quote
  #2 (permalink)  
Old 02-06-04, 09:16
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: replacing data in the table.(emptying)

The empty file cannot be ixf ...

It has to be del (not sure asc)

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 02-06-04, 09:27
shrinibv1 shrinibv1 is offline
Registered User
 
Join Date: Feb 2004
Posts: 7
Re: replacing data in the table.(emptying)

Quote:
Originally posted by sathyaram_s
The empty file cannot be ixf ...

It has to be del (not sure asc)

Cheers
Sathyaram
Hi Sathyaram,
Even del does not work.

Thx
Shrini
Reply With Quote
  #4 (permalink)  
Old 02-06-04, 09:49
Nageswaran Nageswaran is offline
Registered User
 
Join Date: Jul 2002
Posts: 48
Re: replacing data in the table.(emptying)

After execution of load command, what is the message which you are getting. Whether you are getting the message saying load is completed.

Another question i have is whether you any referential integrity on this table?

Check whether table is in pending state or not?

Nagesh
Reply With Quote
  #5 (permalink)  
Old 02-06-04, 10:09
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Re: replacing data in the table.(emptying)

I have used ixf file to empty the table on AIX DB2 V7 FP9

dollar


Quote:
Originally posted by sathyaram_s
The empty file cannot be ixf ...

It has to be del (not sure asc)

Cheers
Sathyaram
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