RENAME

The RENAME command allows you to change a name-space, the name of a region, or the name of a segment.

The format of the RENAME command is:

    R[ENAME]-N[AME] old-name new-name
    R[ENAME]-R[EGION] old-region-name new-region-name
    R[ENAME]-S[EGMENT] old-segment-name new-segment-name
    

The RENAME command requires specification of an object-type and two object-names.

When renaming a region, GDE transfers all name mappings to the new region. When renaming a segment, GDE transfers the region mapping to the new segment.

[Note]

RENAME changes the mapping but it does not move any existing data in the database file.To move data, use MUPIP EXTRACT and LOAD or %G* utilities.

Example:

    
    
    GDE> rename -s stable table
    
    

This command renames segment stable to table and shifts any region currently mapped to stable so it is mapped to table.