Objects that depend on the dropped table
Before dropping a table, check to see what objects are dependent on the table. The Db2 catalog tables SYSIBM.SYSVIEWDEP, SYSIBM.SYSPLANDEP, and SYSIBM.SYSPACKDEP indicate what views, application plans, and packages are dependent on different Db2 objects.
Finding dependent views
SELECT DNAME, DCREATOR
FROM SYSIBM.SYSVIEWDEP
WHERE BNAME = 'PROJ'
AND BCREATOR = 'DSN8910'
AND BTYPE = 'T';
Finding dependent packages
SELECT DNAME, DCOLLID, HEX(DCONTOKEN)
FROM SYSIBM.SYSPACKDEP
WHERE BNAME = 'PROJ'
AND BQUALIFIER = 'DSN8910'
AND BTYPE = 'T';
Finding dependent plans
SELECT DNAME
FROM SYSIBM.SYSPLANDEP
WHERE BNAME = 'PROJ'
AND BCREATOR = 'DSN8910'
AND BTYPE = 'T';
Finding other dependencies
In addition, the SYSIBM.SYSINDEXES table tells you what indexes currently exist on a table. From the SYSIBM.SYSTABAUTH table, you can determine which users are authorized to use the table.