Redo waits + I/O issue ?

Hello All,
- Oracle 10.2.0.4.0 on HP-Unix
We are having performance issues during night batch cycles for past few days and we are observing following waits in top 5 wait events for past few days:
log file sync
log file parallel wait
Sometimes "log file parallel wait" has more waits as compared to "log file sync".
Question:
We want to check the performance of I/O system to confirm if this waits are due to slow I/O of redo files.
What is the command to get the "iostat" report and what columns should be watched to check the performance problems ?
Thanks in advance :)

+>>How often are your logs switching? How big are your logs? How big is the redo log buffer?+
- During the problem, the log switch occurs every 30-40 mins
- Redo Log Size = 300M (10 groups with 2 members each)
- Redo Log buffer = 13.9M
+>>Also let us know what kind of hardware you have - wouldn't be a RAID-5, would it?+
- I don't think so, but I am not sure. I will confirm this.
+>>What is your batch actually doing? Is it taking longer than before? How much longer?+
- Batch is doing Inserts, Updates selecting from many tables
- Yes, it is taking longer than before
- 2 hours more than what it used to be
+>>Could you share with us the top five from statspack?+
DB CPU
db file sequential read
log file parallel write
log file sync     
db file scattered read
+>>log file sync could be an indication that the batch is committing too often - has something changed in the code?+
- There is no change in the code anywhere (this is prod system)
+>>Are there messages in the alert log about slow log writes?+
- There are no errors, warnings or any kind of messages in alert log file.
I did some more analysis on the issue and based on following findings, I think that the I/O system could be the source of this issue. Please correct me if I am wrong:
1. The LGWR is giving out following messages in trace file (bdump):
Warning: log write time 1760ms, size 53KB (taking 1760ms to wring 53KB of data???)
There are lots and lots of messages of this kind all through the day, but increased frequency during the problem time at night.
Metalink:
"LGWR Is Generating Trace file with "Warning: Log Write Time 540ms, Size 5444kb" In 10.2.0.4 Database" Doc Id- 601316.1
2. During the problem times, the CPU consumption is max 40-50% (there are 4 CPUs), but almost all the sessions wait on event: "log file sync" or "log buffer space"
I checked the LGWR during that time and I found it to be waiting on the event: "log file parallel write".
This event has the highest wait time for the SID of LGWR process.
3. v$event_histogram - log file parallel write
EVENT                      WAIT_TIME_MILLI                WAIT_COUNT
log file parallel write            1                      44,460
log file parallel write            2                      59,134
log file parallel write            4                      43,951
log file parallel write            8                      22,438
log file parallel write            16                    17,838
log file parallel write            32                    12,336
log file parallel write            64                    8,545
log file parallel write            128                    5,435
log file parallel write            256                    2,308
log file parallel write            512                    1,392
log file parallel write            1,024                  1,497
log file parallel write            2,048                  476
log file parallel write            4,096                  271
log file parallel write            8,192                  120
log file parallel write            16,384                37
log file parallel write            32,768                34. vmstat
  procs           memory                 faults       cpu
r  b      avm    free   re   at    in     sy    cs  us sy id
3  1   782748  360923  483  175  2858  60521  2053  35  7 58
4  1   760830  373770  195  106  6488  12974  5070  53  5 42
1  2   774551  376473  338   68  2653  13045  1409  29  8 63
3  1   715546  376473  100   37  4025   4483  3072  20  5 76
1  5   749468  374585  165   63  3985  17626  4264  19  8 73
4  2   659704  392529  195   95  4075  18587  3917  41  7 52
3  4   660984  382799  290  158  4460  51595  4209  50 10 40
4  1   633560  383127  183   25  3184  16714  2556  42  7 50
3  2   679769  374495  189   40  4737  14745  3056  29  9 62
2  3   667695  373599  326  102 14890  25102  6666  11  9 79
4  2   730630  358697  414  101 17810  60920  7970  36 14 51I am looking at column "b" under procs, which shows blocked processes. There is lot of free memory and more than enough Idle CPU, but still there are >1 procs in blocked state.
5. CPU Consumption (sar -u 30 20)
%usr    %sys    %wio   %idle
  87       7       2       4
  74       5      14       7
  70       8      20       3
  66       5      16      12
  65       7      19       9
  60       8      27       5
  61      12      24       3
  68       6      24       2
  66      13      20       1
  86       6       7       0
  72       7      14       7
  78       6      10       6
  83       5      10       1
  92       4       3       0
  87       5       8       0
  73       6      18       3
  67       7      19       7
  68       6      19       7
  76      13       9       1
  76       6      16       2
  74       7      15       4   AVERAGE%wio is not very very high, but these numbers are still higher I think...
6. Disk activity (sar -d 30 20)
           device   %busy   avque   r+w/s  blks/s  avwait  avserv
Average    c9t6d0   13.50    1.74      33     289    4.55    8.49
Average    c0t6d0    9.22    2.44      18     175    6.60   10.80I am still to confirm what files are on these devices, but these are the ones that have highest number of waits and low service times
Conclusion:
For me, so far, these facts hints at the possible I/O issue.
Does anyone has any other interpretations ?
Thanks a lot :)

Similar Messages

  • Buffer busy waits yet another issue.

    Hi,
    Here is the scenario we are facing.
    The application is trying to insert the data into one of the partition and the table on which this buffer busy waits is occuring is on an tablespace with ASSM and extent management auto.
    total number of inserts done only 137
    The application issues only the insert and update statements, so here the waits are dominant only for the insert statements,
    This particular table is range partitioned and the PCTFREE is set to 10, and the size of the partitions ranges from 138-150Mb.
    checked that the waits are caused due to the data blocks.
    After checking the P2 parameter found out that the insert statements are waiting on only one particular block.
    Average row length is only 177bytes, and the database block size is 8Kb, the table is not accessed very frequently, ruling all the other factor out except increasing the PCTFREE.
    when all the blocks of the current table are filled, now when we issue an insert statement a new extent is allocated to the table and is brought into the memory for inserting and... now my question is as this is the only block that is present in the memory does all the inserts happen only on this block or whether the oracle is intellegent enough to bring all the blocks in the new extent to be brought to the memory and spreads the inserts to all teh blocks in the newly allocated extent. (i believe this assumption is wrong as this can lead to much memory wastage)..
    Dont understand why simple insert statements that too only about 137 can cause serious busy busy waits...
    Please provide your suggestions.
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    900486 wrote:
    Dont understand why simple insert statements that too only about 137 can cause serious busy busy waits...
    There are a few possibilities.
    Nice hints at http://docs.oracle.com/cd/B19306_01/em.102/b25986/oracle_database.htm and I like Jonathan's (older) note at http://www.jlcomp.demon.co.uk/bbw.html (recreated from Howard's site). Sone possible resolutions at http://www.confio.com/English/Tips/Buffer_Busy_Waits.php
    An excellent discussion found in http://www.amazon.com/Oracle-Wait-Interface-Performance-Diagnostics/dp/007222729X as well.
    If you have licensed Diagnostics Pack, perhaps you could shre your AWR/ASH reports?

  • Adobe Media Encoder "waiting" status, PPro issues

    It's a good thing I stumbled upon this problem earlier today.
    I'm making a short tutorial for a friend using video capture software that records at 1280x800, 10fps, WMV files.  It's about six minutes long, and the final timeline in PPro has about two cuts.  Not very complicated.  The sequence is set to 1280x720, but I've never had a problem with changing the size of footage to accord with the sequence.
    Anyways, I do Ctrl+M to bring up the export window, set my settings to 1280x720, 10fps, Square Pixels, and use a Windows Media export setting to spit it out as a WMV.  I could've used H.264 for web convenice, but that's an entirely different set of problems I'll discuss on another day.
    Thing is, the export window says the final file size should be 15MB....either that's really great or really bad.  Sounded a bit odd.  Once I hit OK, AME opens up.  It says "waiting" forever.  I've seen discussions about that issue, but none really told my WHY it does this...and if I should SHOULD or SHOULDN'T wait for it to get its crap together.  Despite that, I hit "start quene", and off it goes...
    The ETA is over an hour for a 15MB clip...
    Does that make sense?
    To test, I change the dimensions and framerates of the export settings, and yet, it still decides to take over an hour to render this stupid little "15MB".
    I've never had a problem with AME before and the only thing I'm doing differently is using a different internet connection on vacation, and I have a trial version of CS5 Photoshop installed. 
    ATM, I have bypassed this by exporting the clip as a Quicktime with H.264 settings, which has an ETA at about 40 min and a bigger file size.  That I can believe (of course, I've seen things go wrong with Quicktime-H.264 option before, knock-on-wood).
    Any ideas as to what the hell is going on here?  I do a weekly HOUR long podcast coming up, and it is a must that the show be rendered out under three hours for production's sake.
    Thanks,
    Let me know if you have any ideas.
    If you're reading this but can't respond as a member, email me at [email protected] with your solution.

    you probably need to use gspot and or mediainfo ( tree view ) to see what exactly your assets are from the screen captures...and then decide how best to edit that ( your project settings ) and then export....to get the best out of it all...
    maybe do a test and make a custom desktop project with the exact dimensions of your screen capture and also a custom export of the same dimensions...
    you might be running into a lot of time with the conversion of dimensions ...
    at any rate I'm afraid you may end up having to supply more info than you have ( post screenshots of gspot and mediainfo results ), your computer setup ( number of hard drives and all that stuff )...
    theres a pretty good section about how to report stuff about what youre working with on the main page of the forum I think....
    good luck

  • Force fsck on boot and timeout waiting for device issues [SOLVED]

    Archlinux starts checking fs on every boot since linux and systemd packages were updated last night.
    systemd --->213-5
    linux ---->3.14.5-1
    Another issue appears with last update
    Timed out waiting for device dev-disk-by\x2duuid-9f780ada\x2d0671\
    Dependency failed for /dev/disk/by-uuid/9f780ada-0671-43d8-b036-f9
    Dependency failed for Swap.
    I have this issue on my laptop which was updated yesterday.I have also desktop running archlinux again I've just checked out the systemd and linux versions.The systemd package is not the latest one it's 212-3.I havent any problem on that machine.I guess systemd is responsible of this cause.
    I've just reboot and realized that systemd-fsck says Super block last write is in the future.Date and time is correct in BIOS same as on linux
    Last edited by gecici90 (2014-06-05 21:10:52)

    I had the same problem, I get in the recovery console after forced fsck.
    But downgrading systemd and systemd-sysvcompat to their previous version made it all work back again.
    The sorted list of the upgraded packages:
    [2014-06-05 21:11] [PACMAN] installed libx264 (1:142.20140311-4)
    [2014-06-05 21:11] [PACMAN] upgraded btrfs-progs (3.14.1-1 -> 3.14.2-2)
    [2014-06-05 21:11] [PACMAN] upgraded cifs-utils (6.2-1 -> 6.3-1)
    [2014-06-05 21:11] [PACMAN] upgraded imagemagick (6.8.9.1-2 -> 6.8.9.1-3)
    [2014-06-05 21:11] [PACMAN] upgraded filesystem (2013.05-2 -> 2014.05-2)
    [2014-06-05 21:11] [PACMAN] upgraded lib32-libdbus (1.8.0-1 -> 1.8.2-1)
    [2014-06-05 21:11] [PACMAN] upgraded libproxy (0.4.11-2 -> 0.4.11-3)
    [2014-06-05 21:11] [PACMAN] upgraded libpurple (2.10.9-1 -> 2.10.9-2)
    [2014-06-05 21:11] [PACMAN] upgraded libsystemd (212-3 -> 213-5)
    [2014-06-05 21:11] [PACMAN] upgraded libwbclient (4.1.7-1 -> 4.1.8-1)
    [2014-06-05 21:11] [PACMAN] upgraded openssl (1.0.1.g-1 -> 1.0.1.h-1)
    [2014-06-05 21:11] [PACMAN] upgraded perl (5.18.2-2 -> 5.20.0-2)
    [2014-06-05 21:11] [PACMAN] upgraded perl-xml-parser (2.41-4 -> 2.41-5)
    [2014-06-05 21:11] [PACMAN] upgraded perl-yaml-syck (1.27-1 -> 1.27-2)
    [2014-06-05 21:11] [PACMAN] upgraded pidgin (2.10.9-1 -> 2.10.9-2)
    [2014-06-05 21:11] [PACMAN] upgraded postgresql-libs (9.3.4-1 -> 9.3.4-2)
    [2014-06-05 21:11] [PACMAN] upgraded python2 (2.7.6-3 -> 2.7.7-1)
    [2014-06-05 21:11] [PACMAN] upgraded smbclient (4.1.7-1 -> 4.1.8-1)
    [2014-06-05 21:11] [PACMAN] upgraded subversion (1.8.9-1 -> 1.8.9-2)
    [2014-06-05 21:11] [PACMAN] upgraded systemd (212-3 -> 213-5)
    [2014-06-05 21:11] [PACMAN] upgraded systemd-sysvcompat (212-3 -> 213-5)
    [2014-06-05 21:11] [PACMAN] upgraded x264 (1:142.20140311-1 -> 1:142.20140311-4)
    [2014-06-05 21:11] [PACMAN] upgraded xchat (2.8.8-13 -> 2.8.8-14)
    [2014-06-05 21:11] [PACMAN] upgraded xfconf (4.10.0-3 -> 4.10.0-4)
    Downgrading systemd and systemd-sysvcompat makes my computer boots normally:
    [2014-06-05 21:43] [PACMAN] Running 'pacman -U /var/cache/pacman/pkg/systemd-212-3-x86_64.pkg.tar.xz /var/cache/pacman/pkg/systemd-sysvcompat-212-3-x86_64.pkg.tar.xz'
    [2014-06-05 21:43] [PACMAN] downgraded systemd (213-5 -> 212-3)
    [2014-06-05 21:43] [PACMAN] downgraded systemd-sysvcompat (213-5 -> 212-3)

  • "Waiting for Authorization" issue

    I am having an issue with a couple of users on my iChat server. They cannot add each other to their buddy list. On each system is stays on "Waiting for Authorization" in the buddy list in spite of the fact that both users approved each other. I've tried deleteing their entries in their address book and then re-adding tham but that does not help. I can successfully add my account to them and vice versa but they cannot add each other. Can anyone shed a glimmer of light on this one. Greatly appreciated!

    what version excel you are on ??
    what version Front end patch you are on??
    Here are the frontend requirements:
    Troubleshoot the SAP NetWeaver 2004s BI Frontend Installation
    Rolling Out:
    Rolling out the New SAP NetWeaver 2004s BI Frontend Tools
    Hope it Helps
    Chetan
    @CP..

  • Waiting For Ipod Issue

    ok i have a 2g ipod touch and i cant restore it i get stuck at waiting for ipod and on the touch screen it shows apple llogo with a loading bar but it doesnt go up
    ive tried
    using itunes all version
    deleting all da itunes app data files
    different firmware, pc's, and ports, nd cables
    i calld apple and they saud bring it into the store and i get another one free but i have no apple store around me
    please help

    Has anyone figured out this yet? We are having the same issues with our iPod touch. Tried to restore it. Did the whole button pushing thing. Plugged it in. It loads all of the status bar and just sits there. There is a window on the computer that just says, "waiting for iPod..." forever. If I stop it or unplug it, it shows the USB and itunes icon on the screen. So I plug it into iTunes again, reload the software, the status bar says that all of the files are loaded, and it gets stuck on the "waiting for iPod...". I live in japan, so I can't just take it to the nearest iPod store. Any help will be helpful. thanks

  • Notification Wait with interrupt issue from screen flow

    I have a process with notification wait with interrupt activity. I am sending notification wait from a screen flow to abort another instance. The instance to be notified has returned to an interactive activity after an exception. For some reason, the notification wait does not happen immediately. It takes about 5 minutes for it to take effect. Any thoughts.

    There is a setting in the wait activity that will process the notification immediate, not queue up the notification. 5 minutes seems a long time, even for it being queued up. Normally this setting defaults so it doesn't queue up the notifications. Perhaps this was turned off in your case.
    Right-click on the notification wait, clink on properties->runtime. This settings is located there.
    We have seen issues with different implementations of the queue and topic JMS devices, especially using Webshpere. Unless you're doing something special, the default JMS devices in WebLogic works fine. If your using some other app server or JMS device, then that may be the problem.
    HTH,
    Mark

  • "Still waiting for replays Issue In process chain please help me"

    Hi Xpertz
    Could any one clarify me in the following aspect .I have a process which is having
    4 infopackages updating to a single ods and then in to a cube I copnverted it in to
    a process chain evry thing seems to be fine how ever one issue is ther .I am not
    getting any repeat option on the failed infopackage .But if the ods activation fails
    then am able to see the repeat option on that activation process.
    How can we get the repeat option on the failuere info package .
    Other than segis weblog is ther any other option to restart the process chain.3
    ITs in BW 3.5
    Thanx in advance
    Regards
    R M K
    No need to say good answers willl get full pointz***

    Hi..
    I have worked on process chains..and I too have seen this..that when chain fails..often repeat option does not appear at infopackage step..
    but then this does not cause an issue..as I simply double click on the step..open the infopackage and run it..
    Siggi's blog is very useful..I havent found another method to kick off a chain from the failed step..(other than repeat)..
    sometimes..u manually correct the failure..but the process chain step remains RED..
    as per the blog..change the field on the table..so that step goes GREEN and kicks off further steps of the chain..
    Vishvesh

  • Resolving Host & waiting for website issues

    Have had infinity now for 8 months or so and ever since upgrading I have trouble connecting to websites with either 'resolving host' or 'waiting for web site' listed in bottom left corner. One of the worst sites this happens on is in fact BT.com! At times sites don't even load at all or correctly.
    I have checked down/upload speeds and they seem to be fine most of the time at around 75/17MB per second. Today however this has dropped to 41/17MB.
    Can anyone advise what I need to do/update.
    Many thanks in advance

    Try changing your DNS servers to OpenDNS on your PC network connectoid
    See here for instructions https://use.opendns.com/
    If you found this post helpful, please click on the star on the left
    If not, I'll try again

  • Note 4 - Calling waiting/conference call issues

    Is this a defect in the new note? I am in able to end calls when answering a call (i.e. call waiting/conference calls). The other person can hang up but my phone will still say they are on hold. Which on turns holds up my free line.
    I find this rather annoying. Will this problem be corrected in an update?

    Did you get a response on this from Skype?
    Regards
    Bill

  • Redo Waits

    Hi All,
    In one of your production environment we are seeing lot of
    LOG FILE SEQUENTIAL READ & LOG FILE PARALLEL WRITE,What could be the cause and how we can solve them.
    Our log file size is 400MB each with 6 groups.
    We are using 9i on AIX5.2L.
    Thanks in advance

    Hi,
    That post doesnot say anything about LOG FILE
    SEQUENTIAL READ & LOG FILE PARALLEL WRITE.
    Thanks in advance.But the post does say the " first thing you should notice is that I (perhaps you in this case) haven’t supplied enough information for you (us) to make a sensible decision. "
    When you look at a Top 5 report, there are usually several other things you have to keep in mind at the same time. At a minimum these would be:
    · the time between snapshots
    · the number of CPUs
    · the typical level of concurrency
    · and the nature of the application.
    "

  • Logging to redo

    Oracle 11.0.1.7:
    This is a stupid question. If we don't care about recovering the database and are only testing for functionality purposes then is there a way to not log anything in redo log. Reason is that we are seeing very slow write to redo because of resource issue and are limited with the resource issue. So I was wondering if there is a way to eliminate logging to redo logs. Are redo logs required if DBWR process is refreshing from buffer cache anyways? I do understand that we can't expect any recovery of data, but that is fine. Can someone please give more insights?
    I also understand altering tablespace to NOLOGGING doesn't reduce redo generation for normal DML operations.

    Here is what I am seeing:
                                                                 Avg
                                            %Time Total Wait    wait    Waits   % DB
    Event                             Waits -outs   Time (s)    (ms)     /txn   time
    log file sync                   104,448     0        745       7      1.0   54.2
                                                                 Avg
                                            %Time Total Wait    wait    Waits   % bg
    Event                             Waits -outs   Time (s)    (ms)     /txn   time
    log file parallel write          86,978     0        137       2      0.8   71.8
    control file parallel writ        1,745     0          7       4      0.0    3.6
                               Total
    Event                      Waits  <1ms  <2ms  <4ms  <8ms <16ms <32ms  <=1s   >1s
    LGWR wait for redo copy     422   99.5          .2                      .2
    SQL*Net message to client  1936K 100.0
    SQL*Net more data from cli   57K  97.4   1.1    .8    .6    .1    .0    .0    .0

  • CS4 Text Wrap issue - HELP!

    HELP!  I taught myself PageMaker 6.5 and I got REALLY good at the basics, but not so great at the in-depth things.  Consequently, when I upgraded to InDesign CS4, the same holds true, so please feel free to treat me like a 2-year-old in your explanations.  Now for my dilemma:
    I create a quarterly magazine.  Most of the pages are 2- or 3-column spreads.  Many times, a photograph (and its caption) will span more than just one column, but not necessarily the entire width of two.  In other words, my photo could span all of column 1 and 1/2 of column 2, with the text flowing to the right of the photograph, then expanding to fill all of column no. 2 beneath it.  In PageMaker, when I text-wrapped around the pic, leaving enough bottom text wrap to insert my captioning, the text would wrap perfectly, keeping the text in perfect alignment horizontally across the columns.  That, in turn, kept the bottom edge of all my columns exactly equal. 
    In InDesign, however, that's not the case. The text doesn't align equally horizontally across the columns, hence ruining my clean horizontal text margin at the bottom.  This happens any time I have a photo that spans all of one and part of one (or two, in the case of a centered photograph) column.  In fact, even if I place a photo that fits within just one column, the horizontal text alignment gets screwed up.  I'm attaching a .pdf of page 35 of the issue I'm working on to show you what I mean.
    I've tried choosing all three columns and clicking the "align top edges," but that just drags all three columns up to the 1/2 inch margin at the top of the page, and my text actually starts 1/4" beneath that (3/4" from the top page edge) because of the page numbering, and when I drag all three columns back down to the 3/4" mark, the wrapping gets all screwed up again.  So I tried "align bottom edges," and that didn't work either (it worked to a point... anything that actually had text flowing to the bottom of the column was fine, the same thing occurred then above the column with a photo spanning all of it.  Geez, I'm confused just trying to explain it.  Hopefully, the attached .pdf will help make sense of this.  
    Consequently, I'm moving columns manually for this issue (all 60 pages of it), because it has to be at the printers by the end of the weekend and I'm just plain out of time.  If anyone can give me some guidance so I don't have to do this again next time, I'd really appreciate it.
    You can email me at [email protected] if you have any ideas. Thanks for your help.
    Barb

    Thanks so much to both Peter and Bob.  I'm sure this will fix the problem.  At least I know it wasn't something I was doing wrong and it really is a glitch in the program.  I'll play with the baseline grid, since it seems that will be the best option. I have a few months to experiment with it before the next issue goes to press.
    Does setting a preference act like a default?  In other words, will it then apply to all pages in all new documents I create or is it specific to the document in which I'm working when I set it? If the latter, I'm guessing I can just include it when I set up my master page so it will apply throughout the issue?  Which, of course brings me to yet another question: how do I save my Master Pages so I don't have to redo them with each issue?
    I'm finding that the majority of InDesign is a lot more user-friendly and easier to navigate than the old PageMaker -- many fewer steps for the same end result.  I hope to take a class if I can find one in my area, because I'm certain I'm doing many things the "hard way."  Learning as you go is okay, but you miss a lot of the finer points along the way and spend entirely too much time trying to figure things out or bugging people like you in this forum.
    I apologize if some of what I ask seems rather elementary. 
    And Scott, sorry, but I've always felt that, out of all the fonts available, Comic Sans is the most readable.
    Barb

  • Deadlock issue in while inserting in oracle table.

    I have written a procedure which copy data in to oracle tables.Other user can also start inserting in that table so to prevent these intervention.
    i have applied locks on these two tables and assume that my procedure will wait for other users to finish and it will apply lock on the tables and other users will now wait till this procedure finishes.
    My Procedure looks like:--
    lock table table1 in exclusive mode;
    lock table table2 in exclusive mode;
    update table1 set where rownum < x;
    forall .....insert in table 2.
    commit;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_printline(SQLERRM)
    commit;
    END;
    But my problem is i am still receiving oracle error as below and the above procedure fails in between:-
    ORA-00060: deadlock detected while waiting for resource
    Any hint ??
    Can we get this error if i execute a SELECT statement on some table which is not locked by me and some other other is updating/deletig/inserting in that table ?
    *Select statement is without update clause.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    user620101 wrote:
    I have written a procedure which copy data in to oracle tables.Other user can also start inserting in that table so to prevent these intervention.
    i have applied locks on these two tables and assume that my procedure will wait for other users to finish and it will apply lock on the tables and other users will now wait till this procedure finishes.
    My Procedure looks like:--
    lock table table1 in exclusive mode;
    lock table table2 in exclusive mode;
    update table1 set where rownum < x;
    forall .....insert in table 2.
    commit;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_printline(SQLERRM)
    commit;
    END;
    But my problem is i am still receiving oracle error as below and the above procedure fails in between:-
    ORA-00060: deadlock detected while waiting for resource
    Any hint ??But if you successfully lock TABLE1 (in session #1) and another session (session #2) is holding a lock against TABLE2 (say it's currently updating a row) then session #1 has to wait when you issue the Lock table command for table2. So session #1 is waiting, and then session #2 tries to do ANY modification to TABLE1 (which session #1 still has locked, and is still waiting to obtain the lock on TABLE2)... whamo, deadlock.
    user620101 wrote:
    Can we get this error if i execute a SELECT statement on some table which is not locked by me and some other other is updating/deletig/inserting in that table ?
    *Select statement is without update clause.No, writes (and locks) do not block reads. So a simple select statement (unless you issued a FOR UPDATE clause) would not cause this issue.
    What does your actual code look like, and what are you actually attempting to do? Why do you think you need to lock the tables, is this a one time operation, a continual operation of the system? Please explain in much more detail what you've got going on here.

  • Bt fon android issue

    Can I first say I am new to this and this is my first post so please be bear with me.
    I have an android phone which I have been using wirelessly through my home hub for sometime but since updating the bt fon app I have been unable to connect through my home hub but I have managed to do it in other hotspots.  The error message '' we are unable to identify this hotspot'' comes up even when I'm on line with my PC.
    Can anyone help me with this please.
    Many thanks

    just need to wait until BT issue an update.  you don't need the app to connect to BTFON - it still works ok on my android phone
    do you not connect to your own wifi when at home and not BTFON?
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

Maybe you are looking for