Nonstop Database, HiRDB Version 9 Installation and Design Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
12.18.7 Using shared tables with a HiRDB single server configuration
This subsection describes for a HiRDB single server configuration the differences from using shared tables with a HiRDB parallel server configuration.
- About notes
- The notes about using shared tables with a HiRDB single server configuration (manipulation of shared tables, limitations on shared tables, and notes during execution of definition SQL statements, utilities, and operation commands) are basically the same as for a HiRDB parallel server configuration. The principal difference is that with a HiRDB single server configuration, deadlock between servers does not occur because there is only one server. Also, the notes about execution of operation commands for a HiRDB parallel server configuration do not apply to a HiRDB single server configuration.
- About the RDAREAs for storing shared tables and shared indexes
- In the case of a HiRDB single server configuration, you store shared tables and shared indexes in normal user RDAREAs because shared RDAREAs cannot be defined. You must provide separate user RDAREAs for storing shared tables and indexes from the user RDAREAs for storing non-shared tables and indexes. If the same user RDAREA contains both shared and non-shared tables or indexes, deadlock may occur (while a shared table is being updated, the RDAREAs containing the shared table and shared index are locked. If any application accesses a table or index in these RDAREAs, the application is placed in lock-release wait status).
- About the use of local buffers
- If a shared table or shared index is updated using local buffers on a HiRDB single server configuration without issuing a LOCK statement and the server process terminates abnormally, HiRDB does not terminate abnormally with abort code Phb3008.
- About migrating from a HiRDB single server configuration to a HiRDB parallel server configuration
- If you are migrating from a HiRDB single server configuration to a HiRDB parallel server configuration, make sure that you do not use the database structure modification utility (pdmod) while shared tables and shared indexes are still defined in the HiRDB single server configuration system. The migration procedure is as follows:
- Check the HiRDB single server configuration for any defined shared tables or shared indexes.
Execute the SQL statement shown below (search the SQL_TABLES data dictionary table to check for the names of any defined shared tables in the system). If no table names are displayed, no shared tables are defined. If table names are displayed, those tables are defined.
SELECT TABLE_NAME
FROM MASTER.SQL_TABLES
WHERE SHARED='S'
WITHOUT LOCK NOWAIT
|
- Delete all shared tables and shared indexes that are defined in the HiRDB single server configuration.
- Use the database structure modification utility (pdmod) to migrate the HiRDB single server configuration to a HiRDB parallel server configuration.
- Define shared RDAREAs in the HiRDB parallel server configuration, check and, if necessary, revise the shared tables and shared indexes, then store them in shared RDAREAs.
All Rights Reserved. Copyright (C) 2012, 2015, Hitachi, Ltd.