Oracle迁移索引
2012-08-28 13:56
148 查看
第一条,clob的索引别乱动
ALTER TABLE table_a MOVE TABLESPACE Tbs_tb
LOB (ATTRIBUTE) STORE AS(TABLESPACE tbs_lob);
快速指南:
alter index schema.index_1 rebuild tablespace TBS_IDX;
批量的话可以写个sql,例如:
select 'alter index '||a.owner||'.'||a.index_name||' rebuild tablespace TBS_IDX;',
a.owner,a.index_name,a.tablespace_name from dba_indexes a
where a.Owner='USER_A'
order by a.owner,a.table_name;
本文出自 “机动战士高达Oracle” 博客,请务必保留此出处http://gundam.blog.51cto.com/1845787/975265
ALTER TABLE table_a MOVE TABLESPACE Tbs_tb
LOB (ATTRIBUTE) STORE AS(TABLESPACE tbs_lob);
快速指南:
alter index schema.index_1 rebuild tablespace TBS_IDX;
批量的话可以写个sql,例如:
select 'alter index '||a.owner||'.'||a.index_name||' rebuild tablespace TBS_IDX;',
a.owner,a.index_name,a.tablespace_name from dba_indexes a
where a.Owner='USER_A'
order by a.owner,a.table_name;
本文出自 “机动战士高达Oracle” 博客,请务必保留此出处http://gundam.blog.51cto.com/1845787/975265
相关文章推荐
- oracle 10G 表空间迁移 索引需要重建
- Oracle 迁移与审计相关表和索引的表空间
- oracle 索引迁移,释放磁盘空间
- oracle 10G 表空间迁移 索引需要重建
- ORACLE迁移中的一些经验(三)批量导出index 建索引、用户、权限等语句
- 【Oracle】-【ROWNUM与索引】-索引对ROWNUM检索的影响
- oracle移动表或移动索引
- Oracle删除表分区导致索引失效的处理
- oracle中序列 视图 索引 的 使用
- Oracle分区索引什么情况下会重建
- Oracle性能分析5:数据访问方式之索引结构和扫描方式介绍
- oracle避免限制索引
- Oracle外键不加索引引起死锁示例
- 转:深入学习Oracle分区表及分区索引
- oracle 迁移到 mysql(结构和数据)
- oracle迁移数据文件位置
- Oracle创建全局分区索引
- oracle order by 字段不能为空 为空速度慢 不走索引
- Oracle 迁移数据库到 mysql
- oracle编程入门笔记2015-01-18--执行计划中的索引扫描方式说明