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

Database Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
rgu1556127906220.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1093
lifecycle
previous
Product Category
Teradata Vantage™

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.