DataBase/Oracle

사용자 생성 및 권한부여

언덕너머에 2015. 2. 15. 13:59

- 사용자 계정 생성(계정:scott, 패스워드:tiger)

create user scott identified by tiger account unlock;

 

- 계정에 권한 부여

grant connect, resource to scott;

 : connect는 데이타베이스 접속 권한이며, resource는 테이블 생성 권한

 

grant create view to scott;

 : view 생성 권한

 

grant drop any view to scott;

 : view 삭제 권한

 

drop user scott;

 : 사용자 삭제

 

drop user scott cascade;

 : 사용자 삭제(객체가 포함되어 있는 경우)