请教怎样交换分区,即怎样使用exchange命令?

kentenjoy 2006-06-08 03:55:31
有两个表
create table sales(
invoice_no number,
sale_year int not null,
sale_month int not null,
sale_day int not null)
partition by range(sale_year)
(partition sales_q1 values less than(2002)
tablespace taba );

create table sales(
invoice_no number,
sale_year int not null,
sale_month int not null,
sale_day int not null) tablespace tabb;

alter table sales exchange partition sales_q1 with table sales1;
报错为
ERROR at line 1:
ORA-14097: column type or size mismatch in ALTER TABLE EXCHANGE PARTITION
请高手指教,谢谢
...全文
203 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
kentenjoy 2006-06-13
  • 打赏
  • 举报
回复
up
liuyi8903 2006-06-13
  • 打赏
  • 举报
回复
没看到你有sales1表啊.
如:
alter table t
exchange partition part2004
with table t3
kentenjoy 2006-06-11
  • 打赏
  • 举报
回复
up

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧