zoukankan      html  css  js  c++  java
  • 【从翻译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

  • 相关阅读:
    Java启动工程时,加载固定数据到Map中(不用每次访问数据库)
    Java删除文件夹和其子文件、文件的拷贝和剪切
    EasyExcel导入工具(SpringMVC下使用)
    web工程启动时,在一个类中延迟加载Bean,因为该Bean类可能还没被JVM加载
    ECharts访问后台,JSON格式返回数据实例
    Java 实现缓存,一个线程存,一个线程取
    IE浏览器使用VLC实时显示视频(海康、大华)
    Windows和Linux下 Java开发ping工具类
    Quartz定时器+Spring + @Autowired注入 空指针异常
    ubuntu 安装mysql
  • 原文地址:https://www.cnblogs.com/blfshiye/p/4622164.html
Copyright © 2011-2022 走看看