--①
CREATE USER PREV_HW -- 생성
IDENTIFIED BY ORCL; -- 비번
--②
GRANT CREATE SESSION TO PREV_HW; -- 권한 부여
GRANT SELECT ON EMP TO PREV_HW;
GRANT SELECT ON DEPT TO PREV_HW;
GRANT SELECT ON SALGRADE TO PREV_HW;
REVOKE SELECT ON SALGRADE FROM PREV_HW;
728x90
반응형
'Programming > Oracle SQL' 카테고리의 다른 글
CONSTRAINT(제약 조건) (0) | 2023.08.28 |
---|---|
실무에서 많이 쓰는 VIEW (0) | 2023.08.28 |
DDL (Data Definition Language) (0) | 2023.08.28 |
IMPORT and EXPORT DATA, 끄적임 (0) | 2023.08.25 |
DML and DCL (Data Manipulation, Control Language) (0) | 2023.08.25 |