본문 바로가기
DataBase/Oracle

사용자 생성 및 권한부여

by 언덕너머에 2015. 2. 15.

- 사용자 계정 생성(계정: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;

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

'DataBase > Oracle' 카테고리의 다른 글

sequence 생성  (0) 2015.02.26
Database Configuration Assistant로 Database 생성하기  (0) 2015.02.24
Net Configuration Assistant 설정  (0) 2015.02.20
START WITH ... CONNECT BY 절  (0) 2014.05.19