Two sessions are blocked each other in

Hi All,
My database is Exadata machine. 11.2
These days we encountered one case, that is two sessions are always blocked by each other. I get this info from v$session blocking_session.
For examle, the information looks like
sid blocking_session event
1 2 libarary cache lock
2 1 row cache lock
and as you know there are many other sessions are blocked by sid 1.
By lookiing up v$sql, I got the sql for these 2 sessions.
/* QSMQ VALIDATION */ ALTER SUMMARY "XXXXX"."Gxxx_CP_CAL_TIME_TEMP_MV" COMPILE
/* QSMQ VALIDATION */ ALTER SUMMARY "XXXXX"."Gxxx_CP_CAL_TIME_MV" COMPILE
Both of these 2 MV share some underlying objects. And both of the 2 sessions started at the same time roughly.
If the compilation incurs the lock on the object, why the 2 sessions block each other?
Can someone give me some tips,please?
Best regards,
Leon

Leon,
sid blocking_session event
1 2 libarary cache lock
2 1 row cache lockYou are saying that above situation does not cause a deadlock error to be generated in either one of those two sessions?
/* QSMQ VALIDATION */ ALTER SUMMARY "XXXXX"."Gxxx_CP_CAL_TIME_TEMP_MV" COMPILE
/* QSMQ VALIDATION */ ALTER SUMMARY "XXXXX"."Gxxx_CP_CAL_TIME_MV" COMPILEThese to me look like programmed 'ALTER SUMMARY' commands (the comment in front of the statement seems to indicate so). It's the application that's doing this right?
- Can you reproduce this with two sqlplus sessions?
- Why is the application compiling the MV's? Are underlying objects being altered frequently?
- Should the application not just be 'refreshing' the MV's instead of compiling them?
Just some thoughts.
Toon
Edit:
Dom's right. The alter summary statements seem to be Oracle internal calls generated by DBMS_MVIEW.REFRESH executions.
Edited by: Toon Koppelaars on Nov 24, 2011 10:41 AM

Similar Messages

  • [FPGA] Loop rate very slow: Do FPGA I/O nodes in parallel loops block each other?

    Hi,
    I am using cRIO-9075. Mod1 is NI 9263, Mod2 is NI 9227, Mod3 is 9215.
    Please see my VI attached or the given screenshot.
    The FPGA code is based on the "NI CompactRIO Waveform Reference Library" (it's the lower loop).
    The upper loop was added by me and is writing a waveform from blockmemory to the NI 9263 module (Mod 1).
    The data sampled in the lower loop is running at 1 kHz. The control "AO Update Period" for the upper loop has a value of (for example) 10 (=uS).
    The problem is, that this loop is running much much slower than it should. Once I disable the FPGA I/O node in the lower loop (as done in the attachments), it's running as fast as it should.
    It seems to me, that the FPGA I/O nodes are blocking each other. I tried to figure it out by reading through serveral NI documents, but until now I have no idea how to solve that.
    Can you give me some advices? Some general tipps about the VI?
    Thanks!
    Attachments:
    FPGA Loop Rate.PNG ‏72 KB
    FPGA Main.vi ‏251 KB

    Hi, thanks so far.
    Originally the control was inside the loop. Then I tried if it makes a difference if it's outside.
    Ok, i really seems to be that default value of "100000" for "AO Update Period".
    Starting the VI directly woks like expected. Having "AO Update period" inside the loop makes it possible to control it as it's running.
    But, please see the attachment. When starting the FPGA through RT and setting the appropiate value, it does not seem to work. The oscilloscope show's the same behavior like "AO Update Period" was 100000.
    But when reading the value of "AO Update Period" afterwards (while the FPGA is running), it shows the expected value of "10".
    Having changed the default value to 10 works so far, but I am not able to changed it (see attachment).
    So the problem is: Why is "Read/Write control" not working here? Why is still the default value used?
    Attachments:
    FPGA Loop Rate 2.PNG ‏5 KB

  • I have a new Macbook Pro - trying to migrate files etc from my Macbook Air using a Thunderbolt Cable between the two.  I follow the directions but the two computers never "discover" each other.  WiFi connect works but 70 hours is a rough deal.

    I have a new Macbook Pro.  Trying to migrate files etc from my Macbook Air using a Thunderbolt Cable between them.
    I follow the directions but the two computers never "discover" each other - using a WiFi connection works but 70 hours is a rough deal.
    (Mac OS 10.8.2 on both computers)

    Are you trying target disk mode?
    http://support.apple.com/kb/PH10725
    Ciao

  • ICal Leopard: overlapping events block each other?

    Hi there
    If I create 2 different events for the same time and date, the event boxes block each other - they don't resize to allow me to see both events.
    Is this a bug?

    Hi,
    I expect this is because the UID for the events are the same. Outlook ignores the UID, but iCal does not and would only allow one event with the UID.
    You could verify this by opening the .ics files in a text editor.
    Best wishes
    John M

  • HT204053 My husband and I have updated and now we are receiving each other's text messages how do I stop this

    My husband and I are receiving each other's text messages how do I stop this?

    If that is the problem, how do I change it so she has her own Apple account if she already activated her device? Is there  a way to remove my account and make her a new one on the device itself if it was activated incorrectly:??

  • My husband and I share the same itunes account, but we are getting each other's photos on our phones. What setting will disable this?

    My husband and I share the same itunes account, but we are getting each other's photos on our phones. What setting will disable this?

    turn off photo stream My Photo Stream FAQ - Apple Support

  • I just upgraded to the new OS.  Now my wife and I are getting each others texts, and when we send a text to each other, it duplicates.  How can we separate our text messages?

    My wife and I are getting each other's text messages.  How do I turn that off so I get mine and she gets hers?

    On each Device, go to Settings>Messages>Send and Receive...  and make certain that each device only has 2-items with check marks your phone number and your email address.  click on the other persons number and email address such that it is not checked.

  • HT3263 I am trying to transfer files from my MacBook Pro (using Mac OSX 10.6.8) to MacBook Air (Mac OSX 10.7.4) using Migration Assist via WiFi connection.  The two macs cannot find each other.  any suggestions

    I am trying to transfer files from my MacBook Pro (using Mac OSX 10.6.8) to MacBook Air (Mac OSX 10.7.4) using Migration Assist via WiFi connection.  The two macs cannot find each other.  any suggestions

    Try this article - http://support.apple.com/kb/HT4889.
    If it doesn't help, post back in this thread.
    Best of luck,
    Clinton

  • Png files are over each other in the iphoto import window

    When i connect my iphone to the mac to import photos in iphoto, the png files are over each other in the iphoto import window. Jpegs are also showing up in the iphoto grid with new photos but each box contains 1 photo, which is normal. With png pictures, iphoto puts up to 3 pictures on top of each other in each box.
    Anybody has seen this before?
    Kind regards,
    Jeff Dehaes

    oops, sorry, re-installed iphoto and it works again, they weren't even png's just jpegs...
    Problem solved.

  • I have an Iphone and my mom just got an Iphone last week, and our stuff on our phones are downloading each others things what do I do to make it seperate?

    I have an Iphone and my mom just got an Iphone last week, and our stuff on our phones are downloading each others things, so what do I do to make it seperate?

    What things?

  • My friends iphone is set where i can locate but when i try to locate the phone the red dot shows up but we are texting each other while im trying to locate but cant

    Im trying to locate my friends iphone while we are texting each other but it only shows a red dot, why cant i locate it?

    Because you can text does not mean you can locate.
    Tow possiblities off the top of my head:
    Location Services turned off (check in Settings > Location Services)
    Restrictions are set for location (check in Settings > General > Restrictions)

  • Can two RMI Servers talk each other

    Can two RMI Servers talk each other ?
    For it to happen, does one of them be dependent on another ?

    1. Absolutely.
    2. No

  • HT1386 I last updated my husbands iPhone 4 and since then we are getting each others text messages. Sometimes when I text a person that is on bothe our contacts it will come through as my husband and not me.

    I last updated my husbands iPhone 4 and since then we are getting each others text messages. Sometimes when I text a person that is on bothe our contacts it will come through as my husband and not me.

    Try this:
    On all impacted devices, go to settings, messages, send & receive and place a checkmark next to only those phone numbers and email addresses listed you want that device to recognize.
    Good luck!
    Tony

  • What will happen to my ipad and apple phone if I reset daughters ipad mini to factory settings, we are getting each others messages and mail

    Hi   I have my laptop, ipad and apple 4 phone.  Youngest daughter has ipad mini which I connected to my laptop to download free games, music and photos, now the ipadmini thinks its me and we are getting each others messages etc.     If I reset the ipadmini to factory settings, will this delete and/of effect my Ipad, Apple phone, I don't want everything DELETED on my devices.  HELP
    Thanks

    Yes it would be her device you remove your account from, but she would need an email address to have an Apple ID.
    I guess if it's only messages that you want her to use, you could create an iCloud email address alias and let her use that for messaging.
    First you'd need to create an alias for your iCloud address, you can do this at iCloud.com > mail, click on the gear icon in the bottom left corner and select preferences, then choose the accounts tab. The alias could be her name.
    After creating an alias you will need to add it to her device as an ID for messages, go to settings > messages > send & receive > Add another email.
    While you are there make sure she only sends and receives messages from that address, you also need to ensure the same settings on your devices use anything but that address.

  • How to print two tables adjacent to each other?

    Hi,
    Scenario
    I have a form with a body page and two tables. The property of the body page is set to 'Flowed', 'top to bottom' as flow direction and the check box for page break is set.
    Requirement
    The two tables need to be printed adjacent to each other.
    Approach followed until now
    1. Since the body page is 'Flowed' type, the two tables are placed one below the other (Tab1 & Tab2). So I tried to set the Flow direction of the Body page to 'Western text'. But this did not solve the issue as since it is set to 'western text', only after Tab1 is rendered, table Tab2 starts printing itself, which is not desired. Both the tables should be printed at the same time.
    2. I wrapped both the tables in one sub form with 'Type' set to 'Positioned' and set the check box for page break. Now I arranged the tables adjacent to each other. But the check box for page break for both the tables were disabled and because of this if there is not enough space to print the total records of both the tables, the complete tables is shifted to another page leaving the previous page blank.
    Kindly suggest how to resolve this issue.
    Regards
    s@k

    Dear Andres,
    I tried as per you suggestion and it works fine. Thanks a lot.
    Now adding to this, I am trying to print the 'formatted text'. The tables have two columns. the first column is a normal field and the second column is table having the 'formatted text'.
    As per your suggestion, I concatenated the two tables in one table. So the final table has 2 normal fields and 2 tables.
    Final table structure:
    Column1      Column2(Table)             Blank             Column3          Column4(Table)
    Settings maintained:
    I have set the 'Body' row of the table to 'Flowed' with direction as 'Western text' (Top to bottom does not help ).
    The settings for Column 2 & 4 (tables) are maintained as:
    1. The Table is set to 'Flowed' with direction 'Top to Bottom'.
    2. The body row is 'Flowed' with direction 'Western Text'
    (The Border 'Edges' for the tables, columns is maintained as 'None')
    Issue:
    The sample data has around 10 entries in the (final)  table. When I try to print the form, if column2(table) is initial, the data in Column3 and 4 are shifted towards Left hand side.
    Kindly suggest how to resolve this issue.
    Regards
    s@k

Maybe you are looking for

  • How can I select the last 2 chars of a string

    Hello all, I am trying to select the last 2 characters of a string to match them to another string. This is for a Poem generator that contains 20 or so words and I have to pick 2 words at random, them look at the last 2 characters to see if they matc

  • Performance Issue with MSEG

    Hi, I have a report having below logic.it is taking long time to fetch data from dictionary.     SELECT      KT~MBLNR  "NUMBER OF MATERIAL DOCUMENT      KT~MJAHR  "MATERIAL DOCUMENT YEAR      KT~BUDAT  "POSTING DATE IN THE DOCUMENT      ST~ZEILE  "IT

  • Cannot type lower case characters in PSCS4.

    Hello, I am suddenly unable to type any lower case characters with the Photoshop type engine. Everything comes out in all caps whether or not I've used the shift key or Caps Lock. I have no idea how this happened or how to correct it. Please help. Th

  • Activating DemoContent: Error when reading data target

    I'm trying to activate the SAP Demo cube <i>Purchasing Data</i> (0D_PU_C01). The Grouping Mode is set to <i>In Dataflow Before and Afterwards</i>. When I simulate installation, I get the error message <b>Error when reading data target 0D_PU_C01</b> (

  • GR not generate Inbound under Handling Unit-managed SLoc

    Hi, I have a question with regards to HU management.  May I know if, under standard SAP, that an Inbound delivery will be created automatically when posting a GRN against a purchasing order into a HUM-managed storage location? If this is true, I wond