| |
 |
|
DBA_TAB_COLUMNS view tips
Oracle Tips by Burleson Consulting |
DBA_TAB_COLUMNS
<< Return to the index
Oracle 11g makes the following comments about the DBA_TAB_COLUMNS table: "Columns of user's tables, views and clusters"
Related notes on DBA_TAB_COLUMNS:
Column description of the DBA_TAB_COLUMNS view:OWNERNo comments exist for the OWNER column of the DBA_TAB_COLUMNS table. TABLE_NAMEDescription of DBA_TAB_COLUMNS.TABLE_NAME: "Table, view or cluster name" COLUMN_NAMEDescription of DBA_TAB_COLUMNS.COLUMN_NAME: "Column name" DATA_TYPEDescription of DBA_TAB_COLUMNS.DATA_TYPE: "Datatype of the column" DATA_TYPE_MODDescription of DBA_TAB_COLUMNS.DATA_TYPE_MOD: "Datatype modifier of the column" DATA_TYPE_OWNERDescription of DBA_TAB_COLUMNS.DATA_TYPE_OWNER: "Owner of the datatype of the column" DATA_LENGTHDescription of DBA_TAB_COLUMNS.DATA_LENGTH: "Length of the column in bytes" DATA_PRECISIONDescription of DBA_TAB_COLUMNS.DATA_PRECISION: "Length: decimal digits (NUMBER) or binary digits (FLOAT)" DATA_SCALEDescription of DBA_TAB_COLUMNS.DATA_SCALE: "Digits to right of decimal point in a number" NULLABLEDescription of DBA_TAB_COLUMNS.NULLABLE: "Does column allow NULL values?" COLUMN_IDDescription of DBA_TAB_COLUMNS.COLUMN_ID: "Sequence number of the column as created" DEFAULT_LENGTHDescription of DBA_TAB_COLUMNS.DEFAULT_LENGTH: "Length of default value for the column" DATA_DEFAULTDescription of DBA_TAB_COLUMNS.DATA_DEFAULT: "Default value for the column" NUM_DISTINCTDescription of DBA_TAB_COLUMNS.NUM_DISTINCT: "The number of distinct values in the column" LOW_VALUEDescription of DBA_TAB_COLUMNS.LOW_VALUE: "The low value in the column" HIGH_VALUEDescription of DBA_TAB_COLUMNS.HIGH_VALUE: "The high value in the column" DENSITYDescription of DBA_TAB_COLUMNS.DENSITY: "The density of the column" NUM_NULLSDescription of DBA_TAB_COLUMNS.NUM_NULLS: "The number of nulls in the column" NUM_BUCKETSDescription of DBA_TAB_COLUMNS.NUM_BUCKETS: "The number of buckets in histogram for the column" LAST_ANALYZEDDescription of DBA_TAB_COLUMNS.LAST_ANALYZED: "The date of the most recent time this column was analyzed" SAMPLE_SIZEDescription of DBA_TAB_COLUMNS.SAMPLE_SIZE: "The sample size used in analyzing this column" CHARACTER_SET_NAMEDescription of DBA_TAB_COLUMNS.CHARACTER_SET_NAME: "Character set name" CHAR_COL_DECL_LENGTHDescription of DBA_TAB_COLUMNS.CHAR_COL_DECL_LENGTH: "Declaration length of character type column" GLOBAL_STATSDescription of DBA_TAB_COLUMNS.GLOBAL_STATS: "Are the statistics calculated without merging underlying partitions?" USER_STATSDescription of DBA_TAB_COLUMNS.USER_STATS: "Were the statistics entered directly by the user?" AVG_COL_LENDescription of DBA_TAB_COLUMNS.AVG_COL_LEN: "The average length of the column in bytes" CHAR_LENGTHDescription of DBA_TAB_COLUMNS.CHAR_LENGTH: "The maximum length of the column in characters" CHAR_USEDDescription of DBA_TAB_COLUMNS.CHAR_USED: "C if the width was specified in characters, B if in bytes" V80_FMT_IMAGEDescription of DBA_TAB_COLUMNS.V80_FMT_IMAGE: "Is column data in 8.0 image format?" DATA_UPGRADEDDescription of DBA_TAB_COLUMNS.DATA_UPGRADED: "Has column data been upgraded to the latest type version format?" HISTOGRAMNo comments exist for the HISTOGRAM column of the DBA_TAB_COLUMNS table.
DBA_TAB_COLUMNS View SourceOracle 11g's data dictionary defines the DBA_TAB_COLUMNS view using the following source query:
select OWNER, TABLE_NAME,
COLUMN_NAME, DATA_TYPE, DATA_TYPE_MOD, DATA_TYPE_OWNER,
DATA_LENGTH, DATA_PRECISION, DATA_SCALE, NULLABLE, COLUMN_ID,
DEFAULT_LENGTH, DATA_DEFAULT, NUM_DISTINCT, LOW_VALUE, HIGH_VALUE,
DENSITY, NUM_NULLS, NUM_BUCKETS, LAST_ANALYZED, SAMPLE_SIZE,
CHARACTER_SET_NAME, CHAR_COL_DECL_LENGTH,
GLOBAL_STATS, USER_STATS, AVG_COL_LEN, CHAR_LENGTH, CHAR_USED,
V80_FMT_IMAGE, DATA_UPGRADED, HISTOGRAM
from DBA_TAB_COLS
where HIDDEN_COLUMN = 'NO'
 |
If you like Oracle tuning, see the book "Oracle
Tuning: The Definitive Reference", with 950 pages of tuning tips and
scripts.
You can buy it direct from the publisher for 30%-off and get
instant access to the code depot of Oracle tuning scripts. |
 |
 |
|
Download your Oracle scripts now:
www.oracle-script.com
The
definitive Oracle Script collection for every Oracle professional DBA
|
|