使用ORACLE_DATAPUMP出错!

[复制链接]
查看11 | 回复6 | 2014-2-18 16:43:09 | 显示全部楼层 |阅读模式
根据资料上说可以通过ORACLE_DATAPUMP把表中的数据写入目标文件中,具体代码如下:
create or replace directory target_dir as 'd:\target';
create table tgt_product
organization external (type oracle_datapump
default directory target_dir
location ('tgt_product.dmp'))
as
select * from stg_product;
结果报错:
ora-30657

peration not supported on external organized table
不知道是什么原因,请高手指导,谢谢!
回复

使用道具 举报

千问 | 2014-2-18 16:43:09 | 显示全部楼层
你的数据库版本是?
回复

使用道具 举报

千问 | 2014-2-18 16:43:09 | 显示全部楼层
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
PL/SQL Release 9.0.1.1.1 - Production
CORE
9.0.1.1.1
Production
TNS for 32-bit Windows: Version 9.0.1.1.0 - Production
NLSRTL Version 9.0.1.1.1 - Production
回复

使用道具 举报

千问 | 2014-2-18 16:43:09 | 显示全部楼层
try
grant all on directory target_dirto current_user;
回复

使用道具 举报

千问 | 2014-2-18 16:43:09 | 显示全部楼层
我是以sys的身份来创建的,sys的权限应该很大了
回复

使用道具 举报

千问 | 2014-2-18 16:43:09 | 显示全部楼层
好像要 10G 才支持吧
回复

使用道具 举报

千问 | 2014-2-18 16:43:09 | 显示全部楼层
那我再弱问一下,问什么可以在9i里使用ORACLE_LOADER?oracle_datapump和ORACLE_LOADER又有什么区别呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行