Hitachi

Hitachi Advanced Database Setup and Operation Guide


6.12.15 Determining the number of user log files

When specific SQL statements and commands are executed, as many user log files as needed are allocated. As the SQL statements and commands terminate, the user log files are released. Therefore, when you estimate the number of user log files (the variable user_file_num in 6.12 Estimating the size of the system log files), take into account the SQL statements and commands that will be executed concurrently.

If you will be executing multiple SQL statements and commands, use the follow the procedure to determine the number of user log files.

Procedure

  1. Determine the number of user log files for all SQL statements and commands that will be executed concurrently.

  2. Sum up the numbers of user log files that were obtained.

  3. Specify in the adb_log_usrfile_num operand in the server definition a value that is equal to or greater than the obtained sum.

For details about the adb_log_usrfile_num operand in the server definition, see the description of the adb_log_usrfile_num operand in 7.2.3 Operands related to system logs (set format).

Organization of this subsection

(1) SQL statements for which the number of user log files needs to be estimated

You need to estimate the number of user log files for the following SQL statements:

■ Definition SQL

■ Data Manipulation SQL

The following formuals explain how to determine the number of user log files for each SQL statement. If the resulting value is 0, use 1.

■ Definition SQL statements

■ Data manipulation SQL statements

Important

If you have specified the adb_sql_exe_max_rthd_num operand in the client definition, assign that same value in the client definition, not the value of the adb_sql_exe_max_rthd_num operand in the server definition.

However, if the value of the adb_sql_exe_max_rthd_num operand in the client definition is greater than the value of the adb_sql_exe_max_rthd_num operand in the server definition, assign the value of the adb_sql_exe_max_rthd_num operand in the server definition.

For details about the adb_sql_exe_max_rthd_num operand in the server definition, see the description of the adb_sql_exe_max_rthd_num operand in 7.2.2 Operands related to performance (set format).

(2) Commands for which the number of user log files needs to be estimated

You need to estimate the number of user log files for the following commands:

The following formulas explain how to determine the number of user log files for each command.