Tracingdatapumpsessions

php中文网
发布: 2016-06-07 16:03:42
原创
1765人浏览过

tracing datapump is not straight forward, you can trace the datapump worker(dw00) or datapump master(dm00) with 10046 to get the sql etc or use the trace option in expdp/impdp Where in expdp has an option called trace where you can trace t

tracing datapump is not straight forward, you can trace the datapump worker(dw00) or datapump master(dm00) with 10046 to get the sql etc or use the trace option in expdp/impdp

Where in expdp has an option called trace where you can trace the session associated to datapump and then see what its waiting for or running (internal sql statements)

There are number of bugs for datapump, tracing may help to determine what we are encountering

To begin with, we need to know different levels of tracing in datapump, the following table depicts the same.

 Trace   DM   DW  ORA  Lines  
 level  trc  trc  trc     in  
 (hex) file file file  trace   Purpose
 ------- ---- ---- ---- ------ -----------------------------------------------  
   10300    x    x    x  SHDW: To trace the Shadow process (API) (expdp/impdp)  
   20300    x    x    x  KUPV: To trace Fixed table  
   40300    x    x    x  'div' To trace Process services  
   80300    x            KUPM: To trace Master Control Process (MCP)      (DM) 
  100300    x    x       KUPF: To trace File Manager 
  200300    x    x    x  KUPC: To trace Queue services 
  400300         x       KUPW: To trace Worker process(es)                (DW) 
  800300         x       KUPD: To trace Data Package
 1000300         x       META: To trace Metadata Package
 --- +
 1FF0300    x    x    x  'all' To trace all components          (full tracing)

登录后复制

In case of full tracing two trace files are generated in BACKGROUND_DUMP_DEST just like standard tracing. And one trace file is generated in USER_DUMP_DEST.

Shadow Process trace file: _ora_.trc

绘ai
绘ai

ai绘图提示词免费分享

绘ai 240
查看详情 绘ai

Individual tracing level values in hexadecimal are shown except last one in the list. You can use individual value or combination of values. If you sum all the individual values you will get 1FF0300 which is full tracing.

To use full level tracing issue data pump export as,
expdp DUMPFILE=expdp.dmp LOGFILE=expdp.log TRACE=1FF0300

To use full level tracing for data pump import operation issue import as,
impdp DUMPFILE=expdp.dmp LOGFILE=expdp.log TRACE=1FF0300

However for most cases full level tracing is not required. 
As trace 400300 is to trace Worker process(es) and trace 80300 is to trace 
Master Control Process (MCP). So combining them is trace 480300 
and by using trace 480300 you will be able to trace both Master Control process 
(MCP) and the Worker process(es). This would serve the purpose.

So to diagnose any data pump export problem issue,
expdp DUMPFILE=expdp.dmp LOGFILE=expdp.log TRACE=480300

To diagnose any data pump import problem issue,
impdp DUMPFILE=expdp.dmp LOGFILE=expdp.log TRACE=480300
登录后复制

In case of standard tracing trace files are generated in BACKGROUND_DUMP_DEST. In case of standard tracing,

– If it is Master Process trace file then generated file name is, _dm_.trc

– If it is Worker Process trace file then generated file name is,_dw_.trc

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
热门推荐
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号