---
title: "清理回滚段表空间"
author: "samttsch"
date: "2011-08-24T15:19:25Z"
tags: []
categories: ["数据库"]
slug: "untitled"
draft: false
lastmod: "2011-08-24T15:19:25Z"
id: 1156930
url: "https://samttsch.iteye.com/blog/1156930"
---

创建一个新的回滚段（如果不行，则先将tablespace=''设置为空，删除掉旧的回滚段）
create undo tablespace undotbs1 datafile '/opt/oracle/app/oradata/undotbs1.dbf' size 10m reuse autoextend on;

切换undo表空间
alter system set undo_tablespace=undotbs1 scope=both;

删除旧的表空间
drop tablespace undotbs2 including contents and datafiles;