如何获取数据泵dm和dw进程的 Strace (Doc ID 1411563.1)
How To Get A Strace Of The Data Pump dm And dw Process(es) (Doc ID 1411563.1)
APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.1.0.2 and later
Information in this document applies to any platform.
NOTE:
In the images and/or the document content below, the user information and data used represents fictitious data. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.
GOAL
This document shows how you can get an strace of the data pump dm and dw processes. 本文档说明了如何获得数据泵dm和dw进程的strace。
This may be required to be done in certain circumstances when need to trace OS level calls from these processes. 在某些情况下,当需要跟踪来自这些进程的OS级调用时,可能需要这样做。
Since data pump is run from the server side and work is done by dw process and coordinated by dm process cannot start strace with the client expdp. 由于数据泵是从服务器端运行的,并且工作是由dw进程完成的,并且由dm进程协调,因此无法使用客户端expdp启动strace。
You will want to start this on a database that spawns minimal new connections because will be attaching to the Process SPawner (psp) process to capture any children that are spawned. 您将要在产生最少新连接的数据库上启动此数据库,因为它将附加到Process SPawner(psp)进程以捕获产生的所有子级。
This will include the dm and dw processes that are spawned from the database for a data pump job as well as any other processes under that database sid. 这将包括从数据库中为数据泵作业派生的dm和dw进程,以及该数据库sid下的任何其他进程。
SOLUTION
First, determine the pid of the psp process for that sid. 首先,确定该sid的psp进程的pid。
Can do that with OS command 可以用OS命令做到这一点
>ps -es|grep psp
Example output showing pid 19377 for sid S112W6:
grdbms 19377 1 0 22:24 ? 00:00:00 ora_psp0_S112W6
Or you can use query to determine process pid in SQLPlus: 或者,您可以使用查询来确定SQLPlus中的进程pid
set linesize 120
set pagesize 120
column spid heading 'OSpid' format a8
column pid heading 'Orapid' format 999999
column sid heading 'Sess id' format 99999
column serial# heading 'Serial#' format 999999
column status heading 'Status' format a8
column username heading 'oracleuser' format a12
column osuser heading 'OS user' format a12
column program heading 'Program' format a20 SELECT p.spid, p.pid, s.sid, s.serial#, s.status, s.username, s.osuser, s.program
FROM
v$process p,v$session s
WHERE s.paddr ( + ) = p.addr
order by p.pga_alloc_mem desc;
Example of sample output:
Then, based on the pid of the psp process start strace with following: 然后,基于psp进程的pid,使用以下命令启动strace
Example for pid 19377:
OSpid Orapid Sess id Serial# Status oracleuser OS user Program
-------- ------- ------- ------- -------- ------------ ------------ --------------------
19377 3 187 1 ACTIVE SYSTEM grdbms oracle@celclnx7.us.oracle.com(PSP0)
Use of -ff will start trace on ALL new child processes under that db sid. 使用-ff将开始对该db sid下的所有新子进程进行跟踪
strace -f -ff -o strace_expdp.out -p 19377
Start the export. Do not use parallelism unless required to reproduce problem 开始导出。除非需要重现问题,否则不要使用并行。
Example:
expdp content=metadata_only schemas=system dumpfile=expdp02.dmp logfile=expdp02.log directory=data_pump_dir
Immediately after expdp started, determine the pid of the dm and dw process either at OS command or from the query aboveOr using the earlier SQL query:
expdp启动后,立即在OS命令或从上面的查询中或者使用较早的SQL查询来确定dm和dw进程的pid
>ps -ef|grep S112W6
OSpid Orapid Sess id Serial# Status oracleuser OS user Program
-------- ------- ------- ------- -------- ------------ ------------ --------------------
5565 23 193 27 ACTIVE SYSTEM grdbms oracle@celclnx7.us.oracle.com(DM00)
8569 24 7 11 ACTIVE SYSTEM grdbms oracle@celclnx7.us.oracle.com(DW00)
If expdp fails quickly and did not get a chance to determine sid of these processes, just grep the files in the trace directory when done for
如果expdp快速失败,并且没有机会确定这些进程的sid,则在完成以下操作后,只需grep跟踪目录中的文件
ora_dw
and
ora_dm
>grep -li "ora_dw" *
strace_expdp.out.8569
You can stop the strace by using <ctrl-c> 您可以使用<ctrl-c>停止strace
Upload the strace corresponding to dm and dw process for the failed data pump job
上传与失败的数据泵作业的dm和dw进程对应的strace
如何获取数据泵dm和dw进程的 Strace (Doc ID 1411563.1)的更多相关文章
- 使用进程池模拟多进程爬取url获取数据,使用进程绑定的回调函数去处理数据
1 # 使用requests请求网页,爬取网页的内容 2 3 # 模拟使用进程池模拟多进程爬取网页获取数据,使用进程绑定的回调函数去处理数据 4 5 import requests 6 from mu ...
- ORACLE 数据泵 expdp/impdp
ORACLE 数据泵 expdp/impdp 一.概念 Oracle Database 10g 引入了最新的数据泵(Data Dump)技术,数据泵导出导入 (EXPDP 和 IMPDP)的作用: 1 ...
- 针对数据泵导出 (expdp) 和导入 (impdp)工具性能降低问题的检查表 (文档 ID 1549185.1)
针对数据泵导出 (expdp) 和导入 (impdp)工具性能降低问题的检查表 (文档 ID 1549185.1) 文档内容 适用于: Oracle Database – Enterprise Edi ...
- Oracle数据泵(Data Dump)错误汇集
Oracle数据泵(Data Dump)使用过程当中经常会遇到一些奇奇怪怪的错误案例,下面总结一些自己使用数据泵(Data Dump)过程当中遇到的问题以及解决方法.都是在使用过程中遇到的问题,以后陆 ...
- ORACLE数据泵使用详解
来源于:http://blog.sina.com.cn/s/blog_490a0c990100wh4y.html http://blog.csdn.net/jojo52013145/article/d ...
- Oracle 数据泵文件
数据泵文件 expdp介绍 EXPDP命令行选项1. ATTACH该选项用于在客户会话与已存在导出作用之间建立关联.语法如下ATTACH=[schema_name.]job_nameSchema_na ...
- ORACLE数据泵还原(IMPDP命令)【转】
Oracle数据库还原IMPDP命令是相对于EXPDP命令的,方向是反向的.即对于数据库备份进行还原操作.一.知晓IMPDP命令 ? C:\>impdp -help Import: Rele ...
- Oracle基础 数据泵导出/导入Expdp/impdp(转)
一.EXPDP和IMPDP使用说明 Oracle Database 10g引入了最新的数据泵(Data Dump)技术,数据泵导出导入(EXPDP和IMPDP)的作用 1)实现逻辑备份和逻辑恢复. 2 ...
- Oracle12c功能增强新特性之维护&升级&恢复&数据泵等
1. 内容提要 1) 表分区维护的增强. 2) 数据库升级改善. 3) 跨网络还原/恢复数据文件. 4) 数据泵的增强. 5) 实时ADDM. 6) 并发统计信息收集. 2 ...
随机推荐
- 又到了抵制Notepad++的时候了?
逛开源中国(OSCHINA),无意中发现一贴<不用Notepad++,你还有这些更好的选择> 才发现,原来 Notepad++ 的作者侯今吾前几天又在 npp 的官网上发表了一篇个人政治意 ...
- IT兄弟连 HTML5教程 CSS3属性特效 弹性盒模型
CSS3引入了新的盒模型——弹性盒模型,该模型决定一个盒子在其他盒子中的分布方式以及如何处理可用的空间.使用该模型,可以很轻松的创建自适应浏览器窗口的流动布局或自适应字体大小的弹性布局.弹性盒模型看起 ...
- MongoDB(四):数据类型、插入文档、查询文档
1. 数据类型 MongoDB支持许多数据类型. 字符串 - 这是用于存储数据的最常用的数据类型.MongoDB中的字符串必须为UTF-8. 整型 - 此类型用于存储数值. 整数可以是32位或64位, ...
- Prism_Composite Commands(3)
Composite Commands 在许多情况下,视图模型定义的命令将绑定到关联视图中的控件,以便用户可以直接从视图中调用该命令.但是,在某些情况下,您可能希望能够从应用程序UI的父视图中的控件调用 ...
- 利用zabbix API 统计一段时间内监控项的均值和峰值
#coding:utf-8 #给定主机IP获取一段时间内cpu的均值和峰值并写入文件(txt,可以跑完后直接把后缀名改为csv以表格形式打开):需要指定IP文件 import requests imp ...
- 将Android封装库通过gradle部署到maven私服并依赖使用
一.在需要发布的模块chrisbaselibrary下的build.gradle中添加以下部分 //maven插件 apply plugin: 'maven' //打包main目录下代码和资源的 ta ...
- 数据存储与访问之——SharedPreferences
使用SharedPreferences(保存用户偏好参数)保存数据, 当我们的应用想要保存用户的一些偏好参数,比如是否自动登陆,是否记住账号密码,是否在Wifi下才能 联网等相关信息,如果使用数据库的 ...
- 如何实现用户的历史记录功能(最多n条)
使用容量为n的队列存储历史记录 使用标准库collections中的deque,它是一个双端循环队列 from collections import deque q = deque([], 5) #参 ...
- java 后台上传文件
java 后台上传文件 public static String uploadFile(File file, String RequestURL) throws IOException { Strin ...
- Java连载55-接口的作用、接口举例
一.接口的作用 1.可以使项目分层,所有层都面向接口开发,开发效率提高了. 2.接口使代码和代码之间的耦合度降低,就像内存条和主板的关系,变得“可插拔”,可以随意切换. 总结:接口和抽象类能够完成某 ...