How to find out the affected packages if I were to drop an index ?

This is a discussion on How to find out the affected packages if I were to drop an index ? within the db2-udb forums in Other Databases category; Hi, As above. TIA !...

Go Back   Database Forum > Other Databases > db2-udb

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-22-2007, 03:09 AM
Default How to find out the affected packages if I were to drop an index ?

Hi,



As above.



TIA !
Reply With Quote
  #2  
Old 11-22-2007, 03:46 AM
Default Re: How to find out the affected packages if I were to drop an index ?

wrote in message
news:430635593.1195715384076.JavaMail.wassrvr-at-ltsg was009.sby.ibm.com...
> Hi,

>

> As above.

>

> TIA !


Why do you care? The packages will do an auto rebind upon first execution if
the package is marked invalid (because the index is gone).


Reply With Quote
  #3  
Old 11-22-2007, 12:02 PM
Default Re: How to find out the affected packages if I were to drop anindex ?

Take a look at the catalog view SYSCAT.PACKAGEDEP.



SELECT PKGSCHEMA, PKGNAME FROM SYSCAT.PACKAGEDEP WHERE

BTYPE = 'I' AND BSCHEMA = '+INDEX_SCHEMA+' AND BNAME = '+INDEX_NAME+'



should do the trick.





Doug Doole

DB2 Universal Database Development

IBM Toronto Labs
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 05:36 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Integrated by bbpixel2009 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.