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 > SQL0668N Operation not allowed for reason code "x" on table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-15-10, 06:14
aankdavid aankdavid is offline
Registered User
 
Join Date: Apr 2010
Posts: 5
SQL0668N Operation not allowed for reason code "x" on table

When you loading all database with db2move command, propably most of the tables being loaded are in pending state. To check which ones, execute SQL statement:

SELECT tabname,status,const_checked FROM syscat.tables WHERE status='C'

This command will list all tables in pending state


Reson code:

* "1" - table is in pending state - to fix this execute

SET INTEGRITY FOR table_name IMMEDIATE CHECKED

* "3" - previous load operation on this table failed. You have to terminate or restart previous load command
Reply With Quote
  #2 (permalink)  
Old 06-16-10, 22:52
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by aankdavid View Post

* "3" - previous load operation on this table failed. You have to terminate or restart previous load command

What do you do if you don't know the original command used to perform the load? How do you restart or terminate?
Reply With Quote
  #3 (permalink)  
Old 06-16-10, 23:11
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I think you just need to know the table name.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 06-16-10, 23:44
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
What file name / type will you use? What if load temporary files are missing?
Reply With Quote
  #5 (permalink)  
Old 06-17-10, 00:05
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I am not sure about a restart, but for a terminate:

db2 load from /dev/null of del terminate into table-name
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #6 (permalink)  
Old 06-17-10, 00:14
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
What if the table is in load pending on some partitions? (DPF). How do you take it out of load pending state?
Reply With Quote
  #7 (permalink)  
Old 11-02-11, 06:21
DB_N00b DB_N00b is offline
Registered User
 
Join Date: Jan 2010
Posts: 152
I think, its the same way then, isnīt it?
Reply With Quote
  #8 (permalink)  
Old 11-02-11, 12:33
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
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