« Oracle OTN Lounge的活动安排 | Blog首页 | 一则简单的磁盘的iops测试 »
记录一下Drop表空间的速度
作者:eygle |【转载时请以超链接形式标明文章出处和作者信息及本声明】链接:http://www.eygle.com/archives/2007/07/drop_tablespace_speed.html
上次为了测试,创建了一个大表空间,这个表空间有28G,创建时极其耗时,今天需要空间,删除这个表空间,速度非常的快:
C:\>sqlplus "/ as sysdba"SQL*Plus: Release 9.2.0.6.0 - Production on 星期六 7月 28 09:54:30 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.连接到:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - ProductionSQL> select sum(bytes)/1024/1024/1024 from dba_data_files
2 where tablespace_name='EYGLE';SUM(BYTES)/1024/1024/1024
-------------------------
28.1152344SQL> set timing on
SQL> drop tablespace eygle including contents and datafiles;表空间已丢弃。
已用时间: 00: 00: 14.01
可见建设复杂,毁坏却极其容易。
-The End-
历史上的今天...
>> 2008-07-28文章:
>> 2006-07-28文章:
>> 2005-07-28文章:
------
这篇 【记录一下Drop表空间的速度】来自 eygle.com | CSDN网摘| del.icio.us|Google订阅 | 鲜果订阅 | 抓虾订阅
By eygle on 2007-07-28 09:56 | Comments (6) | Posted to FAQ | Edit |
| 相关文章 | 随机文章 |
|
|
Google与DBA Use Nid to Change dbname-NID的用法 使用Oracle的外部表查询警告日志文件 这世界说大就大 西塘游记之一 |
留言 (6)
哈哈.
2周前我删除了3.6T的一个库上的全部应用表空间,每个表空间在200G左右,实际数据在3.2T多一些.用了近2小时才做完!
Posted by: Thomas zhang at July 28, 2007 12:54 PM
什么版本的?DMT还是LMT?
Posted by: eygle at July 28, 2007 1:20 PM
这个世界建设都是慢于毁坏的,因为建设是有序的,而毁坏是无序的。
Posted by: leeecho at July 28, 2007 2:24 PM
这个主要取决于你表空间的文件个数
Posted by: Eagle Fan at July 28, 2007 6:49 PM
你要是有一个4,5十G的SGA, 删除起来就没有那么快了.
Posted by: anysql at July 28, 2007 8:35 PM
创建涉及到文件的初始化,删除只要修改元数据,速度自然相差巨大
Posted by: NinGoo at July 28, 2007 8:43 PM
