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 > quickest way to fix check pending

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-03-04, 18:02
udbdb2 udbdb2 is offline
Registered User
 
Join Date: Nov 2003
Posts: 121
quickest way to fix check pending

how to quickly keep table out of check pending after load and strart from scratch?
Reply With Quote
  #2 (permalink)  
Old 08-03-04, 19:54
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Assuming you are on LUW,

Are you looking for something like
SET INTEGRITY
statememt

SQL Reference will have the correct syntax ..

Please read 'Must Read BEfore Posting' thread at the top of the forum

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 08-03-04, 21:03
udbdb2 udbdb2 is offline
Registered User
 
Join Date: Nov 2003
Posts: 121
Bypass integrity check

Yes,'set integrity' but we want to bypass integrity check and remove pending status to full acces..
thanks!
Reply With Quote
  #4 (permalink)  
Old 08-04-04, 01:22
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

Check pending state is probably because of foreign keys. If you would like to load data without doing the "set integrity" command at the end to move the table from check pending state to normal state, there is one more option:

1. Drop foreign keys,
2. Load tables
3. create foreign keys.

But be carful - droping foreign keys can be dangerous - because you don't have the referencial integrity.
Reply With Quote
  #5 (permalink)  
Old 08-04-04, 09:28
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
you can use the non-recoverable option on the load command, it will leave the table in a useable state, but it assumes all your data is good. Make sure you have a good data.
__________________
David Quigley
Reply With Quote
  #6 (permalink)  
Old 08-13-04, 14:47
urquel urquel is offline
Registered User
 
Join Date: Aug 2004
Posts: 330
There are 2 ways that I know of (the first is more destructive):

1. Drop the tablespace will remove the flag.
2. START ACCESS(FORCE)
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