IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sql Code +162 :: CHECK PENDING


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vikas kumar jain

New User


Joined: 02 Aug 2006
Posts: 9
Location: noida

PostPosted: Thu Jun 21, 2007 5:56 pm
Reply with quote

Hi all,
I'm facing a problem related to
"Sql Code : +162 TABLESPACE database-name.tablespace-name HAS BEEN PLACED IN CHECK PENDING "

Actually the scene is -

I have three tables - S,P,SP.
S & P are the Parent table while the SP is dependent on both.
So, there is referential integrity b/w the tables.

Now i'm trying to violate the referential integrity rules and trying to change the Primary key of the table S which is having the same value as there in the dependent table SP. So it just throw an error -531 saying that Parent key cann't be changed.
So i drop the primary key and changed that record succesfully ( as referential integrity breaks)
Bt as now i'm trying to set the referential integrity it simply throws the above error ( Check Pending ...)

Plz suggest- How to remove that one ????
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jun 21, 2007 5:59 pm
Reply with quote

did You look at the manuals ???

Quote:
Explanation: The indicated table space is in check pending status because the ALTER TABLE statement was used to specify a referential constraint or a check constraint (while special register CURRENT RULES = 'DB2') on a populated table. The table space is not generally available until the check pending status is removed from the table space.

System Action: The table space was placed in check pending status.

Programmer Response: Run the CHECK DATA utility. The enforcement of the referential constraint or the check constraint is deferred until the CHECK DATA utility is run.
Back to top
View user's profile Send private message
vikas kumar jain

New User


Joined: 02 Aug 2006
Posts: 9
Location: noida

PostPosted: Thu Jun 21, 2007 6:02 pm
Reply with quote

yeah i've....bt cudn't able to run the "Check Data Utility"...
Actually don't kno how to run it... icon_sad.gif
Back to top
View user's profile Send private message
vikas kumar jain

New User


Joined: 02 Aug 2006
Posts: 9
Location: noida

PostPosted: Thu Jun 21, 2007 6:19 pm
Reply with quote

I also run the Check Data Utility
( By going in the DB2 Utility section and by just giving this name)
...bt it throws the error...
So how to run it...plz describe ?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jun 21, 2007 7:28 pm
Reply with quote

Hello,

Which error did it throw?

We can't be much help if we don't know what happened. . . icon_confused.gif

Are you one of the DBAs? If not, you may not have permission.
Back to top
View user's profile Send private message
Suryanarayana.tadala

New User


Joined: 03 Nov 2005
Posts: 43
Location: St.Louis

PostPosted: Sat Jun 23, 2007 1:39 am
Reply with quote

please drop down all the table constraints and have proper constraints
As you have dropped th eprimary key from one tabel but as might not have executed runstats/reorg it finds inconsistancy in these constraints..

So i suggest you to go thru this process or ask you DBA to execute a Reorg and Runstats so that your new DDL changes gets into active for all the dependent tables.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top