如何在Exp或Imp过程中使用trace
来源:互联网 发布:ubuntu p2p下载工具 编辑:程序博客网 时间:2024/06/05 17:23
Solution
Please do the following:
Create a sql_trace file for the export process with the bind variables (please
follow the steps):
1. Start the export shadow process by executing at the command line:
DOS> exp username/password
(Don't answer the questions raised on the screen until you reach step 4 below)
2. Identify the shadow process ospid using SQL*Plus:
SQL> SELECT p.spid,p.addr,p.pid,s.sid,SUBSTR(s.username,1,15) "USERNAME",
SUBSTR(s.program,1,15) "PROGRAM"
FROM v$process p,v$sessions
WHERE s.paddr=p.addr
AND addr=(SELECT paddr FROM v$session WHERE UPPER(program) LIKE 'EXP%');
Note: If the issue is related to the traditional import instead of export, change "LIKE 'EXP%'" in the above sql statement to LIKE 'IMP%'.
3. In SQL*Plus, use oradebug to attach to this (O)SPID, set trace file size to unlimited and
turn on Event 10046 at level 12:
SQL> oradebug setospid xxx (xxx = spid from above query)
SQL> oradebug unlimit
SQL> oradebug tracefile_name
SQL> oradebug Event 10046 trace name context forever, level 12
4. Star the table export/import by responding to the interactive mode questions in your
export session on step #1 above and wait for a while until you believe the process is hung or too slow.
5. After waiting for a while, find the trace file generated by in the 10046 trace event
as shown in step #3 above by the use of the "oradebug tracefile_name" parameter.
6. Run tkprof as follows using the resulting trace file from user_dump_dest above in
step #5 above.:
DOS> cd c:/orant/bin
DOS> tkprof <10046_trace_file>.trc <output_file>.out waits=y sort=exeela
- 如何在Exp或Imp过程中使用trace
- 如何使用SYSDBA执行EXP/IMP?
- 如何在Eclipse中使用trace
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- oracle中exp,imp的使用详解
- URL Encode NSString in Objective-C
- 手绘随笔:随笔(一)
- Fedora 14以USB调试方式连接手机(HTC G1) 转载
- c# 查询字符串内有多少个指定字符!
- ext中对Gridpanel的理解
- 如何在Exp或Imp过程中使用trace
- 常用的源码搜索网站
- linux常用命令
- JAX-WS 和 XFire 以及CXF比较
- c#用GMAIL邮箱发送邮件
- BOLL指标及其应用
- windows平台彻底删除oracle
- 工作流JBPM4.3中文版用户指南第七、八章(共八章)
- Nutch 二次开发需要修改的东西