|
오라클 user 셋팅
1) tablespace 생성
SQL> create tablespace nanun01
datafile '/opt/oracle/oradata/ORA920/nanun01.dbf' SIZE 1000M
AUTOEXTEND ON;
2) temporary tablespace 생성
SQL> create temporary TABLESPACE nanuntemp
tempfile '/opt/oracle/oradata/ORA920/nanuntemp.dbf' size 500M
AUTOEXTEND N;
3) user 생성
SQL> create user scott
identified by tiger99
default tablespace nanune01
temporary tablespace nanunetemp
quota unlimited on nanune01
password expire; <--- 데이터베이스 로그인시 pw 재설정
account {lock/unlock} <--- 계정 잠금과 풀때
4) 패스워드 바꾸기
alter user tom_01 identified by 2JAW3HZ;
SQL> grant connect, resource, imp_full_database to scott;
## tablespace 크기 변경하기
테이블 스페이스의 크기를 늘려볼까요?
SQL> alter tablespace test add datafile \'/opt/oracle/oradata/ORA920/nanun02.dbf\' size 500K;
SQL> alter database datafile '/home/human/oradata/isaya01.dbf' autoextend on;
SQL> alter database datafile '/home/human/oradata/isaya01.dbf' resize 200M;
4) tablespace 와 datafile의 삭제
SQL> drop tablespace users including contents and datafiles cascade constraint;
5) orapwd 파일 생성
orapwd file=/opt/oracle/product/9.2.0/dbs/orapwHUMAN password=oracle entries=5
|