Nonstop Database, HiRDB Version 9 Command Reference

[Contents][Index][Back][Next]

10.6 Notes

  1. Following are pdrbal's return codes:
    0: Normal termination (rebalancing completed)
    4: Normal termination (rebalancing underway)
    8: Abnormal termination
  2. You cannot execute a definition SQL statement on a table being rebalanced.
  3. No other UAP or utility can access a table or index that is being rebalanced in the exclusive mode (-k exclusive).
  4. If a list has been created based on a rebalancing table, a search process using this list may not produce a valid result during a rebalance operation. In this case, re-create the list before using it for a search process.
  5. When a rebalance operation is underway in the shared mode, if you specify a commit between acquisition of row identifier and actual data manipulation to search, update, or delete data using the row identifier with a UAP, the result may be invalid.
  6. You cannot execute pdrbal if the rebalancing table contains a number of table storage RDAREAs, that does not match the number of index storage RDAREAs (non-partitioning key index that is not partitioned within the same server). To rebalance such a table, delete the non-partitioning key index that is not partitioned within the same server, then execute pdrbal. After the rebalance operation is completed, redefine the index. You cannot define such an index during the rebalance operation. If you define a non-partitioning key index for a rebalancing table, store the index in the same number of index storage RDAREAs as the table storage RDAREAs within the same server.
  7. The database update log information output by pdrbal is not applicable to HiRDB Datareplicator's data linkage facility.
  8. For index deletion or creation for the data being rebalanced, the utility always uses the global buffer regardless of the specification of the -n option. Therefore, execute pdrbal in an environment where sufficient global buffer is available. Especially for the source RDAREA, you should allocate a global buffer for each index. If there is not enough global buffer, contention may occur on the buffer, resulting in the I/O busy status, thereby reducing the performance.
  9. If there are multiple generations of RDAREAs while the inner replica facility is being used, pdrbal terminates with an error.
  10. An attempt to rebalance a table that contains a user LOB RDAREA that is in frozen update status will cause pdrbal to terminate with an error.
  11. During rebalancing initialization and completion processing, pdrbal recompiles all procedures and functions in the database for which an SQL object is invalid. An error results if any such procedures or functions cannot be recompiled. If an error occurs, check the error message, take an appropriate action, then recompile the procedure or function using ALTER PROCEDURE or ALTER ROUTINE (recompilation does not take place during re-execution of pdrbal).
    To check for a procedure or function with an invalid SQL object that cannot be recompiled prior to the execution of pdrbal, use SQL Executer. The figure below shows the procedure for checking for a procedure or function with an invalid SQL object that cannot be recompiled.

    Figure 10-7 Procedure for checking for a procedure or function with invalid SQL object that cannot be recompiled

    [Figure]

  12. The table below shows the availability of file media and large files for pdrbal.

    Table 10-11 Availability of file media and large files for pdrbal

    File Medium Large file
    Regular file Fixed- or variable-length block tape
    Control information file Y -- Y
    Index information file Y -- Y
    Work file for sorting Y -- Y
    Process results file Y -- Y
    Y: Usable.
    -- Not usable.
  13. You cannot execute pdrbal if a falsification prevented table is to be rebalanced and that falsification prevented table is in reload-not-completed data status.
  14. If pdrbal is executed in the shared mode in a HiRDB parallel server configuration, all front-end servers to which a recovery-unnecessary front-end server is not applied must be active.
  15. pdrbal cannot be executed while the table is in check pending status (value of the CHECK_PEND or CHECK_PEND2 column in the SQL_TABLES data dictionary table is C (check pending status)).
  16. If you selected utf-8 or utf-8_ivs as the character encoding in the pdsetup command, a BOM is not added to a file that is output by pdrbal. The table below shows whether files with a BOM can be used with pdrbal. Note that even when a file with a BOM is used as the input file for pdrbal, the BOM is skipped. No BOM is included in the file that is output by pdrbal.

    Table 10-12 Whether or not files with a BOM can be used in pdrbal (applicable to UTF-8)

    Control statement Input file Use of file with a BOM
    -- Control information file Y
    index Index information file N
    Legend:
    Y: Can be used
    N: Cannot be used
    --: Not applicable
  17. pdrbal performs hashing based on the number of partitions in the table subject to rebalancing. If there are duplicate RDAREAs for the table, row data might be distributed unevenly among the duplicate RDAREAs.