欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 教育 > 培训 > 【Oracle专栏】客户端expdp 实验验证

【Oracle专栏】客户端expdp 实验验证

2025/2/21 3:30:18 来源:https://blog.csdn.net/weixin_42081167/article/details/145580059  浏览:    关键词:【Oracle专栏】客户端expdp 实验验证

 Oracle相关文档,希望互相学习,共同进步

风123456789~-CSDN博客


1.背景

        之前用expdp数据泵只导出过本服务器的,本文跨服务器使用expdp 实验。

2. 本机装oracle客户端时,远端导出

 实验说明:以下10为本机,14为远端服务器的数据库,12为远端服务器(装有oracle)

          (10 只有oracle客户端:basic包、sqlplus包

1)10客户端:可连接sqlplus,但是不可以expdp, 提示无此命令

2)查阅Oracle Instant Client  资料

Oracle Instant Client - Free tools and libraries for connecting to Oracle Databasehttps://www.oracle.com/database/technologies/instant-client.html找到原因:没有安装Data Dump 的 Tools

3) 下载datadump 客户端工具包 

Instant Client for Linux x86-64 (64-bit)

上传:/home/oracle/soft/ 

解压:到 /home/oracle/u01/client/ 目录

unzip -o instantclient-tools-linux.x64-19.26.0.0.0dbru.zip -d /home/oracle/u01/client/

4) 10 客户端验证expdp命令 : ok 

5)10执行导出远端库(只客户端)

 expdp nh_dw_aml/xx@192.168.3.12:1521/orclpdb1 network_link=tbl14 directory=BACKUP dumpfile=remote10.dmp logfile=expdp10.log  tables=tbl_dayend_log

3.实验验证:ok 

       10上执行远端dblink导出expdp,结果将14服务器的数据库导出到了12服务器的 directory下 。

        总结:需要备份的机器上需要有数据库,且需要配置好directory。客户端所在机子只要能连上远端数据库且有expdp工具包,即可导出到备份机子上。 

附录-相关资料

Oracle Data Pump is made up of three distinct parts:
(1)The command-lineclients, expdp and impdp
(2)The DBMS_DATAPUMP PL/SQLpackage (also known as the Data Pump API)
(3)The DBMS_METADATA PL/SQLpackage (also known as the Metadata API)The Data Pumpclients, expdp and impdp, invoke the Data Pump Export utilityand Data Pump Import utility, respectively.
--Data Pump 客户端(exdp/impdp)调用Data Pump Export/import工具。The expdp and impdp clientsuse the procedures provided in the DBMS_DATAPUMP PL/SQL package toexecute export and import commands, using the parameters entered at the commandline. These parameters enable the exporting and importing of data and metadatafor a complete database or for subsets of a database.
--expdp/impdp 客户端使用DBMS_DATAPUMP 包来执行导出导入操作。When metadata ismoved, Data Pump uses functionality provided bythe DBMS_METADATA PL/SQL package. The DBMS_METADATA packageprovides a centralized facility for the extraction, manipulation, andre-creation of dictionary metadata.
The DBMS_DATAPUMP and DBMS_METADATA PL/SQLpackages can be used independently of the Data Pump clients.All Data Pump Export and Import processing,including the reading and writing of dump files, is done on the system (server)selected by the specified database connect string.
--所有的dump 文件都会保存在server 上指定的目录里。This means thatfor unprivileged users, the database administrator (DBA) must create directoryobjects for the Data Pump files that are read and written on that server filesystem.

 翻译:

Oracle数据泵由三个不同的部分组成:

(1) 命令行客户端,expdp和impdp

(2) DBMS_DATAPUMP PL/SQL包(也称为数据泵API)

(3) DBMS_METADATA PL/SQL包 (也称为元数据API)

数据泵客户端expdp和impdp分别调用数据泵导出实用程序和数据泵导入实用程序。

DataPump 客户端命令(expdp/impdp) 使用:

     1)DBMS_DATAPUMP PL/SQL包中提供的过程,使用在命令行中输入的参数执行导出和导入命令。这些参数允许导出和导入完整数据库或数据库子集的数据和元数据。

     2)当元数据被移动时,数据泵使用DBMS_metadata PL/SQL包提供的功能。DBMS_METADATA包为字典元数据的提取、操作和重新创建提供了一个集中的工具。

     

       即调用这2个包:DBMS_DATAPUMP PL/SQLpackage 和DBMS_METADATA PL/SQL包,这两个包是在server 上的,我们在客户端上执行expdp/impdp。 但是所生成的dump 文件还是存在与server 上指定的directory上。 


项目管理--相关知识   

项目管理-项目绩效域1/2-CSDN博客

项目管理-项目绩效域1/2_八大绩效域和十大管理有什么联系-CSDN博客

项目管理-项目绩效域2/2_绩效域 团不策划-CSDN博客

高项-案例分析万能答案(作业分享)-CSDN博客

项目管理-计算题公式【复习】_项目管理进度计算题公式:乐观-CSDN博客

项目管理-配置管理与变更-CSDN博客

项目管理-项目管理科学基础-CSDN博客

项目管理-高级项目管理-CSDN博客

项目管理-相关知识(组织通用治理、组织通用管理、法律法规与标准规范)-CSDN博客


Oracle其他文档,希望互相学习,共同进步

Oracle-找回误删的表数据(LogMiner 挖掘日志)_oracle日志挖掘恢复数据-CSDN博客

oracle 跟踪文件--审计日志_oracle审计日志-CSDN博客

ORA-12899报错,遇到数据表某字段长度奇怪现象:“Oracle字符型,长度50”但length查却没有50_varchar(50) oracle 超出截断-CSDN博客

EXP-00091: Exporting questionable statistics.解决方案-CSDN博客

Oracle 更换监听端口-CSDN博客

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词