Controlling data definition by object name with exceptions
You can register an object name with exceptions in the object registration table (ORT) as a way to control data definition.
About this task
You can allow some applications to control specific sets of registered objects while allowing other applications to use data definition statements for unregistered objects.
Procedure
To control data definition by object name with exceptions:
Example
| QUALIFIER | NAME | TYPE | APPLMATCHREQ | APPLIDENT | APPLIDENTTYPE |
|---|---|---|---|---|---|
| KIM | OBJ1 | C | Y | PLANX | P |
| FENG | OBJ2 | C | Y | PLANX | P |
| QUENTIN | OBJ3 | C | Y | PACKX | C |
| EDWARD | OBJ4 | C | Y | PACKX | C |
| TABA | C | Y | PLANA | P | |
| TABB | C | Y | PACKB | C |
- The objects KIM.OBJ1, FENG.OBJ2, QUENTIN.OBJ3, and EDWARD.OBJ4,
all of which are controlled by PLANX or PACKX. Db2 cannot interpret the object names as incomplete
names because the objects that control them, PLANX and PACKX, are
registered, with QUALIFIEROK=N, in the corresponding ART as shown
in the following table:
Table 2. Table DSN_REGISTER_APPL for object control with exceptions APPLIDENT APPLIDENTTYPE DEFAULTAPPL QUALIFIEROK PLANX P N N PACKX C N N PLANA P N Y PACKB C N Y In this situation, with the combination of installation options shown previously, any application can use data definition language for objects that are not covered by entries in the ORT. For example, if HOWARD has the CREATETAB privilege, HOWARD can create the table HOWARD.TABLE10 through any application.
- Two sets of objects, *.TABA and *.TABB, are controlled by PLANA and PACKB, respectively.