---
title: "create tablespace"
author: "houkai2009"
date: "2011-07-02T10:33:35Z"
tags: []
categories: ["Web前端"]
slug: "create-tablespace"
draft: false
lastmod: "2011-07-02T10:33:35Z"
id: 1112943
url: "https://j2ee2009.iteye.com/blog/1112943"
---

create temporary tablespace temp\_space\_d08  
tempfile 'temp\_space\_d08.dbf'  
size 10m  
autoextend on  
next 5m  
maxsize 1024m;

create tablespace space\_d08  
datafile 'space\_d08.dbf'   --datefile  
size 10m  
autoextend on  
next 5m  
maxsize 1024m;

create user user\_d08 identified by user\_d08  
default tablespace space\_d08  
temporary tablespace temp\_space\_d08;

grant connect,resource to user\_d08;

drop user user\_d08 cascade;

drop tablespace space\_d08 including contents and datafiles cascade constraints;  
drop tablespace temp\_space\_d08 including contents and datafiles cascade constraints;