본문 바로가기
Programming/DataBase

CREATE TABLESPACE & CREATE USER

by 막이 2014. 7. 13.

CREATE TABLESPACE [TABLESPACE DATA NAME]

DATAFILE 'D:\app\Administrator\oradata\orcl\[DATA FILE NAME].DBF' SIZE 1024M -- 경로변경가능

AUTOEXTEND ON NEXT 512M

EXTENT MANAGEMENT LOCAL

SEGMENT SPACE MANAGEMENT AUTO;

 

CREATE TABLESPACE [TABLESPACE INDEX NAME]

DATAFILE 'D:\app\Administrator\oradata\orcl\[INDEX FILE NAME].DBF' SIZE 1024M -- 경로변경가능

AUTOEXTEND ON NEXT 512M

SEGMENT SPACE MANAGEMENT AUTO;

 

CREATE USER [사용자계정] IDENTIFIED BY [계정비밀번호]

DEFAULT TABLESPACE [TABLESPACE DATA NAME]

TEMPORARY TABLESPACE temp;

 

ALTER USER [사용자계정] QUOTA UNLIMITED ON [TABLESPACE DATA NAME];

ALTER USER [사용자계정] QUOTA UNLIMITED ON TABLESPACE INDEX NAME];

 

GRANT connect, resource, dba (그외 권한 및 롤 들) TO [사용자계정]

 

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

[oracle] merge into  (0) 2014.09.04
oracle 11g 서버 설치방법  (0) 2014.08.01
[oracle] decode 함수  (0) 2014.04.04
CONNECT BY LEVEL  (0) 2014.03.27
[oracle] 날짜함수  (0) 2014.03.20