반응형
계정: hr
현재 오라클 서버에 접속한 사용자: hr
-- 현재 오라클 서버에 접속한 사용자(HR) 소유 테이블에 대한 정보를 조회
select *
from user_tables;
select table_name, tablespace_name
from user_tables
where table_name = 'EMPLOYEES';
select *
from dba_data_files; --권한없음. 관리자만 볼수잇음.
-- 제약명조회
select constraint_name, constraint_type, table_name
from user_constraints
where table_name = 'EMPLOYEES'
;
-- 제약조건 조회(컬럼까지)
select *
from user_cons_columns
where table_name = 'EMPLOYEES'
;
'W01. IT 개발 > w16. [개발-DB]' 카테고리의 다른 글
[설치] WINDOW8 (64bit) + Oracle11gXe (64bit) + TOAD11 사용 (0) | 2015.08.28 |
---|---|
[설치] Oracle_xe_11g_64bit + Oracle Instant client 32bit 설치 + toad 사용 (0) | 2015.08.28 |
[설치] [20140701] oracle xe_64bit 설치, 확인, Oracle http 포트변경 (0) | 2015.08.28 |
[설치] 64비트 윈도우에 오렌지설치시 알아둘점 (0) | 2015.08.24 |
[hr계정] employees 테이블 문제 몇개 (0) | 2015.08.17 |