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 > set integrity after db2move

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-12-07, 15:29
bic bic is offline
Registered User
 
Join Date: Feb 2007
Posts: 42
set integrity after db2move

I have ran a db2move unload and load from Linux to Windows db2 v8 fp 12 or so. There's no errors in the load onto Windows. However, when trying to query a table, I get the

com.ibm.db.DataException: A database manager error occurred. : [IBM][CLI Driver][DB2/NT] SQL0668N Operation not allowed for reason code "1" on table "prd.users". SQLSTATE=57016

So, I try set SET INTEGRITY FOR prd.users IMMEDIATE CHECKED FOR EXCEPTION IN prd.users USE prd.users_EXCEPT;

I can now query the users table. Is this supposed to put in the problematic rows into the exception table (I don't see any)? How can I accomplish this?
Reply With Quote
  #2 (permalink)  
Old 02-13-07, 06:41
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
If there are no exceptions, you won't see any in the exception table. The thing is that DB2 puts the table in check pending state because of the load - not because of possible constraint violations.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 02-13-07, 08:50
bic bic is offline
Registered User
 
Join Date: Feb 2007
Posts: 42
Quote:
Originally Posted by stolze
If there are no exceptions, you won't see any in the exception table. The thing is that DB2 puts the table in check pending state because of the load - not because of possible constraint violations.
Thanks. I tried turning integrity off and still cannot access the table. How can I remove this integrity problem?

I really don't want to keep all these exception tables sitting around empty. Might be confusing.
Reply With Quote
  #4 (permalink)  
Old 02-13-07, 09:15
bic bic is offline
Registered User
 
Join Date: Feb 2007
Posts: 42
Quote:
Originally Posted by bic
Thanks. I tried turning integrity off and still cannot access the table. How can I remove this integrity problem?

I really don't want to keep all these exception tables sitting around empty. Might be confusing.
set integrity for table1 immediate checked
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