[Oracle] Data Pump 详细使用教程(5)- 命令交互模式
[Oracle] Data Pump 详细使用教程(1)- 总览
[Oracle] Data Pump 详细使用教程(2)- 总览
[Oracle] Data Pump 详细使用教程(3)- 总览
[Oracle] Data Pump 详细使用教程(4)- 总览
[Oracle] Data Pump 详细使用教程(5)- 总览
当我们起了一个datapump job之后,可以通过v$session_longops查看当前进度。
USERNAME - job owner
OPNAME - job name
TARGET_DESC - job operation
SOFAR - megabytes transferred thus far during the job
TOTALWORK - estimated number of megabytes in the job
UNITS - megabytes (MB)
MESSAGE - a formatted status message of the form:
'job_name: operation_name : nnn out of mmm MB done'
SYS@TEST16>select username,opname,sofar,TOTALWORK,UNITS,message from v$session_longops where opname='SYS_EXPORT_FULL_03';USERNAME OPNAME SOFAR TOTALWORK UNITS MESSAGE
--------------- -------------------- ---------- ---------- ----- ------------------------------------------------------------
SYSTEM SYS_EXPORT_FULL_03 4737 35368 MB SYS_EXPORT_FULL_03: EXPORT : 4737 out of 35368 MB done
但有时候单单监控是不够的,我们可能还需要修改相应的JOB,这时我们就需要进行datapumo的命令交互模式。
有两种方式可以进入命令交互模式,分别是:
1. 在logging模式下按ctrl+C
2. expdp or impdp attach=SYSTEM.SYS_EXPORT_FULL_03
expdp交互模式的命令如下:
Activity | Command Used |
---|---|
Add additional dump files. |
ADD_FILE |
Exit interactive mode and enter logging mode. |
CONTINUE_CLIENT |
Stop the export client session, but leave the job running. |
EXIT_CLIENT |
Redefine the default size to be used for any subsequent dump files. |
FILESIZE |
Display a summary of available commands. |
HELP |
Detach all currently attached client sessions and terminate the current job. |
KILL_JOB |
Increase or decrease the number of active worker processes for the current job. This command is valid only in the Enterprise Edition of Oracle Database 11g. |
PARALLEL |
Restart a stopped job to which you are attached. |
START_JOB |
Display detailed status for the current job and/or set status interval. |
STATUS |
Stop the current job for later restart. |
STOP_JOB |
impdp的交互模式命令如下:
Activity | Command Used |
---|---|
Exit interactive-command mode. |
CONTINUE_CLIENT |
Stop the import client session, but leave the current job running. |
EXIT_CLIENT |
Display a summary of available commands. |
HELP |
Detach all currently attached client sessions and terminate the current job. |
KILL_JOB |
Increase or decrease the number of active worker processes for the current job. This command is valid only in Oracle Database Enterprise Edition. |
PARALLEL |
Restart a stopped job to which you are attached. |
START_JOB |
Display detailed status for the current job. |
STATUS |
Stop the current job. |
STOP_JOB |
下面以expdp为例,介绍几个常用命令(如果忘记命令,敲万能的help)。
1. status:查看当前job的状态,如完成的百分比、并行度等,每个worker代表一个并行进程。
Export> statusJob: SYS_EXPORT_FULL_03Operation: EXPORT Mode: FULL State: EXECUTING Bytes Processed: 8,357,285,928Percent Done: 23Current Parallelism: 2Job Error Count: 0Dump File: /home/oracle/dump/full_%u.dmpDump File: /home/oracle/dump/full_01.dmpbytes written: 8,357,294,080Dump File: /home/oracle/dump/full_02.dmpbytes written: 4,096Worker 1 Status:Process Name: DW00State: EXECUTING Object Type: DATABASE_EXPORT/SCHEMA/TABLE/COMMENTCompleted Objects: 5,120Worker Parallelism: 1Worker 2 Status:Process Name: DW01State: EXECUTING Object Schema: P95169Object Name: GRADE_RCCASEObject Type: DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATACompleted Objects: 3Total Objects: 1,866Completed Rows: 23,505,613Worker Parallelism: 1
2. parallel:动态调整并行度
Export> parallel=4
3. add_file:增加dumpfile
Export> ADD_FILE=hr2.dmp, dpump_dir2:hr3.dmp
4. stop_job, kill_job, start_job
stop_job只是暂停,之后可以用start_job重新启动,而kill_job直接杀掉,不可恢复
5. continue_client:退出交互模式,进入logging模式;
exit_client: 退出客户端
转载于:https://www.cnblogs.com/dyllove98/p/3228705.html
[Oracle] Data Pump 详细使用教程(5)- 命令交互模式相关推荐
- [Oracle] SQL*Loader 详细使用教程(3)- 控制文件
控制文件是SQL*Loader里最重要的文件,它是一个文本文件,用来定义数据文件的位置.数据的格式.以及配置数据加载过程的行为,在sqlldr中以control参数指定控制文件. 在控制文件里配置 ...
- 使用隐含Trace参数诊断Oracle Data Pump(expdp)故障
使用隐含Trace参数诊断Oracle Data Pump(expdp)故障 Data Pump数据泵是Oracle从10g开始推出的,用于取代传统exp/imp工具的数据备份还原组件.经过若干版本的 ...
- ORA-39405: Oracle Data Pump does not support importing from a source database with TSTZ version 36
导入时 DST TZ 版本不匹配 1.环境检查 2.下载最新的 OPatch 和 DSTV36 更新补丁 3.升级Opatch版本 4.将 DSTV36 更新补丁应用到 ORACLE HOME 5.查 ...
- win7 安装Oracle 10g 数据库详细步骤教程
win7 安装Oracle 10g 数据库详细步骤教程 一:环境 操作系统:win 7 64位 内存:8G Oracle 10g 压缩包:oracle.7z 客户端:Oracle_client_win ...
- Oracle Data Pump(数据泵)一
数据泵是Oracle 10g后引入的数据导入.导出工具,可以用于在数据库之间传输大量的数据,分为expdp和impdp工具: 数据泵只能在Oracle服务端进行使用,如数据库搭建的服务器,而不是某个连 ...
- Oracle Data Pump Full Transportable方式导入导出
参考 本实验参考了Oracle官方白皮书:Full Transportable Export and Import,简明扼要,写得很好. 实验环境准备 利用OCI上的Oracle数据库image建立3 ...
- QIIME 2教程. 24Python命令行模式Artifact API(2021.2)
Python命令行模式 Artifact API https://docs.qiime2.org/2021.2/interfaces/artifact-api/ 注:本指南假定您已执行"4人 ...
- QIIME 2教程. 24Python命令行模式Artifact API(2020.11)
文章目录 Python命令行模式 译者简介 Reference 猜你喜欢 写在后面 Python命令行模式 Artifact API https://docs.qiime2.org/2020.11/i ...
- Oracle数据库超详细安装教程(含PLSQL),会用电脑就能装!
Oracle数据库安装: 提示:网盘资源下载链接:https://pan.baidu.com/s/1f6h6celNrPIJdxksixsWYA 提取码:tbw5 文章目录 解压压缩包 一.Oracl ...
最新文章
- 机器学习四剑客1——Numpy
- IntelliJ IDEA 更新后,电脑卡成球,该如何优化?
- QIIME 2教程. 16纵向和成对样本比较q2-longitudinal(2020.11)
- F5 Priority Group Activation
- Redis进阶 -CLUSTER NODES 信息结合实际输出信息解读
- 【ubuntu】ubuntu如何改变系统用户名
- EF框架学习(5)---EF中的在线和离线场景
- 如何以卫语句取代嵌套条件表达式
- 注册名字英文name域名_关于域名和备案,你想知道的都在这里
- 程序员应当注意的肢体语言
- mx350显卡天梯图_2019.8月CPU和显卡性能天梯图
- laravel 图片流_laravel 做图片的缩略图 踩坑
- IPSAN 配置过程
- 【MATLAB】MATLAB三维曲面绘制【详细教程】
- Oracle项目管理平台的多层级组织架构设置方法
- 转帖:在北京5年艰辛快乐的创业经历
- 线程系列2---线程同步
- sublime去掉空行 sublime批量删除空白行
- 如何将台式计算机连接到WiFi,台式机怎么连接wifi?台式电脑连接无线网络的方法(图文)...
- 【坐标转换】四参数和七参数计算,并正向转换坐标(附完整源代码地址)