上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 42 下一页
  2009年2月2日
摘要: 如果你管理的Oracle数据库下某些应用项目有大量的修改删除操作, 数据索引是需要周期性的重建的. 它不仅可以提高查询性能, 还能增加索引表空间空闲空间大小. 在ORACLE里大量删除记录后, 表和索引里占用的数据块空间并没有释放. 重建索引可以释放已删除记录索引占用的数据块空间. 转移数据, 重命名的方法可以重新组织表里的数据. 下面是可以按ORACLE用户名生成重建索引的SQL脚本:... 阅读全文
posted @ 2009-02-02 14:04 一江水 阅读(901) 评论(0) 推荐(0) 编辑
摘要: 本文向各位阐述Oracle的Latch机制,Latch,用金山词霸翻译是门插栓,闭锁,专业术语叫锁存器,我开始接触时就不大明白为什么不写Lock,不都是锁吗?只是翻译不同而以?研究过后才知道两者有很大的区别。 Latch是Oracle提供的轻量级锁资源,他用于快速,短时间的锁定资源,防止多个并发进程同时修改访问某个共享资源,他只工作在内存中,我们可以不大准确的说,内存中资源的锁叫lat... 阅读全文
posted @ 2009-02-02 10:47 一江水 阅读(856) 评论(0) 推荐(0) 编辑
  2009年2月1日
摘要: analyze table compute statistics = analyze table compute statistics for table for all indexes for all columns; 比analyze table compute statistics for table for all indexes for all indexed columns 分析了更多... 阅读全文
posted @ 2009-02-01 23:09 一江水 阅读(7153) 评论(0) 推荐(0) 编辑
摘要: validate structure和compute statistics的區別? analyze index index1 validate structure: analyze index index1 compute statistics: 在分析索引的時候,一般會用到以上二個命令,那么這二個命令是用來干嘛呢? analyze index index1 validate structur... 阅读全文
posted @ 2009-02-01 23:08 一江水 阅读(1325) 评论(0) 推荐(0) 编辑
摘要: 什么样的index需要rebuild? 当一个table经常进行DML操作时,它的索引会存在许多block空间的浪费,这是因为index block中的记录只有在全部表示为不可用时, block 才能被加入到freelist中去被重新利用。所以我们需要寻找那些浪费空间很严重的index。 方法是: 1) analyze index index_name validate structur... 阅读全文
posted @ 2009-02-01 23:06 一江水 阅读(883) 评论(0) 推荐(0) 编辑
摘要: 如下v$lock.type是10.1的,但大多数应该适应于10.1以下版本,特别是9.2版本。记录一下,以备后用了。 The following table shows the 138 lock types that are reported by V$LOCK_TYPE in Oracle 10.1: ... 阅读全文
posted @ 2009-02-01 00:58 一江水 阅读(4175) 评论(0) 推荐(0) 编辑
摘要: 在oracle中可以使用alter table table_name shrink space收缩表,使用shrink有两个前提条件: 1、表必须启用row movement 2、表段所在表空间的段空间管理(segment space management)必须为auto 实验如下: --建立一个segment space management auto表空间 SQL> create ta... 阅读全文
posted @ 2009-02-01 00:16 一江水 阅读(6423) 评论(0) 推荐(0) 编辑
摘要: 一般表里有碎片我们都采用alter table table_name move tablespace_name,或者exp,drop table table_name,imp的2种方式10G给我们其他的方法.下面我来试一吧 C:\Documents and Settings\Administrator>sqlplus greatfinish/finish SQL*Plus: Release ... 阅读全文
posted @ 2009-02-01 00:10 一江水 阅读(6008) 评论(0) 推荐(0) 编辑
摘要: shrinks a LOB segment http://www.itpub.net/thread-1034679-1-1.html 在oracle10G中,如果表的内容被删除后想回收使用空间和降低HWM,我们可以通过shrink的方式在线完成. 那么如果表中有LOB字段时,也可以做吗?答案是肯定的,当然可以. 我们可以通过两种方法来做.一种是可以通过普通的alter table shrink ... 阅读全文
posted @ 2009-02-01 00:06 一江水 阅读(1317) 评论(0) 推荐(0) 编辑
  2009年1月31日
摘要: http://www.itpub.net/viewthread.php?tid=154304&extra=page%3D14%26amp%3Bfilter%3Dtype%26amp%3Btypeid%3D1 以下是本人对sql load 的一些运用总结 不足之处还多包涵 sqlldr userid=lgone/tiger control=a.ctl LOAD DATA I... 阅读全文
posted @ 2009-01-31 21:47 一江水 阅读(874) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 42 下一页