How to find block sessions on a 2 DB of RAC node?

Hi DBAs,

I know that the query that will give me the session that is blocking on a standalone DB as below:

Select l1.sid, 'BLOCKS', l2.sid from v$ lock l1, l2 of v$ lock

where l1.block = 1 and l2.request > 0 and l1.id1 = l2.id1 and l1.id2 = l2.id2;

But now I have a small question that my other DB is a node 2 CARS DB (2 instances that are on 2 different location breaks). And there seems to be some memory problems and I need to find sessions that are open for a long time and I need to kill them. Can anyone help me find the blocking in RAC environment session and also how to kill in RAC environment.

DB environment:

version: Oracle 10.2.0.5

Production

2 node RAC

Regads,

Ritu

SELECT DECODE (ask, 0,' owner: ',' server: '). ID1, id2, lmode, ask, sid sess, type OF gv$ LOCK (id1, id2, type) WHERE IN(SELECT id1,id2, type FROM gv$LOCK WHERE request>0) ORDER BY id1, ask;

Tags: Database

Similar Questions

  • 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 sessions/user consuming more tablespace temp

    Details of the environment
    IBM - AIX 64 bit
    Oracle 10.2.0.4.0


    Recently, we encountered the issue of the pic suddenly in the CPU usage and the use of temp tablespace. After Apr CPU 2009 patch and upgrade to 10.2.0.4, we notice this question.

    Recently temp space was full and we have added 18 GB of temp tablespace, a few hours, they are also eaten.

    The application team said that they do not modify any code. ADDM report suggests most of the recommendations related to SQL tuning only

    not sure of the real issue. Can someone tell me how I can find out what all the sessions/user consuming high temp tablespace

    Edited by: user1368801, 1 Sep 2009 17:32

    Hello

    Run query to check if it is used by any session below.

    Select sum (a.BYTES_USED) / 1024/1024 used_mb, sum (b.bytes) / 1024/1024 total_mb,
    Sum (a.BYTES_USED) / sum (b.bytes) * 100 pct_used
    v $ TEMP_EXTENT_POOL, $ v b tempfile
    where a.file_id (+) = b.file #.

    Check who is using the query below.

    SELECT s.sid, s.serial #, osuser, process, program, s.sql_hash_value, u.extents, u.blocks
    V $ session s, v$ sort_usage u
    WHERE s.saddr = u.session_addr order by degrees, blocks desc

    Hope this fixes your problem.

    Concerning
    Kind regards
    Ludmilla amine
    Click here for the RMAN backup performance using [Block change tracking in Oracle 10 g | http://oracleracexpert.blogspot.com/2009/09/block-change-tracking-in-oracle-10g.html]
    http://oracleracexpert.blogspot.com

  • How to find the DB session is still alive

    Hi all

    I work in the R12 oracle order management and am new to Oracle applications

    Here we took the concurrent program manually for any reason any we are closing the concurrent request, here almost 1000 orders processed
    at this time to terminate the program at the same time, the program is finished, but the session is alive so here the same orders updated.

    So my question is what we terminate a competitor asks how to find if the session is alive for this request.

    Thanks and greetings
    Srikkanth.M

    Please see these documents.

    How to find database Session & process associated with a competitor, which is currently running program. [735119.1 ID]
    bde_request. SQL - Process and info for a concurrent request (11.5) [ID 187504.1]
    How to extract information from SID to apply for operation [ID 280391.1]

    Thank you
    Hussein

  • How to find name and instnace host names in the CCR

    Hello

    How to find the name of the instance of the RAC and the hostnames in RAC environment.

    Thank you

    You can find the information using sqlplus, connect to one of your RAC instances, try with it, hope this helps.

    SQL > select instance_number, instance_name, status of gv$ instance;

    INSTANCE_NUMBER STATUS INSTANCE_NAME
    --------------- ---------------- ------------
    OPEN 1-A01
    OPEN 6 A02
    OPEN 5 A03
    OPEN 4-A04
    OPEN 3 A05
    OPEN 2 A05

    6 selected lines.

  • How to find the position of the VI icon currently run on the block diagram of the appellant

    Dear forum,

    I am currently trying to use a LabVIEV VI as a simple sequencer: several (very slow) actions must run one after the other. Each action is represented by a Sub - VI, some actions are executed several times. My task is to view the Subvi somehow executing.

    My first intention (just manipulate the icon of the VI running with 'Icon.Get VI as Image data' / 'Icon.Set VI of Image data' invoke nodes) has failed, because it changes all instances of the VI icon. If you use the same VI several times, all these VI icons are changed (see here: http://forums.ni.com/t5/LabVIEW/How-to-change-animate-icon-of-currently-running-VI/m-p/3120754/highl... )

    My current approach is to use an image of the block diagram (with "VI: block diagram: get resized Image ' call method) in a picture of the front panel control and working within this control. But for this I need to know the position of the icon of the VI running. I know that I can assess the limits and Position via the properties GObj, but how to find the VI running (note that a VI can be installed several times on the block diagram, so the name of the VI is not unique)? IMHO the easiest way might be if a VI might find its icon on the block of the appellant diagram itself when it is run...

    It is clear that this position is not yet the position on the photo, but this conversion is a small piece of work...

    Kind regards

    cpschnuffel


  • You've blocked my e-mail address, please at least I desprately need my contacts, it affected my personal life & work. How to find my contacts?

    You've blocked my e-mail please I desprately need my contacts, it affected my personal life & work. How to find my contacts?

    Blocked mail was * address email is removed from the privacy *. Please, do your best and guide me

    We can not help you here.

    Hotmail-Forum: http://windowslivehelp.com/product.aspx?productid=1
    More information: http://www.windowslive.de/Blog/category/Windows-Live-Hotmail.aspx

  • How can I block my keyboard so when my cat button, the keys perform the functions? I have a lock on my computer so I need a password to sign, but I can't find any info on how to lock keyboard features in.

    How can I block my keyboard so when my cat button, the keys perform the functions? I have a lock on my computer so I need a password to sign, but I can't find any info on how to lock keyboard features in.

    A quick Google for "lock keyboard" raised a certain links that seem promising. Here's one of eHow that answers your questions to kitty:

    http://www.ehow.com/how_4925264_lock-keyboard.html MS - MVP - Elephant Boy computers - don't panic!

  • How to find the lock and kill session in order to release it?

    Hi all

    EBS R12.2

    "I met ' could not book record" in our case. How to release the session locked?

    I usually do this by bouncing the apps & db level. Is their subtle way?



    Capture.PNG



    Kind regards

    JC



    Ideally, you should check for locks on the table in question where records are trying to access.

    AFAIK, you must check the v$ locked_object and find sessions.

    Hope this helps!

    Kind regards

    Hugues

  • 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

  • How to find the details of the session of hexadecimal value 11g RAC deadlock

    Hello

    Version: 11.2.0.4 2 node RAC on AIX 7.1

    We place worldwide in our database, and we can see in the file path as:

    Submit application dump asynchronized [1 c]. Summary = [clear stack process GHG (kjdglblkrdm1)].

    Global end dump blockers: -.

    Wait-For-Graph (WFG) overall to DDT [0.2d7]:

    BLOCKED 0x700010448e88a48 wq 4 2 cvtops x 1 TM 0x1a3b3.0x0 (ext 0 x 0 0 x 0) [100 a-00AB-00000093] inst 1

    TRAINER 4 wq 0x70001043b5ffd50 2 cvtops x 1 TM 0x1a3b3.0x0 (ext 0 x 0 0 x 0) [200F-00F8-00000014] inst 2

    0x70001043b5ffd50 wq 4 2 cvtops x 1 TM 0x1a3b3.0x0 (ext 0 x 0 0 x 0) BLOCKED [200F-00F8-00000014] inst 2

    TRAINER 4 wq 0x700010448e88a48 2 cvtops x 1 TM 0x1a3b3.0x0 (ext 0 x 0 0 x 0) [100 a-00AB-00000093] inst 1

    So, here, the session had lock mode 4 on the 0x1a3b3 object. What is "wq 2 ' above the info? What are the 100 a-00AB-00000093 and 200F-00F8-00000014 indicates the above data of the WFG?.

    I want to see the details of each session of 0x700010448e88a48, 0x70001043b5ffd50 sessions and how can I get this info from the history views$ v?

    Thank you very much

    Kind regards

    '4' is actually the 5 lock mode.

    See https://orastory.wordpress.com/2011/11/23/wfg-mode-5-tm-deadlock/

    You can also use the raw data of ASH in V$ ACTIVE_SESSION_HISTORY and/or DBA_HIST_ACTIVE_SESS_HISTORY to complete.

    It will tell you which statement was the blocked session running and blocking the session details (but not which statement was responsible for blocking, unless you get very lucky).

    However, your scenario of lock mode 5 TM could match the scenario of blocking foreign key non-indexed in the article above.

    The TM, the 0x1a3b3 lock can be translated into decimal - 107443 - and used to match the object of dba_objects.object_id

    #define KJUSERNL 0         /* no permissions */   (Null)

    #define KJUSERCR 1         /* concurrent read */ (Row-S (SS))

    #define KJUSERCW 2         /* concurrent write */ (Row-X (SX))

    #define KJUSERPR 3         /* protected read */    (Share)

    #define KJUSERPW 4         /* protected write */ (S/Row-X (SSX))

    #define KJUSEREX 5         /* exclusive access */ (Exclusive)

  • 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 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

  • How to find sessions to 11i forms

    Hello

    can someone tell me how to find sessions dead forms to 11i of Unix

    Thank you

    Please refer to:

    Note: 457381,1 - troubleshooting tips for spinning/hanging F60WEBMX process
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=457381.1

    The note made reference to another note with a script that should be useful in the search for methods of spinning f60webmx and attach it to the users of the application (Note: 185762.1).

    Also refer to Note: 177610,1 - Oracle Forms in Applications FAQ (what is FORMS60_CATCHTERM?)
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=177610.1

  • 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)

Maybe you are looking for

  • iMac 5 k end of 2014 for the first time enable FileVault stuck Reboot

    Hi all I just got the FileVault on my iMac 5 k end of 2014 with fusion drive for the first time.  It is said that a restart is required. He could not restart and stuck on the black screen. No apple logo, nothing. Here are the steps I've tried 1 resta

  • Entry of smart camera reads low

    I have a 1722 smart camera.  Can't do the entries to read a value "high."  Apart from that, my application works well. I use the cable OR screw terminals block.  If I jumper power 0 or 1 (axis 2 or 8) to + 24V (pin5), always always read low entries,

  • I want to display strings that are in the structure of the case, in a text area

    Hello I write a vi, which has the structure of the event inside that one structure of the case. I have a problem, I have two cases. (1) when the value is true it executes the real deal, first it reads the string constant and second string indicator w

  • System has 61 viuruses.

    Hi can someone help please.  I have viruses on my computer, including worms Blaster and Trojans.  There is a message from scan to scan the system, but when I try to remove it told me to buy the software.  I AGV on my computer but it won't let me open

  • How can I remove a symbolic link to a folder in Windows 7 64 bit?

    Windows 7 Ultimate SP1 64 bit. Malware any created symbolic links in Windows Defender files. Specifically the en-US folder - it now points to C:\Windows\System32\config: 14/07/2013-13:40 .14/07/2013-13:40 ...12/04/2011 01:17 en - US.bad [c:\windows\s