Oracle “dba_tables”介绍

  DBA_TABLES describes all relational tables in the database. Its columns are the same as those in ALL_TABLES. To gather statistics for this view, use the ANALYZE SQL statement.

ALL_TABLES describes the relational tables accessible to the current user. To gather statistics for this view, use the ANALYZE SQL statement.

Related Views

  • DBA_TABLES describes all relational tables in the database.
  • USER_TABLES describes the relational tables owned by the current user. This view does not display the OWNER column.

Note:

Columns marked with an asterisk (*) are populated only if you collect statistics on the table with the ANALYZE statement or theDBMS_STATS package.

Column Datatype NULL Description
OWNER VARCHAR2(30) NOT NULL Owner of the table
TABLE_NAME VARCHAR2(30) NOT NULL Name of the table
TABLESPACE_NAME VARCHAR2(30)   Name of the tablespace containing the table; null for partitioned, temporary, and index-organized tables
CLUSTER_NAME VARCHAR2(30)   Name of the cluster, if any, to which the table belongs
IOT_NAME VARCHAR2(30)   Name of the index-organized table, if any, to which the overflow or mapping table entry belongs. If the IOT_TYPE column is not null, then this column contains the base table name.
STATUS VARCHAR2(8)   If a previous DROP TABLE operation failed, indicates whether the table is unusable (UNUSABLE) or valid (VALID)
PCT_FREE NUMBER   Minimum percentage of free space in a block; null for partitioned tables
PCT_USED NUMBER   Minimum percentage of used space in a block; null for partitioned tables
INI_TRANS NUMBER   Initial number of transactions; null for partitioned tables
MAX_TRANS NUMBER   Maximum number of transactions; null for partitioned tables
INITIAL_EXTENT NUMBER   Size of the initial extent (in bytes); null for partitioned tables
NEXT_EXTENT NUMBER   Size of secondary extents (in bytes); null for partitioned tables
MIN_EXTENTS NUMBER   Minimum number of extents allowed in the segment; null for partitioned tables
MAX_EXTENTS NUMBER   Maximum number of extents allowed in the segment; null for partitioned tables
PCT_INCREASE NUMBER   Percentage increase in extent size; null for partitioned tables
FREELISTS NUMBER   Number of process freelists allocated to the segment; null for partitioned tables
FREELIST_GROUPS NUMBER   Number of freelist groups allocated to the segment; null for partitioned tables
LOGGING VARCHAR2(3)   Logging attribute; NULL for partitioned tables
BACKED_UP VARCHAR2(1)   Has table been backed up since last change
NUM_ROWS* NUMBER   Number of rows in the table
BLOCKS* NUMBER   Number of used data blocks in the table
EMPTY_BLOCKS* NUMBER   Number of empty (never used) data blocks in the table
AVG_SPACE* NUMBER   Average amount of free space, in bytes, in a data block allocated to the table
CHAIN_CNT* NUMBER   Number of rows in the table that are chained from one data block to another, or which have migrated to a new block, requiring a link to preserve the old ROWID
AVG_ROW_LEN* NUMBER   Average length of a row in the table (in bytes)
AVG_SPACE_FREELIST _BLOCKS NUMBER   Average freespace of all blocks on a freelist
NUM_FREELIST_BLOCKS NUMBER   Number of blocks on the freelist
DEGREE VARCHAR2(10)   Number of threads per instance for scanning the table
INSTANCES VARCHAR2(10)   Number of instances across which the table is to be scanned
CACHE VARCHAR2(5)   Indicates whether the table is to be cached in the buffer cache (Y) or not (N)
TABLE_LOCK VARCHAR2(8)   Indicates whether table locking is enabled (ENABLED) or disabled (DISABLED)
SAMPLE_SIZE NUMBER   Sample size used in analyzing this table
LAST_ANALYZED DATE   Date on which this table was most recently analyzed
PARTITIONED VARCHAR2(3)   Indicates whether this table is partitioned. Set to YES if it is partitioned.
IOT_TYPE VARCHAR2(12)   If this is an index-organized table, then IOT_TYPE is IOTIOT_OVERFLOW, or IOT_MAPPING. If this is not an index-organized table, then IOT_TYPEis NULL.
TEMPORARY VARCHAR2(1)   Can the current session only see data that it place in this object itself?
SECONDARY VARCHAR2(1)   Whether the trigger is a secondary object created by theODCIIndexCreate method of the Oracle Data Cartridge (Y |N)
NESTED VARCHAR2(3)   Indicates whether the table is a nested table (YES) or not (NO)
BUFFER_POOL VARCHAR2(7)   The default buffer pool for the object. NULL for partitioned tables
ROW_MOVEMENT VARCHAR2(8)   Whether partitioned row movement is enabled or disabled
GLOBAL_STATS VARCHAR2(3)   For partitioned tables, indicates whether statistics were collected for the table as a whole (YES) or were estimated from statistics on underlying partitions and subpartitions (NO)
USER_STATS VARCHAR2(3)   Indicates whether statistics were entered directly by the user (YES) or not (NO)
DURATION VARCHAR2(15)   Indicates the duration of a temporary table:

  • SYS$SESSION: the rows are preserved for the duration of the session
  • SYS$TRANSACTION: the rows are deleted after COMMIT

Null for a permanent table

SKIP_CORRUPT VARCHAR2(8)   Whether the Oracle Database ignores blocks marked corrupt during table and index scans (ENABLED) or raises an error (DISABLED). To enable this feature, run the DBMS_REPAIR.SKIP_CORRUPT_BLOCKSprocedure.
MONITORING VARCHAR2(3)   Whether the table has the MONITORING attribute set
CLUSTER_OWNER VARCHAR2(30)   Owner of the cluster, if any, to which the table belongs
DEPENDENCIES VARCHAR2(8)   Indicates whether row-level dependency tracking is enabled (ENABLED) or disabled (DISABLED)
COMPRESSION VARCHAR2(8)   Indicates whether table compression is enabled (ENABLED) or not (DISABLED); null for partitioned tables
DROPPED VARCHAR2(3)   Indicates whether the table has been dropped and is in the recycle bin (YES) or not (NO); null for partitioned tables

时间: 2024-08-12 14:06:53

Oracle “dba_tables”介绍的相关文章

【体系结构】Oracle参数介绍

[体系结构]Oracle参数介绍 1  BLOG文档结构图     2  前言部分 2.1  导读和注意事项 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O(∩_∩)O~: ① Oracle中的各种参数介绍及其查询方法 ② Oracle中V$PARAMETER及V$PARAMETER2的区别 ③ 隐含参数的查询.重置.清除 ④ 会话参数和实例参数的查询 ⑤ 静态参数和动态参数.延迟参数 ⑥ V$PARAMETER视图的每列含义(重点) Tips: ①

Oracle 后台进程介绍

一 进程分类: 1.服务器进程(server process): 根据客户请求完成工作.如接收和处理应用发送的SQL语句 2.后台进程(background process): 随数据库而启动,用于完成各种维护任务.如将块写到磁盘(DBWn). 维护在线重做日志(LGWR).清理异常终止的进程等. 3.从属进程(slave process):类似于后台进程,不过它们要代表后台进程或服务器进程完成一些额外工作. 二 主要讲一下后台进程: 来浏览一下主要进程: SQL> select paddr,

Oracle Dataguard 介绍

Oracle Dataguard 介绍 一.  DataGuard的基本原理 当某次事务处理对生产数据库中的数据作出更改时,Oracle数据库将在一个联机重做日志文件中记录此次更改.在DataGuard中可以配置写日志的这个过程,除了把日志记录到本地的联机日志文件和归档日志文件中,还可以通过网络,把日志信息发送到远程的从(standby)数据库服务器上.这个备用日志文件写入过程可以是实时.同步的,以实现零数据丢失(最大保护模式maximum protection):也可以是异步的,以减少对网络带

oracle regexp_like介绍和例子

oracle regexp_like介绍和例子 学习了:http://www.cnblogs.com/einyboy/archive/2012/08/01/2617606.html ORACLE中的支持正则表达式的函数主要有下面四个: 1,REGEXP_LIKE :与LIKE的功能相似 2,REGEXP_INSTR :与INSTR的功能相似 3,REGEXP_SUBSTR :与SUBSTR的功能相似 4,REGEXP_REPLACE :与REPLACE的功能相似 它们在用法上与Oracle SQ

Oracle 存储过程介绍

存储过程 1 CREATE OR REPLACE PROCEDURE 存储过程名 2 IS 3 BEGIN 4 NULL; 5 END; 行1: CREATE OR REPLACE PROCEDURE 是一个SQL语句通知Oracle数据库去创建一个叫做skeleton存储过程, 如果存在就覆盖它; 行2: IS关键词表明后面将跟随一个PL/SQL体. 行3: BEGIN关键词表明PL/SQL体的开始. 行4: NULL PL/SQL语句表明什么事都不做,这句不能删去,因为PL/SQL体中至少需

Oracle AWR 介绍(AWR -- Automatic Workload Repository)

摘要:Oracle AWR 介绍(AWR -- Automatic Workload Repository) Oracle?AWR?介绍(AWR?--?Automatic?Workload?Repository) 数据库自动诊断监视工具(Automatic?Database?Diagnostic?Monitor?:ADDM)和SQL优化建议工具(SQL?Tuning?Advisor:?STA).这两个工具的结合使用,能使DBA节省大量优化时间,也大大减少了系统宕机的危险.简单点说,ADDM就是收

Oracle JET简单入门(一)Oracle JET介绍

Oracle JET (Oracle Javascript Extension Toolkit)是一款 Oracle 的 JavaScript 拓展工具包.简单来说 Oracle JET 是一个一堆好用的前端工具结合体. Oracle JET 文档链接  http://docs.oracle.com/middleware/jet310/jet/developer/toc.htm Oracle JET支持 Model-View-ViewModel(MVVM)架构设计模式. 在 MVVM 中,Mod

Oracle组成介绍

Oracle Database 11g是一些特殊文件的集合,这些文件是用数据库配置助手创建的,然后用OEM Grid Control完成相关工作.这些数据库文件是通过一组共享内存进程来进行访问的,这组进程称为“实例”.Oracle数据库组成Oracle的控制文件是二进制文件,包含有关支持Oracle Database 11g的各种文件的信息.包含的信息描述了数据库文件的名称.位置和大小.(1)物理组成Oracle可以采用如下4种文件系统机制机制存储数据:操作系统文件系统:宿主操作系统的文件系统.

Oracle的介绍和oracle的安装

数据库 数据库是数据存储的仓库(database),通过表结构来存储数据. 关系型数据库 非关系型数据库(C) 非关系型数据库中以文档(document)来存储数据,没有明显的表结构. 就商品而言 {“iphone”, 5899.00,0.65kg,{红色,黑色,蓝色,白色},{32G,64G,128G},{公开版.保修版,联通版}} {“iphone”, 5899.00,0.65kg,{23.8寸,,27寸,28寸} }  数据库在开发过程中的位置 Oracle 介绍 oracle 目前版本1