eygle.com   eygle.com
eygle.com eygle
eygle.com  
 

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

记录一下Drop表空间的速度
modb.pro

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


历史上的今天...
    >> 2020-07-28文章:
    >> 2011-07-28文章:
    >> 2010-07-28文章:
    >> 2008-07-28文章:
    >> 2006-07-28文章:
           Windows Xp重新安装备忘
    >> 2005-07-28文章:
           瑞典游记-预告篇

By eygle on 2007-07-28 09:56 | Comments (6) | FAQ | 1518 |

6 Comments

哈哈.
2周前我删除了3.6T的一个库上的全部应用表空间,每个表空间在200G左右,实际数据在3.2T多一些.用了近2小时才做完!

什么版本的?DMT还是LMT?

这个世界建设都是慢于毁坏的,因为建设是有序的,而毁坏是无序的。

这个主要取决于你表空间的文件个数

你要是有一个4,5十G的SGA, 删除起来就没有那么快了.

创建涉及到文件的初始化,删除只要修改元数据,速度自然相差巨大


CopyRight © 2004~2020 云和恩墨,成就未来!, All rights reserved.
数据恢复·紧急救援·性能优化 云和恩墨 24x7 热线电话:400-600-8755 业务咨询:010-59007017-7040 or 7037 业务合作: marketing@enmotech.com