nugawiki

./categories/server

Oracle 테이블/컴럼/코멘트 조회 모음

업데이트 2026-07-21 조회수

Oracle 테이블/컬럼/코멘트 조회 모음

전체 테이블 목록

select * from all_all_tables;
select * from dba_tables;
select * from all_objects where object_type = 'TABLE';
-- 접속 계정 테이블만
select * from tabs;
select * from user_objects where object_type = 'TABLE';
select * from user_tables;
  • dba_, all_ 계열은 권한 필요, 없으면 user_* 계열 사용

테이블 코멘트 조회 (어떤 테이블을 써야 할지 모를 때 유용, WHERE절에 LIKE로 검색)

select * from all_tab_comments;
select * from user_tab_comments;

전체 컬럼 조회 (특정 컬럼을 쓰는 테이블 찾을 때: WHERE column_name = '컬럼명')

select * from cols;
select * from all_tab_columns;
select * from user_tab_columns;

컬럼 코멘트 조회

select * from all_col_comments;
select * from user_col_comments;

./comments