Scalable Database Server, HiRDB Version 8 Command Reference

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

Appendix B.2 Lock mode for utilities

Tables B-2 through B-17 show the lock modes for each of the utilities.

The utilities listed as follows are not described here, because they do not provide the automatic lock function (the database definition utility is the same as for a definition SQL; see the HiRDB Version 8 UAP Development Guide):

Note
When data loading is executed on a LOB column structure base table only, the lock mode is the same as for data loading by table when loading data by table or the same as for data loading by RDAREA when loading data by RDAREA.

1 In the case of index loading by RDAREA, lock is not placed on a non-partitioning key index.

2 During data deletion processing, the EX lock mode takes place. For other operations, if the option statement specifies nowait=no, the EX lock mode takes place; if it specifies nowait=yes, the PU lock mode takes place.

Table B-3 Lock modes for the database load utility (for shared tables)

Exe env Resource
Table Index No-wait table RDAREA mgmt block
Updatbl back-end server Ref-only back-end server Shared RDAREA for updatbl back-end server Shared RDAREA for ref-only back-end server IX ID
Shared RDAREA Tbl ID Shared RDAREA Tbl ID
Data load EX EX EX EX EX EX EX EX SR

Legend:
env: environment
Exe: Execution
IX: Index
load: loading
mgmt: management
Ref: Referencing
Tbl: Table
updatbl: updatable

Table B-4 Lock modes for the database structure modification utility

Execution environment Resource
DB structure mod utility Data dict table RDAREA status RDAREA Tbl Res mgmt table
RDAREA addition EX EX EX3 EX3 [Figure] [Figure]
RDAREA expansion EX EX EX3 PU(EX)3 [Figure] EX3
RDAREA reinitialization EX EX EX3 EX3 EX [Figure]
RDAREA deletion EX EX EX3 EX3 [Figure] [Figure]
Modification of data dictionary table attribute definition EX EX [Figure] EX2 [Figure] [Figure]
Modification of RDAREA attributes EX EX EX EX [Figure] [Figure]
Changing an RDAREA from a HiRDB/Single Server configuration to a HiRDB/Parallel Server configuration EX EX EX EX [Figure] [Figure]
Changing to a back-end server structure1 EX EX EX EX [Figure] [Figure]
Moving an RDAREA EX EX EX3 EX3 [Figure] [Figure]
Auditor registration EX EX [Figure] [Figure] [Figure] [Figure]
Creation of an audit trail table EX EX [Figure] EX [Figure] EX

Legend:
config: configuration
DB: Database
Data dict table: Data dictionary table
info: information
mgmt: management
mod: modification
reinit: reinitialization
Tbl: Table
Res mgmt table: Resource management table

1 This applies only to a HiRDB/Parallel Server; it is not applicable to a HiRDB/Single Server.

2 Applies only to the data dictionary RDAREA.

3 Applicable to both original and replica RDAREAs.

Table B-5 Lock modes for the database reorganization utility

Execution environment Resource
Table Index NW TBL Res mgmt table IX info file User LOB RDAREA1
RD AREA1 TBL ID RD AREA1 IX ID
Unloading by table
(-k unld))
unldenq=tblenq is specified in option statement SR PR SR2 [Figure] [Figure] SR [Figure] SR
unldenq=rdenq is specified in option statement PR SR PR2 [Figure] [Figure] SR [Figure] PR
unldenq=nowait is specified in option statement SR [Figure] SR2 [Figure] SR SR [Figure] SR
Unloading by RDAREA (-k unld) unldenq=tblenq is specified in option statement SR PR SR2 [Figure] [Figure] SR [Figure] SR
unldenq=rdenq is specified in option statement PR SR PR2 [Figure] [Figure] SR [Figure] PR
unldenq=nowait is specified in option statement SR [Figure] SR2 [Figure] SR SR [Figure] SR
Reloading by table
(-k reld)
SU EX SU EX EX SR [Figure] SU
Reloading by RDAREA (-k reld) EX [Figure]3 SU EX4 [Figure] SR [Figure] EX
Reorganization by table
(-k rorg)
SU EX SU EX EX SR [Figure] SU
Reorganization by RDAREA
(-k rorg)
EX SR SU EX4 [Figure] SR [Figure] EX
Batch creation of index
(-k ixmk)
SR SR SU EX [Figure] SR [Figure] [Figure]
Re-creation of index
(-k ixrc)
index statement specified5 EX [Figure] SR6 [Figure] [Figure] SR6 SU EX [Figure] SR [Figure] EX [Figure] [Figure]6
SU [Figure] SR6 EX [Figure] SR6 EX [Figure] [Figure]6 SU [Figure] [Figure]6
idxname statement specified SU EX SU EX EX SR [Figure] [Figure]
Reorganization of index
(-k ixor)7
SR PR SU EX [Figure] SR [Figure] [Figure]
EX [Figure]
Batch creation of plug-in index (-k ixmk) SR SR SU EX [Figure] SR EX [Figure]
Re-creation of plug-in index
(-k ixrc)
index statement specified5 EX [Figure] SR6 [Figure] [Figure] SR6 SU EX [Figure] SR EX EX [Figure] [Figure]6
SU [Figure] SR6 EX [Figure] SR6 EX [Figure] [Figure]6 SU [Figure] [Figure]6
idxname statement specified SU EX SU EX EX SR [Figure] SU
Reloading of LOB data only (-k reld) SR PR [Figure] [Figure] [Figure] SR [Figure] EX
Reorganization of LOB data only (-k rorg) SU EX SR4 [Figure] EX SR [Figure] SU

Legend:
RD AREA: RDAREA
TBL ID: Table ID
IX ID: Index ID
NW TBL: No-wait table
Res mgmt table: Resource management table
IX info file: Index information file

Note
When reload or reorganization is executed on a LOB column structure base table only, the lock mode is the same as for reloading or reorganization by table when loading or reorganizing data by table or the same as for reloading or reorganization by RDAREA when reloading or reorganizing data by RDAREA.

1
An RDAREA that is not the target of processing is not locked.

2
If data is unloaded in physical order, lock is not placed.

3
Lock is placed in the SR mode during unload processing.

4
Lock is not placed on a non-partitioned index during reload processing.

5
The upper row applies to a row-partitioned index; the lower row applies to a non-partitioned index.

6
The lock mode during unload processing on the index information (from KFPL00725-I to KFPL00726-I) is changed during index creation (from KFPL00715-I to KFPL00716-I).

7
The upper row applies when the index storage RDAREA is in command shutdown status; the lower row applies when it is not in command shutdown status.

Table B-6 Lock modes for the database reorganization utility (for shared tables)

Exe env Resource
Table Index No-wait tbl RD AREA mgmt block IX info file
Updatable backend server Ref-only backend server Shared RD AREA for updatbl backend server Shared RD AREA for ref-only backend server IX ID
Shared RD AREA Tbl ID Shared RD AREA Tbl ID
Unload by table
(-k unld)
SR PR [Figure] [Figure] SR1 [Figure] [Figure] [Figure] SR [Figure]
Reload by table (-k reld) EX EX EX EX EX EX EX EX SR [Figure]
Reorg by table (-k rorg) EX EX EX EX EX EX EX EX SR [Figure]
Batch index creation (-k ixmk) SR SR [Figure] [Figure] EX EX EX [Figure] SR [Figure]
Re-crtn of index (-k ixrc, and index stmt specif)2 EX [Figure] SR EX [Figure] SR EX EX EX EX EX EX [Figure] [Figure] SR [Figure]
Re-crtn of index (-k ixrc, and idxname stmt specif) EX EX EX EX EX EX EX EX SR [Figure]
Index reorg (-k ixor) SR PR [Figure] [Figure] EX EX EX [Figure] SR [Figure]

Legend:
env: environment
Exe: Execution
info: information
IX: Index
mgmt: management
RD AREA: RDAREA
Re-crtn: Re-creation
Ref: referencing
Reorg: Reorganization
specif: specified
stmt: statement
Tbl: Table
updatbl: updatable

1 If data is unloaded in physical order, lock is not placed.

2 The lock mode for index information during an unload operation (from KFPL00725-I through KFPL00726-I) is changed when the index is loaded (from KFPL00715-I to KFPL00716-I).

Table B-7 Lock modes for the rebalancing utility

Execution environment Resource
RDAREA Table No-wait table Index Rebalance* Preprocessed table
Shared mode SU EX EX EX EX SR
Exclusive mode SU EX EX EX [Figure] SR

* For the rebalancing resources, lock is placed at the single server or front-end server.

Table B-8 Lock modes for free page release utility

Exe env Resource
Table No-wait table Index
RD AREA RD AREA mgmt block Tbl ID Free page rel util RD AREA RD AREA mgmt block IX ID Free page rel util Wait for trxn compl
Releasing free pages from table SU SR SU EX SR [Figure] [Figure] [Figure] [Figure] [Figure]
Releasing free segments from table EX SR [Figure] EX [Figure] [Figure] [Figure] [Figure] [Figure] [Figure]
Releasing free pages from index [Figure] [Figure] [Figure] [Figure] SR SU SR EX EX PR
Releasing free segments from index [Figure] [Figure] SR [Figure] [Figure] EX SR [Figure] EX [Figure]

Legend:
RD AREA: RDAREA
RD AREA mgmt block: RDAREA management block
Tbl ID: Table ID
Free page rel util: Free page release utility
IX ID: Index ID
IX info file: Index information file
Wait for trxn compl: Wait for transaction completion

Table B-9 Lock modes for the free page release utility (for shared tables)

Exe env Resource
Table Index
Updatbl backend server Ref-only backend server RMB Free page rel util SR for UBS SR for RBS RMB IX ID Free page rel util Wait for trxn compl
SR Tbl ID SR Tbl ID
Release free pages from table EX EX EX EX SR EX [Figure] [Figure] [Figure] [Figure] [Figure] [Figure]
Release free segmts from table EX EX EX EX SR EX [Figure] [Figure] [Figure] [Figure] [Figure] [Figure]
Release free pages from index [Figure] SR [Figure] [Figure] [Figure] [Figure] EX EX SR EX EX PR
Release free segmts from index [Figure] SR [Figure] [Figure] [Figure] [Figure] EX EX SR [Figure] EX [Figure]

Legend:
compl: completion
env: environment
Exe: Execution
IX: Index
mgmt: management
rel: release
segmts: segments
RMB: RDAREA management block
SR: Shared RDAREA
SR for UBS: Shared RDAREA for updatable back-end server
SR for RBS: Shared RDAREA for referencing-only back-end server
Tbl: Table
Updatbl: Updatable
util: utility

Table B-10 Lock modes for the global buffer residence utility

Exe env Resource
Table Index
RDAREA RDAREA management block No-wait table RDAREA RDAREA management block Index ID
Reading data page
(-k table)
SR SR SR [Figure] [Figure] [Figure]
Reading index page
(-k index)
[Figure] [Figure] SR SR SR SR

Legend:
env: environment
Exe: Execution

Table B-11 Lock modes for the global buffer residence utility (for shared tables)

Exe env Resource
Table Index
Updatable backend server Referencing-only backend server Updatable backend server Referencing-only backend server
R RMB No-wait tbl R RMB No-wait tbl R RMB IX ID R RMB IX ID
Reading data page
(-k table)
SR SR SR SR SR SR [Figure] [Figure] [Figure] [Figure] [Figure] [Figure]
Reading index page
(-k index)
[Figure] [Figure] SR [Figure] [Figure] SR SR SR SR SR SR SR

Legend:
env: environment
Exe: Execution
IX: Index
R: RDAREA
RMB: RDAREA management block

Table B-12 Lock modes for the database condition analysis utility

Execution environment Resource
RDAREA Resources management table Table No-wait table1
For table For index Specified RDAREA
Analysis by RDAREA [Figure] [Figure] SR SR [Figure] SR
Analysis by table SR [Figure] [Figure] SR SR SR
Analysis by index [Figure] SR [Figure] SR SR SR
Condition analysis result accumulation facility SR SR SR SR SR [Figure]
Facility for predicting reorganization time2 SR SR SR SR SR SR

1 A no-wait table is locked only when the -d option is specified.

2 This lock is applicable when the -m option is specified.

Table B-13 Lock modes for the optimizing information collection utility

Execution environment Resource
RDAREA Resources management table Table No-wait table Data dictionary table
For table For index For table For index Row Key
Acquisition of optimization information SR SR SR SR SR/SU1 SR PR2/EX1 PR2/EX1
Deletion of optimization information [Figure] [Figure] [Figure] [Figure] SU1 [Figure] PR2/EX1 PR2/EX1

1 Lock is placed temporarily during data dictionary table retrieval.

2 Lock is placed during data dictionary table update processing.

Table B-14 Lock modes for the database copy utility

Execution environment Resource
Data dictionary table RDAREA Directory block 6 Resources management table
-M option x PR PR [Figure] [Figure]
r PR PR [Figure] [Figure]
s [Figure] [Figure] PR SR

Table B-15 Lock modes for the database recovery utility

Execution environment Resource
Data dictionary table RDAREA
Recovery of RDAREA EX* EX

* Lock is placed if the master directory RDAREA is to be recovered.

Table B-16 Lock modes for the registry facility initialization utility

Execution Environment Resource
Database structure modification utility Data dictionary table RDAREA condition RDAREA
Addition of registry RDAREAs, registry LOB RDAREAs, and registry management tables (-k all) EX EX EX EX

Table B-17 Lock modes for the integrity check utility

Execution environment Resource
User table Data dictionary table
RDAREA TBL NW TBL Row PP TBL TBL RDAREA
For TBL For IX For TBL For IX
Integrity checking (-k check) When searching data dictionary table [Figure] [Figure] [Figure] [Figure] PR PR SR SR SR
When acquiring RDAREA check pending status* SR SR PR [Figure] [Figure] [Figure] [Figure] [Figure] [Figure]
When performing integrity checking [Figure] [Figure] [Figure] [Figure] [Figure] [Figure] [Figure] [Figure] [Figure]
When setting check pending status SU SU EX EX EX PR SU SU SU
Forced setting of check pending status (-k set) or forced release of check pending status (-k release) When searching data dictionary table [Figure] [Figure] [Figure] [Figure] PR PR SR SR SR
When acquiring RDAREA check pending status* SR SR PR [Figure] [Figure] [Figure] [Figure] [Figure] [Figure]
When setting or releasing check pending status SU [Figure] EX EX EX PR SU SU SU

Legend:
For TBL: For table
For IX: For index
NW TBL: No-wait table
PP TBL: Preprocessing table
TBL: Table

* Lock is placed by UNTIL DISCONNECT (lock is maintained until DISCONNECT is executed after the setting of check pending status is completed).