Administering databases with built-in routines
You can easily administer databases in your applications with use of database built-in routines.
About this task
- Run a database command through an SQL interface
- Modify configuration parameters
- Manage packages
- Run snapshot-related tasks
The ADMIN_CMD command along with
other built-in routines provide comprehensive administration support.
ADMIN_CMDfor running database commands through a SQL interfaceYou can use the
ADMIN_CMDroutine to execute database commands through an SQL interface. TheADMIN_CMDroutine accepts a database command with appropriate options and values as a string argument. TheADMIN_CMDroutine runs the database command that is contained in the argument string and returns the results in a tabular or scalar format that can be used as part of a larger query or operation.- Built-in administrative routines
- Database built-in routines can be used from the CLP or database applications wherever invocation of the specified routine is supported. Examples of built-in routines include the following routines:
ADMIN_CMDMON_GET_CONNECTIONMON_GET_DATABASEMON_GET_TABLEREBIND_ROUTINE_PACKAGE
The
ADMIN_CMDroutine and the other built-in routines are available for use if you have the SYSPROC, SYSFUN, and SYSTOOLS schema names included in the CURRENT PATH special register value, which they are by default.For examples of a built-in routine usage, refer to the built-in routine specific reference documentation.