Nonstop Database, HiRDB Version 9 System Definition
![[Contents]](FIGURE/CONTENT.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
(1) ALLOCATE MEMORY TABLE
For ALLOCATE MEMORY TABLE, determine the value if you will be using a memory-resident database.
(a) For HiRDB/Single Server
9 + number of table columns + number of indexes defined for the table
2 + number of tables subject to memory database processing + number of indexes having the same name as the indexes defined for the table + number of indexes stored in the same database area as for the specified index database area
- Add the following if there are routines that become invalid:
- + number of routines in which the object becomes invalid
3 + 2
- Add the following if there are triggers that become invalid:
- + number of triggers for which the object becomes invalid
2 + 2 + number of trigger event columns for which the object becomes invalid + 1 + number of parameters used in the triggers for which the object becomes invalid + 1
(b) For HiRDB/Parallel Server (front-end server)
1
- Add the following if there are routines that become invalid:
- + number of routines in which the object becomes invalid
(c) For HiRDB/Parallel Server (dictionary server)
8 + number of table columns + number of indexes defined for the table
2 + number of tables subject to memory database processing that is stored in the same XDS + number of indexes having the same name as the indexes defined for the table + number of indexes stored in the same database area as for the specified index database area
- Add the following if there are routines that become invalid:
- + number of routines in which the object becomes invalid
2 + 2
- Add the following if there are triggers that become invalid:
- + number of triggers for which the object becomes invalid
2 + 2 + number of trigger event columns for which the object becomes invalid + 1 + number of parameters used in the triggers for which the object becomes invalid + 1
(2) ALTER INDEX
(a) For HiRDB/Single Server
5 + (number of index member columns
2) + number of procedures and triggers whose objects become invalid
- Add the following if there is a procedure whose objects become invalid:
- + number of procedures whose objects become invalid
3 + number of resources used by procedures whose objects become invalid
5
- Add the following if there is a trigger whose objects become invalid:
- + number of triggers whose objects become invalid
5 +number of columns specified as the trigger event of an UPDATE trigger
3 + number of trigger action procedures that reference tables for which an index is defined
5
- Add the following if there is an old or new value correlation name:
- + 4
- Add the following if statistical information regarding the index is output:
- + 2
- Add the following if it is a partitioning key index:
- + number of partitioning conditions
2
- Add the following if it is an index that uses index types:
- + 1 + number of abstract data types that use types that define the index type
2 + number of functions that use the index type
2
- Add the following if it is a substructure index:
- + number of member substructure paths
2
- Add the following if an exception value is specified:
- + 2
(b) For HiRDB/Parallel Server (front-end server)
1 + number of procedures and triggers whose objects become invalid
(c) For HiRDB/Parallel Server (dictionary server)
4 + (number of index member columns
2)
- Add the following if there is a procedure whose objects become invalid:
- + number of procedures whose objects become invalid
3 + number of resources used by procedures whose objects become invalid
5
- Add the following if there is a trigger whose objects become invalid:
- + number of triggers whose objects become invalid
5 + number of columns specified as the trigger event of an UPDATE trigger
3 + number of trigger action procedures that reference the table for which the index is defined
5
- Add the following if there is an old or new value correlation name:
- + 4
- Add the following if statistical information regarding the index is output:
- + 2
- Add the following if it is a partitioning key index:
- + number of partitioning conditions
2
- Add the following if it is an index that uses the index type:
- + 1 + number of abstract data types that use types that define the index type
2 + number of functions that use the index type
2
- Add the following if it is a substructure index:
- + number of member substructure paths
2
- Add the following if an exception value is specified:
- + 2
(3) ALTER PROCEDURE
(a) For HiRDB/Single Server
5 + number of tables accessed in SQL statement preprocessing + number of view tables accessed in SQL statement preprocessing + number of base tables that serve as the base for view tables accessed in SQL statement preprocessing
- Add the following if the executer is not the owner:
- + 2
- Add the following if a procedure name is specified:
- + 2
- Add the following if AUTHORIZATION is specified:
- + number of invalid routines owned by a target person + number of invalid PUBLIC routines defined by a target person + 2
- Also add the following if ALL is specified:
- + total number of routines owned by a target person + total number of PUBLIC routines defined by a target person + 1
- Also add the following if INDEX USING is specified:
- + number of routines that use the specified table as a resource
2 + 3
- Add the following if AUTHORIZATION is not specified:
- + total number of invalid routines in the system
- Also add the following if ALL is specified:
- + total number of routines in the system
- Also add the following if INDEX USING is specified:
- + number of routines that use the specified table as a resource
2 + 3
- Add the following if there are resources used in routines:
- + number of routines used
2 + 1
- Add the following if there are tables in the resources used:
- + number of tables used + 1
- Add the following if there are view tables in the resources used:
- + number of view tables used + 1 + number of utilized resources used in view tables used + 1
- Add the following if there are indexes in the resources to be used:
- + number of indexes to be used + 1
- Add the following if there are routines in the resources to be used:
- + number of routines used + 1
- Add the following if there are user-defined types in the resources to be used:
- + user-defined types to be used + 1
- Add the following if parameters are specified:
- + number of parameters + 1
(b) For HiRDB/Parallel Server (front-end server)
1 + number of tables accessed in SQL statement preprocessing + number of view tables accessed in SQL statement preprocessing + number of base tables that serve as the base for view tables accessed in SQL statement preprocessing
(c) For HiRDB/Parallel Server (dictionary server)
5
- Add the following if the executer is not the owner:
- + 2
- Add the following if a procedure name is specified:
- + 2
- Add the following if AUTHORIZATION is specified:
- + number of invalid routines owned by a target person + number of invalid PUBLIC routines defined by a target person
- Also add the following if ALL is specified:
- + total number of routines owned by a target person + total number of PUBLIC routines defined by a target person
- Also add the following if INDEX USING is specified:
- + number of routines that use the specified table as a resource
2 + 3
- Add the following if AUTHORIZATION is not specified:
- + total number of invalid routines in system
- Also add the following if ALL is specified:
- + total number of routines in system
- Also add the following if INDEX USING is specified:
- + number of routines that use the specified table as a resource
2 + 3
- Add the following if there are resources used in routines:
- + number of routines used
2 + 1
- Add the following if there are tables in the resources used:
- + number of tables used + 1
- Add the following if there are view tables in the resources used:
- + number of view tables used + 1 + number of utilized resources used in view tables used + 1
- Add the following if there are indexes in the resources to be used:
- + number of indexes to be used + 1
- Add the following if there are routines in the resources to be used:
- + number of routines used + 1
- Add the following if there are user-defined types in the resources to be used:
- + user-defined types to be used + 1
- Add the following if parameters are specified:
- + number of parameters + 1
(d) For HiRDB/Parallel Server (back-end server)
1
(4) ALTER ROUTINE
(a) For HiRDB/Single Server
5 + number of tables accessed in SQL statement preprocessing + number of view tables accessed in SQL statement preprocessing + number of base tables that serve as the base for view tables accessed in SQL statement preprocessing
- Add the following if there are triggers:
- + 1
- Add the following if the executer is not the owner:
- + 2
- Add the following if AUTHORIZATION is specified:
- + number of invalid routines owned by a target person + number of invalid PUBLIC routines defined by a target person + 1
- Also add the following if ALL is specified:
- + total number of routines owned by a target person + total number of PUBLIC routines defined by a target person
- Also add the following if there are triggers owned by a target person:
- + number of triggers owned by a target person
4 + 3 + number of tables that define triggers owned by a target person + number of trigger event columns
2 + 1 + number of resource information items used in trigger action conditions
2 + 1 + number of parameters used by triggers
2 + 1
- Add the following if AUTHORIZATION is not specified:
- + total number of invalid routines in the system
- Also add the following if ALL is specified:
- + total number of routines in the system
- Also add the following if there are triggers in the system:
- + total number of triggers
4 + 3 + total number of tables that define triggers + number of trigger event columns
2 + 1 + number of resource information items used in trigger action conditions
2 + 1 + number of parameters used by triggers
2 + 1
- Add the following if there are resources used in routines:
- + number of routines used
2
- Add the following if there are tables in the resources used:
- + number of tables used + 1
- Add the following if there are view tables in the resources used:
- + number of view tables used + 1 + number of utilized resources used in view tables used + 1
- Add the following if there are indexes in the resources to be used:
- + number of indexes to be used + 1
- Add the following if there are routines in the resources to be used:
- + number of routines used + 1
- Add the following if there are user-defined types in the resources to be used:
- + user-defined types to be used + 1
- Add the following if parameters are specified:
- + number of parameters + 1
(b) For HiRDB/Parallel Server (front-end server)
1 + number of tables accessed in SQL statement preprocessing + number of view tables accessed in SQL statement preprocessing + number of base tables that serve as the base for view tables accessed in SQL statement preprocessing
- Add the following if there are triggers:
- + 1
(c) For HiRDB/Parallel Server (dictionary server)
5
- Add the following if the executer is not the owner:
- + 2
- Add the following if AUTHORIZATION is specified:
- + number of invalid routines owned by a target person + number of invalid PUBLIC routines defined by a target person
- Also add the following if ALL is specified:
- + total number of routines owned by a target person + total number of PUBLIC routines defined by a target person
- Also add the following if there are triggers owned by a target person:
- + number of triggers owned by a target person
4 + 3 + number of tables that define triggers owned by a target person + 1 + number of trigger event columns
2 + 1 + number of resource information items used in trigger action conditions
2 + 1 + number of parameters used by triggers
2 + 1
- Add the following if AUTHORIZATION is not specified:
- + total number of invalid routines in the system
- Also add the following if ALL is specified:
- + total number of routines in the system
- Also add the following if there are triggers in the system:
- + total number of triggers
4 + 3 + total number of tables that define triggers + 1 + number of trigger event columns
2 + 1 + number of resource information items used in trigger action conditions
2 + 1 + number of parameters used by triggers
2 + 1
- Add the following if there are resources used in routines:
- + number of routines used
2
- Add the following if there are tables in the resources used:
- + number of tables used + 1
- Add the following if there are view tables in the resources used:
- + number of view tables used + 1 + number of utilized resources used in view tables used + 1
- Add the following if there are indexes in the resources to be used:
- + number of indexes to be used + 1
- Add the following if there are routines in the resources to be used:
- + number of routines used + 1
- Add the following if there are user-defined types in the resources to be used:
- + user-defined types to be used + 1
- Add the following if parameters are specified:
- + number of parameters + 1
(d) For HiRDB/Parallel Server (back-end server)
1
(5) ALTER TABLE
(6) ALTER TRIGGER
(a) For HiRDB/Single Server
19
- Add the following if the executer is not the owner:
- + 2
- Add the following if there is a trigger event column:
- + number of trigger event columns
2 + 1
- Add the following if a trigger action condition is specified:
- + number of resource information items used in trigger action conditions
2 + 1
- Add the following if there are resources used by the trigger:
- + number of resources used
2 + 1
- Add the following if there are tables in the resources used:
- + number of tables used
- Add the following if there are view tables in the resources used:
- + number of view tables used + number of utilized resources used in view tables used + 1
- Add the following if there are indexes in the resources to be used:
- + number of indexes to be used + 1
- Add the following if there are routines in the resources to be used:
- + number of routines used
- Add the following if there are user-defined types in the resources to be used:
- + number of user-defined types to be used + 1
- Add the following if parameters are specified:
- + number of parameters
2 + 1
(b) For HiRDB/Parallel Server (front-end server)
2
(c) For HiRDB/Parallel Server (dictionary server)
17
- Add the following if the executer is not the owner:
- + 2
- Add the following if there is a trigger event column:
- + number of trigger event columns
2 + 1
- Add the following if a trigger action condition is specified:
- + number of resource information items used in trigger action conditions
2 + 1
- Add the following if there are resources used by the trigger:
- + number of resources used
2 + 1
- Add the following if there are tables in the resources used:
- + number of tables used
- Add the following if there are view tables in the resources used:
- + number of view tables used + number of utilized resources used in view tables used + 1
- Add the following if there are indexes in the resources to be used:
- + number of indexes to be used + 1
- Add the following if there are routines in the resources to be used:
- + number of routines used
- Add the following if there are user-defined types in the resources to be used:
- + number of user-defined types to be used + 1
- Add the following if parameters are specified:
- + number of parameters
2 + 1
(d) For HiRDB/Parallel Server (back-end server)
1
(7) COMMENT
(a) For HiRDB/Single Server
3
- Add the following if the comment is a column:
- + 2
(b) For HiRDB/Parallel Server (dictionary server)
3
- Add the following if the comment is a column:
- + 2
(8) CREATE AUDIT
(a) For HiRDB/Single Server
7
- Add the following if objects are specified:
- + number of definitions of the objects in question
- Add the following if objects are not specified:
- + number of definitions with no object specified
(b) For HiRDB/Parallel Server (dictionary server)
7
- Add the following if objects are specified:
- + number of definitions of the objects in question
- Add the following if objects are not specified:
- + number of definitions with no object specified
(9) CREATE CONNECTION SECURITY
(a) For HiRDB/Single Server
7 + number-of-users-registered-in-dictionary-table-SQL_USERS
(b) For HiRDB/Parallel Server (front-end server)
1
(c) For HiRDB/Parallel Server (dictionary server)
6 + number-of-users-registered-in-dictionary-table-SQL_USERS
(10) CREATE [PUBLIC] FUNCTION
(a) For HiRDB/Single Server
number of locked resources in CREATE [PUBLIC]PROCEDURE + number of routines whose objects become invalid
- Add the following if there are parameters:
- + number of parameters
2
- Add the following if a parameter includes a user-defined type:
- + number of user-defined types
2
- Add the following if there are routines that become invalid:
- + number of routines that become invalid
4 + 2 + number of resources of routines that become invalid
5 + 1
- Also add the following if a routine that becomes invalid is used by a view table:
- + number of routines used by view tables that become invalid + 1 + number of routines used by view tables that become invalid
number of parameters + 1
(b) For HiRDB/Parallel Server (front-end and back-end server)
number of locked resources in CREATE [PUBLIC]PROCEDURE + number of routines whose objects become invalid
(c) For HiRDB/Parallel Server (dictionary server)
number of locked resources in CREATE [PUBLIC]PROCEDURE + number of routines whose objects become invalid
- Add the following if there are parameters:
- + number of parameters
2
- Add the following if a parameter includes a user-defined type:
- + number of user-defined types
2
- Add the following if there are routines that become invalid:
- + number of routines that become invalid
4 + 2 + number of resources of routines that become invalid
5 + 1
- Also add the following if a routine that becomes invalid is used by a view table:
- + number of routines used by view tables that become invalid + 1 + number of routines used by view tables that become invalid
number of parameters + 1
(11) CREATE INDEX (not a plug-in index)
(a) For HiRDB/Single Server
20 + number of routines in which indexes become invalid + number of member columns
4
- Add the following if the indexes are not temporary table indexes:
- + 5 + 2
number of RDAREAs for index
- + number of RDAREAs for index
4
- Add the following if there are routines that reference the table that defines the index:
- + number of routines that reference the table that defines the index
4 + 2
- Add the following if there are trigger action procedures that reference the table that defines the index:
- + number of trigger action procedures that reference the table that defines the index
5
- Add the following if there is more than one RDAREA for the index:
- + number of RDAREAs for the index
3 + 1
- Add the following if the index is a substructure index:
- + number of index member substructure paths
3
(b) For HiRDB/Parallel Server (front-end server)
1 + number of routines in which the index becomes invalid
(c) For HiRDB/Parallel Server (dictionary server)
19 + number of member columns
4
- Add the following if the indexes are not temporary table indexes:
- + number of RDAREAs for index
4
- Add the following if there are routines that reference the table that defines the index:
- + number of routines that reference the table that defines the index
4 + 2
- Add the following if there are trigger action procedures that reference the table that defines the index:
- + number of trigger action procedures that reference the table that defines the index
5
- Add the following if there is more than one RDAREA for the index:
- + number of RDAREAs for the index
3 + 1 + number of routines in which the index becomes invalid
- Add the following if the index is a substructure index:
- + number of index member substructure paths
3
(d) For HiRDB/Parallel Server (back-end server) (non-temporary table indexes)
5 + number of RDAREAs for the index
2 + number of routines in which the index becomes invalid
(e) For HiRDB/Parallel Server (back-end server) (temporary table indexes)
number of routines in which indexes become invalid
(f) For HiRDB/Parallel Server (reference-only back-end server)
2
(12) CREATE INDEX (plug-in index)
(13) CREATE [PUBLIC] PROCEDURE
(a) For HiRDB/Single Server
13 + number of tables accessed in SQL statement preprocessing + number of view tables accessed in SQL statement preprocessing + number of base tables that are the basis of view tables accessed in SQL statement preprocessing
- Add the following if a resource to be used exists:
- + number of resources to be used
7 + 3
- Add the following if parameters are specified:
- + number of parameters
3 + 1
- Add the following if the parameter data type is a user-defined type:
- + number of user-defined type parameters
2 + 1
(b) For HiRDB/Parallel Server (front-end server)
3 + number of tables accessed in SQL statement preprocessing + number of view tables accessed in SELECT statement preprocessing + number of base tables that are the basis of view tables accessed in SELECT statement preprocessing
(c) For HiRDB/Parallel Server (dictionary server)
15
- Add the following if a resource to be used exists:
- + number of resources to be used
7 + 3
- Add the following if parameters are specified:
- + number of parameters
3 + 1
- Add the following if the parameter data type is a user-defined type:
- + number of user-defined type parameters
2 + 1
(14) CREATE SCHEMA
(a) For HiRDB/Single Server
5
(b) For HiRDB/Parallel Server (dictionary server)
5
(15) CREATE SEQUENCE
(a) For HiRDB/Single Server
- 9 + 2
(b) For HiRDB/Parallel Server (dictionary server)
- 9
(c) For HiRDB/Parallel Server (back-end server)
- 2
(16) CREATE TABLE
(17) CREATE TRIGGER
(a) For HiRDB/Single Server
21 + number of routines in which objects become invalid
5 + number of resources used by trigger action procedures
5
- Add the following if a trigger action condition is specified:
- + number of resources used inside trigger action condition specification
5 + 3
- Add the following if a column name modified by an old or new values correlation name is used inside a trigger action procedure:
- + number of column types modified by new values correlation names
3 + number of column types modified by old values correlation names
3 + 3
- Add the following if trigger event columns are specified:
- + number of trigger event columns
3
- Add the following if there are routines that become invalid:
- + number of invalid routines
5 + number of resources used by routines
5
- Add the following if there are trigger action procedures in the routines that become invalid:
- + number of trigger action procedures
5
(b) For HiRDB/Parallel Server (front-end server)
3 + number of routines in which objects become invalid
(c) For HiRDB/Parallel Server (dictionary server)
18 + number of routines in which objects become invalid + number of resources used by trigger action procedures
5
- Add the following if a trigger action condition is specified:
- + number of resources used inside trigger action condition specification
5 + 3
- Add the following if a column name modified by an old or new values correlation name is used inside a trigger action procedure:
- + number of column types modified by new values correlation names
3 + number of column types modified by old values correlation names
3 + 3
- Add the following if trigger event columns are specified:
- + number of trigger event columns
3
- Add the following if there are routines that become invalid:
- + number of invalid routines
5 + number of resources used by routines
5
- Add the following if there are trigger action procedures in the routines that become invalid:
- + number of trigger action procedures
5
(d) For HiRDB/Parallel Server (back-end server)
number of routines in which objects become invalid
(18) CREATE TYPE
(a) For HiRDB/Single Server
22 + number of routines that become invalid + number of attributes
3
- Add the following if there are user-defined types in the attributes:
- + (number of user-defined types
6 + 2)
- Add the following for subtype definitions:
- + 11
- Add the following if there are routines that become invalid:
- + (number of routines that become invalid
4 + 2 + number of resources of the routines that become invalid
5 + 1)
- Also add the following if a routine that becomes invalid is used by a view table:
- + number of routines used by view tables that become invalid + 1 + number of routines used by view tables that become invalid
number of parameters + 1
- Add the following if a function or procedure is defined:
- + number of locked resources for function/procedure definitions#
(b) For HiRDB/Parallel Server (front-end server)
1 + number of routines that become invalid
- Add the following if a function or procedure is defined:
- + number of locked resources for function/procedure definitions #
(c) For HiRDB/Parallel Server (dictionary server)
21 + number of attributes
3
- Add the following if there are user-defined types in the attributes:
- + (number of user-defined types
6 + 2)
- Add the following for subtype definitions:
- + 11
- Add the following if there are routines that become invalid:
- + (number of routines that become invalid
4 + 2 + number of resources of the routines that become invalid
5 + 1)
- Also add the following if a routine that becomes invalid is used by a view table:
- + number of routines used by view tables that become invalid + 1 + number of routines used by view tables that become invalid
number of parameters + 1
- Add the following if a function or procedure is defined:
- + number of locked resources for function/procedure definitions #
(d) For HiRDB/Parallel Server (back-end server)
number of routines that become invalid
#: Reference the lock request count of the function definition or the procedure definition.
(19) CREATE [PUBLIC] VIEW
(20) DEALLOCATE MEMORY TABLE
For DEALLOCATE MEMORY TABLE, determine the value if you will be using a memory-resident database.
(a) For HiRDB/Single Server
4 + number of indexes defined for the table
(b) For HiRDB/Parallel Server (dictionary server)
4 + number of indexes defined for the table
(21) DROP AUDIT
(a) For HiRDB/Single Server
7
- Add the following if objects are specified:
- + number of definitions of the objects in question
- Add the following if objects are not specified:
- + number of definitions with no object specified
(b) For HiRDB/Parallel Server (dictionary server)
7
- Add the following if objects are specified:
- + number of definitions of the objects in question
- Add the following if objects are not specified:
- + number of definitions with no object specified
(22) DROP CONNECTION SECURITY
(a) For HiRDB/Single Server
7 + number-of-users-registered-in-dictionary-table-SQL_USERS
(b) For HiRDB/Parallel Server (front-end server)
1
(c) For HiRDB/Parallel Server (dictionary server)
6 + number-of-users-registered-in-dictionary-table-SQL_USERS
(23) DROP DATA TYPE
(a) For HiRDB/Single Server
26 + number of routines that become invalid + number of attributes
3
- Add the following for a subtype:
- + 6
- Add the following if there are user-defined type attributes:
- + number of user-defined type attributes
4
- Add the following if there are routines that become invalid:
- + number of routines that become invalid
4 + 2 + number of resources of the routines that become invalid
5 + 1
- Also add the following if a routine that becomes invalid is used by a view table:
- + number of routines used by view tables that become invalid + 1 + number of routines used by view tables that become invalid
number of parameters + 1
- Add the following if there are function definitions:
- + number of function definitions
7 + 1 + number of function parameters
4 + 1 + number of procedures used by the functions + 1
- Add the following if there are procedure definitions:
- + number of procedure definitions
5 + 1 + number of procedure parameters
4 + 1 + number of resources used by procedures
5 + 1
- Add the following if a trigger action condition is specified:
- + 15
- Add the following if there are trigger action procedures in the routines that become invalid:
- + number of trigger action procedures
5
(b) For HiRDB/Parallel Server (front-end server)
- 1 + number of routines that become invalid
(c) For HiRDB/Parallel Server (dictionary server)
23 + number of attributes
3 + number of routines whose objects become invalid
- Add the following for a subtype:
- + 6
- Add the following if there are user-defined type attributes:
- + number of user-defined type attributes
4
- Add the following if there are routines that become invalid:
- + number of routines that become invalid
4 + 2 + number of resources of the routines that become invalid
5 + 1
- Also add the following if a routine that becomes invalid is used by a view table:
- + number of routines used by view tables that become invalid + 1 + number of routines used by view tables that become invalid
number of parameters + 1
- Add the following if there are function definitions:
- + number of function definitions
7 + 1 + number of function parameters
4 + 1 + number of procedures used by the functions
5 + 1
- Add the following if there are procedure definitions:
- + number of procedure definitions
5 + 1 + number of procedure parameters
4 + 1 + number of resources used by procedures
5 + 1
- Add the following if a trigger action condition is specified:
- + 15
- Add the following if there are trigger action procedures in the routines that become invalid:
- + number of trigger action procedures
5
(d) For HiRDB/Parallel Server (back-end server)
number of routines whose objects become invalid
(24) DROP [PUBLIC] FUNCTION
(a) For HiRDB/Single Server
Number of DROP [PUBLIC ]PROCEDURE locked resources
- Add the following if there are parameters:
- + number of parameters
2
- Add the following if a parameter includes a user-defined type:
- + number of user-defined types
2
- Add the following if a trigger action condition is specified:
- + 15
- Add the following if a routine that becomes invalid is used by a view table.
- + number of routines used by view tables that become invalid + 1 + number of routines used by view tables that become invalid
number of parameters + 1
(b) For HiRDB/Parallel Server (front-end and back-end servers)
same as DROP [PUBLIC ]PROCEDURE
(c) For HiRDB/Parallel Server (dictionary server)
number of locked resources in DROP [PUBLIC ]PROCEDURE
- Add the following if there are parameters:
- + number of parameters
2
- Add the following if a parameter includes a user-defined type:
- + number of user-defined types
2
- Add the following if a trigger action condition is specified:
- + 15
- Add the following if a routine that becomes invalid is used by a view table.
- + number of routines used by view tables that become invalid + 1 + number of routines used by view tables that become invalid
number of parameters + 1
(25) DROP INDEX (not a plug-in index)
(a) For HiRDB/Single Server
22 + number of routines in which objects or indexes become invalid + number of member columns
3
- Add the following if the indexes are not temporary table indexes:
- + number of RDAREAs for index
7
- + number of index segments
- Add the following if the indexes are temporary table indexes:
- + 3
- Add the following if there are routines that become invalid:
- + number of routines that become invalid
7 + 1
- Add the following if there are trigger action procedures that reference the table that defines the index:
- + number of trigger action procedures that reference the table that defines the index
5
- Add the following if acquiring index optimization information:
- + 4
- Add the following if the index is a substructure index:
- + number of index member substructure paths
3
- Add the following if using the facility for predicting reorganization time:
- + number of RDAREAs for the index
62 + 1
(b) For HiRDB/Parallel Server (front-end server)
1 + number of routines in which objects or the index become invalid
(c) For HiRDB/Parallel Server (dictionary server)
16 + number of member columns
3 + number of routines in which objects or indexes become invalid
- Add the following if the indexes are not temporary table indexes:
- + number of RDAREAs for index
3
- Add the following if there are routines that become invalid:
- number of routines that become invalid
7 + 1
- Add the following if there are trigger action procedures that reference the table that defines the index:
- + number of trigger action procedures that reference the table that defines the index
5
- Add the following if acquiring index optimization information:
- + 4
- Add the following if the index is a substructure index:
- + number of index member substructure paths
3
- Add the following if using the facility for predicting reorganization time:
- + number of RDAREAs for the index
62 + 1
(d) For HiRDB/Parallel Server (back-end server) (non-temporary table indexes)
5 + number of RDAREAs for the index
4 + number of index segments + number of routines in which objects or the index become invalid
(e) For HiRDB/Parallel Server (back-end server) (temporary table indexes)
number of routines in which objects or indexes become invalid
(f) For HiRDB/Parallel Server (reference-only back-end server)
2
(26) DROP INDEX (plug-in index)
(27) DROP [PUBLIC] PROCEDURE
(a) For HiRDB/Single Server#
19 + number of parameters
5 + number of resources
10 + number of routines in which objects become invalid
- Add the following value if there are routines that become invalid:
- + number of routines that become invalid
4 + 2 + number of resources for the routines that become invalid
5 + 1
- Add the following value if there are trigger action procedures in the routines that become invalid:
- + number of trigger action procedures
5
(b) For HiRDB/Parallel Server (front-end server)
1 + number of routines in which objects become invalid
(c) For HiRDB/Parallel Server (dictionary server)
18 + number of parameters
3 + number of resources
10 + number of routines in which objects become invalid
- Add the following value if there are routines that become invalid:
- + number of routines that become invalid
4 + 2 + number of resources for the routines that become invalid
5 + 1
- Add the following if there are trigger action procedures in the routines that become invalid:
- + number of trigger action procedures
5
(d) For HiRDB/Parallel Server (back-end server)
number of routines in which objects become invalid
(28) DROP SCHEMA
(a) For HiRDB/Single Server
11 + number of tables inside the schema + number of view tables inside the schema + number of routines inside the schema + number of view tables in other schemas that use tables or view tables inside the schema as base tables + number of indexes in other schemas that reference the tables, view tables, routines, or data types to be deleted
- Add the number of tables inside the schema that are to be deleted (when they are not matrix-partitioned tables).
- +
{number of RDAREAs storing the tables
3 + number of specified partitioning conditions
9 + number of columns
4 + (number of LOB columns
4)
number of RDAREAs storing the tables + 1 + 8} + 2
- +
(number of RDAREAs for table
10
- + 10
- + number of table data segments being used)
- Add the number of tables inside the schema that are to be deleted (when they are matrix-partitioned tables).
- +
{number of RDAREAs storing the tables
3 + number of specified RDAREAs storing the tables (including overlapped ones)
12 + number of columns
4 + (number of LOB columns
4)
number of RDAREAs storing the tables + 1 + 8 + number of privilege definitions for the tables to be deleted + number of partitioning keys
2 + (number of specified storage conditions + 2)
2 + 2} + 3
- +
(number of RDAREAs for table
10
- + 10
- + number of table data segments being used)
- Add the number of indexes inside the schema that are to be deleted.
- + 3 +
(number of RDAREAs for indexes
7 + number of member columns
3 + number of index member substructure paths
3#1) +
(number of RDAREAs for the indexes
8 + 10 + number of index segments being used) + 8
- Add the following if optimization information is collected:
- + number of tables for which optimization information is collected
2 + number of columns for which optimization information is collected
3 + number of indexes for which optimization information is collected
3
- Add the number of view tables that are deleted along with the tables being deleted:
- + 2 +
(12 + number of base tables for view tables
4 + number of columns
4)
- Add the number of routines that use tables, view tables, routines, or data types inside the schema:
- + 3 +
(5 + number of resources in procedures
5 + number of defined parameters
3)
- Add the following if there are procedures that become invalid:
- + number of invalid procedures +
(2 + number of resources
5) + number of data types defined inside the schema#2
- Add the following if there are trigger action procedures that reference tables to be deleted:
- + number of trigger action procedures that reference tables to be deleted
5
- Add the following if there are tables for which triggers are defined:
- + number of triggers defined inside the schema
8 + total number of columns specified in the UPDATE trigger definition inside the schema
3 + number of triggers that have trigger action conditions inside the schema
3 + number of resource types referenced in the trigger action conditions inside the schema
5
- Add the following if a referential constraint is defined:
- + number of referenced tables + number of foreign keys
10
- Add the following if a check constraint is defined:
- + number of check constraints
9
- Add the following if using the facility for predicting reorganization time:
- +
{(number of RDAREAs storing the tables + (number of LOB columns + number of LOB attributes)
number of table-storage RDAREAs)
62} +
{(number of RDAREAs for indexes + (number of LOB columns + number of LOB attributes)
number of table-storage RDAREAs)
62} + 1
- Add the following if there are sequence generators inside the schema:
- + 2 + number of sequence generators inside the schema
3 + number of sequence generators inside the schema
2
(b) For HiRDB/Parallel Server (front-end server)
3 + number of tables inside the schema + number of view tables inside the schema + number of routines inside the schema + number of sequence generators inside the schema + number of view tables in other schemas that use tables or view tables inside the schema as base tables + number of routines in other schemas that reference the tables, view tables, routines, or data types to be deleted
(c) For HiRDB/Parallel Server (dictionary server)
11 + number of indexes in other schemas
- Add the number of tables inside the schema that are to be deleted (when they are not matrix-partitioned tables).
- +
{number of RDAREAs storing the tables
3 + number of specified partitioning conditions
9 + number of columns
4 + (number of LOB columns
4)
number of RDAREAs storing the tables + number of privilege definitions for the tables to be deleted
3 + 6} + 11
- Add the number of tables inside the schema that are to be deleted (when they are matrix-partitioned tables).
- +
{number of RDAREAs storing the tables
3 + number of specified RDAREAs storing the tables (including overlapped ones)
12 + number of columns
4 + (number of LOB columns
4)
number of RDAREAs storing the tables + number of privilege definitions for the tables to be deleted
3 + 1 + 6 + number of partitioning keys
2 + (number of specified storage conditions + 2)
2 + 2} + 3
- Add the number of indexes inside the schema that are to be deleted.
- + 4 +
(number of RDAREAs for the indexes
7 + number of member columns
7 + number of index member substructure paths
3#1) + number of indexes
5
- Add the following if optimization information is collected:
- + number of tables for which optimization information is collected
2 + number of columns for which table optimization information is collected
3 + number of indexes for which optimization information is collected
3
- Add the number of view tables that are deleted along with the tables being deleted:
- + 2 +
(18 + number of base tables for the view tables
4 + number of columns
4 + number of privilege definitions for the view tables
3)
- Add the number of routines that use tables, view tables, routines, or data types inside the schema:
- + 3 +
(5 + number of resources inside the procedure
10 + number of defined parameters
3)
- Add the following if there are procedures that become invalid:
- + number of invalid procedures +
(5 + number of resources
5) + number of for data types defined inside the schema#2
- Add the following if there are trigger action procedures that reference tables to be deleted:
- + number of trigger action procedures that reference tables to be deleted
5
- Add the following if there are tables for which triggers are defined:
- + number of triggers defined inside the schema
8 + total number of columns specified in the UPDATE trigger definition inside the schema
3 + number of triggers that have trigger action conditions inside the schema
3 + number of resource types referenced in the trigger action conditions inside the schema
5
- Add the following if a referential constraint is defined:
- + number of referenced tables + number of foreign keys
10
- Add the following if a check constraint is defined:
- + number of check constraints
9
- Add the following if using the facility for predicting reorganization time:
- +
((number of RDAREAs storing the tables + (number of LOB columns + number of LOB attributes)
number of table-storage RDAREAs)
62) +
((number of RDAREAs for indexes + (number of LOB columns + number of LOB attributes)
number of table-storage RDAREAs)
62) + 1
- Add the following if there are sequence generators inside the schema:
- + 2 + number of sequence generators inside the schema
2
(d) For HiRDB/Parallel Server (back-end server)
8 + number of routines whose objects or index objects become invalid
- Add the following for non-temporary tables or non-temporary table indexes:
- +
(number of RDAREAs storing tables
10 + 10 + number of table data segments being used)
- +
(number of RDAREAs for indexes
8 + 10 + number of index segments being used)
- Add the following if there is a sequence generator inside the schema:
- + number of sequence generators inside the schema
2
(e) For HiRDB/Parallel Server (reference-only back-end server)
number of tables + number of RDAREAs for indexes
#1: Add iteratively if the index is a substructure index.
#2: See the number of lock requests for user-defined deletion.
(29) DROP SEQUENCE
(a) For HiRDB/Single Server
9 + 2
- Add the following if there are routines that become invalid:
- + number of routines whose objects become invalid
3 + 2
- Add the following if triggers are defined:
- + number of trigger definitions
2 + 2 + number of defined trigger event columns + 1 + number of parameters used by defined triggers + 1
(b) For HiRDB/Parallel Server (front-end server)
1
- Add the following if there are routines that become invalid:
- + number of routines whose objects become invalid
(c) For HiRDB/Parallel Server (dictionary server)
8
- Add the following if there are routines that become invalid:
- + number of routines whose objects become invalid
2 + 2
- Add the following if triggers are defined:
- + number of trigger definitions
2 + 2 + number of defined trigger event columns + 1 + number of parameters used by defined triggers + 1
(d) For HiRDB/Parallel Server (back-end server)
2
(30) DROP TABLE
(31) DROP TRIGGER
(a) For HiRDB/Single Server
19 + number of routines in which objects become invalid + number of resources used by trigger action procedures
5
- Add the following if a trigger action condition is specified:
- + number of resources used inside trigger action condition specification
5 + 3
- Add the following if a column name modified by an old or new values correlation name is used inside a trigger action procedure:
- + number of column types modified by new values correlation names
3 + number of column types modified by old values correlation names
3 + 3
- Add the following if trigger event columns are specified:
- + number of trigger event columns
3
- Add the following if there are routines that become invalid:
- + number of invalid routines
5 + number of resources used by routines
5
- Add the following if there are trigger action procedures in the routines that become invalid:
- + number of trigger action procedures
5
(b) For HiRDB/Parallel Server (front-end server)
3 + number of routines in which objects become invalid
(c) For HiRDB/Parallel Server (dictionary server)
16 + number of routines in which objects become invalid + number of resources used by trigger action procedures
5
- Add the following if a trigger action condition is specified:
- + number of resources used inside trigger action condition specification
5 + 3
- Add the following if a column name modified by an old or new values correlation name is used inside a trigger action procedure:
- + number of column types modified by new values correlation names
3 + number of column types modified by old values correlation names
3 + 3
- Add the following if trigger event columns are specified:
- + number of trigger event columns
3
- Add the following if there are routines that become invalid:
- + number of invalid routines
5 + number of resources used by routines
5
- Add the following if there are trigger action procedures in the routines that become invalid:
- + number of trigger action procedures
5
(d) For HiRDB/Parallel Server (back-end server)
number of routines in which objects become invalid
(32) DROP [PUBLIC] VIEW
(a) For HiRDB/Single Server
10 + number of view tables to be deleted + number of procedures that become invalid +
(15 + number of columns
4 + number of tables that are the basis of the view table
4)
- Add the following if there are procedures that become invalid:
- + number of procedures that become invalid +
(2 + number of resources in procedures
5)
- Add the following if there are trigger action procedures that reference the view tables to be deleted:
- + number of trigger action procedures that reference the view tables to be deleted
5
- Add the following if the table is a public view table:
- + 1
- + number of tables having the same name as the public view table
- + number of view tables having the same name as the public view table
(b) For HiRDB/Parallel Server (front-end server)
number of view tables to be deleted + number of procedures that become invalid
(c) For HiRDB/Parallel Server (dictionary server)
10 +
(15 + number of columns
4 + number of tables that are the basis of the view table
4)
- Add the following if there are routines that become invalid:
- + number of routines that become invalid +
(2 + number of resources in routines
5)
- Add the following if there are trigger action procedures that reference the view tables to be deleted:
- + number of trigger action procedures that reference the view tables to be deleted
5
- Add the following if the table is a public view table:
- + 1
- + number of tables having the same name as the public view table
- + number of view tables having the same name as the public view table
(d) For HiRDB/Parallel Server (back-end server)
number of routines in which objects become invalid
(33) GRANT AUDIT
(a) For HiRDB/Single Server
3
- Add the following if using the password character restriction facility:
- + 2
(b) For HiRDB/Parallel Server (dictionary server)
- 3
- Add the following if using the password character restriction facility:
- + 2
(34) GRANT CONNECT
(a) For HiRDB/Single Server
3 + number of specified users
- Add the following if using the password character restriction facility:
- + 2
(b) For HiRDB/Parallel Server (dictionary server)
3 + number of specified users
- Add the following if using the password character restriction facility:
- + 2
(35) GRANT DBA
(a) For HiRDB/Single Server
3 + number of specified users
- Add the following if using the password character restriction facility:
- + 2
(b) For HiRDB/Parallel Server (dictionary server)
3 + number of specified users
- Add the following if using the password character restriction facility:
- + 2
(36) GRANT RDAREA
(a) For HiRDB/Single Server
5 + number of specified users
- Add the following if PUBLIC is specified:
- + number of specified RDAREAs
- Add the following if there is a user specification:
- + number of specified RDAREAs
number of specified users
(b) For HiRDB/Parallel Server (dictionary server)
5 + number of specified users
- Add the following if PUBLIC is specified:
- + number of specified RDAREAs
- Add the following if there is a user specification:
- + number of specified RDAREAs
number of specified users
(37) GRANT SCHEMA
(a) For HiRDB/Single Server
3 + number of specified users
(b) For HiRDB/Parallel Server (dictionary server)
3 + number of specified users
(38) GRANT access privileges
(a) For HiRDB/Single Server
4 + number of specified users
(b) For HiRDB/Parallel Server (dictionary server)
4 + number of specified users
(39) REVOKE CONNECT
(a) For HiRDB/Single Server
3 + number of specified users
(b) For HiRDB/Parallel Server (dictionary server)
3 + number of specified users
(40) REVOKE DBA
(a) For HiRDB/Single Server
3 + number of specified users
(b) For HiRDB/Parallel Server (dictionary server)
3 + number of specified users
(41) REVOKE RDAREA
(a) For HiRDB/Single Server
10
- Add the following if PUBLIC is specified:
- + number of specified RDAREAs
- Add the following if there is a user specification:
- + number of specified RDAREAs
number of specified users
(b) For HiRDB/Parallel Server (dictionary server)
10
- Add the following if PUBLIC is specified:
- + number of specified RDAREAs
- Add the following if there is a user specification:
- + number of specified RDAREAs
number of specified users
(42) REVOKE SCHEMA
(a) For HiRDB/Single Server
5 + number of specified users
(b) For HiRDB/Parallel Server (dictionary server)
5 + number of specified users
(43) REVOKE access privileges
(a) For HiRDB/Single Server
7 + number of specified users
- Add the following if there are routines that become invalid:
- + number of routines that become invalid
2 + 1
- Add the following if there are view tables defined based on tables:
- + number of single server locked resources of DROP [PUBLIC ]VIEW
(b) For HiRDB/Parallel Server (front-end server)
1
- Add the following if there are routines that become invalid:
- + number of routines that become invalid
- Add the following if there are view tables defined based on tables:
- + number of front-end server locked resources of DROP [PUBLIC ]VIEW
(c) For HiRDB/Parallel Server (dictionary server)
6 + number of specified users
- Add the following if there are routines that become invalid:
- + number of routines that become invalid
2 + 1
- Add the following if there are view tables defined based on tables:
- + number of dictionary server locked resources of DROP [PUBLIC ]VIEW
(d) For HiRDB/Parallel Server (back-end server)
0
- Add the following if there are routines that become invalid:
- + number of routines that become invalid
- Add the following if there are view tables defined based on tables:
- + number of back-end server locked resources of DROP [PUBLIC ]VIEW
All Rights Reserved. Copyright (C) 2014, Hitachi, Ltd.