TRACE A SESSION

hi,
i kept my database in sql_trace=true.i want to know the particular session information .
how to trace a particular session in oracle.

Or if you can edit the code; another way:-
--alter session set events '10046 trace name context forever level nn'
--where nn:
-- 1 is same as a regular trace.
-- 4 means also dump bind variables
-- 8 means also dump wait information
-- 12 means dump both bind and wait information
--alter session set events '10046 trace name context forever, level 4';
alter session set events '10046 trace name context forever, level 8';
--alter session set events '10046 trace name context forever, level 12';                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • How to Trace a Session

    Hi,
    Can you please tell me how we can trace a session in SQL Developer?
    After I press the Autotrace option on worksheet, it does not get activated.
    Please help me,
    Thanks,
    Rahul

    Rahul,
    did you intend to do a session trace (e.g. "sql_trace=true") or the autotrace ("set autotrace ...")? The autotrace button does NOT trace your whole session but only the sql in your window, one at a time.
    This works for me in v1.1.25.14, yet there seems to be an issue with the explain plan.
    Regards,
    --==/ Uwe \==--

  • Is there any way to trace my session even when i forgot to fire  spool

    Is there any way to trace my session even when i forgot to fire
    spool [file name] .................

    No, not as fa as I know.
    Traces of a session and spool are not related.
    You need to set an audit trail to trace a session.
    Spool simply spools to a file your work in SQL*Plus.
    Hope this Helps

  • Is there any way to trace my session

    Is there any way to trace my session even when i forgot to fire
    spool file name .................

    Tkprof can give you all information below
    [http://www.orafaq.com/wiki/TKProf]
    TKProf
    From Oracle FAQ
    Jump to: navigation, search
    TKProf is an Oracle database utility used to format SQL Trace output into human readable format. The TKProf executable is located in the ORACLE HOME/bin directory.
    [edit] Start TKProf
    Syntax is:
    tkprof input.trc output.prf [options]
    Example:
    $ tkprof orcl102_ora_3064.trc output.prf EXPLAIN=scott/tiger SYS=NO
    [edit] Sample output
    For the above example, the output would be in file output.prf:
    Tkprof: Release 9.2.0.1.0 - Production on Tue Dec 24 15:32:43 2002
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Trace file: ORCL102_ora_3064.trc
    Sort options: default
    count    = number of times OCI procedure was executed
    cpu      = cpu time in seconds executing
    elapsed  = elapsed time in seconds executing
    disk     = number of physical reads of buffers from disk
    query    = number of buffers gotten for consistent read
    current  = number of buffers gotten in current mode (usually for update)
    rows     = number of rows processed by the fetch or execute call
    select *
    from
    employee where emp_id = 3737
    call     count       cpu    elapsed       disk      query    current        rows
    Parse       10      0.00       0.03          0          0          0           0
    Execute     10      0.00       0.00          0          0          0           0
    Fetch       20      0.34       0.35         72       4730          0          10
    total       40      0.34       0.39         72       4730          0          10
    Misses in library cache during parse: 1
    Optimizer goal: CHOOSE
    Parsing user id: 59
    Rows     Row Source Operation
          1  TABLE ACCESS FULL EMPLOYEEAnother insteresting link
    [http://www.dbspecialists.com/files/presentations/use_explain.html]

  • Deadlock occur how to read trace file session info

    i got a dead lock & here is the part of trace from the call stack here i know one process but how i can get the inofrmation of
    process 237 session 126 , i want to know which two process are involved in dead lock , i know table and rowid but i want to know the secod call stack or procedure if any one can help please reply .
    *** 2010-08-16 17:32:48.038
    *** SESSION ID:(126.255) 2010-08-16 17:32:47.880
    DEADLOCK DETECTED ( ORA-00060 )
    The following deadlock is not an ORACLE error. It is a
    deadlock due to user error in the design of an application
    or from issuing incorrect ad-hoc SQL. The following
    information may aid in determining the deadlock:
    Deadlock graph:
    ---------Blocker(s)-------- ---------Waiter(s)---------
    Resource Name process session holds waits process session holds waits
    TX-001a0026-0002969f 237 126 X 253 147 X
    TX-00010014-00020a0a 253 147 X 237 126 X
    session 126: DID 0001-00ED-00000028     session 147: DID 0001-00FD-000000A0
    session 147: DID 0001-00FD-000000A0     session 126: DID 0001-00ED-00000028
    Rows waited on:
    Session 147: obj - rowid = 00001209 - AAAEiHAA0AAACCzABA
    (dictionary objn - 4617, file - 52, block - 8371, slot - 64)
    Session 126: obj - rowid = 00001209 - AAAEiHAA0AAACCyAAd
    (dictionary objn - 4617, file - 52, block - 8370, slot - 29)
    Information on the OTHER waiting sessions:
    Session 147:
    pid=253 serial=316 audsid=21499288 user: 77/<none>
    O/S info: user: , term: , ospid: 1234, machine: reg-bpel1.viterra.ca
    program:
    client info: BPEL_MESSAGING 1.00 SHIPMENT_ACTUALS_SYNC MSG_INTF_BATCH
    Current SQL Statement:
    SELECT NEXT_ID, UPDATE_DT_TIME, UPDATE_USER_ID FROM ID_V WHERE UPPER(TABLE_NAME) = UPPER(:B1 ) FOR UPDATE OF NEXT_ID
    End of information on OTHER waiting sessions.
    Current SQL statement for this session:
    SELECT NEXT_ID, UPDATE_DT_TIME, UPDATE_USER_ID FROM ID_V WHERE UPPER(TABLE_NAME) = UPPER(:B1 ) FOR UPDATE OF NEXT_ID
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    373209A0 74 package body GA_APPLICATION.DATALESS_KEY_PROCESSING_PKG
    373209A0 156 package body GA_APPLICATION.DATALESS_KEY_PROCESSING_PKG
    407DC818 247 package body GA_APPLICATION.MESSAGE_AND_HISTORY_PKG
    407DC818 358 package body GA_APPLICATION.MESSAGE_AND_HISTORY_PKG
    41502DC8 9705 package body GA_APPLICATION.BPEL_ORDER_PKG
    41502DC8 5520 package body GA_APPLICATION.BPEL_ORDER_PKG
    416091D0 1286 package body MSG_INTF_APPLICATION.ORDER_PKG
    42C2C638 1 anonymous block
    ===================================================
    PROCESS STATE
    Process global information:
    process: 31853F30, call: 36FF8998, xact: 3471B720, curses: 31B53BD8, usrses: 31B53BD8
    SO: 31853F30, type: 2, owner: 0, flag: INIT/-/-/0x00
    (process) Oracle pid=237, calls cur/top: 36FF8998/36FF8930, flag: (0) -
    int error: 0, call error: 0, sess error: 0, txn error 0
    (post info) last post received: 0 0 4
    last post received-location: kslpsr
    last process to post me: 3181e400 1 6
    last post sent: 0 0 16
    last post sent-location: ksasnd
    last process posted by me: 3181e400 1 6
    (latch info) wait_event=0 bits=0
    Process Group: DEFAULT, pseudo proc: 31B01F50
    O/S info: user: , term: , ospid: 000700E6
    OSD pid info: OSDI process pid: 000700E6, image: MINBNDS
    SO: 350BD728, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa6d60 incno=0 pending i/o cnt=0
    SO: 350C2A98, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa62f0 incno=0 pending i/o cnt=0
    SO: 350C28B8, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33a9d0d0 incno=0 pending i/o cnt=0
    SO: 350C25E8, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa7fa8 incno=0 pending i/o cnt=0
    SO: 350C0EC0, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aaa438 incno=0 pending i/o cnt=0
    SO: 350BB0A0, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aaa190 incno=0 pending i/o cnt=0
    SO: 350BB028, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa2c28 incno=0 pending i/o cnt=0
    SO: 350BAF38, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33a9db40 incno=0 pending i/o cnt=0
    SO: 350E12A8, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa2990 incno=0 pending i/o cnt=0
    SO: 350C8B88, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa07a8 incno=0 pending i/o cnt=0
    SO: 350CB2D0, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa14b0 incno=0 pending i/o cnt=0
    SO: 350CB258, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa50b8 incno=0 pending i/o cnt=0
    SO: 350DA3F0, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aac620 incno=0 pending i/o cnt=0
    SO: 35146570, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33a9e858 incno=0 pending i/o cnt=0
    SO: 3516B278, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa4b78 incno=0 pending i/o cnt=0
    SO: 35110D50, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa4e10 incno=0 pending i/o cnt=0
    SO: 3510E380, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa8240 incno=0 pending i/o cnt=0
    SO: 35109CB8, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa19e0 incno=0 pending i/o cnt=0
    SO: 35104030, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa48e0 incno=0 pending i/o cnt=0
    SO: 350FFFB0, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33a9f7f8 incno=0 pending i/o cnt=0
    SO: 350FCD70, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa3400 incno=0 pending i/o cnt=0
    SO: 350EF0A8, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aab918 incno=0 pending i/o cnt=0
    SO: 350E4650, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa6058 incno=0 pending i/o cnt=0
    SO: 350D7930, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa84e8 incno=0 pending i/o cnt=0
    SO: 35109E20, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa8cb0 incno=0 pending i/o cnt=0
    SO: 350D6A00, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33a9cba0 incno=0 pending i/o cnt=0
    SO: 350FAE98, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa1218 incno=0 pending i/o cnt=0
    SO: 350FA5F8, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33a9f560 incno=0 pending i/o cnt=0
    SO: 350FA238, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33a9d8a8 incno=0 pending i/o cnt=0
    SO: 350EDAE8, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33a9c3c8 incno=0 pending i/o cnt=0
    SO: 350EBF58, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aab140 incno=0 pending i/o cnt=0
    SO: 350EBD00, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aacb50 incno=0 pending i/o cnt=0
    SO: 350EBC88, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa21b8 incno=0 pending i/o cnt=0
    SO: 350EBC10, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aaaea8 incno=0 pending i/o cnt=0
    SO: 350D0238, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aac388 incno=0 pending i/o cnt=0
    SO: 350CDF70, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aabbb0 incno=0 pending i/o cnt=0
    SO: 350CDEF8, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa1748 incno=0 pending i/o cnt=0
    SO: 350CDE80, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa72a0 incno=0 pending i/o cnt=0
    SO: 350CDE08, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa7538 incno=0 pending i/o cnt=0
    SO: 350CDD90, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa6ac8 incno=0 pending i/o cnt=0
    SO: 350CDD18, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33a9fd38 incno=0 pending i/o cnt=0
    SO: 350CDB38, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa0a40 incno=0 pending i/o cnt=0
    SO: 350CBEB8, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aabe48 incno=0 pending i/o cnt=0
    SO: 350CBA08, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33a9e080 incno=0 pending i/o cnt=0
    SO: 350CB828, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa5350 incno=0 pending i/o cnt=0
    SO: 350CB168, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa4108 incno=0 pending i/o cnt=0
    SO: 350CB078, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33aa9720 incno=0 pending i/o cnt=0
    SO: 350CB000, type: 8, owner: 31853F30, flag: INIT/-/-/0x00
    (FOB) flags=2 fib ptr=33a9ce38 incno=0 pending i/o cnt=0
    SO: 31B53BD8, type: 4, owner: 31853F30, flag: INIT/-/-/0x00
    (session) trans: 3471B720, creator: 31853F30, flag: (100045) USR/- BSY/-/-/-/-/-
    DID: 0001-00ED-00000028, short-term DID: 0000-0000-00000000
    txn branch: 0
    oct: 3, prv: 0, sql: 3731E1A8, psql: 3731E1A8, user: 77/<none>
    O/S info: user: , term: , ospid: 1234, machine: reg-bpel1.viterra.ca
    program:
    client info: BPEL_Messaging 1.00 SO_SYNC MSG_INTF_BATCH
    last wait for 'enqueue' blocking sess=0x31b60208 seq=11337 wait_time=3333245
    name|mode=e3e70006, id1=10014, id2=20a0a
    temporary object counter: 0
    SO: 36D06490, type: 52, owner: 31B53BD8, flag: INIT/-/-/0x00
    LIBRARY OBJECT PIN: pin=36d06490 handle=3731f318 mode=S lock=53af8dc8
    user=31b53bd8 session=31b53bd8 count=1 mask=0041 savepoint=63373 flags=[00]
    SO: 4C1AEF38, type: 51, owner: 31B53BD8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=4c1aef38 handle=3eb115d8 mode=N
    call pin=0 session pin=439995E8
    htl=4C1AEF74[3403195C,510B35B8] htb=510B35B8
    user=31b53bd8 session=31b53bd8 count=1 flags=[00] savepoint=63228
    LIBRARY OBJECT HANDLE: handle=3eb115d8
    namespace=CRSR flags=RON/KGHP/PN0/[10010000]
    kkkk-dddd-llll=0000-0041-0041 lock=N pin=0 latch#=2
    lwt=3EB115F0[3EB115F0,3EB115F0] ltm=3EB115F8[3EB115F8,3EB115F8]
    pwt=3EB11608[3EB11608,3EB11608] ptm=3EB11660[3EB11660,3EB11660]
    ref=3EB115E0[3EB11820, 3EB11820] lnd=3EB1166C[3EB1166C,3EB1166C]
    LIBRARY OBJECT: object=3eb10850
    type=CRSR flags=EXS[0001] pflags= [00] status=VALD load=0
    DEPENDENCIES: count=6 size=16
    AUTHORIZATIONS: count=1 size=16 minimum entrysize=28
    ACCESSES: count=2 size=16
    TRANSLATIONS: count=2 size=16
    DATA BLOCKS:
    data# heap pointer status pins change
    0 3eb10a60 3eb10608 I/P/A 0 NONE
    6 3eb108f8 3eb0f3a8 I/-/A 0 NONE
    SO: 4C1AF910, type: 51, owner: 31B53BD8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=4c1af910 handle=3eb1e3b8 mode=N
    call pin=46E24C60 session pin=0
    htl=4C1AF94C[3502B6B4,510B3680] htb=510B3680
    user=31b53bd8 session=31b53bd8 count=1 flags=[00] savepoint=63227
    LIBRARY OBJECT HANDLE: handle=3eb1e3b8
    name=
    INSERT INTO PO_MSG ( PO_MSG_ID ,PO_ID ,PO_NBR ,PO_DT ,LOC_ACCT_ID ,PO_FORMAT ,DS_ID ,QGRD_TABLE_PROD_ID ,TRANS_MODE ,TRA
    NS_TYPE_ID ,SPLIT_WHEN ,LEAD_CAR_NBR ,PO_STATUS ,ENABLE_EXTEND_AMT ,CONTROL_NBR ,SHIP_WHEN ,PO_TYPE ,PRINT_COPIES ,PRINT
    PRICE ,GENERATESO ,RETURN_AUTHORIZE ,ASSESS_STATE_ID ,REPEAT_ORDER ,REPEAT_NBR_DAYS ,REPEAT_DAY ,REPEAT_DAYS ,REPEAT_U
    NTIL_DT ,CURRENCY_ID ,CURR_RATE_TYPE_ID ,EXCH_RATE_AVG ,COMMENTS_EXIST ,CREATE_USER_ID ,CREATE_DT_TIME ,UPDATE_USER_ID ,
    UPDATE_DT_TIME ,REPEAT_TRIGGER ,
    hash=e58fc51 timestamp=08-15-2010 08:22:27
    namespace=CRSR flags=RON/KGHP/TIM/PN0/[10010000]
    kkkk-dddd-llll=0000-0001-0001 lock=N pin=0 latch#=2
    lwt=3EB1E3D0[3EB1E3D0,3EB1E3D0] ltm=3EB1E3D8[3EB1E3D8,3EB1E3D8]
    pwt=3EB1E3E8[3EB1E3E8,3EB1E3E8] ptm=3EB1E440[3EB1E440,3EB1E440]
    ref=3EB1E3C0[3EB1E3C0, 3EB1E3C0] lnd=3EB1E44C[3EAECA24,3EB20044]
    LIBRARY OBJECT: object=3eb118f0
    type=CRSR flags=EXS[0001] pflags= [00] status=VALD load=0
    CHILDREN: size=16
    child# table reference handle
    0 3eb11a98 3eb11820 3eb115d8
    DATA BLOCKS:
    data# heap pointer status pins change
    0 3eb25b40 3eb11980 I/P/A 0 NONE
    SO: 4C752940, type: 51, owner: 31B53BD8, flag: INIT/-/-/0x00
    LIBRARY OBJECT LOCK: lock=4c752940 handle=3eb20cf8 mode=N
    call pin=3B503AF8 session pin=0
    htl=4C75297C[36856DD4,510B3628] htb=510B3628
    user=31b53bd8 session=31b53bd8 count=2 flags=[00] savepoint=63218
    LIBRARY OBJECT HANDLE: handle=3eb20cf8
    name=GA_APPLICATION.PO_AUR
    hash=92b14a46 timestamp=06-29-2010 21:08:46
    namespace=TRGR flags=KGHP/TIM/SML/[02000000]
    kkkk-dddd-llll=0000-0059-0059 lock=N pin=0 latch#=5
    lwt=3EB20D10[3EB20D10,3EB20D10] ltm=3EB20D18[3EB20D18,3EB20D18]
    pwt=3EB20D28[3EB20D28,3EB20D28] ptm=3EB20D80[3EB20D80,3EB20D80]
    ref=3EB20D00[3EB20D00, 3EB20D00] lnd=3EB20D8C[3EAB046C,3EB79DFC]
    LIBRARY OBJECT: object=3eb20c10
    type=TRGR flags=EXS/LOC[0005] pflags=NST [01] status=VALD load=0
    DEPENDENCIES: count=17 size=32
    READ ONLY DEPENDENCIES: count=2 size=16
    ACCESSES: count=5 size=16
    DATA BLOCKS:
    data# heap pointer status pins change
    0 3eb25ba8 3eb208f0 I/-/A 0 NONE
    3 3eb207d0 0 -/P/- 0 NONE
    4 3eb20838 3eb1f558 I/-/A 0 NONE
    6 3eb208a0 3eb1dd60 I/-/A 0 NONE
    ----------------------------------------

    Hi,
    ---------Blocker(s)-------- ---------Waiter(s)---------
    Resource Name process session holds waits process session holds waits
    TX-001a0026-0002969f 237 *126* X 253 *147* X
    TX-00010014-00020a0a 253 *147* X 237 *126* X
    session 126: DID 0001-00ED-00000028 session 147: DID 0001-00FD-000000A0
    session 147: DID 0001-00FD-000000A0 session 126: DID 0001-00ED-00000028
    Rows waited on:
    Session 147: obj - rowid = 00001209 - AAAEiHAA0AAACCzABA
    *(dictionary objn - 4617, file - 52, block - 8371, slot - 64)*
    Session 126: obj - rowid = 00001209 - AAAEiHAA0AAACCyAAd
    *(dictionary objn - 4617, file - 52, block - 8370, slot - 29)*
    Information on the OTHER waiting sessions:
    Session 147:
    pid=253 serial=316 audsid=21499288 user: 77/<none>
    O/S info: user: , term: , ospid: 1234, machine: reg-bpel1.viterra.ca
    program:
    client info: BPEL_MESSAGING 1.00 SHIPMENT_ACTUALS_SYNC MSG_INTF_BATCH
    Current SQL Statement:
    SELECT NEXT_ID, UPDATE_DT_TIME, UPDATE_USER_ID FROM ID_V WHERE UPPER(TABLE_NAME) = UPPER(:B1 ) FOR UPDATE OF NEXT_ID
    End of information on OTHER waiting sessions.
    Current SQL statement for this session:
    SELECT NEXT_ID, UPDATE_DT_TIME, UPDATE_USER_ID FROM ID_V WHERE UPPER(TABLE_NAME) = UPPER(:B1 ) FOR UPDATE OF NEXT_ID
    Has most of the information.
    You have to check what session 126 and 147 were doing. It also gives you information on object_id and rowid where you had the lock by two sessions.
    The culprit is FOR UPDATE OF NEXT_ID.
    Regards
    Edited by: skvaish1 on Aug 18, 2010 5:26 PM

  • Trace other session in 9.2.0.6

    Hi,
    I'm mostly using oradebug for setting 10046 trace event in other session .
    This works without problems , until I hit old 9.2.0.6 DB on WINDOWS 2000 .
    Every time I'm using that approach
    ORADEBUG SETOSPID &OSPID ;
    ORADEBUG EVENT 10046 TRACE NAME CONTEXT FOREVER, LEVEL 12;
    ORADEBUG TRACEFILE_NAME;
    Traced process gives:
    ORA-03113: end-of-file on communication channelI've tried exec dbms_system.set_ev(10,20,10046,12,''); with no success as well (same error) .
    How You deal with that kind of old software on Windows 2000 ?
    Please advice with real life experience I've read doc :).
    Regards
    GregG

    Thanks , looks like that worked .
    I did some additional tests and here follows my thoughts:
    1. All mentioned methods works (oradebug, dbms_system.set_ev) if traced session is not in tight pl/sql loop like:
    declare
    l_c number;
    begin
    for i in 1 .. 1000
    loop
    select count(*) into l_c from dba_source;
    end loop;
    end;
    /Session which is doing so crashed in all cased with exception of usage dbms_support .
    So, thanks again.
    Regards
    GregG

  • Problem to open Trace Tool session

    I try to use the "Stop and Save" VI then the "Load and Send" VI, or the "Stop and Send" VI.
    The Trace Toolkit interface on the supervisory PC displays the following message : "Loading ..." but never goes away.
    It may be linked to the newest version of NI DAQmx 7.4 I installed recently ?
    Tank you for answer.
    PS: I join the session file (.log) I created.
    Attachments:
    trace 28-04-05.zip ‏19 KB

    Hello,
    The NI-DAQmx 7.4 can be used with the Trace Toolkit.
    A possibility is that drivers had been corrupted.
    Then you could try to uninstall and install it again.
    If you still have the problem try to perform an example to reproduce the problem and send it.
    regards,
    Marc L.
    NIF

  • Trace a session that runs as a batch

    Hi, I am trying to identify the SQL which is causing an error in a batch program I am running. I am unable to bounce the database as its production, is it possible to enable trace without shutting down the database, and for a session that does not yet exist - it only exists when I start the program.
    thanks

    Well I managed to enable tracing using the logon trigger for the user that runs the batch program.
    This is the trigger I used.
    CREATE OR REPLACE TRIGGER user01_logon
    AFTER LOGON ON user01.SCHEMA
    BEGIN
    dbms_session.set_sql_trace (TRUE);
    END;
    CREATE OR REPLACE TRIGGER user01_logoff
    BEFORE LOGOFF ON user01.SCHEMA
    BEGIN
    dbms_session.set_sql_trace (FALSE);
    END;
    This generated the SQL in the trace file. But the error is to do with a bind variable - is there a way to identify the value of the bind variable is the trace file?

  • Trace Apex session from sqlplus

    Hi,
    Apex 4.2.4, Oracle 11.2.0.3, Apex Listener 2.0.5
    How to start Apex session trace from sqlplus command line? I know thread Trace with &p_trace=YES but this is not a solution because I want to start from sqlplus (PL/SQL code).
    Any help?
    Brg
    Damir

    Your question has changed.
    Your question now:  "How do I identify a session in the database that belongs to an APEX page?"
    Use the session tables to match your APEX connection to the information in the gv$session table.
    Yes - this is a "free" information in the database, but it is also secure.  You will need elevated privileges to do this.  Use with caution.
    You will not find a PLUG-IN that can do tracing if the base user can not do tracing.  The reason the URL feature is there from APEX is because APEX (the framework) has the access and ability - but that is not passed down to each workspace / schema without using the framework.
    I have no details of your installation or your application, so you will need to determine what types of calls are being made to the database and with what method (EPG, OHS, ORDS, etc..)
    select SID, SERIAL#,inst_id,program,module,event,Action,machine, client_info, CLIENT_IDENTIFIER
    from gv$session s where type!='BACKGROUND'
    and status='ACTIVE' and sql_id is not null;
    The CLIENT_IDENTIFIER will show you SESSION and USER
    The MODULE will show you APP and PAGE
    From there, you can do all your SID related tracing you need.

  • Setting trace for session other then yours

    Hi:
    I am on 10.2.0.3.
    I want to trace someother user session. So I find out the sid & serial# & issue this command:
    exec dbms_system.set_ev(<sid>,<serial#>,10046,12,'');
    Some processes are being run. Then I stop trace:
    exec dbms_system.set_ev(<sid>,<serial#>,10046,0,'');
    I go to my user_dump_dest - and there is no trace files out there.
    But when I do:
    exec dbms_system.set_sql_trace_in_session (<sid>,<serial#>,true);
    and then
    exec dbms_system.set_sql_trace_in_session (<sid>,<serial#>,false);
    The trace file gets created all right. But I need level 12 trace. Any ideas?
    TIA!

    Mystery solved. The last parameter needs to be null (which menas trace forever) - not ' '.

  • How to trace a session in 3 Tier Architecture

    Hi All,
    We are not able to trace perticutler terminal in 3 tier application b'coz OS user and terminal shows as application host (Server) name
    So kindly provide some workaround for the same.
    Thanks in advance
    Regards,

    Please have a look to end to end tracing: http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#i19083

  • Trace session based on CLIENT_IDENTIFIER

    Hello all,
    i am on 11.2.0.1....we have a sap application and trying to trace a session from DB end....and seems like the job that the end user runs jumps from one session to another....in this senerio...how would i trace a session ??? i read article about dbms_monitor package to trace it...but as i mention, sap keep chaning the session from one to another.....
    i read the below article...
    http://ocsurabaya.wordpress.com/2007/07/18/tracing-sql-in-oracle-database-10g/
    in which it suggest to set the service name and module name....but the problem is its hard to get the module name as its doing quite a few things....it jumps from one module to another....is there anyway to trace a session based on its CLIENT_IDENTIFIER (from v$session)....as this looks like the domian user account for that user who is running the job....
    as i mentioned during that time(when job is ran)...the sid changes, modeule changes...the only thing consistent is the CLIENT_IDENTIFIER ( which seems to be the domian user name )...
    so how can i trace a session based on CLIENT_IDENTIFIER ??

    user8363520 wrote:
    Hello all,
    i am on 11.2.0.1....we have a sap application and trying to trace a session from DB end....and seems like the job that the end user runs jumps from one session to another....in this senerio...how would i trace a session ??? i read article about dbms_monitor package to trace it...but as i mention, sap keep chaning the session from one to another.....
    i read the below article...
    http://ocsurabaya.wordpress.com/2007/07/18/tracing-sql-in-oracle-database-10g/
    in which it suggest to set the service name and module name....but the problem is its hard to get the module name as its doing quite a few things....it jumps from one module to another....is there anyway to trace a session based on its CLIENT_IDENTIFIER (from v$session)....as this looks like the domian user account for that user who is running the job....
    as i mentioned during that time(when job is ran)...the sid changes, modeule changes...the only thing consistent is the CLIENT_IDENTIFIER ( which seems to be the domian user name )...
    so how can i trace a session based on CLIENT_IDENTIFIER ??is application 3-tier?
    does application utilize connection pooling?

  • How to set SQL trace in OCI session ?

    Hello,
    In a SQL*Plus session, I can use the SQL statement "alter session set sql_trace=true;" to set SQL trace in that session only. I assume I could execute the same SQL statement from C code in an OCI client and achieve the same goal.
    However, if I cannot change the code of this OCI client, is there a way to set SQL trace for that single session alone, without changing the C code? Say, through an environment variable, configuration file, etc.?
    Thanks.

    I am not aware of a way to selectively enable the server-side tracing without modifying the client code.
    There is client tracing available by setting the environment variable EVENT_10842 as follows:
    "server=<>;user=<>;stmt=<>;level=<>;interval=<>"
    e.g.
    setenv EVENT_10842 "server=inst1,inst2;user=scott,system;stmt=all;level=15"
    Where:
    "server" is a comma separated list or "all"
    "user" is a comma separated list or "all"
    "stmt" can be INSERT,UPDATE,DELETE,SELECT or "all"
    The following levels are supported:
    1 - Trace all server attach and server detach calls for servers listed in "server" attribute of the environment variable.
    2 - Trace all session begin, logon, session end, logoff calls for the users listed in "user" attribute of the environment variable.
    3 - Trace all prepare, execute, fetch calls for the specified statement types listed in "stmt" attribute of environment variable.
    4 - Trace all Bind, Define, Describe calls.
    5 - Trace all OCI LOB calls
    7 - Get statistical info on all connection pooling /connection related calls
    8 - Get statistical info on all session info
    9 - Get statistical info on all handle info
    10 - Get statistical info on time taken in execute and fetch calls
    11 - Get statistical info on transaction related calls
    15 - Trace all calls with statistical info.

  • Trace sessions source

    We run SAP-J2EE 6.4 SP 17 on linux with JVM 1.4.2 in a cluster environment with 2 nodes.
    We found out that often, the system creates a few hundred sessions objects with the same login id within 1-2 minutes of time frame.
    Each line (out of a few hundreds) contain the following attributes
    User Name: [email protected]
    Session ID     : (J2EE1234567)ID0012345678DB12345678901234567890End
    Created On:17:24 02/09/07
    Last Access:17:24 02/09/07
    Expiration 17:54 02/09/07
    Application:<b>sap.com/irj</b>
    Note that the application attribute does not provide any real information about the application and process that created the sessions.
    Is there any way to trace those session.
    Thanks

    Hi,
    You can change the settings of logs and traces in Visual administrator.
    go to /usr/sap/SID/JCxx/j2ee/admin
    Then,./go.sh
    enter with administrator credentials.
    Under SIDserver---sevices--Log configurator.
    go to Locations tab at the right  side.
    Then go to com---sapengineservices--
    trace.
    Change the severity of the trace level as required there.
    reward points if helpful..............

  • Enable Trace for the Session Loggied in..

    Hi All,
    How to enable trace for the session logged in with out db bounce.
    after enable how to stop and how to get the trace file in readable format.
    Please suggest
    Thanks
    Mano

    Trace a session.
    1)Logout all sessions from the database
    2)Login to application (ensure that only one session is available)
    3)sqlplus trace/trace
    Schema which has privilege to trace the session
    4)check the sid and serial# of the session from v$session
    Use the following query
    SQL> select username,to_char(logon_time,'DD-MON-YYYY HH:MI:SS') from v$session where username='<db username>' order by logon_time;
    SQL>exec sys.dbms_system.set_sql_trace_in_session(sid,serial#,TRUE);
    5)now execute the report/transaction.
    6)once the activity is over
    SQL>exec sys.dbms_system.set_sql_trace_in_session(sid,serial,FALSE);
    7)Now the trace file will be available in the udump folder of the database ip
    Userid/password: trace/trace
    The trace wil be available in /oracle/admin/orcl/udump
    8)To find the name of the trace file use the below query
    select spid from v$process where addr=(select paddr from v$session where sid=<enter the SID>);
    This will give the name of the file
    If you are not able to identify the trace file then please remove all files in udump before starting trace.
    9) ftp the trace fil to ur local pc and issue the tkprof command
    TKPROF <trace file (like D:\orcl_8853.trc)> D:\trace.txt explain=Oracle username/password (application user) sort=(prsela,exeela,fchela)
    This will give trace file in readable format(you need to have 10g client on your pc for tkprof to work)

Maybe you are looking for

  • Getting an error while using BAPI for data upload using FB50

    Hi, Can someone please help with the error below : To Upload Data Using FB50 , am using 'BAPI_ACC_DOCUMENT_POST' FM and passing values as obj_type = REACI obj_KEY = '$' obj_sys = t000-logsys getting errors errors in return as 'Error in document: REAC

  • Why can't I download my acrobat subscription but you can bill quickly?  & call sales & paul hangs up

    why can't I download my acrobat subscription but you can bill quickly?  & call sales & paul hangs up

  • No SID Value Found?

    Hi Experts,    Is there any Permanent solution for No SID Value Found?     Transaction Data  First with out Master Data. Can u explain clearly for this Issue. Note : Points will be assinged. With Regards, Kiran

  • Puzzled and desperate

    hi after having my ipod for months and filling my library with songs to help me pass long days my pc died. So got new laptop and want to put songs from ipod onto laptop. Its windows vista and I want to transfer purchases and songs burned from discs I

  • I am having difficulty getting my iPhone to sync with iTunes.

    When I plug my phone in iTunes recognises it but does not start auto sync. I have the "Automatically sync iTunes when this device is plugged in" box checked. Also, all of the music on my PC Library does not transfer to the phone and niether does the