1.1 List of commands
The following two tables list and describe the HADB commands.
-
Table 1‒1: List of commands (command execution environment)
This table provides information such as OS users who can execute the command and privileges required for command execution.
-
Table 1‒2: List of commands (database recovery by using a backup of system data only)
This table indicates whether the database can be recovered (after execution of the command) by using a backup of system data only.
For details about the types of nodes on which commands can be executed when the multi-node function is used, see 1.2 Nodes on which commands can be executed when the multi-node function is used.
No. |
Function |
Command name |
Command execution environment |
|||||
---|---|---|---|---|---|---|---|---|
OS users who can execute the command |
Privileges required for command execution#1 |
Computers that can execute the command |
HADB server status |
Connection to HADB server |
||||
1 |
Installation and environment setup |
Install |
HADB administrator and HADB client managing OS users |
-- |
HADB server and HADB client (for Linux) |
Inactive |
No |
|
2 |
Initialize the database |
HADB administrator |
-- |
HADB server |
Inactive |
No |
||
3 |
Add and change DB areas |
HADB administrator |
-- |
HADB server |
Active |
Yes#2 |
||
4 |
Change buffer |
HADB administrator |
-- |
HADB server |
Active |
Yes#2 |
||
5 |
Start and terminate the HADB server |
Start the HADB server |
HADB administrator |
-- |
HADB server |
Inactive |
No |
|
6 |
Terminate the HADB server |
HADB administrator |
-- |
HADB server |
Active |
No |
||
7 |
Database maintenance and backup |
Change the HADB server operation mode |
HADB administrator |
-- |
HADB server |
Active |
No |
|
8 |
Table data import and export |
Import data to base tables |
HADB administrator and OS users who belong to the HADB administrators group |
|
HADB server |
Active |
Yes#2 |
|
9 |
Export table data |
HADB administrator and OS users who belong to the HADB administrators group |
|
HADB server |
Active |
Yes#2 |
||
10 |
Index maintenance |
Rebuild indexes |
HADB administrator and OS users who belong to the HADB administrators group |
|
HADB server |
Active |
Yes#2 |
|
11 |
Chunk maintenance |
Merge chunks |
HADB administrator and OS users who belong to the HADB administrators group |
|
HADB server |
Active |
Yes#2 |
|
12 |
Archive chunks |
HADB administrator and OS users who belong to the HADB administrators group |
|
HADB server |
Active |
Yes#2 |
||
13 |
Unarchive chunks |
HADB administrator and OS users who belong to the HADB administrators group |
|
HADB server |
Active |
Yes#2 |
||
14 |
Change chunk status |
HADB administrator and OS users who belong to the HADB administrators group |
|
HADB server |
Active |
Yes#2 |
||
15 |
Set, change, and delete comments for chunks |
HADB administrator and OS users who belong to the HADB administrators group |
|
HADB server |
Active |
Yes#2 |
||
16 |
System table (base table) maintenance |
Reorganize the system table (base table) |
HADB administrator |
-- |
HADB server |
Active |
Yes#2 |
|
17 |
HADB server status display |
Display information on client groups and command groups |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
C |
No |
|
18 |
Display the connection status |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
C |
No |
||
19 |
Display global buffer information |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
C |
No |
||
20 |
Display local work table buffer information |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
C |
No |
||
21 |
Display the status of locked resources |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
C |
No |
||
22 |
Display the memory usage status |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
C |
No |
||
23 |
Display shared memory information |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
C |
No |
||
24 |
Display the HADB server status |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
Y |
No |
||
25 |
Display the thread status |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
C |
No |
||
26 |
Display version information |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
Y |
No |
||
27 |
Execution of SQL statements |
Execute SQL statements from the standard input or a file |
No restriction |
|
HADB server and HADB client (for Linux) |
Active |
As client |
|
28 |
Dictionary management |
Perform operation such as registering and deleting a synonym dictionary |
HADB administrator |
-- |
HADB server |
Active |
Yes#2 |
|
29 |
Information collection and analysis |
Analyze the database status |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
Active |
Yes#2 |
|
30 |
Collect cost information |
HADB administrator and OS users who belong to the HADB administrators group |
|
HADB server |
Active |
Yes#2 |
||
31 |
Display the HADB server's operation information |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
Active |
No |
||
32 |
Start or stop output of SQL trace information |
HADB administrator |
-- |
HADB server |
Active |
No |
||
33 |
Troubleshooting |
Forcibly terminate transactions or commands |
HADB administrator |
-- |
HADB server |
Active |
No |
|
34 |
Collect troubleshooting information |
HADB administrator |
-- |
HADB server |
Y#4 |
No |
||
35 |
Delete troubleshooting information |
HADB administrator |
-- |
HADB server |
Inactive |
No |
||
36 |
Multi-node function |
Display the HADB server status on each node |
HADB administrator and OS users who belong to the HADB administrators group |
-- |
HADB server |
C |
No |
|
37 |
Change the node type |
HADB administrator |
-- |
HADB server |
Active |
No |
||
38 |
Monitor the HADB server |
HADB administrator |
-- |
HADB server |
Active |
No |
||
39 |
Centralized management of client definitions |
Centralized management of client definitions |
HADB administrator |
|
HADB server |
Active |
Yes |
|
40 |
Audit trail facility |
Manage the audit trail facility |
HADB administrator and OS users who belong to the HADB administrators group |
|
HADB server |
Active |
Yes |
|
41 |
Conversion of audit trail files |
HADB administrator and OS users who belong to the HADB administrators group |
|
HADB server |
Active |
Yes |
||
42 |
Updated-row columnizing facility |
Manage the updated-row columnizing facility |
HADB administrator |
-- |
HADB server |
Active |
No |
- Legend:
-
--: Not applicable.
Active: The command can be executed while the HADB server is running.
Inactive: The command can be executed while the HADB server is not running.
Y: The command can be executed regardless of whether the HADB server is running.
C: The command can be executed while the HADB server is running, or between the time the HADB server terminated abnormally and the time the HADB server is restarted or until troubleshooting information is deleted by the adbinfosweep command.
Yes: Establishes a connection to the HADB server during command execution.
As client: Establishes a connection to the HADB server as an HADB client.
No: Does not establish a connection to the HADB server.
- #1
-
You specify the authorization identifier of an HADB user who has this privilege in each command's -u option.
- #2
-
You must consider not only the number of HADB clients but also the number of commands that connect to the HADB server.
For details about the number of commands that can connect concurrently to the HADB server, see Points to consider when executing commands concurrently in Preparing Resources in the HADB Setup and Operation Guide.
- #3
-
An HADB user with the audit viewer privilege and without the audit admin privilege can execute the adbaudittrail command with only the -d option specified. To execute the adbaudittrail command with any other option specified, the audit admin privilege is required.
- #4
-
To execute the adbinfoget command with the -g option specified, make sure that the HADB server is running.
The following table describes database recovery by using a backup of system data only.
No. |
Function |
Command name |
Database recovery by using a backup of system data only |
|
---|---|---|---|---|
1 |
Installation and environment setup |
Install |
Y |
|
2 |
Initialize the database |
N |
||
3 |
Add and change DB areas |
N |
||
4 |
Change buffer |
Y |
||
5 |
Start and terminate the HADB server |
Start the HADB server |
Y |
|
6 |
Terminate the HADB server |
Y |
||
7 |
Database maintenance and backup |
Change the HADB server operation mode |
Y |
|
8 |
Table data import and export |
Import data to base tables |
N |
|
9 |
Export table data |
Y |
||
10 |
Index maintenance |
Rebuild indexes |
N |
|
11 |
Chunk maintenance |
Merge chunks |
N |
|
12 |
Archive chunks |
N |
||
13 |
Unarchive chunks |
N |
||
14 |
Change chunk status |
N |
||
15 |
Set, change, and delete comments for chunks |
N |
||
16 |
System table (base table) maintenance |
Reorganize the system table (base table) |
Y |
|
17 |
HADB server status display |
Display information on client groups and command groups |
Y |
|
18 |
Display the connection status |
Y |
||
19 |
Display global buffer information |
Y |
||
20 |
Display local work table buffer information |
Y |
||
21 |
Display the status of locked resources |
Y |
||
22 |
Display the memory usage status |
Y |
||
23 |
Display shared memory information |
Y |
||
24 |
Display the HADB server status |
Y |
||
25 |
Display the thread status |
Y |
||
26 |
Display version information |
Y |
||
27 |
Execution of SQL statements |
Execute SQL statements from the standard input or a file |
C |
|
28 |
Dictionary management |
Perform operation such as registering and deleting a synonym dictionary |
N |
|
29 |
Information collection and analysis |
Analyze the database status |
Y |
|
30 |
Collect cost information |
N |
||
31 |
Display the HADB server's operation information |
Y |
||
32 |
Start or stop output of SQL trace information |
Y |
||
33 |
Troubleshooting |
Forcibly terminate transactions or commands |
Y |
|
34 |
Collect troubleshooting information |
Y |
||
35 |
Delete troubleshooting information |
Y |
||
36 |
Multi-node function |
Display the HADB server status on each node |
Y |
|
37 |
Change the node type |
Y |
||
38 |
Monitor the HADB server |
Y |
||
39 |
Centralized management of client definitions |
Centralized management of client definitions |
Y |
|
40 |
Audit trail facility |
Manage the audit trail facility |
Y |
|
41 |
Conversion of audit trail files |
Y |
||
42 |
Updated-row columnizing facility |
Manage the updated-row columnizing facility |
N |
- Legend:
-
Y: Even if this command is executed after upgrading of the HADB server, the HADB server can be returned to the old version by using a backup of system data only.
N: If this command is executed after upgrading of the HADB server, the HADB server cannot be returned to the old version from a backup of system data only. In this case, a full backup is required to return the HADB server to the old version.
C: If operation on only the following is performed, the HADB server can be returned to the old version by using a backup of system data only.
-
SQL statement (SELECT statement, COMMIT statement, or ROLLBACK statement)
-
All adbsql subcommands
A backup of system data only must be created before the version upgrade.
-
For details about backing up the system data only when upgrading the HADB server, see Steps to take before upgrading the server version in the HADB Setup and Operation Guide.