반응형
P.677 참조 내용
- DBLS(데이터베이스 ls 또는 Windows 사용자의 데이터베이스 dir)은 THOMAS KYTE의 핵심 스크립트 중의 하나라고 한다.
select object_type, object_name,
decode(status,'INVALID', '*', '') status,
decode(object_type,'TABLE', (select tablespace_name from user_tables where table_name = object_name),
'TABLE PARTITION', (select tablespace_name from user_tab_partitions where partition_name = subobject_name),
'INDEX', (select tablespace_name from user_indexes where index_name = object_name),
'INDEX PARTITION', (select tablespace_name from user_ind_partitions where partition_name = subobject_name),
'LOB', (select tablespace_name
from user_segments
where segment_name = object_name), null)
tablespace_name from user_objects;
반응형
'개발 및 관리 > Oracle 9i, 10g, 11g, 12c, 19c' 카테고리의 다른 글
Static vs. Dynamic SQL (0) | 2012.02.13 |
---|---|
ORA-27100 Shared Memory Realm Already Exist (0) | 2011.11.16 |
Oracle Day in Seoul, 삼성동 인터컨티넨탈 호텔 - 2011년 11월 16일(수) (0) | 2011.11.16 |
DBMS 패키지 혹은 export를 이용한 DDL 추출하기 - 테이블, DB링크, 테이블스페이스 등등 (0) | 2011.11.12 |
Oracle upgrade path (0) | 2011.10.28 |