gtpo1mcgOperations

ZOODB CHANGE-Change the Attributes of a Data Store or Data Definition

Use this command to change the attributes of a data store (DS) or to change the attributes of a data definition (DD) for a specific data store.

Requirements and Restrictions

Format




DS
changes a data store.

dsname
is the 1- to 8-character name of the data store.

DD
changes a data definition.

ddname
is the 1- to 32-character name of the data definition.

INVENTORY
specifies that a collection inventory will be maintained for this data store. If no collection inventory exists, it will be created.
Note:
Only persistent identifiers (PIDs) for collections that are created after the inventory has been created will be added to the inventory.

NOINVENTORY
specifies that no collection inventory will be used for this data store. If there is a collection inventory, it will be deleted.

DELETE
determines the disposition of deleted collections, where:

DELAY
specifies that a deleted collection will be added to the DS_DELETED data store system collection and will not be deleted from the system for 48 hours. The collection can be reclaimed during the 48-hour interval. All pending deletes can be processed by entering ZBROW COL EMPTY DS_DELETED.

IMMED
specifies that a deleted collection will be immediately returned to the system and cannot be reclaimed. If there are deletions pending, they are processed immediately.

NOSHADOW
specifies that no shadowing will be used for this collection.

SHADOW
specifies the use of shadowing for this collection.

DATARID
defines the record ID for the data records.

DIRECTRID
defines the record ID for the directory records.

INDEXRID
defines the record ID for the index records.

recordid
is a 4-character hexadecimal record ID.

FORCE
builds the collection using an extended structure rather than the normal compact structure.

NOFORCE
builds the collection with the normal compact structure.

Additional Information

None.

Examples

The BATCHWRK data store (DS) was created with default options that caused it to be created with an inventory and delayed deletions active. It was determined that the inventory or the delayed deletions are not wanted and, therefore, should be removed. In the following example, the data store is changed to remove both functions.

+--------------------------------------------------------------------------------+
|User:   ZOODB CHA DS BATCHWRK NOINVENTORY DELETE-IMMED                          |
|                                                                                |
|System: OODB0014I 12.15.29 DATA STORE BATCHWRK CHANGED                          |
|        OODB0030I 12.15.29 CHANGE COMPLETED FOR DS BATCHWRK                     |
+--------------------------------------------------------------------------------+

The record IDs for data and directory records in the CUSTOMER_INDEX data definition are changed in the following example.

+--------------------------------------------------------------------------------+
|User:   ZOODB CHA DD CUSTOMER_INDEX DS-BANK1_DS DATARID-FC10 DIRECTRID-FC15     |
|                                                                                |
|System: OODB0032I 12.15.29 DD CUSTOMER_INDEX CHANGED                            |
|        OODB0031I 12.15.29 CHANGE COMPLETED FOR DD CUSTOMER_INDEX               |
+--------------------------------------------------------------------------------+

Related Information