Database/Oracle
계정 및 테이블 스페이스 생성
pu928
2017. 5. 16. 15:48
반응형
- tablespace 확인
select tablespace_name, bytes, file_name from dba_data_files;
- tablespace 생성
create tablespace [new table name] datafile '[tablespace name].dbf' size 500M
- user 생성
create user [user name]
identified by [password]
default tablespace [new tablespace name]
quota unlimited on [new tablespace name];
* 12c에서 ORA-65096: invalid common user or role name 발생 시 user name 앞에 "c##" 을 붙인다. 또는 "alter session set "_ORACLE_SCRIPT"=true;" 를 실행하여 예전 방식으로 사용가능하도록 한다.
예) user name 이 "test" 인 경우 "c##test"로 입력한다.
- user 제거
drop user [user name] cascade;
- user password 변경
alter user [user name] identified by [password];
- 사용자 권한 부여
grant connect, resource to [user name];
반응형