Discussion:
How to find out the affected packages if I were to drop an index ?
(too old to reply)
d***@us.ibm.com
2007-11-22 07:09:13 UTC
Permalink
Hi,<br />
<br />
As above.<br />
<br />
TIA !
Mark A
2007-11-22 07:46:42 UTC
Permalink
Post by d***@us.ibm.com
Hi,<br />
<br />
As above.<br />
<br />
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).
Doug Doole
2007-11-22 16:02:53 UTC
Permalink
Take a look at the catalog view SYSCAT.PACKAGEDEP.<br />
<br />
SELECT PKGSCHEMA, PKGNAME FROM SYSCAT.PACKAGEDEP WHERE<br />
BTYPE = 'I' AND BSCHEMA = '+INDEX_SCHEMA+' AND BNAME = '+INDEX_NAME+'<br />
<br />
should do the trick.<br />
<br />
<hr />
Doug Doole<br />
DB2 Universal Database Development<br />
IBM Toronto Labs

Continue reading on narkive:
Loading...