Deferring DDL execution
- Creating, altering, or deleting an item type or component type.
- Defining, updating, or dropping indexes and text search indexes, foreign keys, and views.
Actions that merely change table data do not cause DDL entries, and cannot be deferred. These actions include adding a row (such as adding an item) or changing a row value (such as changing an attribute definition).
By enabling this feature, the IBM Content Manager administrator will be able to tailor DBA aspects of data modeling operations. For example, the administrator can define the tablespace in which user component tables, indexes, or views should be created.
When the IBM Content Manager administrator chooses to save the DDL entries for later execution, the IBM Content Manager data modeling operation behaves as follows:
- The IBM Content Manager administrator creates an item type or component type using the system administration client or the Java™ API.
- The definition, or metadata, of the item type and component type is stored in IBM Content Manager system tables.
- IBM Content Manager generates
three scripts that contain all database operations for that item type
or component type. The scripts are named the same as the item type.
- ItemType script: This is the main script that connects to the database. It invokes two other scripts, one with SQL DDL commands, another with Db2® Text Information Extender or Db2 Net Search Extender commands. This main script has a .bat extension on Windows™ and a .sh extension on Linux® and AIX®.
- ItemType.DDL: This script contains DDL statements to create the user component tables, corresponding indexes, and views in the database.
- ItemType_TIE script: This script contains Db2 Text Information Extender and Db2 Net Search Extender drop indexes commands. This script has a .bat extension on Windows and a .sh extension on Linux and AIX.
ItemType.log: This file is created after the scripts are executed. It contains the output of the database operations.
- After executing the scripts, the item type or component type is ready for create, retrieve, update, and delete (CRUD) operations. This feature applies to the IBM Content Manager library server with DB2 UDB on the workstation.