DB2 10.5 for Linux, UNIX, and Windows

MON_GET_TABLESPACE_RANGE table function - Get information about table space ranges

The MON_GET_TABLESPACE_RANGE table function returns information about table space ranges. A single row is returned for each member.

Important: This routine is available starting with DB2® Cancun Release 10.5.0.4. If your database was created before you applied DB2 Cancun Release 10.5.0.4, then this routine becomes available after you apply DB2 Cancun Release 10.5.0.4 then issue the db2updv105 command. If your database was created before Version 10.5, upgrade to DB2 Cancun Release 10.5.0.4 or later pack to have this routine available.

Authorization

One of the following authorizations is required:
  • EXECUTE privilege on the routine
  • DATAACCESS authority
  • SQLADM authority
  • DBADM authority

Default PUBLIC privilege

None

Syntax

Read syntax diagramSkip visual syntax diagram
>>-MON_GET_TABLESPACE_RANGE--(--dbpartitionnum--)--------------><

The schema is SYSPROC.

Routine parameters

dbpartitionnum
An optional input argument of type INTEGER that specifies a valid database partition number. Specify -1 for the current database partition, or -2 for an aggregate of all active database partitions. An active database partition is a partition where the database is available for connection and use by applications. If the null value is specified, -1 is set implicitly.

Information returned

Usage notes

Use the MON_GET_TABLESPACE_RANGE table function in place of the SNAP_GET_TBSP_RANGE table function and SNAPTBSP_RANGE view, which have been deprecated.

Examples