6.12.2 Determining the size of the user log files
Any time a database is updated, a user log containing database update history information is stored in a user log file. If a rollback occurs, the HADB server uses the user logs to recover the transaction.
Use the following formula to determine the size of the user log files.
- Formula (kilobytes)
-
- Explanation of variables
-
-
user_file_init_size
Value specified for the adb_log_usrfile_size operand in the server definition
-
max_user_log
Size of the user log for the transaction that outputs the largest volume of user log data (bytes)
-
When determining the variable max_user_log, first determine the size of the user log for the transactions in each of the processes described below. Then substitute the value of the largest user log size in the variable max_user_log.
- Tip
-
User logs are deleted when transaction processing ends. Therefore, calculate the user log file size based on the size of the user log for the transaction that outputs the largest volume of user log data.
- Note
-
For SQL statements and commands not listed above, there is no need to estimate the size of user logs since the user logs that are output are extremely small.