- 浏览: 656181 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
HkEndless:
不好意思,请问这确定是回调机制吗。你的例子中只是将接口的实现类 ...
Spring CallBack回调机制介绍 -
hanmiao:
写的真乱啊,完全不知所云...
Java如何调用可执行文件和批处理命令 -
junia_1:
junia_1 写道 shock: ...
为什么要使用EJB -
junia_1:
shock:
为什么要使用EJB -
coollifer:
不错
SQL Server数据导入到Oracle中的方法
-- Create new undo tablespace with smaller size. - The value for undo_retention also has a role in growth of undo tablespace. If there is no way to get the undo space for a new transaction, then the undo space (retention) will be reused. But, if the datafiles for undo tablespace are set to auto extensible, it will not reuse the space. In such scenarios new transaction will allocate a space and your undo tablespace will start growing. - Is big really bad? Overhead on larger file/tablespaces can theoretically impact the database and the OS. With a small file, the OS would have to do minimal I/O. Oracle would be able to cache the whole file and there would be less segments to manage. With AUM you get bitmapped files and all its (space management) performance benefits-- (number of) undo segments are automatically managed and are not related to the size of the tablespace. With the bigger file/tablespace you will have other overhead--e.g. backup will take longer--but as far as the undo management there should be no performance impact just because the file/tbs is bigger. That said, it is important to monitor systems (e.g. with statspack) and watch for environment-specific issues. Applies to:
Oracle Server - Standard Edition - Version: 9.2.0.7 to 11.2.0.2 - Release: 9.2 to 11.2
Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 11.2.0.2 [Release: 9.2 to 11.2]
Information in this document applies to any platform.
Goal
Your production database has semiannual or annual purging programs which generate huge redo. Due to this requirement, your undo tablespace grows rapidly and occupies most of the space on file system.
The purging process is run only few times a year. So would not like to keep the huge undo datafile in your database throughout the year. You don't want to buy additional disks unnecessarily.
You have created an undo tablespace with datafiles as AUTOEXTEND ON MAXSIZE UNLIMITED to avoid Error: ORA 1651 : unable to extend save undo segment by <num> in tablespace <name>.
You have tried "alter database datafile .. resize" which always fails with Error: ORA 3297 : file contains <num> blocks of data beyond requested RESIZE value.
You want to shrink the datafile to utilize the disk space for other tablespaces or other purposes.
Solution
SQL> create undo tablespace UNDO_RBS1 datafile 'undorbs1.dbf' size 100m;
-- Set new tablespace as undo_tablespace
SQL> alter system set undo_tablespace=undo_rbs1;
-- Drop the old tablespace.
SQL> drop tablespace undo_rbs0 including contents.
NOTE: Dropping the old tablespace may give ORA-30013 : undo tablespace '%s' is currently in use. This error indicates you must wait for the undo tablespace to become unavailable. In other words, you must wait for existing transaction to commit or rollback. Also be aware that on some platforms, disk space is not freed to the OS until the database is restarted. The disk space will remain "allocated" from the OS perspective until the database restart.
Points to Consider:
发表评论
-
ORA-14551: 无法在查询中执行 DML 操作
2013-11-30 13:45 1358最近在调试一个带DML操作的函数时,一直不成功,在PL/SQ ... -
Oracle Recursive Calls 说明
2013-04-09 23:11 1486一. Recursive Calls 说明 在执行计划 ... -
consistent gets db block gets
2013-04-09 19:58 1430consistent gets :consistent_ge ... -
SQL Server数据导入到Oracle中的方法
2012-07-17 17:09 1589在我们使用SQL Server数据库的过程中,有时需要将SQL ... -
更改ORACLE归档路径及归档模式
2012-07-16 18:23 1860在ORACLE10g和11g版本,ORAC ... -
disable/enable validate/novalidate 的区别
2012-01-08 11:41 1225启用约束: enable( validate) :启用约束,创 ... -
linux用dd测试磁盘速度
2012-01-07 21:58 1006首先要了解两个特殊的设备: /dev/null:回收站、 ... -
在数据分布严重不均的列上使用绑定变量容易错过更好的执行计划
2012-01-07 20:49 1012在数据分布严重不均的列上使用绑定变量容易错过更好的执行计划,原 ... -
Oracle hash join
2012-01-07 17:00 946hash join是oracle里面一个非常强悍的功能 ... -
恢复被rm意外删除数据文件
2012-01-05 12:30 1246一.模拟数据文件删除 [oracle ... -
oracle 块延迟清除(delayed block cleanout)
2012-01-04 22:47 1356为了保证事务的回退和满足多用户的 CR , orac ... -
Oracle数据库SCN号详解
2012-01-04 19:25 1537Oracle数据库SCN号详解: 系统检查点scn(v$da ... -
oracle常见问题与解答
2012-01-03 20:22 16661.对于sql,有几种方法查看执行计划,每种方法有什么区别,对 ... -
Oracle虚拟私有数据库(VPD)概述及简单举例
2011-12-23 12:35 1542Oracle虚拟私有数据库(VPD)概述及简单举例 1、Ora ... -
alter table move跟shrink space的区别
2011-12-17 15:02 1275都知道alter table move 或shrink spa ... -
How to dump Oracle Data Block?
2011-12-16 15:22 994Often while doing instance tuni ... -
oracle索引的5种使用模式
2011-12-14 21:19 1076索引的使用对数据库的性能有巨大的影响。 共有五类不同的使用模式 ... -
HP Unix中的dba MLOCK
2011-12-14 19:14 2226最近在HP平台上遇到两次跟dba MLOCK权限相关的错误: ... -
NESTED LOOP、HASH JOIN、SORT MERGE JOIN
2011-12-13 23:18 1373表连接方式及使用场合 ... -
Oracle用户权限
2011-12-12 19:48 1502系统权限: 1、使用GRANT语句向用户赋予系统权限: ...
相关推荐
Shrink Undo表空间可以使用ALTER TABLESPACE命令来实现。例如: ALTER TABLESPACE undotbs1 SHRINK SPACE; 4. 释放过度占用的空间 释放过度占用的空间是指将Undo表空间的大小减少到合理的范围,以释放过度占用的...
datafile name of data file input number of units in input layer hidden number of units in hidden layer output number of units in output layer Use the -c option if you have a monochrome ...
The supported way to accomplish this in prior releases of the Oracle database was to export the data from the database on the old platform, create a new database on the new platform, and import the ...
select tablespace_name, file_id, file_name, round(bytes/(1024*1024),0) total_space from dba_data_files order by tablespace_name; 3、查看回滚段名称及大小 select segment_name, tablespace_name, r....
The advent of LSB 2.0 is revolutionary in that it allows ISVs to create "shrink-wrapped software" for the Linux platform much in the same way they already do for Windows. Written by the team that ...
How either the firmware developer chooses to implement the required elements or the OS developer chooses to make use of those interfaces and structures is an implementation decision left for the ...
但是,无论怎么收缩(Shrink)日志文件,空间就是不能释放,总是出现错误:Cannot shrink log file 2 (CNBlogsText_log) because of minimum log space required. 之前解决过类似的问题,也写过一篇博客-SQL Server ...
(UHF) method to detect and diagnose the insulation defect of high voltage electrical equipment. However, most existing denoising algorithms are unable to reduce various noises simultaneously. ...
You could place a wood texture on a cube to make the cube look like it is actually made of wood. The Texture sample project adds a banana peel texture to the cylinder created in tutorial 4. This ...
shrink_data_set 将数据集中的数据点数量减少到指定数量。 句法 X_shrunk = shrink_data_set(X,N) X_shrunk = shrink_data_set(X,N,'rows') X_shrunk = shrink_data_set(X,N,'columns') 描述 X_shrunk = ...
本文将深入探讨“shrink_zoom_bilinear.zip_bilinear shrink_zoom”这一程序,该程序专门用于实现图像的缩放操作,尤其是基于双线性插值的算法。 双线性插值是一种在二维空间中进行数据插值的方法,广泛应用于图像...
Suning Cloud Commerce is one of the largest privately owned ...We will share our story, experience and practice to enable such kind of big cloud and how to support them, best practise and lesson learn.
// 2001-DEC-06 - Thanks to Wang Haifeng for spotting a problem in one of the // assignment operators (for _bstr_t) that would cause compiler // errors when refcounting protection was turned ...
1.领域:matlab,Shrink小波变换算法 2.内容:基于Shrink小波变换的数据去噪可以设置硬阈值和软阈值+代码操作视频 3.用处:用于Shrink小波变换算法编程学习 4.指向人群:本硕博等教研学习使用 5.运行注意事项:...
标题“Taking the pain out of adding a horizontal scrollbar to a listbox”指向的就是这样一个问题:如何优雅地为列表框添加水平滚动条,以提升用户体验。这里我们将详细探讨这个主题,并提供一些实践技巧。 ...
WinMP3Shrink是一款专为音乐爱好者设计的MP3压缩软件,它可以帮助用户有效地减小音频文件的大小,尤其适用于那些存储空间有限或者希望节省网络传输时间的用户。这款工具的核心功能是通过降低音频质量来实现文件的...
PDF Shrink是一款专门针对PDF文件进行压缩的软件,它的主要功能是减小PDF文件的大小,以便于在办公环境中更方便地进行网络传输、存储或分享。PDF文件因其高质量的显示效果和丰富的交互性,被广泛应用于各种文档的...