IT/데이터베이스

ORACLE 전체 테이블 검색

데모버전 2019. 4. 15. 18:04
반응형

전체 테이블 검색

  1. 현재 사용자가 엑세스 할 수 있는 관계형 테이블 (ALL_TABLES)
SELECT *
  FROM ALL_TABLES 
 WHERE TABLE_NAME = '테이블명';
  1. 데이터베이스의 모든 관계형 테이블 (DBA_TABLES )
SELECT *
  FROM DBA_TABLES  
 WHERE TABLE_NAME = '테이블명';
  1. 현재 사용자가 소유한 관계형 테이블 (USER_TABLES )
SELECT *
  FROM USER_TABLES  
 WHERE TABLE_NAME = '테이블명';
  1. 관련 속성

    OWNER : Owner of the table
    TABLE_NAME : Name of the table
    TABLESPACE_NAME : Name of the tablespace containing the table; NULL for partitioned, temporary, and index-organized tables
    CLUSTER_NAME : Name of the cluster, if any, to which the table belongs
    IOT_NAME : 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 : If a previous DROP TABLE operation failed, indicates whether the table is unusable (UNUSABLE) or valid (VALID)

  1. 참고
    ORACLE 공식 문서
반응형