表空间小写导致ORA-31655错误

使用expdp导出表空间时遇到 ORA-31655: no data or metadata objects selected for job错误
[oracle@jzh5 ~]$ expdp jzh/jzh tablespaces=test directory=dir dumpfile=test.dmp
Export: Release 11.2.0.3.0 - Production on Wed Dec 21 03:10:46 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
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
Starting "JZH"."SYS_EXPORT_TABLESPACE_01":  jzh/******** tablespaces=test directory=dir dumpfile=test.dmp 
Estimate in progress using BLOCKS method...
Total estimation using BLOCKS method: 0 KB
ORA-31655: no data or metadata objects selected for job
Job "JZH"."SYS_EXPORT_TABLESPACE_01" completed with 1 error(s) at 03:10:47

检查表空间发现test表空间是小写:
SYS@jzh>select tablespace_name from dba_data_files;
TABLESPACE_NAME
------------------------------
USERS
UNDOTBS1
SYSAUX
SYSTEM
EXAMPLE
test
重命名表空间导出就可以了
SYS@jzh>alter tablespace "test" rename to test;
Tablespace altered.
SYS@jzh>select tablespace_name from dba_data_files;
TABLESPACE_NAME
------------------------------
USERS
UNDOTBS1
SYSAUX
SYSTEM
EXAMPLE
TEST

[oracle@jzh5 ~]$ expdp jzh/jzh tablespaces=test directory=dir dumpfile=test.dmp
Export: Release 11.2.0.3.0 - Production on Wed Dec 21 03:20:03 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
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
Starting "JZH"."SYS_EXPORT_TABLESPACE_01":  jzh/******** tablespaces=test directory=dir dumpfile=test.dmp 
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 9 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported "JZH"."T1"                                  7.236 MB   74798 rows
Master table "JZH"."SYS_EXPORT_TABLESPACE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for JZH.SYS_EXPORT_TABLESPACE_01 is:
  /home/oracle/test.dmp
Job "JZH"."SYS_EXPORT_TABLESPACE_01" successfully completed at 03:20:10





来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10271187/viewspace-2131105/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10271187/viewspace-2131105/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值