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 > rename a MDC table? (SQL0750N)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-25-09, 07:08
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
rename a MDC table? (SQL0750N)

How? I can drop all the constraints, I can drop all my indexes. I can check for triggers... no, no triggers.
But the "rename table a to b" keeps failing with a -750 error.
Yeah, there are still some indexes left: block and diminstion indexes due to the MDC definition so I cannot drop them.

So I assume that those indexes are stopping me: I checked with db2cc and with Data Studio and I cannot find any depending objects. I checked the db2diag message for usefull info.... nothing there.

How can I determine which dependy is blocking my "rename table"?
Reply With Quote
  #2 (permalink)  
Old 03-25-09, 12:42
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
- For views or materialized query tables, query SYSCAT.VIEWDEP
- For triggers, query SYSCAT.TRIGDEP
- For SQL functions or SQL methods, query SYSCAT.FUNCDEP
- For check constraints, query SYSCAT.CHECKS
- For referential constraints, query SYSCAT.REFERENCES

I guess thats it.....
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #3 (permalink)  
Old 03-27-09, 19:17
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Thanks, that's usefull info. I think I know: there is a generated column in there... cannot be dropped because that column is used as 1 of the MDC dimensions.
How is that called in english? Shoot yourself in the foot?
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