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 > Informix > Disable constraints error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-04-08, 12:22
Tonycsco Tonycsco is offline
Registered User
 
Join Date: Jun 2008
Posts: 1
Unhappy Disable constraints error

Hi,

I got below error when I ran "Set constraints for table_name disabled;"

Could anyone help me on this?

Error code: -892
Can not disable object(informix.pk_mytable_pkid) due to other active objects using it.


I have checked the error code, it says :
"892 Cannot disable object object-name due to other active objects using it.
Other objects are using this object. If the object being disabled is an index, then a unique constraint, primary constraint, or referential constraint might be using that object. If the object is a unique or a primary-key constraint, then a referential constraint might be using that object."


Is there anyway to find which active object is using it?

Thanks in advance.


Tony
Reply With Quote
  #2 (permalink)  
Old 06-06-08, 08:53
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
yes, but is not easily...

probably you have a user session accessing this table.

There is somes steps... are not mutch detailed.. but maybe can help.
1) identify the partnum of the object.
2) if you are using IDS version >= 9.40 , execute :
onstat -g opn 0
will show all open tables/index by session.
3) look for your partnum...

If you are using IDS 7.31 , will be a little hard to do that because the onstat -g opn not work properly in this version...
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
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