I want to find the dependent table of views in Netezza. Is there a table that provides the details?

  • see system view _v_depend REFOBJID will be the object id of the table you are checking for dependencies – Brent Green Feb 22 '17 at 19:36

This is actually pretty hard to do on Netezza, because there are no system tables keeping track of table dependencies in views. Therefore you need to parse every view to get the referenced objects. There is a Unix support script on the server which does exactly this, and will dump the results in a table. You might need to install the support package. Replace databasename by your database and run this command.

nz_view_references -create -schemas ALL DATABASENAME

When the script is finished (be patient), the results are located in table SYSTEM..NZ_VIEW_REFERENCES

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.