|
¿À¶óŬ 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
|