View object dependencies in DB2 using IBM Data Studio

Introduction

This tutorial will show you how to view dependencies in DB2 using IBM Data Studio.

A dependency is a reference that an object (called the dependent object) makes to some other object (called the impactor object).

There are two places where you can view dependencies:

  1. The Dependencies Catalog.
  2. The Impact Analysis.

Using the Dependencies Catalog

This option will show the dependencies of an object in the Data Source Explorer pane.

If this pane is closed, you can open it from the menu using the options Window, Show View, Data Source Explorer.

In the Data Source Explorer pane, do the following:

  1. Expand the Database Connections node.
  2. Expand a database node, then expand the desired database.
  3. Expand the Schemas node, then expand the desired schema.
  4. Expand the node that contains the object you want to see its dependencies. In the figure shown we are selecting the Views container, but there are other containers with objects that have dependencies: Tables, Stored Procedures, User-Defined Functions and MQTs (Materialized Query Tables).
  5. Expand the desired object node. You will find a folder called Dependencies that shows the dependencies of the selected object.

Using the Impact Analysis

This option will show the dependencies of an object in the Impact Analysis window.

Right-click on object you want to see dependencies and choose Analyze Impact from context menu.

From the Impact Analysis window, select the Both option and click on the OK button.

The screen that appears graphically shows the dependencies at the top and its details at the bottom.

Comments are only visible when the visitor has consented to statistics cookies. To see and add comments please accept statistics cookies.
0
There are no comments. Click here to write the first comment.