How to find the id of session procedure

How to find the id of my procedure proc1 session when I am running.

Thank you

You can use this function USERENV ('SESSIONID').
where sessionid parameter.

for example

SQL> select userenv('SESSIONID') from dual ;

USERENV('SESSIONID')
--------------------
                 563

SS

Tags: Database

Similar Questions

  • How to find the OS ppid in v$ session and V$ process

    Hello

    Oracle 11gDB

    I have this suspiscious process in my session of $ v which is always running and connected to a 'HR' scheme, even if the 'HR' application is also stopped and other HR related batch process.
    And he also told me that it came from the UNIX sun-server1. My problem is that I can not locate the PPID OS for this process when I login to the operating system to the Sun-server1.
    I tried to kill this session, but he maintains the connection. Even if I bounce the database, it come back.

    How to find the source of this process to the Sun-server1?

    I tried this script:
    SELECT     p.program, p.spid
    FROM v$session s, v$process p
    WHERE s.paddr = p.addr
    AND s.sid IN (39)
    Program                                                 Spid
    ============    ====
    ORACLE.EXE (SHAD)     6404
    But if I have a ps - ef | grep 6404 there is no existing process OS. No matter what other script that can identify the process id of the operating system?


    Thank you very much

    KinsaKaUy? wrote:
    Thanks Sb, what is your new name :)

    Who do you think is the culprit?

    root@sun-server1 # ps -ef|grep "May 16"
    v231sys  7065  7051   0   May 16 pts/1      11:16 /usr/jdk/jdk1.5.0_13/bin/sparcv9/java -server -Xms1024m -Xmx1024m -XX:MaxPermSi
    v231sys  7051     1   0   May 16 pts/1       0:00 /bin/sh startWebLogic.sh V231_ABDC
    root 13117 11928   0 12:56:30 pts/3       0:00 grep May 16
    v231sys  7229  7065   0   May 16 pts/1       1:17 /opt/SPLcobAS51/bin/cobjrun64 -Dcom.microfocus.cobol.cobjvm=sun_150_64 -DSPLCJV
    v231sys  6257  8518   0   May 16 pts/1       0:00 bash
    v231sys  7211  7065   0   May 16 pts/1       1:17 /opt/SPLcobAS51/bin/cobjrun64 -Dcom.microfocus.cobol.cobjvm=sun_150_64 -DSPLCJV
    

    When the process lasts more than 24 hours, you can get is no longer hours or minutes.
    You can use the utility "netstat" to connect the source & destination?

    If this isn't the case, random randomly start put to death via kill - 9 until you success!

  • How to find the session killed and computer name

    Hello

    At the time of the batch run killed .somebody this session without me knowing how to find the user particular db level or oslevel .de name which machine they killed how know at the OS level. but when I put the audit_trail = os only user SYSDBA activities are not checked the other activities of the user.

    The server is AIX and db version 11i provide the query for conclusion or os level.

    Thank you
    DBC.

    Published by: dbc001 on March 26, 2013 21:48

    check with who ever is privilleges to kill these perticluar session, if you have few users.
    It is not possible to findout without verification or error info... etc.
    Otherwise, restart these jobs perticluar and follow closely.

  • How to find the failed connection attempts at 'check' session is enabled

    How to find the unsuccessful connection attempt to dba_audit_trail when the "audit logon" is enabled.

    Filter your query against dba_audit_trail action_name = 'CONNECTION' with returncode! = 0 (returncode = 0 means that there are no errors - successful connection attempts)

  • How to find the yahoo flickr Photo password used to download photos from the Photo app?

    I have 151 000 pictures on Flickr that were loaded from Iphoto, then more recently the Apple Photo app on my imac.

    I can't open a session using a browser because the browser (Chrome) has lost the password of his records.

    How to find the password that the Photo is using app?

    You can not extract the code to access from iPhoto or Photo. I could go to the Web of Flickr site and see what password recovery options they offer for your account.

  • How to find the first Sunday and the second Saturday of each month

    Hi all

    How to find the first Sunday and the second Saturday of each month

    Thank you

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

    994122 wrote:

    Hello

    I need to pass the months parameter how to do this? like Jan, Feb etc... (one of those)

    Do you have a procedure?

    Should you output only for the months you passed in the parameter?

    The easiest way is to set the parameter as date. When you go such as p_date as DATE ' 2014-10-01', then you can

    PROCEDURE two_dates)

    p_date IN DATE

    p_first_sunday DATE

    p_second_saturday DATE

    )

    IS

    BEGIN

    p_first_sunday: = NEXT_DAY (TRUNC (p_date, 'MM') - 1, TO_CHAR (DATE ' 2014-10-12', 'DAY'));

    p_second_saturday: = NEXT_DAY (TRUNC (p_date, 'MM') - 1, TO_CHAR (DATE ' 2014-10-11', 'DAY')) + 7;

    END two_dates;

    Or you describe what you need.

  • How to find the number of users connected to the database of the level operating system (Linux)

    Hi all

    Could someone knows how to find the number of users connected to the database without connection with sql * more

    y at - it a command to find?

    example, we have 10 databases in a server, how to find the number of users connected to the special data base without connecting to database(v$session)?

    the Oracle version:-10g, 11g
    Operating system:-OEL4, OEL5, AIX, Solaris

    any help will be appreciated.

    Thanks in advance.

    Thank you.

    Kind regards
    Rajesh.

    but you can say total number of connection with the above given the command? It would also be useful to know.

    See you soon,.
    LKM

  • How to find the SCP to a java card

    Hello

    How will I know if a java card uses SCP01 and SCP02?
    Because I read the respose data returned by the Init setting command suite updated map, but it comes to send back more info back to entity of off - map:
    Main data of diversification 10 bytes
    2-byte key information
    Challenge map 8 bytes
    Cryptogram of card 8 bytes

    And in the same GP2.2 E.1.2.1 , it is written that
    This cryptogram of the card as well as the meter of the sequence, the challenge of the card, the secure channel protocol identifier,
    and other data are sent to the entity of off - map.
    I want to know how to find the SCP protocol identifier?

    In addition, it is written that:
    As the entity of off - map should now have the same information as the card used to generate the cipher of the card.
    It should be capable of generating the same session key and the cipher card even and performing a comparison.
    It is able to authenticate the card.

    Can someone explain please how to generate these keys and check the card?

    Thank you

    Umer says:
    I also found that the SCP is found in the Init-setting control response to date.

    It's also a good way to get the PCs?

    Yes. That's what I use. It does not give you the value of i (current hit is I = 15), but this is not a very big deal in practice (in my code anyway).

    See you soon,.
    Shane

  • How to find the second largest in a pl/sql table

    Hello friends,

    I want to find the first and second maximum items in a pl/sql table.

    Here's the code...

    DECLARE
    Max_earnings_type TYPE TABLE IS NUMBER;
    max_earnings_tab max_earnings_type: = max_earnings_type();
    number of v_count: = 0;
    number of v_max_earnings;


    Can someone give me how to find the maximum first max and second in the type of the given table.

    appreciate your help.

    Thank you/kumar

    Published by: kumar73 on October 21, 2010 09:42

    kumar73 wrote:

    When I tried to implement your logic in my application, I get the following error...

    PL/SQL: digital or value error: NULL index key value table

    What happens if the PL/SQL table has NULL values. Question is how you want to handle NULL values. You want to ignore nulls as GROUP BY do? If you want to consider NULL values, you can say if you want to order the NULLS FIRST or NULLS LAST. I guess that logical GROUP BY:

    DECLARE
        TYPE max_earnings_type IS TABLE OF NUMBER;
        TYPE max_earnings_sorted_type IS TABLE OF NUMBER
          INDEX BY BINARY_INTEGER;
        max_earnings_tab        max_earnings_type;
        max_earnings_tab_sorted max_earnings_sorted_type;
    BEGIN
        SELECT  sal + comm
          BULK COLLECT
          INTO  max_earnings_tab
          FROM  emp;
        FOR v_i in 1..max_earnings_tab.count LOOP
          IF max_earnings_tab(v_i) IS NOT NULL
            THEN
              max_earnings_tab_sorted(max_earnings_tab(v_i)) := 1;
          END IF;
        END LOOP;
        DBMS_OUTPUT.PUT_LINE('MAX value in PL/SQL table is ' || nvl(to_char(max_earnings_tab_sorted.last),'NULL'));
        DBMS_OUTPUT.PUT_LINE('Second MAX value in PL/SQL table is ' || nvl(to_char(max_earnings_tab_sorted.prior(max_earnings_tab_sorted.last)),'NULL'));
    END;
    /
    MAX value in PL/SQL table is 2650
    Second MAX value in PL/SQL table is 1900
    
    PL/SQL procedure successfully completed.
    
    SQL> SELECT  sal + comm
      2    FROM  emp;
    
      SAL+COMM
    ----------
    
          1900
          1750
    
          2650
    
          1500
    
      SAL+COMM
    ----------
    
    14 rows selected.
    
    SQL>
    

    SY.

  • says that there is an update of firmware available for my 3 t time capsule. I get "an error occurred when downloading". How to find the problem?

    I said that there is an update of the firmware available for my 3 t time capsule. I get the message "an error occurred when downloading". How to find the problem? I have elcapitan 10.11.6 and capsule version 7.7.3

    Try temporarily, connect your MacBook Pro to your Time Capsule using an Ethernet connection... If not already, then try downloading the firmware again.

  • How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you

    How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you

    As far as I KNOW, the serial number of the MacBook does not have the serial number of the processor.

  • I make new the old id must paasward wen apple id I go passward, says your id or passward not at even I have received emails but get no email how to find the solution, I, m stuck wat to do

    I make new the old id must paasward wen apple id I go passward, says your id or passward not at even I have received emails but get no email how to find the solution, I, m stuck wat to do

    Have you tried to reset it in security issues? If you are not able to do so, contact Apple support so a security identifier Apple Advisor can help you. 800-275-2273.

  • How to find the date item was my favorites on Mozilla Firefox

    on system moot bookmark how to find the date of the bookmark?

    In bookmarks menu select organize bookmarks to open the bookmarks library. In the bookmarks library, click views, and then display the columns and then added. This will display a column showing when a bookmark has been added.

  • How to find the owners of icloud id?

    IM new to this thing from icloud, I bought 3 old ipads2 on a flea market, where unlocked 2 but we have icloud, the screen is not the old owner alone info [email protected], I don't have a problem, try contacting the owner, but how to find the id of owner? even if is a stolen ipad that I'll be more than returned gad, or ask the owner to remove icloud, but without the owner info is difficult, any advice will be apreciated, thanks

    You can not find it. Go back on the market and claim a refund for the iPad.

    (140442)

  • NB200 - how to find the 3G module for it?

    Hello

    Pls how I find the 3G module in my NB200 - PLL20E?

    Thank you

    Hello

    What do you mean exactly?
    You want to upgrade your NB200 with a card 3G?

    If yes then you must make sure that your NB200 could be improved using this card.
    I'm not sure if this is possible.

    But don t give up boyfriend Toshiba authorized service partner in your country could provide details.
    Guys might be able to tell if this is possible and could provide a good 3G module

    If you get more details please share with us!

    See you soon

Maybe you are looking for

  • Compatibility of drive M8020, Windows 7 64

    Hi I am trying to use a large 2nd drive, above. 2.2 TB, I upgraded the drive to an SSD of 500G, the motherboard support he, she, s a TB WD Red 4.0, thanks

  • Sometimes my just off camera

    I don't know why or what but my bike just E goes out from time to time. This often happens when I use it for a long time. And when I do its turned off the coast and I have to power it again. No matter who else facing the same problem? Help, please.

  • Photosmart 6515

    After installing the ink cartridge, I received an Oxc19a0020 error. I turned off the printer and cleaned the area of the cartridge. The error won't go away. Any help would be appreciated.

  • Recovery HP Pavilion problem

    Last may I made a backup of my HP Pavilion dv7t-3300 windows 7 notebook. It created a disk labeled "HP Laptop Repair Disk Windows 7 64 Bit". I don't remember but assume I was told to label this disk as such. It also created 4 disks I labeled "HP Lapa

  • Add securities quotations of outgoing mail.

    How can I include a quote on all of my outgoing email correspondence?  I noticed a lot of people have sayings, titles, etc. that are still there.  Help.  Thank you