ITPub博客

首页 > 数据库 > Oracle > [20170315]11.2.0.4 exp可以导出空表.txt

[20170315]11.2.0.4 exp可以导出空表.txt

原创 Oracle 作者:lfree 时间:2017-03-15 11:40:57 0 删除 编辑

[20170315]11.2.0.4 exp可以导出空表.txt

--链接http://www.itpub.net/thread-2084282-1-1.html,11.2.0.4可以使用exp导出空表,没有问题,测试看看.

 

SCOTT@book> @ &r/ver
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

SCOTT@book> create table deptx as select * from dept where 1=2;
Table created.

SCOTT@book> show parameter defer
NAME TYPE VALUE
------------------------- ------- ------
deferred_segment_creation boolean TRUE

$ exp scott/book tables=deptx
Export: Release 11.2.0.4.0 - Production on Wed Mar 15 11:51:17 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table                          DEPTX          0 rows exported
Export terminated successfully without warnings.

SCOTT@book> drop table deptx purge ;
Table dropped.

$ imp scott/book file=expdat.dmp  full=y
Import: Release 11.2.0.4.0 - Production on Wed Mar 15 11:52:11 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export file created by EXPORT:V11.02.00 via conventional path
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. importing SCOTT's objects into SCOTT
. importing SCOTT's objects into SCOTT
. . importing table                        "DEPTX"          0 rows imported
Import terminated successfully without warnings.

SCOTT@book> @ &r/desc deptx
           Name    Null?    Type
           ------- -------- ----------------------------
    1      DEPTNO           NUMBER(2)
    2      DNAME            VARCHAR2(14)
    3      LOC              VARCHAR2(13)

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

请登录后发表评论 登录
全部评论
熟悉oracle相关技术,擅长sql优化,rman备份与恢复,熟悉linux shell编程。

注册时间:2008-01-03

  • 博文量
    4006
  • 访问量
    7969645