---
title: "删除和创建表空间及用户-使用这些语句够用啦"
author: "陈碧滔"
date: "2011-11-26T23:11:36Z"
tags: []
categories: ["数据库"]
slug: "untitled"
draft: false
lastmod: "2011-11-26T23:11:36Z"
id: 1279108
url: "https://cbt.iteye.com/blog/1279108"
---

DROP TABLESPACE cbtpro INCLUDING CONTENTS AND DATAFILES;  
DROP TABLESPACE cbtpro\_index0 INCLUDING CONTENTS AND DATAFILES;  
/

create tablespace cbtpro  
datafile '/oradata/cbtpro/cbtpro.dbf'  
size 512m  
autoextend on  
next 100m MAXSIZE UNLIMITED  
extent management local;  
/

create tablespace cbtpro\_index0  
datafile '/oradata/cbtpro/cbtpro\_index0.dbf'  
size 512m  
autoextend on  
next 100m MAXSIZE UNLIMITED  
extent management local;  
/

create user cbtpro  
identified by cbtpro  
default tablespace cbtpro  
temporary tablespace TEMP  
profile DEFAULT;