ITPub博客

首页 > 数据库 > Oracle > 表空间小写导致ORA-31655错误

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

原创 Oracle 作者:parknkjun 时间:2016-12-21 11:07:19 0 删除 编辑
使用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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-02-11

  • 博文量
    113
  • 访问量
    508859