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 > Delete All Data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-12-09, 01:31
ratheeshknair ratheeshknair is offline
Registered User
 
Join Date: Jan 2009
Posts: 153
Delete All Data

Hi Experts,

How can i delete data from more than 150 tables having foreign relationships?

TIA
Reply With Quote
  #2 (permalink)  
Old 08-12-09, 03:03
umayer umayer is offline
Registered User
 
Join Date: Dec 2005
Posts: 273
LOAD REPLACE ENFORCE NO with an empty load-dataset, and CHECK DATA afterwards
Reply With Quote
  #3 (permalink)  
Old 08-12-09, 04:06
ibm_db2_rocks ibm_db2_rocks is offline
Registered User
 
Join Date: Aug 2009
Posts: 8
LOAD from /dev/null
Reply With Quote
  #4 (permalink)  
Old 08-12-09, 08:55
ratheeshknair ratheeshknair is offline
Registered User
 
Join Date: Jan 2009
Posts: 153
I am using windows XP and what exactly i need to give? Wher i have to specify the table name?

TIA
Reply With Quote
  #5 (permalink)  
Old 08-12-09, 09:56
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
First... Have you checked the load command syntax ?
you need to work on Hints provided here...
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #6 (permalink)  
Old 08-13-09, 02:46
ratheeshknair ratheeshknair is offline
Registered User
 
Join Date: Jan 2009
Posts: 153
Yes Rahul,

It caused the table to be load pending issued the set integrity command and the table is OK but caused my other table in no accessible state. One table having foreign key is causing the issue i think
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