运维联盟俱乐部

 找回密码
 立即注册
查看: 3547|回复: 0

[日常管理] oradebug

[复制链接]
  • TA的每日心情
    开心
    2023-8-9 11:05
  • 发表于 2023-3-14 09:48:27 | 显示全部楼层 |阅读模式
    SUPTOOL: ORADEBUG (Doc ID 29786.1)


    Goal

    How to get trace file name and location from SQL*Plus when trace event is enabled in a session using 'Alter session'?
    Solution

    Use the command: Oradebug tracefile_name

    For example:

        At SQL*Plus prompt, execute:
           'Alter session set events ... ' statement to enable tracing.
        Issue:
           Oradebug setmypid
           Oradebug tracefile_name

    Sample Output

    SQL> conn sys/<password> as sysdba
    Connected.

    SQL> alter session set events '10046 trace name context forever, level 12';

    Session altered.

    SQL> oradebug setmypid
    Statement processed.

    SQL> oradebug tracefile_name
    /u01/app/oracle/diag/rdbms/v1120/v1120/trace/v1120_ora_26077.trc
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    运维联盟俱乐部 ( 冀ICP备19036648号 )

    GMT+8, 2024-5-17 19:46 , Processed in 0.045365 second(s), 21 queries , Gzip On.

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表