17.00 - 17.05 - The Ferret Utility and Equivalent Macros - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Database Administration

Advanced SQL Engine
Teradata Database
Release Number
June 2020
English (United States)
Last Update

You can also use the system utility, Ferret, which is started via the Database Console, to see space usage. Use the ShowSpace command to view space usage (perm, spool, and temporary) at the system level. Use the ShowBlocks command to view the allocation of permanent space at the table and subtable level.

The ShowBlocks command can provide a level of detail that is not available with DBC.TableSize. For example, ShowBlocks can answer “How much perm space is used for a secondary index?” ShowBlocks also provides subtable space information. You can multiply the typical block size times the number of blocks to determine subtable space usage.

Vantage includes a set of File System Information macros that retrieve and display information similar Ferret SHOW commands. Because this information is presented in regular database tables, it can be easier to share and use for further processing. Permissions to create and view this information are also easier to manage using standard SQL GRANT and REVOKE privilege statements. For more information about these macros, see "File System Information Macros and Functions" in Teradata Vantage™ - SQL Operators and User-Defined Functions, B035-1210.