[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

reason code 3 plz advice

Asked by bobby2929 in DB2 Database

Tags: sql0668n, reason, code

i am trying to run a select count(*) from dim_order and its giving me reason code 3 error can u plz advise why and aht should i do to rectify it?
SQL0668N  Operation not allowed for reason code "3" on table
"DB2ADMIN.DIM_ORDER".  SQLSTATE=57016


 1 The table is in Check Pending state.  The integrity of the    
table is not enforced and the content of the table may be        
invalid.  An operation on a parent table or an underlying table  
that is not in a check pending state may also receive this error  
if a dependent table is in a check pending state.  

 2 The table is in No Data Movement state. When in this state,    
operations that cause data movement are disallowed. Data movement
operations include REDISTRIBUTE, update of partitioning key,      
update of multi-dimensional clustering key and REORG TABLE.  

 3 The table is in Load Pending state. A previous LOAD attempt on
this table resulted in failure. No access to the table is allowed
until the LOAD operation is restarted or terminated.  

 4 The table is Read Only state. This state can occur during      
on-line LOAD processing (LOAD INSERT with the READ ACCESS option),
or after an on-line LOAD operation, but before all constraints    
have been validated in the newly appended portion of the table    
using the SET INTEGRITY statement. No update activity is allowed  
on this table.  

 5 The table is in Load In Progress state. The LOAD utility is    
currently operating on this table, no access is allowed until the
LOAD is finished.  

 6 Materialized query tables that reference a nickname cannot be  
refreshed in ESE.  

User Response:

 
 

 1 Execute the SET INTEGRITY statement with the IMMEDIATE CHECKED
option on table "<table-name>" to bring the table out of      the
Check Pending state. For a user maintained materialized      
query       table,   execute the statement with the IMMEDIATE    
UNCHECKED         option   instead of   the IMMEDIATE CHECKED    
option.  

 2 Execute REFRESH TABLE statement on the dependent immediate    
materialized query tables and staging tables of table            
"<table-name>". The contents of these dependent immediate    
materialized query tables and staging tables can be incrementally
maintained from the appended data of "<table-name>" through  
previous LOAD INSERT operations.  

 3 Restart or terminate the previously failed LOAD operation on  
this table by issuing LOAD with the RESTART or TERMINATE option  
respectively.  

 4 Issue the LOAD QUERY command to check whether the table is in  
the process of being loaded. If yes, wait until the LOAD utility  
has completed, or if necessary, restart or terminate previously  
failed LOAD operation. If LOAD is currently not in progress,      
issue the SET INTEGRITY command with the IMMEDIATE CHECKED option,
to validate constraints in the newly loaded portion of the        
table.  

 5 Wait until the current LOAD operation has finished. You can    
use the LOAD QUERY command to monitor the progress of load.  

 6 Define a materialized query table using the MAINTAIN BY USER  
option. Then, use an INSERT statement with a subquery to populate
the materialized query table.  

 sqlcode :  -668

 sqlstate :  57016



thanks
bobby
[+][-]06/03/05 11:54 AM, ID: 14142356Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/03/05 12:00 PM, ID: 14142401Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: DB2 Database
Tags: sql0668n, reason, code
Sign Up Now!
Solution Provided By: Kdo
Participating Experts: 3
Solution Grade: B
 
[+][-]06/03/05 12:04 PM, ID: 14142428Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/03/05 12:13 PM, ID: 14142505Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/03/05 12:25 PM, ID: 14142591Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/03/05 12:26 PM, ID: 14142599Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/03/05 03:11 PM, ID: 14143622Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81