温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

exp/imp中如何实现远程导出操作

发布时间:2021-11-12 09:11:00 来源:亿速云 阅读:497 作者:小新 栏目:关系型数据库

这篇文章将为大家详细讲解有关exp/imp中如何实现远程导出操作,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。


实验:
源库::192.168.56.20  hostname:slient
目标库::192.168.56.12 hostname:wang

说明:
tns:20,为对源库的连接字符串、owner指的是源库的schema,生成的dmp文件是在目标库

[oracle@wang dpdump]$ exp system/oracle@20 owner=scott file=partition.dmp log=partition.log

Export: Release 11.2.0.4.0 - Production on Sun Aug 6 01:31:09 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 users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SCOTT
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SCOTT
About to export SCOTT's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export SCOTT's tables via Conventional Path ...
. . exporting table                     ADSFDSFDSF         13 rows exported
. . exporting table                          BONUS          0 rows exported
. . exporting table                           DBXL         13 rows exported
. . exporting table                           DEPT          4 rows exported
. . exporting table                            EMP         14 rows exported
. . exporting table                       SALGRADE          5 rows exported
. . exporting table                           TEST
. . exporting partition                             P1          0 rows exported
. . exporting partition                             P2          0 rows exported
. . exporting partition                             P3          0 rows exported
. . exporting partition                             P4          0 rows exported
. . exporting table                        TEST123          0 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
[oracle@wang dpdump]$
--验证:
[oracle@wang dpdump]$ ls
bill_B_FILE_PACKAGE.dmp  bill_B_PACKAGE_STATE_TRANS.dmp  dp.log  import.log  partition.dmp  partition.log
[oracle@wang dpdump]$

===补充=========

问题的现象:

EXP-00026: conflicting modes specified
EXP-00000: Export terminated unsuccessfully  

备份文件会生成 但是没有内容。

这个问题主要是 exp的时候 里面参数发生了冲突。

   比较常见的: 

1.同时指定了 owner  和 tables

2.同时指定了 FULL 和tables

3.同时指定了多个owner和full

owner 表示导出整个用户或者多个用户  而tables表示只导出其中的表 。

要么只导出其中的表  要么导出整个用户。不然就会冲突了、

关于“exp/imp中如何实现远程导出操作”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI