Oracle11G的EXP命令导出出错

导出数据库时的报错日志:

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user YPST_SCM_DEV 
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user YPST_SCM_DEV 
About to export YPST_SCM_DEV's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export YPST_SCM_DEV's tables via Conventional Path ...
. . exporting table                         AF_JOB          8 rows exported
. . exporting table                   AF_JOB_PARAM         45 rows exported
. . exporting table                AF_TIMER_DEFINE          8 rows exported
. . exporting table                   AF_TIMER_LOG          0 rows exported
. . exporting table                CD_BILL_NO_RULE        272 rows exported
. . exporting table               CD_COLOR_CONTROL          0 rows exported

. . exporting table           CD_WH_QC_ITEM_DETAIL
EXP-00003: no storage definition found for segment(0, 0)
. . exporting table           CD_WH_QC_ITEM_HEADER
EXP-00003: no storage definition found for segment(0, 0)

EXP-00003: no storage definition found for segment(0, 0)
. . exporting table                EDI_EB_CURRENCY
EXP-00003: no storage definition found for segment(0, 0)
. . exporting table                EDI_EB_CUSTOMER
EXP-00003: no storage definition found for segment(0, 0)
. . exporting table                EDI_EB_FEE_HEAD
EXP-00003: no storage definition found for segment(0, 0)
. . exporting table                    EDI_EF_BILL
EXP-00003: no storage definition found for segment(0, 0)
. . exporting table               EDI_EF_ORDER_FEE
EXP-00003: no storage definition found for segment(0, 0)
. . exporting table            EDI_EF_RECEIVE_BILL
EXP-00003: no storage definition found for segment(0, 0)
. . exporting table         EDI_EF_WRITEOFF_DETAIL
EXP-00003: no storage definition found for segment(0, 0)
. . exporting table              EDI_ES_DEPARTMENT
EXP-00003: no storage definition found for segment(0, 0)
. . exporting table                    EDI_ES_USER
EXP-00003: no storage definition found for segment(0, 0)

. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully with warnings.

数据库的版本:

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

PL/SQL Release 11.2.0.3.0 - Production

CORE 11.2.0.3.0 Production

TNS for Linux: Version 11.2.0.3.0 - Production

NLSRTL Version 11.2.0.3.0 - Production


原因:

11G中有个新特性,当表无数据时,不分配segment,以节省空间导致在用EXP 导出时,空表不能导出

解决方法:

set heading off; 

   set echo off; 

   set feedback off; 

   set termout on; 

   spool D:\allocate.sql; 

   Select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0; 

    spool off; 


   --执行D:\allocate.sql,命令如下: 

   @ D:\allocate.sql; 


PS:本人是菜鸟,有错误误导新人的话,还望大神指正。


转载于:https://my.oschina.net/valsong/blog/509962

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值