7.13.2 Example

This section explains an example of using the database structure modification utility (defining replica RDAREAs).

Organization of this subsection
(1) Example of defining replica RDAREAs

(1) Example of defining replica RDAREAs

This example defines replica RDAREAs (RD01_GN1 and RD02_GN1) from original RDAREAs (RD01 and RD02).

Command to be executed

pdmod -a /usr/seifile/mofl01

Contents of the control statement file (/usr/seifile/mofl01)

replicate rdarea RD01_GN1   ...........................1
                 globalbuffer gbuf01   ................2
                 reproduce RD01   .....................3
                 generation number 1 ;   ..............4
replicate rdarea RD02_GN1   ...........................1
                 globalbuffer gbuf02   ................2
                 reproduce RD02   .....................3
                 generation number 1 ;   ..............4

Explanation
  1. Specifies a name for a replica RDAREA.
  2. Specifies the name of the global buffer that is to be allocated temporarily to the replica RDAREA. Specify an existing global buffer. If the globalbuffer operand is omitted, the global buffer for the original RDAREA is allocated.
  3. Specifies the name of the original RDAREA.
  4. Specifies the generation number of the original RDAREA.