Trace another session in 9.2.0.6

Hello
I mainly use oradebug to framework 10046 trace event in the other session.
It works without problem, until I hit 9.2.0.6 old DB on WINDOWS 2000.
Whenever I use this 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 channel
I tried exec dbms_system.set_ev(10,20,10046,12,''); unsuccessfully as well (same error).

How to deal with this kind of old software on Windows 2000?
Please advice with real life experience that I have read the doc :).
Concerning
GregG

It should work. bug seems to me. you know what's going to happen if you connect to a call then try the package dbms_support if its installed. get the sid series of the session you want.

You can install the pkg of rdbms/admin is it is not already.

run dbms_support.start_trace_in_session (: sid: series, wait-online true, lie-online false);
run dbms_support.stop_trace_in_session (: sid: series);

Tags: Database

Similar Questions

  • Generate the trace for another session file and change the path

    Hello

    Please let me know how to configure tracing for another session and it is also possible that the trace file can be re-directed to another path than the default path user_dump_dest?

    Kind regards

    VN

    Use DBMS_MONITOR. SESSION_TRACE_ENABLE (and SESSION_TRACE_DISABLE).

    as far as I know, you cannot change the default location of the trace file.

    In a session, you can change its path filename with ALTER SESSION SET TRACEFILE_IDENTIFIER = "";

    Hemant K Collette

  • E-mail account do not send or receive e-mail. ' - ERR [IN USE] account is locked by another session or for maintenance, try again. »

    Account: ' pop.charter.net (2) ', server: 'pop.charter.net', Protocol: POP3, server response: '-ERR [IN USE] account is locked by another session or for maintenance, try again.', Port: 110, secure (SSL): no, Server error: 0x800CCC90, error number: 0x800CCC92

    original title: refuses to send/receive e-mail

    Well, you can't always believe them.  Try to remove your e-mail account, and then verify that you do not have interference antivirus (see www.oehelp.com/OETips.aspx#3) then compact and repair the database of WinMail (www.oehelp.com/WMUTil/) and add your account back once again and see if that makes a difference.  Also, make sure that you are checking in not too often (like every 2 minutes) for mail (Tools |) Options).

    Steve

  • ERROR LOCKING line seems to have been inserted in AD_ADOP_SESSIONS by another session

    Hi all

    Previously, I tried to apply a patch. During the process, there was a network error.

    I tried to reapply the patch by using this command: = phase prepare, apply, finalize, commissioning, clean jobs = restart 18620668 = yes

    Unfortunately, adopted out with status = 1 (failure)

    It's my data from the environment:

    EBS 12.2.4

    Database version 11.2.0.4

    OS: Oracle Linux 6

    adopscanlog-latest = Yes command output:

    Directory/u01/install/APPS/fs_ne/EBSapps/log/adoption/33/scan...

    /U01/install/apps/fs_ne/EBSapps/log/adop/33/adop_20150727_070102.log:

    ---------------------------------------------------------------------

    #(202-206) lines:

    ADPATCH logs directory: / u01/install/APPS/fs_ne/EBSapps/log/adoption/33/cutover_20150727_070102/DEV1_spaderp-dev1-app/log

    [PROCEDURE] Race: options adpatch /hotpatch, interactive nocompiledb = no = no console only = no workers = 1 restart no = no = abandonment Yes defaultsfile=/u01/install/APPS/fs2/EBSapps/appl/admin/DEV1_patch/adalldefaults.txt patchtop=/u01/install/APPS/fs2/EBSapps/appl/ad/12.0.0/patch/115/driver logfile = cutover.log driver = ucutover.drv acp = yes

    [UNEXPECTED] Error occurred during execution of CUTOVER.

    [UNEXPECTED] Implementation phase completed with errors/warnings. Check the log files

    #(204-208) lines:

    [UNEXPECTED] Error occurred during execution of CUTOVER.

    [UNEXPECTED] Implementation phase completed with errors/warnings. Check the log files

    [STATEMENT] Phase SHIFT END TIME: 27/07/2015-07:08:18

    [PROCEDURE] [EARLY 2015/07/27 07:08:18] Unlock sessions table

    /U01/install/apps/fs_ne/EBSapps/log/adop/33/finalize_20150727_070102/DEV1_spaderp-dev1-app/adzdshowlog.out:

    -----------------------------------------------------------------------------------------------------------

    #(517-521) lines:

    3451979 05:15:37 00:00:00 ad.bin.adop absorbent of PROCEDURE [START] lock on the sessions table

    3451979 05:15:37 table 00:00:00 ad.bin.adop STATEMENT locking ad_adop_sessions spaderp-dev1-app with interval of 60 seconds and the number of trials 2

    3451979 05:17:37 00:02:00 AD_ZD_ADOP. LOCK_SESSIONS_TABLE error: impossible to acquire the lock on the table to ad_adop_sessions.

    3451979 05:17:37 AD_ZD_ADOP 00:00:00. LOCK_SESSIONS_TABLE ERROR in line LOCK seems to have been inserted in AD_ADOP_SESSIONS by another session

    3451979 05:17:37 00:00:00 ad.bin.adop ERROR cannot execute the SQL statement:

    Hello.
    Bashar and Krishna,

    Thanks for your replies. I solved this problem by referring to the document and steps as breakfast by Oracle Support:

    Search for 0) locked sessions

    Select * from ad_adop_sessions where EDITION_NAME = "LOCK."

    (1) ad_adop_sessions backup:

    create the table ad_adop_sessions_bkp in select * from ad_adop_sessions;

    delete from ad_adop_sessions where adop_session_id = and EDITION_NAME = "LOCK."

    commit;

    (2) unlock the session:

    Start

    AD_ZD_ADOP. LOCK_SESSIONS_TABLE('spaderp-dev1-app',60,2);

    end;

    /

    (3) back up and delete the table APPLSYS. FND_INSTALL_PROCESSES;

    (4) restart adoption phase = failover and update the result

    5) next steps follow this document --> after applying the AD/T2K patches on 12.2.0, adoption phase = failover is a failure on startup of Apache OSH - time (Doc ID 1952008.1)

  • table update, cancel the change, another session could ' get value changes in 10g

    Edit data in a table, then advanced to change its original value. In general another session could get changed by advanced in select value but it not work. After the "starting strength" I can get it.

    I did this test in 11.2.0.3 and I get the value without the "starting strength". Who can tell me why? Thank you very much.

    ORACLE 10.2.0.1, OS rhel5.4 x86_64

    session1:

    SQL > create table ty (name varchar (20));

    Table created.

    SQL > insert into ty values ('XXXX');

    1 line of creation.

    SQL > commit;

    Validation complete.

    SQL > update ty set name = "YYYY";

    1 line update.

    SQL >

    session2:

    change cancel

    Select

    INDX,

    ktuxesta,

    ktuxecfl,

    ktuxesqn,

    ktuxesqn envelope #.

    ktuxescnw scnW,

    SNCB ktuxescnb,

    ktuxerdbf dba_file,

    ktuxerdbb dba_block,

    nub ktuxesiz

    Of

    x$ ktuxe

    where

    ktuxesta = 'ACTIVE '.

    ;

    KTUXESTA KTUXECFL KTUXESQN # SCNW DBA_FILE DBA_BLOCK NUB SNCB WRAP INDX

    ---------- ---------------- ------------------------ ---------- ---------- ---------- ---------- ---------- ---------- ----------

    263 ACTIVE NO 4 4 0 736229 5 59 1

    BED > define dba 5,59

    S/N 0X0140003B (5,59 20971579)

    BED > find/c XXXX

    File: /oracle/oradata/ora10/undotbs02.dbf (5)

    Block: 59 Offsets: 1361 in 1872 Dba:0x0140003b

    ------------------------------------------------------------------------

    58585858 0000000c 00480020 001 0002 001300e2 00000000 01000000 010000e2 c

    0000000b 01140008 0401003 b fd070000 00000086 fd070000 a 00400101 002, 0086

    00000019 0de30277 00000000 00000000 00000000 00000004 016d18bc 9c0a0000

    2a 000010 0000005 00170004 002b 0000 00400101 9c0a00ba 80000075 0e4000b9 b

    0e4000ff 12058102 0000002c 0000002f 00070600 00040001 00000002 c1170180

    01800778 72021315 162e0180 0180000c 00180010 001 0002 00150005 02000005 c

    02000000 00000000 0000000b 01133000 00040002 016d18bc 2a00003b 00400101

    002e0008 10400001 12058101 00000065 00090700 00070002 0000002c 104000ff

    00000001 80018001 80018001 8002c 109 07787202 1315162e 0000000c 00180010

    001C 0002 00150005 02000005 02000000 00000000 0000000 01132f00 00040002 b

    016d18bc 2a00003b 00400101 002f0007 10400001 104000ff 12058102 0000002c

    00000037 00090700 00070002 00000002 01800180 01800180 07787202 c10e0180

    1315162e 0000000c 00180010 001 0002 00150005 02000005 02000000 00000000 c

    0000000b 01132e00 00040002 016d18bc 2a00003b 00400101 002c 0007 10400001

    104000ff 12058102 00000036 00090700 00070002 00000002 c10e0180 0000002c

    01800180 01800180 07787202 1315162e 0000000c 00180010 001 0002 00150005 c

    < 32 bytes per line >

    BED > d/v s/n 1361 offset 5.59 County 10

    File: /oracle/oradata/ora10/undotbs02.dbf (5)

    Block: 59 Offsets: Dba:0x0140003b 1361 to 1370

    -------------------------------------------------------

    58585858 0000000c l 0048 XXXX... H

    < 16 bytes per line >

    BED >

    BED > change/c Davis dba 5,59 1361 offset

    WARNING: the content of previous BIFILE will be lost. Move forward? Y (Y/N)

    File: /oracle/oradata/ora10/undotbs02.dbf (5)

    Block: 59 Offsets: Dba:0x0140003b 1361 to 1370

    ------------------------------------------------------------------------

    44444444 0000000c 0048

    < 32 bytes per line >

    BED > sum dba 5,59 apply

    Check file 5, block 59 value:

    current = 0x0c0a, required = 0x0c0a

    BED > d/v s/n 1361 offset 5.59 County 10

    File: /oracle/oradata/ora10/undotbs02.dbf (5)

    Block: 59 Offsets: Dba:0x0140003b 1361 to 1370

    -------------------------------------------------------

    44444444 0000000c l 0048 Davis... H

    < 16 bytes per line >

    BED >

    session3:

    SQL > conn / as sysdba

    Connected.

    SQL > alter system flush buffer_cache;

    Modified system.

    SQL > alter system flush shared_pool;

    Modified system.

    SQL > conn ty/ty

    Connected.

    SQL > select * from ty.

    NAME

    --------------------

    XXXX

    SQL >

    SQL > startup force

    ORACLE instance started.

    Total System Global Area 285212672 bytes

    Bytes of size 2020192 fixed

    83889312 variable size bytes

    192937984 of database buffers bytes

    Redo buffers 6365184 bytes

    Mounted database.

    Open database.

    SQL > conn ty/ty

    Connected.

    SQL > select * from ty.

    NAME

    --------------------

    DELALANDE

    SQL >

    In 11g

    Oracle OS: RHEL X86_64 6.2 11.2.0.2

    session1:

    SQL > select * from test;

    NAME

    --------------------

    XXXX

    SQL > update test set name = "YYYY";

    1 line update.

    SQL >

    session2:

    SQL > /.

    KTUXESTA KTUXECFL KTUXESQN # SCNW DBA_FILE DBA_BLOCK NUB SNCB WRAP INDX

    ---------- ---------------- ------------------------ ---------- ---------- ---------- ---------- ---------- ---------- ----------

    343 ACTIVE NO 1288 1288 0 1738249 3 242 1

    BED > set s/n 3 242

    S/N 0X00C000F2 (12583154 3 242)

    BED > find/c XXXX

    File: /oradata/oradata/ora10/undotbs01.dbf (3)

    Block: 242 Offsets: 5741 to 6252 Dba:0x00c000f2

    ------------------------------------------------------------------------

    58585858 0000000 c 004 c 0020 0002 001400 010000 00000000 01000000 cd cd 001C

    0000000b 01130008 010000 00014 010e00ed 7d1a0000 00C 000000f2 0c 000000ee

    7d1a0000 530c8b99 861 000000f8 has 0000 00000 00000000 00000004 00C 00d7dbf2

    0de4dbff 7e000005 00200004 c 0500007 01b 00024 012f0000 80000096 861a 0062

    0c 400060 0c4000ff 12058101 0000002c 00070600 00030001 00000002 00db005c

    c10702c1 79640b0b 07018007 14151601 80018016 001d000c 004c 0020 00020002

    00020007 00010001 000000 cd cd b 010000 00000000 01000000 0000000, 01060008

    0c 010000 00014 000000ed 00000090 7d1a0000 7d1a0000 010d00c6 00C 000000f2

    cea43485 861 has 0000 00000 00000000 00000004 8fb30005 0d 000000 00C 000000f1

    001f0004 c 0500007 01b 00024 012e0000 861a 0062 80000082 0c 400060 0c4000ff

    0000002c 12050101 00db0054 000706ff 00040005 00020003 00000001 ff000000

    000600c 1 3f0000c1 610000c 1 16000079 640b0b14 15160080 00000080 0000000 c

    c 004 0020 0002 001400cd 010000 00000000 01000000 0000000b 01210008 cd 001C

    0c 010000 000000f2 00C 7c1a0000 000000C6 7d1a0000 00000090 00014 010c006f

    861a 0000 00000 00000000 00000004 0de4dbff 7e000005 06C 00000065 cea43471

    001C 0004 0500007c 01b 00024 012d 0000 8000006e 861a 0062 0c 400060 0c4000ff

    < 32 bytes per line >

    BED > change the offset of 3 242 s/n/c Davis 5741

    WARNING: the content of previous BIFILE will be lost. Move forward? Y (Y/N)

    File: /oradata/oradata/ora10/undotbs01.dbf (3)

    Block: 242 Offsets: 5741 to 6252 Dba:0x00c000f2

    ------------------------------------------------------------------------

    44444444 0000000c 004c 0020 0002 001400cd 010000 00000000 01000000 cd 001C

    0000000b 01130008 010000 00014 010e00ed 7d1a0000 00C 000000f2 0c 000000ee

    7d1a0000 530c8b99 861 000000f8 has 0000 00000 00000000 00000004 00C 00d7dbf2

    0de4dbff 7e000005 00200004 c 0500007 01b 00024 012f0000 80000096 861a 0062

    0c 400060 0c4000ff 12058101 0000002c 00070600 00030001 00000002 00db005c

    c10702c1 79640b0b 07018007 14151601 80018016 001d000c 004c 0020 00020002

    00020007 00010001 000000 cd cd b 010000 00000000 01000000 0000000, 01060008

    0c 010000 00014 000000ed 00000090 7d1a0000 7d1a0000 010d00c6 00C 000000f2

    cea43485 861 has 0000 00000 00000000 00000004 8fb30005 0d 000000 00C 000000f1

    001f0004 c 0500007 01b 00024 012e0000 861a 0062 80000082 0c 400060 0c4000ff

    0000002c 12050101 00db0054 000706ff 00040005 00020003 00000001 ff000000

    000600c 1 3f0000c1 610000c 1 16000079 640b0b14 15160080 00000080 0000000 c

    c 004 0020 0002 001400cd 010000 00000000 01000000 0000000b 01210008 cd 001C

    0c 010000 000000f2 00C 7c1a0000 000000C6 7d1a0000 00000090 00014 010c006f

    861a 0000 00000 00000000 00000004 0de4dbff 7e000005 06C 00000065 cea43471

    001C 0004 0500007c 01b 00024 012d 0000 8000006e 861a 0062 0c 400060 0c4000ff

    < 32 bytes per line >

    BED > apply sum s/n 3 242

    Check file 3, block 242 value:

    current = 0xae88, required = 0xae88

    BED >

    session3:

    SQL > alter system flush buffer_cache;

    Modified system.

    SQL > conn ty/ty

    Connected.

    SQL > select * from test;

    NAME

    --------------------

    DELALANDE

    SQL >

    SQL > select version of v$ instance;

    Version

    -----------------

    11.2.0.2.0

    SQL >

    Hell _in_memory_undo parameter

  • A way of questioning the content of a TWG populated by another session?

    Is it possible to query the contents of a global temporary Table, populated by another session?

    in other words, if:
    -a global temporary table named MY_GTT was created, it was once
    -Meeting A inserted lines in MY_GTT and has issued a COMMIT
    -Of the session is B possible at the session of A query MY_GTT mode?

    Is it possible to do if process A has not committed as a result?

    It is only for diagnostic purposes - is that we would need to scale or to automate.

    Thank you
    Mike

    Is it possible to query the contents of a global temporary Table, populated by another session?

    Directly, no.

    But you can write code that session is to share data with session B via:
    -an ordinary table
    -DBMS_PIPES
    -external file

  • Add a new ipsec connection to an interface (which work already in another session)

    Hi, guys like tittle says:

    I already have a session running ipsec.

    Now, I need to set up another with a different peer ipsec tunnel and traffic not related.

    Documents mention that it is not possible for re-branded, more than one encryption in an interface card.

    I have only a public interface, so how do you achieve this?

    BTW:

    I need also of course on the config... I can't turn the existing connection.

    Here is my config.

    **********************************************************************************************************

    !

    crypto ISAKMP policy 1

    BA 3des

    preshared authentication

    Group 2

    !

    address of isakmp crypto key [Council] 200.222.222.1

    !

    Crypto ipsec transform-set esp-3des esp-sha-hmac MYTRANSFORM

    !

    MYMAP 10 ipsec-isakmp crypto map

    Description "vpn site to site of my remote"

    defined by peer 200.222.222.1

    game of transformation-MYTRASNFORM

    match address 150

    !

    interface GigabitEthernet0/1/1.10

    encapsulation dot1Q 10

    IP 222.111.1.1 255.255.255.128

    IP access-group 170 to

    crypto MYMAP map

    !

    Extend 150 IP access list

    10 permit tcp host 172.24.3.1 eq 8888 host 172.22.0.1 (2032 matches)

    20 permit ip 172.24.3.0 0.0.0.255 host 172.22.8.16

    30 permit ip 172.24.3.0 0.0.0.255 host 172.22.5.41

    IP 172.24.3.0 allow 40 0.0.0.255 host 172.22.6.160 (64 matches)

    Any help on that would be preciated,

    Thank you!!

    Leo.

    Hello

    Essentially, you use existing map of Crypto

    So looking at your existing configuration

    • Add a new "crypto isakmp policy x" UNLESS the existing matches the parameters of new connections also
    • Add a new "isakmp crypto key" for this new peer configuration
    • Add a new configuration of "crypto ipsec transform-set" , UNLESS the existing matches the parameters of new connections also
    • Add a new ' access-list ' that defines networks the and remote for this VPN L2L
    • Add a new 'MYMAP x ipsec-isakmp crypto map' to the existing one

    If you could add something like this to the existing "crypto map"

    MYMAP 20 ipsec-isakmp crypto map

    Description Connection 2

    defined peer x.x.x.x

    transform-Set

    function address

    In particular note the number used in the foregoing 'MYMAP 20 ipsec-isakmp crypto map'

    So to my rest of understanding of configurations, you add as usual, but for the Crypto map you will need its own number sequence/number/order number.

    Also do not forget to add NAT0 / configurations NAT Exemption.

    Hope this helps

    Remember to mark a reply as the answer if it answered your question.

    Feel free to ask more if necessary.

    -Jouni

  • questions form to another session...

    Hi guys,.

    I tried to move the session state information from one page to another page that opens on Sikllbuilder Page modal, but nothing helped.
    I tried to pass session information from one page to another page state using the direction, but nothing helped.

    Can you please take a look...
    workapce: fam
    user: test
    PWD: test
    64941 application - Modal Page
    The value of the dynamic action of Skillbuilders, I used this static URL:
    f? p = & APP_ID.:2: & APP_SESSION.:2:P2_MOBILE, P2_MOBILE2, P2_MOBILE3: & P1_MOBILE., P1_MOBILE2., & P1_MOBILE3.
    Kind regards
    Fateh

    Fateh says:
    It is already there, for the test I did two separate dynamic actions.
    the first dynamic action defines the State of Session points. It is raised by the button "set session state."
    You can check the status of session of this page
    the second dynamic action triggers the modal Page when clicking on the button 'Set point three - Modal Page'
    who has this URL:
    f? p = & APP_ID.: 2: & APP_SESSION. : 2:P2_MOBILE, P2_MOBILE2, P2_MOBILE3: & P1_MOBILE., & P1_MOBILE2, & P1_MOBILE3.

    Hello

    Yes I saw that you put the session state. However, let's say that the first time that the page loads when there is no value to these points, it generates a URL to load in the modal pop-up window:

    f? p = 64941:2:1617766072516101:2:P2_MOBILE, P2_MOBILE2, P2_MOBILE3.

    Despite the fact that you set the session state, does not mean that its going to refresh the whole page, so the link html code that maintains. In other words, it is not get the running session-state values.

    As you send us the elements of the page via a dynamic action, on page 2, I just set the default value of the elements to the value of the items on page 1. I did it: P2_MOBILE for you show what I mean.

    Who is?

  • Break the LOCK which came from another session

    Hello everyone,

    Please help me solve this problem.

    My problem is to break the lock shot Session S1, S2 Session.

    I'm using the dbms_lock package functions.

    Session " S1 " run these 2 statements:

    DBMS_LOCK.allocate_unique (mon_contexte, handle);

    status: = dbms_lock.request (handle, dbms_lock. (X_MODE, li_timeout);

    "S1" can release his own lock:

    DBMS_LOCK.allocate_unique (mon_contexte, handle);

    status: = dbms_lock.release (handle);

    But ' S2 ' cannot override " S1 " shot lock using the same function "dbms_lock.release". ==> OK!

    My question is: session 'S2' how can I break the lock obtained by 'S1' no kill 'S1 '? (something like killing only the locking process)

    Thanks in advance...

    I'm not sure that understand the problem you are experiencing.

    If I have a single receiver program that waits for 1 second and processes for 10 (treatment here is simulated by call dbms_lock.sleep), the receiver will be get signal when it then calls waitone.

    declare
      l_msg varchar2(1000);
      l_status integer;
    begin
      dbms_alert.register( 'foo_alert' );
      loop
        dbms_output.put_line( 'Started waiting at ' || to_char( sysdate, 'hh24:mi:ss' ) );
        dbms_alert.waitone( 'foo_alert', l_msg, l_status, 1 );
        if( l_status = 0 )
        then
          dbms_output.put_line( 'Alert received: ' || l_msg );
          exit;
        end if;
        dbms_output.put_line( 'Started sleeping at ' || to_char( sysdate, 'hh24:mi:ss' ) );
        dbms_lock.sleep( 10 );
      end loop;
    end;
    

    If the session 1 runs this code and session 2 reports alert while 1 is in the call of dbms_lock.sleep

    SQL> exec dbms_alert.signal( 'foo_alert', 'My message sent at ' || to_char( sysdate, 'hh24:mi:ss') );
    PL/SQL procedure successfully completed.
    
    SQL> commit;
    Commit complete.
    

    Session 2 will be notified of the signal when he returns the call to WAITONE.  Note that the message has been sent 3 seconds after the first call to WAITONE had expired (and thus 3 seconds in the 'work' simulated by DBMS_LOCK. (SLEEP).  The signal has been received once this piece of work was completed, and the loop went back to waiting on the alert.

    SQL> ed
    Wrote file afiedt.buf
    
      1  declare
      2    l_msg varchar2(1000);
      3    l_status integer;
      4  begin
      5    dbms_alert.register( 'foo_alert' );
      6    loop
      7      dbms_output.put_line( 'Started waiting at ' || to_char( sysdate, 'hh24:mi:ss' ) );
      8      dbms_alert.waitone( 'foo_alert', l_msg, l_status, 1 );
      9      if( l_status = 0 )
     10      then
     11        dbms_output.put_line( 'Alert received: ' || l_msg );
     12        exit;
     13      end if;
     14      dbms_output.put_line( 'Started sleeping at ' || to_char( sysdate, 'hh24:mi:ss' ) );
     15      dbms_lock.sleep( 10 );
     16    end loop;
     17* end;
    SQL> /
    Started waiting at 18:07:45
    Started sleeping at 18:07:46
    Started waiting at 18:07:56
    Alert received: My message sent at 18:07:49
    
    PL/SQL procedure successfully completed.
    

    Justin

  • Why SQL_ID is null for another session

    Hello

    I use Oracle XE 10 g installed on windows XP. I have connected to DB using SQL * more demand twice but the user names are different

    SQL > Connect sys as sysdba
    Password: *.
    Connected.
    SQL > Select sid, username from V$ session where the username is not null;
    SID username
    31 SYS

    Open the SQL * plus the 2nd times

    SQL > Connect Danae
    Password: *.
    Connected.

    SQL > user to see the
    SYS
    SQL > select sid, username from V$ session where the username is not null
    SID username
    Danae 29
    31 SYS

    SQL > show user
    Danae
    SQL > select * sample;
    NUM name
    ABC 1
    .
    ..
    3 selected lines.

    SQL > shoe user sys
    SQL > select sid, sql_id from V$ session where the username is not null

    SID SQL_ID
    29
    31 7xhp0k7jdb4z

    Why SQL_ID is null for the SID = 29?

    Can you please explain...

    I think we may need to quickly check the documentation:
    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28320/dynviews_3016.htm
    "SQL_ID: identifier SQL in the SQL statement that is currently running.
    "PREV_SQL_ID: the last SQL statement executed SQL identifier.

    This implies that SQL_ID holds a value when the session is running of a SQL statement. You can check by querying also the PREV_SQL_ID column:

    select sid,sql_id,PREV_SQL_ID from V$session where username is not null;
    

    Charles Hooper
    Co-author of "Expert Oracle practices: Oracle Database Administration of the Oak Table.
    http://hoopercharles.WordPress.com/
    IT Manager/Oracle DBA
    K & M-making Machine, Inc.

  • Simultaneous removal and update of PK since another session

    Hi friends,
    I have a large table which I delete with an index from a single session. While it is running in the background, I'm trying to update the primary key of the same table to a different line which is not included in delete it (without line-level locking). But my second session seems to be hanged. Please can you explain the reason. This will happen if I do an insert on this table?

    Yes, there are FKs pointing back to the EMP table.

    The (sad) reality is that you can have FK without having a UNIQUE on CF index.
    When there is no index FK, child table together gets locked when changes (INSERT, UPDATE, DELETE) is made for PK.
    After evidence indexes exist for all FK pointing to the EMP table.

  • Windows Live Mail error: account is locked by another session.

    I just had a new smartphone (Samsung galaxy s5) and set up my email on the phone charter.net.  E-mail works fine on the phone, but e-mail now does not work on my pc using Windows Live Mail, as long as the phone is connected to e-mail.  Verizon and Charter as saying that it is a question of Live Mail.  Any thoughts?

    [Original title: Windows Live Mail issue]

    Thanks for the help.  I understand what is happening now.  I'm sure that your solution works, but what I finally did was set up the phone to only check email manually and then make sure that the email phone application is closed when I finish.  Windows Live Mail then was not a problem.  This works best for my situation.  Thank you.

  • How to find who holds a SQL lock when its not v$ session.sql_id and v$ session.prev_sql_id

    Hi all

    Looking a little nudge in the right direction on a strange problem with blocking locks in our database of BSE...

    We occasionally will blocking locks in our EBS 12.1.3 database (11.2.0.4 CARS on OEL5).   I can easily determine the INST_ID select and SID that keeps the lock with this:

    Select final_blocking_instance, final_blocking_session from gv$ session where lockwait is not null;

    and can use these results to find the specific object being blocked by querying a gv$ locked_object where session_id = xxx and INST_ID select = xxx.   These sessions blocker are generally inactive to an event of "SQL * Net client message"-while they seem to be connected to the database users who need simply to commit or rollback transactions.   Usually, when I see this type of behavior, the specific application involved in the unresolved external transactions is easy to find by taking the SQL_ID (or sometimes the PREV_SQL_ID) value of gv$ session and questioning gv$ sql.  I can then use this information to better understand what users are trying to accomplish and help them understand what they need to change to avoid the deadlock problem.

    But recently, we have integrated the add-on of Oracle content management and it seems to have added (I suspect indirectly) triggers for many forms EBS our users work in.  Now that we know these "locks blocking inactive form" - and the SQL_ID value is zero and related PREV_SQL_ID sql_text is

    SELECT * FROM AXF_COMMANDS_SYN WHERE FORMID =: b1 AND (MENUTYPE = 'SPÉCIAL' MENUTYPE or = "ZOOMANDSPECIAL") AND AXF_COMMANDS_SYN. SPECIAL 'n' IS NOT NULL


    Although I can see SGS $ locked_object both the text of the SQL being run by sessions which blocked the blocking the locks held by the session is on an object (for example RA_CUSTOMER_TRX_ALL) that does not seem to be at all related to AXF_COMMANDS_SYN.   The AXF schema has been added as part of the deployment of content management.


    So, my thought is that a different cursor open (previous) held by the session is the real unresolved SQL that maintains the lock.  Is there a way to determine the SQL_ID of this query "indirectly" from gv$ locked_object / gv$ transaction, gv$ open_cursor, etc.?  I can determine what is the problem and what user, we need to talk to him - but I would really like to find the exact SQL that is involved.   I am also to establish if the new behavior is somehow contributing to locking problems blocking or just 'a Kipper"- and I think I know which statement SQL Gets the lock will help me to move forward with the investigation.  I'm sure I could find this info by tracing the blocking - session but the problem occurs rarely, and I'm not able to determine which trace session until it is too late... :-)


    Any recommendations would be appreciated, and my apologies for the long post...









    A session may issue a followed LMD of 5 requests without issuing a commit.

    Another session may be attempting a DML when the 5th request session above is running.  Querying V$ session for the first session SQL_ID or PREV_SQL_ID wouldn't you say the first SQL DML.

    You can walk backwards through V$ ACTIVE_SESSION_HISTORY (if you have the License Pack diagnosis) and determine all SQL_IDs of this first session if they did get captured in V$ ACTIVE_SESSION_HISTORY or DBA_HIST_ACTIVE_SESS_HISTORY.  (Attention: not all SQLs are captured - particularly short-lived SQLs can't get captured)

    Hemant K Collette

  • SQL trace

    Hello

    I know how to generate sql trace of user session that follows.

    SQL > ALTER SESSION SET EVENTS 10046 trace name forever, context level 12';

    SQL > alter session set tracefile_identifier = "xyz";

    I want to know how to generate sql trace system (or any other account) from different machine when working some of the user databases with SQL and PLSQL on another computer and access the database.

    concerning

    EXEC DBMS_SYSTEM.set_sql_trace_in_session (211, 23084, TRUE);

    EXEC DBMS_SYSTEM.set_ev (211, 23084, 10046, 12, 'test');

    You do not use both.  Use set_sql_trace_in_session (preferred) or set_ev (not officially supported).

    But I want to find other user sessions.

    Yes, an account with EXECUTE on DBMS_SYSTEM (for example with the DBA role) can use dbms_system.set_sql_trace_in_session to enable tracing to another session.

    Note that the name of the trace file is by processID of BONES of the dedicated server process (i.e. the SPID in V$ PROCESS for this session)

    Hemant K Collette

  • CLIENT_IDENTIFIER-based tracing session

    Hi all

    I'm on 11.2.0.1... we not a sap application and trying to follow a session at the end of DB... and seems to be the work that the end user running jumps from one session to the next in this senerio... How to draw a session? I read the article on dbms_monitor package to draw... but as I mentioned, sap keep chaning the session from one to the other...

    I read the article...
    http://ocsurabaya.WordPress.com/2007/07/18/tracing-SQL-in-Oracle-database-10G/
    in which she suggests to define the name of the service and the name of the module... but the problem is its hard get the name of the module as its actually not bad things... it jumps from one module to another... is anyway to trace a session based on its CLIENT_IDENTIFIER (from v $session)... because it looks like to the user domian account so that the user who runs the work...

    as I mentioned during this time (when the job is run)... change sid, modeule changes... the only coherent thing is the CLIENT_IDENTIFIER (which seems to be the user domian name)...
    so, how can I trace a session based on CLIENT_IDENTIFIER?

    DBMS_MONITOR.client_id_trace_enable

Maybe you are looking for