【翻译自mos文章】在不使用par file的情况下,export or import 含有大小写表名的表

在不使用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文章】在不使用par file的情况下,export or import 含有大小写表名的表

时间: 2024-10-21 07:32:14

【翻译自mos文章】在不使用par file的情况下,export or import 含有大小写表名的表的相关文章

【翻译自mos文章】使用Process Monitor 来跟踪windows下的系统调用(system calls)

参考自: Tracing windows system calls via Process Monitor - truss equivalent for Windows (Doc ID 1447085.1) 适用于: Oracle Database - Enterprise Edition - Version 8.1.7.0 to 11.2.0.3 [Release 8.1.7 to 11.2] Information in this document applies to any platfo

【翻译自mos文章】找到'cursor: pin S wait on X' 等待事件的阻塞者session(即:持有者session)

找到'cursor: pin S wait on X' 等待事件的阻塞者session(即:持有者session) 来源于: How to Determine the Blocking Session for Event: 'cursor: pin S wait on X' (Doc ID 786507.1) 适用于: Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.3 [Release 10.2 to 11.2

【翻译自mos文章】SGA_TARGET与SHMMAX的关系

SGA_TARGET与SHMMAX的关系 参考原文: Relationship Between SGA_TARGET and SHMMAX (文档 ID 1527109.1) 适用于: Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.3 [Release 10.1 to 11.2] Information in this document applies to any platform. 目的: 解释了参数文件中

【翻译自mos文章】在11gR2 rac环境中,文件系统使用率紧张,并且lsof显示有很多oraagent_oracle.l10 (deleted)

在11gR2 rac环境中,文件系统使用率紧张,并且lsof显示有很多oraagent_oracle.l10 (deleted) 参考原文: High Space Usage and "lsof" Output Shows Many 'oraagent_oracle.l10 (deleted)' in GI environment (Doc ID 1598252.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.

【翻译自mos文章】使用Windows操作系统的Dell Pcserver,Oracle db报错:ORA-8103

翻译自mos文章:使用Windows操作系统的Dell Pcserver,Oracle db报错:ORA-8103 ORA-8103 using Windows platform and DELL servers (Doc ID 1921533.1) Applies to: Oracle Database - Personal Edition - Version 11.1.0.6 to 12.1.0.2 [Release 11.1 to 12.1] Oracle Database - Stand

【翻译自mos文章】使用buffer memory 参数来调整rman的性能。

使用buffer memory 参数来调整rman的性能. 本文翻译自mos文章:RMAN Performance Tuning Using Buffer Memory Parameters (Doc ID 1072545.1) rman 性能调整的目的是分辨一个特定的backup or  restore job的瓶颈. 并使用使用rman命令.初始化参数 或者对physical media的调整来提高整体的性能. 由于数据库容量持续变大,在客户的环境中,几十到几百TB的数据库很常见, serv

【翻译自mos文章】11gR2 OUI 在 PREREQUISITE CHECKS 时 hang住

翻译自mos文章:11gR2 OUI 在 PREREQUISITE CHECKS 时 hang住 适用于: Oracle Server - Enterprise Edition - Version 8.0.6.0 to 11.2.0.2.0 [Release 8.0.6 to 11.2] Information in this document applies to any platform. This can occur on any Unix/Linux platform 症状: 11gR2

【翻译自mos文章】升级到11.2.0.4之后在alert日志中出现 NUMA 警告信息

注:与本文有关的文章为:http://blog.csdn.net/msdnchina/article/details/43763927 升级到11.2.0.4之后在alert日志中出现 NUMA 警告信息 翻译自mos文章:NUMA warning message appear after upgrade to 11.2.0.4 (文档 ID 1600824.1)1 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.4 and

【翻译自mos文章】对于oracle 数据库来说,OGG的抽取进程什么时候到database中获取数据?

对于oracle 数据库来说,OGG的抽取进程什么时候到database中获取数据? 参考原文: When GoldenGate Fetches Data From The Database On Extraction For Oracle (Doc ID 1059583.1) 适用于: Oracle GoldenGate - Version 4.0.0 and later Information in this document applies to any platform. 解决方法: 问