Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1973656
  • 博文数量: 148
  • 博客积分: 7697
  • 博客等级: 少将
  • 技术积分: 3071
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-10 23:04
个人简介

MiBDP,数据开发、项目团队、数据应用和产品在路上,金融保险、互联网网游、电商、新零售行业、大数据和AI在路上。对数仓、模型、ETL、数据产品应用了解。DTCC 2013演讲嘉宾,曾做过两款大获好评的数据产品平台。知识星球ID:35863277

文章分类
文章存档

2020年(1)

2019年(2)

2017年(2)

2016年(5)

2015年(1)

2014年(1)

2013年(6)

2012年(5)

2011年(24)

2010年(28)

2009年(1)

2008年(6)

2007年(30)

2006年(36)

分类: Oracle

2011-03-29 13:44:04

oracle分区表在把相应的分区及对应的表空间与数据文件删除后要注意原来的索引需要重新rebuild。

alter table paysys_log_oper_login_log drop partition PAYSYS_LOGIN_012011_JX3;
alter table paysys_log_oper_logout_log drop partition PAYSYS_LOGOUT_012011_JX3;
alter table paysys_log_oper_logout_log drop partition PAYSYS_LOGOUT_022011_JX3;

--空闲的表空间
select 'drop tablespace ' || tablespace_name ||
       ' including contents and datafiles;'
  from dba_tablespaces
 where not exists (select 12
          from dba_segments
         where dba_segments.tablespace_name =
               dba_tablespaces.tablespace_name);

drop tablespace LOGIN_012011_JX3_IND including contents and datafiles;
drop tablespace LOGOUT_022011_JX3 including contents and datafiles;
drop tablespace LOGOUT_022011_JX3_IND including contents and datafiles;
drop tablespace LOGOUT_012011_JX3 including contents and datafiles;
drop tablespace LOGOUT_012011_JX3_IND including contents and datafiles;
drop tablespace LOGIN_012011_JX3 including contents and datafiles;

ALTER INDEX paysys_log_oper_login_log_idx 
REBUILD
NOCOMPRESS
PARALLEL 4
NOLOGGING
TABLESPACE PAYSYS_LOGIN_IXTBS
STORAGE (
         INITIAL     64K
        )

阅读(3445) | 评论(0) | 转发(0) |
0

上一篇:Linux init详解

下一篇:oracle insert方式

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