【翻译自mos文章】在不使用parfile的情况下,exportorimport含有
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了【翻译自mos文章】在不使用parfile的情况下,exportorimport含有,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3019字,纯文字阅读大概需要5分钟。
内容图文
![【翻译自mos文章】在不使用parfile的情况下,exportorimport含有](/upload/InfoBanner/zyjiaocheng/563/c3b0b5f5eac048edb596bb771f8c64d8.jpg)
在不使用par file的情况下,export or import 含有大小写表名的表 参考原文: How to Export or Import Case Sensitive Tables Without Using a Par File (Doc ID 1622134.1)1 适用于: Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.4
在不使用par file的情况下,export or import 含有大小写表名的表参考原文:
How to Export or Import Case Sensitive Tables Without Using a Par File (Doc ID 1622134.1)1
适用于:
Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.4 [Release 10.2 to 11.2]
Information in this document applies to any platform.
目标:
在不使用par file的情况下,export or import 含有大小写表名的表
解决方案:
含有大小写表名的表可以使用带有par file的expdp ,但是,从命令行进行exp的话,所需要的双引号需要转义(escaped)
下面的例子说明了使用含有大小写表名的表的方法。
建立测试表:
connect / as sysdba
create use test identified by test;
grant connect, resource, dba to test;
create table test."TEst" as select * from dba_users;
用下面的命令导出表:
expdp test/test directory=DATA_PUMP_DIR dumpfile=a1.dmp tables=TEST."TEst"
expdp test/test directory=DATA_PUMP_DIR dumpfile=a1.dmp tables=TEST."TEst"
Export: Release 11.2.0.2.0 - Production on Sat Feb 8 00:17:17 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "TEST"."SYS_EXPORT_TABLE_01": test/******** directory=DATA_PUMP_DIR dumpfile=a1.dmp tables=TEST.TEst
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 0 KB
ORA-39166: Object TEST.TEST was not found.>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> it says table not found.
ORA-31655: no data or metadata objects selected for job
Job "TEST"."SYS_EXPORT_TABLE_01" completed with 2 error(s) at 00:19:05
为了成功的export出表,你必须转义双引号。
expdp test/test directory=DATA_PUMP_DIR dumpfile=a.dmp tables=test.\"TEst\"
Export: Release 11.2.0.2.0 - Production on Sat Feb 8 00:04:13 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "TEST"."SYS_EXPORT_TABLE_01": test/******** directory=DATA_PUMP_DIR dumpfile=a.dmp tables=AMIT."TEst"
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported "TEST"."TEst" 16.10 KB 51 rows
Master table "TEST"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
/home/oracle/app/oracle/admin/orcl/dpdump/a.dmp
Job "TEST"."SYS_EXPORT_TABLE_01" successfully completed at 00:05:35
内容总结
以上是互联网集市为您收集整理的【翻译自mos文章】在不使用parfile的情况下,exportorimport含有全部内容,希望文章能够帮你解决【翻译自mos文章】在不使用parfile的情况下,exportorimport含有所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。