eygle.com   eygle.com
eygle.com  
 

« Oracle OTN Lounge的活动安排 | Blog首页 | 一则简单的磁盘的iops测试 »

记录一下Drop表空间的速度

作者:eygle |【转载时请务必以超链接形式标明文章和作者信息及本声明
链接:

上次为了测试,创建了一个大表空间,这个表空间有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 - Production

SQL> select sum(bytes)/1024/1024/1024 from dba_data_files
2 where tablespace_name='EYGLE';

SUM(BYTES)/1024/1024/1024
-------------------------
28.1152344

SQL> set timing on
SQL> drop tablespace eygle including contents and datafiles;

表空间已丢弃。

已用时间: 00: 00: 14.01

可见建设复杂,毁坏却极其容易。

-The End-

By eygle on 2007-07-28 09:56 | Comments (6) | Posted to FAQ | Edit |Pageviews:

相关文章 随机文章
  • DBA警世录:无知者不可无畏
  • How to maintain Oracle10g Recyclebin?
  • 杭州景美 阿里情深 诺顿害人
    收购仁科后 甲骨文首度公布产品计划和路线图
    回顾成都的Oracle 11g发布会
    首届杰出数据库工程师颁奖典礼上的照片
    Metalink的替代访问站点
    网上相关主题:
    Google

    留言 (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

    发表留言:



    Remember Me?
    (输入验证码后方可评论,谢谢支持)



    CopyRight © 2004 eygle.com, All rights reserved.