티스토리 뷰
1.테이블
select object_name from user_objects where object_type = 'TABLE';
2.뷰
select object_name from user_objects where object_type = 'VIEW';
3.시퀀스
select object_name from user_objects where object_type = 'SEQUENCE';
4.인덱스
select object_name from user_objects where object_type = 'INDEX';
5.프록시져
select object_name from USER_PROCEDURES;
6.트리거
select trigger_name from user_triggers;
7.패키지
select object_name from user_objects where object_type = 'PACKAGE';
8.롤
select GRANTED_ROLE from user_role_privs;
9.테이블스패이스
select DEFAULT_TABLESPACE, TEMPORARY_TABLESPACE from user_users;
10.시노늄
select * from user_synonyms where TABLE_OWNER = user;
11.함수
select object_name from user_objects where object_type = 'FUNCTION';
부가정보뷰에서정보를보여주기위한쿼리..
1.테이블
select TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_LENGTH, NULLABLE from USER_TAB_COLUMNS where table_name = '%s';
2.뷰
select VIEW_NAME, TEXT_LENGTH, VIEW_TYPE_OWNER from USER_VIEWS where VIEW_NAME = '%s';
3.시퀀스
select SEQUENCE_NAME, MIN_VALUE, MAX_VALUE, INCREMENT_BY, CYCLE_FLAG, ORDER_FLAG, CACHE_SIZE, LAST_NUMBER from USER_SEQUENCES where SEQUENCE_NAME = '%s';
4.인덱스
select INDEX_NAME, TABLE_NAME, COLUMN_NAME, COLUMN_POSITION, DESCEND from user_ind_columns where INDEX_NAME = '%s';
5.프로시져
select PROCEDURE_NAME, AGGREGATE, PIPELINED, PARALLEL, INTERFACE, DETERMINISTIC, AUTHID from USER_PROCEDURES where PROCEDURE_NAME = '%s';
6.트리거
select TRIGGER_NAME, TRIGGER_TYPE, TRIGGERING_EVENT, TABLE_OWNER, TABLE_NAME, COLUMN_NAME from USER_TRIGGERS where TRIGGER_NAME = '%s'
7.롤
select GRANTED_ROLE, ADMIN_OPTION, DEFAULT_ROLE, OS_GRANTED from user_role_privs;
8.시노늄
select SYNONYM_NAME, TABLE_OWNER, TABLE_NAME, DB_LINK from USER_SYNONYMS where SYNONYM_NAME = '%s'
'공부 > SQL' 카테고리의 다른 글
테이블 정의서출력용 sql (0) | 2017.01.19 |
---|---|
DBObject (0) | 2016.08.08 |
오라클 With절 (0) | 2016.05.02 |
오라클 sys , system 암호(패스워드) 분실시 (0) | 2016.05.02 |
View에 Comment달기 (0) | 2016.05.02 |
- Total
- Today
- Yesterday
- toad
- oracle sys password
- 비틀즈
- 에펠탑
- Manchester
- oracle system password
- 쉘파일
- 애비로드
- count over partition by
- toad History
- oracle
- oracle system
- oracle sys
- view comment
- oracle sql with
- 배낭여행
- London
- 런던
- 오라클 sql 힌트
- 햄리스
- 타워브릿지
- 버거앤랍스터
- sample data
- 쉘파일 실행
- 유럽여행
- 파리
- 맨체스터
- toad 옵션
- 런던아이
- oracle sql hint
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |