Db2 action commands
To execute a command, type the command in the Cmd column next to an appropriate item on a list. The following table lists the Db2 action commands:
Command | Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ACTIVATE | For a native SQL procedure, generates an SQL ALTER PROCEDURE ACTIVATE statement ACTIVATE is valid only for stored procedures in which ORIGIN is N. | ||||||||||||||||||||||
ALTER | Generates an SQL ALTER statement for the object | ||||||||||||||||||||||
BIND | Displays the Bind panels, from which you can perform the following tasks:
| ||||||||||||||||||||||
BINDCOPY | Binds all packages in a collection ID (CI) into a different CI, or binds all packages in a list into a single CI | ||||||||||||||||||||||
BINDDEPLOY | Displays the Bind Deploy Package panel, from which you can specify the locations to which you want to generate BIND commands If the locations or wildcard pattern that you specify do not match any locations in your SYSIBM.LOCATIONS table, the product does not generate any BIND DEPLOY commands. However, if the locations or wildcard pattern match more than one location, the product groups the commands for the selected packages by location name. For a native SQL procedure, the command generates a DSN BIND PACKAGE DEPLOY statement. BINDDEPLOY is valid only for packages in which TYPE is N. | ||||||||||||||||||||||
COMMENT | Displays a panel to generate SQL to create or replace a comment on an alias, table, distinct type, function, index, procedure, trigger, or view | ||||||||||||||||||||||
CONNECT | Enables you to remain in your current Catalog Manager session and access another Db2 subsystem on the same or another z/OS system | ||||||||||||||||||||||
COUNT | Executes an SQL COUNT(*) statement for an object and displays the number of rows in the object | ||||||||||||||||||||||
CREATE | Displays a panel from which you can input options to create an object If entered on a list line, CREATE works as a CREATE LIKE of the object. | ||||||||||||||||||||||
DB2COMMAND | Lists the Db2 commands that have been saved Enter DB2COMMAND PROMPT to display the same panel as the Db2 Commands action from the Catalog Manager Primary Menu. | ||||||||||||||||||||||
DCLGEN | Displays panels from which you can input options to create DSN DCLGEN commands | ||||||||||||||||||||||
DELETE | Builds an SQL DELETE template for a table or view, and invokes the ISPF editor to allow you to customize the template | ||||||||||||||||||||||
DIS DISPLAY | Displays the status of the selected object | ||||||||||||||||||||||
DISDATABASE | Displays the status of the selected database | ||||||||||||||||||||||
DISTHREAD | Displays active threads for the current subsystem | ||||||||||||||||||||||
DROP | Generates an SQL DROP statement for the specified object and displays the Confirm SQL panel From this panel, you can select actions and options, including the drop recovery option. When you issue the DROP command on the Pending DDL List panel, Catalog Manager generates the ALTER TABLESPACE DROP PENDING CHANGES statement. When you issue the DROP command on an advanced trigger with multiple versions, Catalog Manager generates the following command and drops only the specified version of the advanced trigger: ALTER schema.triggername TRIGGER DROP version | ||||||||||||||||||||||
DSNZPARM | Executes either the IBM SYSPROC.ADMIN_INFO_SYSPARM or SYSPROC.DSNWZP stored procedure and formats the information for display | ||||||||||||||||||||||
EXCHANGE | Exchanges data between two tables, one of which must be a clone of the other table | ||||||||||||||||||||||
FREE | Generates SQL to free versions of plans or packages depending on the option provided. The following table lists the parameters that specify the plan management (PLANMGMT) options for the FREE PACKAGE commands:
The following table lists parameters that limit the included plans or packages:
| ||||||||||||||||||||||
GRANT | Generates SQL to grant privileges | ||||||||||||||||||||||
INSERT | Builds an SQL INSERT statement template for a table or view, and invokes the ISPF editor to allow you to customize the statement | ||||||||||||||||||||||
LABEL | Generates an SQL LABEL command for the selected object | ||||||||||||||||||||||
QCONNECT | Displays the Connections List panel, which lists saved connections from the current SSID If no saved connections exist, QCONNECT displays the Change Access panel, from which you can type parameters for a connection. | ||||||||||||||||||||||
REBIND | Displays the Rebind panels, from which you can perform the following tasks:
| ||||||||||||||||||||||
REFRESH | When issued on a list line of a materialized query table (MQT), as REFRESH integer refreshes the data in the MQT integer represents the number that is associated with the SQL statement in the QUERYNO clause. | ||||||||||||||||||||||
REGENERATE | Regenerates the data in a view or an index REGENERATE also generates an ALTER PROCEDURE REGENERATE VERSION statement for a native SQL procedure. REGENERATE is valid only for stored procedures in which ORIGIN is N. | ||||||||||||||||||||||
RENAME | Displays a panel to input a new table, index, or column name and generate RENAME SQL | ||||||||||||||||||||||
REVOKE | Displays panels from which you can input options to revoke privileges | ||||||||||||||||||||||
SEE | Allows you to modify Db2 special registers | ||||||||||||||||||||||
SELECT | Generates an SQL SELECT statement for the specified table or view, and displays a confirmation panel | ||||||||||||||||||||||
START | Executes the DB2 START DATABASE command From a table space list, START CLONE executes the START DATABASE command for a clone table. | ||||||||||||||||||||||
STOP | Executes the DB2 STOP DATABASE command From a table space list, STOP CLONE executes the STOP DATABASE command for a clone table. | ||||||||||||||||||||||
TRANSFER | Transfers ownership of a supported object (database, index, storage group, table space, table, or view) from a user to a ROLE or another user | ||||||||||||||||||||||
TRUNCATE | Deletes all rows for a base or global temporary table | ||||||||||||||||||||||
UPDATE | Builds an SQL UPDATE statement template for a table or view, and invokes the ISPF editor for you to customize the statement |