摘要: 使用表压缩来节省空间并提高查询性能 很多决策支持系统通常都涉及到存储于几个特大表中的大量数据。随着这些系统的发展,对磁盘空间的需求也在快速增长。在当今的环境下,存储着数百TB(太字节)的数据仓库已经变得越来越普遍。 为了帮助处理磁盘容量问题,在Oracle9i第2版中引入了表压缩特性,它可以极大地减少数据库表所需要的磁盘空间数量,并在某些情况下提高查询性能。 在本文中,我将向你说明表压缩是如... 阅读全文
posted @ 2008-01-17 10:23 小草 阅读(3421) 评论(2) 推荐(0) 编辑
摘要: 以下转自网络: Oracle和DB2都支持分区表,但是我们得知道什么样的表适合使用分区表技术,Oracle的官方建议是超过2G的Table就要使用分区表。 下面来总结一下,各种数据库中如何获得这些大小信息: Oracle 10G中: 查询出当前用户的表所占用的空间大小,并按大小进行降序排列: Select Segment_Name,Sum(bytes)/1024/1024 From Use... 阅读全文
posted @ 2008-01-17 10:18 小草 阅读(1014) 评论(0) 推荐(0) 编辑
摘要: The following is a list of valid parameters when the to_char function is used to convert a date to a string. These parameters can be used in many combinations. Parameter Explanation YEAR Year, spelled out YYYY 4-digit year YYY YY Y Last 3, 2, or 1 digit(s) of year. IYY IY I Last 3, 2, or 1 digit(s) of ISO year. IYYY 4-digit year based on the ISO standard Q Quarter of year (1, 2, 3, 4; JAN-MAR = 1). MM Month (01-12; JAN = 01). MON A 阅读全文
posted @ 2008-01-17 09:52 小草 阅读(47818) 评论(1) 推荐(2) 编辑
Google+