Administer > Database administration > Data persistence > Database dictionary > Methods for deleting database dictionary records

Methods for deleting database dictionary records

Your database dictionary records should match the tables and columns Service Manager manages in the RDBMS. We recommend that you use database dictionary records as your primary data definition source and allow Service Manager to make changes to RDBMS tables, columns, and indexes as needed. If you provide Service Manager with an RDBMS account with table create-alter-drop-rights, any time you make a change in a database dictionary record, the server automatically makes the necessary changes in the RDBMS.

If you do not provide Service Manager with table create-alter-drop-rights to the RDBMS, an RDBMS administrator must make all the necessary changes each time you add, remove, or update a database dictionary record. In such cases, we recommend you enable DDL logging to capture database dictionary changes. The Service Manager administrator can then provide the DDL to the RDBMS administrator who can approve or modify it as needed. After the RDBMS administrator has created the necessary tables, columns, and indexes, the Service Manager administrator can import the existing RDBMS columns.

The following table summarizes the methods you can use to delete database dictionary records and the best practices we recommend.

Action From the System Definition utility From the Database Dictionary form From RDBMS utilities
Delete a database dictionary record Best practice: Provide Service Manager table create-alter-drop-rights to the RDBMS, and delete an existing database dictionary record. Service Manager deletes any tables, columns, and indexes in the RDBMS.
  • Best practice: Provide Service Manager table create-alter-drop-rights to the RDBMS, and delete an existing database dictionary record. Service Manager deletes the tables, columns, and indexes in the RDBMS.
  • Enable DDL logging and use the Database Dictionary form to delete an existing database dictionary record. Have the RDBMS administrator delete tables, columns, and indexes based on the DDL.
You cannot delete a Service Manager database dictionary record from RDBMS utilities.
Delete a table Best practice: Provide Service Manager table create-alter-drop-rights to the RDBMS, and delete an existing database dictionary record. Service Manager deletes the table in the RDBMS.
  • Best practice: Provide Service Manager table create-alter-drop-rights to the RDBMS, and delete an existing database dictionary record. Service Manager deletes the tables in the RDBMS.
  • Enable DDL logging and use the Database Dictionary form to delete an existing database dictionary record. Have the RDBMS administrator delete the tables based on the DDL.
Have the RDBMS administrator delete the tables directly in the RDBMS. Service Manager will automatically update any corresponding database dictionary records to map to NULLTABLE the next time the server restarts and there is a query against the changed table.
Delete a field Best practice: Provide Service Manager table create-alter-drop-rights to the RDBMS, and delete an existing field in a database dictionary record. Service Manager deletes the column in the RDBMS.
  • Best practice: Provide Service Manager table create-alter-drop-rights to the RDBMS, and use the Database Dictionary form to delete an existing field in a database dictionary record. Service Manager deletes the column in the RDBMS.
  • Enable DDL logging and use the Database Dictionary form to delete an existing field in a database dictionary record. Have the RDBMS administrator delete the column based on the DDL.
You cannot delete a Service Manager field from RDBMS utilities.
Delete a column Best practice: Provide Service Manager table create-alter-drop-rights to the RDBMS, and update an existing field in a database dictionary record. Service Manager updates the column in the RDBMS.
  • Best practice: Provide Service Manager table create-alter-drop-rights to the RDBMS, and use the Database Dictionary form to update an existing field in a database dictionary record. Service Manager updates the column in the RDBMS.
  • Enable DDL logging and use the Database Dictionary form to update an existing field in a database dictionary record. Have the RDBMS administrator update the column based on the DDL.
Have the RDBMS administrator update the column directly to the RDBMS. Service Manager will automatically update any corresponding database dictionary records the next time the server restarts and there is a query against the changed table.
Update a key Best practice: Provide Service Manager table create-alter-drop-rights to the RDBMS, and delete an existing key in a database dictionary record. Service Manager delete the index in the RDBMS.
  • Best practice: Provide Service Manager table create-alter-drop-rights to the RDBMS, and use the Database Dictionary form to delete an existing key in a database dictionary record. Service Manager deletes the index in the RDBMS.
  • Enable DDL logging and use the Database Dictionary form to delete an existing key in a database dictionary record. Have the RDBMS administrator delete the index based on the DDL.
You cannot delete a Service Manager key from RDBMS utilities.
Delete an index Best practice: Provide Service Manager table create-alter-drop-rights to the RDBMS, and delete an existing key in a database dictionary record. Service Manager deletes the index in the RDBMS.
  • Best practice: Provide Service Manager table create-alter-drop-rights to the RDBMS, and use the Database Dictionary form to delete an existing key in a database dictionary record. Service Manager deletes the index in the RDBMS.
  • Enable DDL logging and use the Database Dictionary form to delete an existing key in a database dictionary record. Have the RDBMS administrator delete the index based on the DDL.
Have the RDBMS administrator delete an index directly in the RDBMS.

Related topics

Automatic update of database dictionary records
Automatic update of RDBMS data when database dictionary records change
Database dictionary
Database dictionary records
Making database dictionary changes

Add a field to an existing database dictionary record
Import RDBMS columns into an existing database dictionary record
Update an existing database dictionary record