oracle exp导出分区表,INTERVAL类型分区表不支持EXP导出

11G引入了INTERVAL分区,但是INTERVAL分区却不支持EXP导出,只支持DATA PUMP的导出。

SQL> select * from v$version;

BANNER

--------------------------------------------------------------------------------

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

PL/SQL Release 11.2.0.1.0 - Production

CORE    11.2.0.1.0      Production

TNS for Linux: Version 11.2.0.1.0 - Production

NLSRTL Version 11.2.0.1.0 - Production

SQL> conn scott/oracle

Connected.

Session altered.

SQL> DROP TABLE T PURGE;

Table dropped.

SQL> CREATE TABLE T(ID INT,NAME VARCHAR2(20))

2  PARTITION BY RANGE(ID)

3  (

4  PARTITION P1 VALUES LESS THAN(10),

5  PARTITION P2 VALUES LESS THAN(20));

Table created.

SQL> insert into t values(1);

insert into t values(1)

*

ERROR at line 1:

ORA-00947: not enough values

SQL> insert into t values(1,'a');

1 row created.

SQL> insert into t values(11,'b');

1 row created.

SQL> commit;

Commit complete.

SQL> ! exp scott/oracle file=t.dmp tables=t

Export: Release 11.2.0.1.0 - Production on Sat Nov 5 15:10:26 2011

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export done in US7ASCII character set and AL16UTF16 NCHAR character set

server uses AL32UTF8 character set (possible charset conversion)

About to export specified tables via Conventional Path ...

. . exporting table                              T

. . exporting partition                             P1          1 rows exported

. . exporting partition                             P2          1 rows exported

Export terminated successfully without warnings.

SQL> alter table t set inverval (10);

alter table t set inverval (10)

*

ERROR at line 1:

ORA-02000: missing UNUSED keyword

SQL> alter table t set interval(10);

Table altered.

SQL> ! exp scott/oracle file=t.dmp tables=t

Export: Release 11.2.0.1.0 - Production on Sat Nov 5 15:10:59 2011

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export done in US7ASCII character set and AL16UTF16 NCHAR character set

server uses AL32UTF8 character set (possible charset conversion)

About to export specified tables via Conventional Path ...

EXP-00113: Feature New Composite Partitioning Method is unsupported. Table SCOTT.T could not be exported

Export terminated successfully with warnings.

可以看到一旦表设置为INTERVAL分区,采用EXP就不能导出了。

SQL> ! oerr exp 113

00113, 00000, "Feature %s is unsupported. %s %s.%s could not be exported"

// *Cause:  Export does not contain the required support for this feature.

// *Action: Use Oracle Data Pump Utility

看来ORACLE也在逐步废弃EXP导出工具了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值