34.3.2 Adding a DB area (creating DB area files using regular files)
This example adds a data DB area to the DB directory by executing the adbmodarea command. It creates DB area files under the DB directory, as shown in the following:
- Explanation:
-
The following is the definition of the data DB area to be added:
-
DB area name: NEWAREA
-
Number of DB area files: 2
-
Initial allocation size for each DB area file: 500 megabytes
-
The example uses the following procedure to execute the adbmodarea command.
- Procedure
-
-
Create a DB area addition and modification option file.
-
Execute the adbmodarea command.
-
Using an example, the following subsections explain each of these steps.
- Organization of this subsection
(1) Creating a DB area addition and modification option file
This example creates a DB area addition and modification option file and specifies the definition of a data DB area that is to be added.
- Example of a DB area addition and modification option file
-
adbaddarea -n NEWAREA \ ...1 -i 500M,2 ...2
- Explanation:
-
-
Specifies the data DB area name (NEWAREA).
-
Specifies the initial allocation size (500 megabytes) of each data DB area file and the number of files (2) to be created.
-
(2) Executing the adbmodarea command
adbmodarea /HADB/server/conf/adbmodarea.opt
- Explanation:
-
Specifies the name of the DB area addition and modification option file created in (1) Creating a DB area addition and modification option file.