Hitachi

Hitachi Advanced Database Command Reference


2.3.1 When archiving chunks that include specific date range data

Archive chunks that were created in a table, that include specific date range data, under the following conditions:

[Figure]

This example uses the following procedure to execute the adbarchivechunk command.

Procedure
  1. Create an archive chunk option file.

  2. Execute the adbarchivechunk command.

Using examples, the following subsections explain each of these steps.

Organization of this subsection

(1) Creating an archive chunk option file

Create an archive chunk option file, and specify archive chunk options in that file.

Example of an archive chunk option file
set adb_arcv_rthd_num = 9         ...1
set adb_arcv_scan_buff_size = 64  ...2
Explanation:
  1. Specifies the number of processing real threads to be used for executing the adbarchivechunk command.

  2. Specifies the size of the buffer to be used for retaining table data search results.

(2) Executing the adbarchivechunk command

adbarchivechunk -u ADBUSER01                                ...1
                -p '#HelloHADB_01'                          ...2
                -z /home/adbmanager/archive_file/env01.txt  ...3
                -r 2011/01/01-2011/12/31                    ...4
                TABLE01                                     ...5
Explanation:
  1. Specifies the authorization identifier of the HADB user who executes the adbarchivechunk command.

  2. Specifies the password for the authorization identifier that was specified in the -u option.

  3. Specifies the absolute path name of the archive chunk option file created in (1) Creating an archive chunk option file.

  4. Specify a date range of chunks to be archived.

  5. Specifies the table to be processed.