Chinaunix首页 | 论坛 | 博客
  • 博客访问: 192709
  • 博文数量: 33
  • 博客积分: 2020
  • 博客等级: 大尉
  • 技术积分: 380
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-20 14:56
文章分类

全部博文(33)

文章存档

2010年(26)

2009年(7)

我的朋友

分类: Oracle

2010-06-08 18:07:47

同事加了/dev/raw/raw155逻辑卷,随后发现出现大量坏块。具体处理过程如下:
 
1.exp 做备份
2. 迁移数据,到TBS_BI_ODS07
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100524      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100525      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100526      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100527      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100528      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100529      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100530      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100531      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100601      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100602      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100603      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100604      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100605      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100606      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100607      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100524      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100525      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100526      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100527      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100528      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100529      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100530      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100531      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100601      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100602      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100603      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100604      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100605      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100606      move  tablespace tbs_bi_ods07;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100607      move  tablespace tbs_bi_ods07;
alter table statuser.ODS_HTTP_ACCESS_LOG        partition   P20100603_L12  move  tablespace tbs_bi_ods07;
alter table statuser.ODS_HTTP_ACCESS_LOG        partition   P20100604_L12  move  tablespace tbs_bi_ods07;
alter table statuser.ODS_HTTP_ACCESS_LOG        partition   P20100605_L12  move  tablespace tbs_bi_ods07;
alter table statuser.ODS_HTTP_ACCESS_LOG        partition   P20100606_L12  move  tablespace tbs_bi_ods07;
alter table statuser.ODS_HTTP_ACCESS_LOG        partition   P20100607_L12  move  tablespace tbs_bi_ods07;

3.检测 select * from dba_extents where file=86 视图是否还存在对象,如果不存在,进行下一步,对数据文件进行删除。
 
4.alter tablespace TBS_BI_ODS09 drop datafile 86;

5.再进行操作,进行回迁。
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100524      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100525      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100526      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100527      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100528      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100529      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100530      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100531      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100601      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100602      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100603      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100604      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100605      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100606      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_DT      partition   P20100607      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100524      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100525      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100526      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100527      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100528      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100529      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100530      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100531      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100601      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100602      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100603      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100604      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100605      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100606      move  tablespace tbs_bi_ods09;
alter table statuser.DM_SVC_BIZ_CHANNEL_UA_DT    partition   P20100607      move  tablespace tbs_bi_ods09;
alter table statuser.ODS_HTTP_ACCESS_LOG        partition   P20100603_L12  move  tablespace tbs_bi_ods09;
alter table statuser.ODS_HTTP_ACCESS_LOG        partition   P20100604_L12  move  tablespace tbs_bi_ods09;
alter table statuser.ODS_HTTP_ACCESS_LOG        partition   P20100605_L12  move  tablespace tbs_bi_ods09;
alter table statuser.ODS_HTTP_ACCESS_LOG        partition   P20100606_L12  move  tablespace tbs_bi_ods09;
alter table statuser.ODS_HTTP_ACCESS_LOG        partition   P20100607_L12  move  tablespace tbs_bi_ods09;

6.对ODS_HTTP_ACCESS_LOG,DM_SVC_BIZ_CHANNEL_UA_DT,DM_SVC_BIZ_CHANNEL_DT上的索引,进行检查
阅读(1766) | 评论(0) | 转发(0) |
0

上一篇:转贴 ORA-08104

下一篇:find

给主人留下些什么吧!~~