http://www.orapub.cn/posts/1624.html

一、以下在Oracle APP中执行:

1) Set the Profile Option: ‘Initialization SQL Statement – Custom’ at the USER level to the following statement all on one line:

在用户层设置配置文件 Initialization SQL Statement – Custom的值为以下脚本(一般粘帖复制即可):

begin fnd_ctl.fnd_sess_ctl(”,”,’TRUE’,'TRUE’,'LOG’,'ALTER SESSION SET EVENTS=’||””||’10046 TRACE NAME CONTEXT FOREVER, LEVEL 12′||””); end;

2) Change responsibilities and directly go and reproduce the problem. Before you look for the Trace file, perform: "Help > About Oracle Application" and get the Process_id (VERSION_DATABASE_PROCESS) .Search for the Trace file using this number.

切换到相应职责,重新测试该问题。然后马上执行:(Form)帮助>关于Oracle Applications,找到这一条:“数据库服务器 PID : 23646”(English:Database Server PID : 23646)。记下这个号码,根据该号码去找跟踪文件。

3) Ensure that the profile option is unset before exiting the Application.

关闭EBS应用之前重置以上设置的配置文件,否则会生成一些不必要的跟踪文件。

This is a very important step. If this is not unset, unnecessary trace files would be generated.

二、以下在后台OS中执行:

1)执行环境变量,使能够使用命令sqlplus:

[oracle@ebs /]$ dbenv

2)以sysdba用户进入sqlplus:

[oracle@ebs /]$ sqlplus "/ as sysdba"

SQL*Plus: Release 11.1.0.7.0 – Production on Fri Dec 10 14:47:34 2010

Copyright (c) 1982, 2008, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 – 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

3)执行脚本:select value from v$parameter where name like ‘user_dump_dest’; ,返回一个目录值,退出sqlplus,进入该目录:

The trace file will be generated under the directory returned by the following statement:

SQL> select value from v$parameter where name like ‘user_dump_dest’;

VALUE

——————————————————————————–

/u01/oracle/prod/db/tech_st/11.1.0/admin/prod_ebs/diag/rdbms/prod/prod/trace

SQL> exit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 – 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

[oracle@ebs /]$ cd /u01/oracle/prod/db/tech_st/11.1.0/admin/prod_ebs/diag/rdbms/prod/prod/trace

[oracle@ebs trace]$

4)根据PID:23646 查找trace文件:

[oracle@ebs trace]$ ls *23646*

prod_ora_23646.trc prod_ora_23646.trm

5)使用命令Tkprof 生成Tkprof trace文件

[oracle@ebs trace]$ tkprof prod_ora_23646.trc【回车】

output = tkprof_23646.trc

TKPROF: Release 11.1.0.7.0 – Production on Fri Dec 10 14:28:12 2010

Copyright (c) 1982, 2007, Oracle. All rights reserved.

6)重新查询,查看该pid对应的.trc文件,使用ftp 下载到本地。

[oracle@ebs trace]$ ls *23646*

prod_ora_23646.trc prod_ora_23646.trm tkprof_23646.trc

[oracle@ebs trace]$

获取Oracle EBS数据库跟踪文件方法的更多相关文章

  1. 如何查找ORACLE中的跟踪文件

    一.跟踪文件是干什么用的?        跟踪文件中包含了大量而详细的诊断和调试信息.通过对跟踪文件的解读和分析,我们可以定位问题.分析问题和解决问题.从跟踪文件的产生的来源来看,跟踪文件又可以分为两 ...

  2. ORACLE跨数据库查询的方法

    原文地址:http://blog.csdn.net/huzhenwei/article/details/2533869 本文简述了通过创建database link实现Oracle跨数据库查询的方法 ...

  3. Oracle警告、跟踪文件(10046、死锁等跟踪)

    跟踪文件由各个后台进程生成,警报日志中记录关键操作包括:     ·所有启动和关闭命令,包括中间命令,如alter database mount     ·实例的所有内部错误(ORA-600错误,只能 ...

  4. 如何获取SQL Server数据库元数据的方法

    发布时间:2007.06.15 05:05    来源:赛迪网    作者:3946469 元数据简介 元数据 (metadata) 最常见的定义为“有关数据的结构数据”,或者再简单一点就是“关于数据 ...

  5. Sql Server 附加没有日志文件的数据库(.mdf)文件方法

    附加数据库,附加的时候会提醒找不到log文件 针对以上现象有两个写法的语句能解决: 写法一: USE MASTER; EXEC sp_detach_db @dbname = 'TestDB'; EXE ...

  6. oracle导出数据库dmp文件

    导出数据库为dmp文件,按照当前导出时间设置文件名称 @ECHO OFF ECHO 备份 SCOTT 用户的数据…… SET DBUserName=scott SET DBPassword= SET ...

  7. Oracle 导入数据库dmp文件

    场景:windows2008 R2系统 ,往新安装的oracle11g数据库导入同事给的dmp文件到指定的新建的用户. 1.创建表空间 在导入dmp文件之前,先打开查看dmp文件的表空间名称(tabl ...

  8. ADB工具 获取ROOT权限及复制文件方法

    adb push d:\tm3_sqlit.db data/zouhao/tm3_sqlit.dbadb pull data/zouhao/tm3_sqlit.db d:\tm3_sqlit.db a ...

  9. oracle数据库表空间追加数据库文件方法

    oracle数据库表空间追加数据库文件方法   针对非大文件方式表空间,允许追加文件进行表空间的扩展,单个文件最大大小是32G  第一种方式:表空间增加数据文件    www.2cto.com   1 ...

随机推荐

  1. 10.9zuoye

    public class fulei { public fulei() { System.out.println("欢迎使用海尔"); } public String Pinpai ...

  2. css写三角形

    #triangle-up {    width: 0;    height: 0;    border-left: 50px solid transparent;    border-right: 5 ...

  3. MyEclipse/eclipse 添加作者、注释、版本、时间等

    preferences>>java>>code style>>code templates>>comments>>找到相应的编辑即可

  4. Infinity,NaN

    常量 说明 Infinity 表示正无穷大的特殊值. -Infinity 表示负无穷大的特殊值. NaN Number 数据类型的一个特殊成员,用来表示“非数字”(NaN) 值. undefined ...

  5. .net使用httpHandler添加图片防盗链

    .net使用httpHandler添加图片防盗链1. 配置web.config: <!--图片添加水印的配置--> <httpHandlers> <add verb=&q ...

  6. Asp.net 后台调用js方法

    购物车实现逻辑简单.代码量也很少,具体细节就不说了,使用的时候,只要把MockDB类稍微改改,因为它是商品数据入口,为实现分布式部署,实际应用时可以更改为从服务调用,如:Web Service.WCF ...

  7. spring框架中工厂方法的创建和销毁

    1.编写接口UserSerivce: public interface UserService { public void sayHello(); } 2.编写实实现接口的方法,在该方法中除了要实现接 ...

  8. .NET中的Request

    获得浏览器中的URL 例:http://121.41.30.93:8010/ch/spell.aspx?id=58 Request.Url.PathAndQuery:/ch/spell.aspx?id ...

  9. TPshop学习

    笔记大纲: tpshop目录结构 功能模块 函数库 重要配置 助手函数 插件 模板 1.TPshop目录结构 目录结构(来自官方视频截图) 看这个图,目录结构一目了然.下面要讲的内容也是根据这个图展开 ...

  10. 匹配数字、字母和?%&=-_这几个符号的正则表达式

    /^[\w\?%&=\-_]+$/ 说明:(1) \w 代表 0-9a-zA-Z 即数字.字母 (2) \?%&=\-_ 匹配?%&=-_,而正则中?代表0个或1个,因为是特殊 ...