Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1184479
  • 博文数量: 398
  • 博客积分: 10110
  • 博客等级: 上将
  • 技术积分: 4055
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-23 20:01
个人简介

新博客http://www.cnblogs.com/zhjh256 欢迎访问

文章分类

全部博文(398)

文章存档

2012年(1)

2011年(41)

2010年(16)

2009年(98)

2008年(142)

2007年(100)

我的朋友

分类: Oracle

2007-12-23 21:39:01

rem F:\oracle\ora92\rdbms\admin\utlchain.sql
spool on
analyze table employee
list chained row into chained;
rem create temp table
create table temp_chained
as select * from employee where rowid in (select head_rowid from chained_rows);
rem delete chained_rows
delete from employee where rowid in (select head_rowid from chained_rows);
rem insert those rows
insert into employee select * from temp_chained;
drop table temp_chained;
rem reanalyze the table
analyze table employee compute statistics;
 
select chain_cnt from user_tables where table_name='employee';
注:Oracle不会识别出具体式链接或者迁移行。。。
阅读(508) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~