SOFTMOA TECHNOLOGY

[ oracle ] tablespace 테이블 스페이스 생성,삭제,

소프트모아가 정리한 기술 기록입니다.

Contents
작성일 2016. 01. 22.

1. 테이블스페이스 생성

CREATE TABLESPACE 테이블스페이스명

DATAFILE '/oradata/orcl/테이블스페이스명.dbf' 

SIZE 100M autoExtend on next 100M;


2. TEMP 테이블스페이스 생성

CREATE TEMPORARY TABLESPACE TEMP테이블스페이스명

TEMPFILE '/oradata/orcl/TEMP테이블스페이스명.dbf'  

SIZE 100M  autoExtend on next 100M;


3. 테이블스페이스 삭제

drop tablespace 테이블스페이스명

including contents and datafiles

cascade constraints;


3. 유저 생성
create user admin identified by "admin1111"
default tablespace MANAGER
temporary tablespace MANAGERTEMP;


4. 권한주기

grant connect to admin;

grant resource to admin;
grant connect, resource, create view, create procedure, create sequence  to admin;


 -- 테이블스페이스 정보 조회
select * from dba_data_files; 
select * from dba_tablespaces;


Share this

Database

Have a questions?

견적 및 기술문의

mobile : 010-7931-4813

Contact Form