Rollbacks excessive

Hi
I have an application issue causing excessive rollbacks with 16.13% rollbacks per transaction. Due to Oracle´s assumption of a commit, the rollback process is very
expensive and should only be used when necessary.up to this i know but how i recover from this pls tell me.
secondly how i increase db_cache_size.
my shared pool maybe filled with non-reusable SQL with 93.03% memory usage.pls dignose it.
how i use KEEP pool to avoid unnecessary I/O.
Nareshs
Edited by: Nareshs on Dec 14, 2008 9:26 PM

A cleaned up version of the Statspack report with the code tags in place:
Cache Sizes (end)
~~~~~~~~~~~~~~~~~
               Buffer Cache:        32M      Std Block Size:         4K
           Shared Pool Size:        44M          Log Buffer:       512K
Load Profile
~~~~~~~~~~~~                            Per Second       Per Transaction
                  Redo size:             22,994.54              5,614.23
              Logical reads:                846.50                206.68
              Block changes:                168.21                 41.07
             Physical reads:                436.98                106.69
            Physical writes:                  3.24                  0.79
                 User calls:                 35.35                  8.63
                     Parses:                 18.10                  4.42
                Hard parses:                  3.00                  0.73
                      Sorts:                  2.54                  0.62
                     Logons:                  0.00                  0.00
                   Executes:                 64.39                 15.72
               Transactions:                  4.10
  % Blocks changed per Read:   19.87    Recursive Call %:    90.01
Rollback per transaction %:    0.12       Rows per Sort:    22.22
Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            Buffer Nowait %:   99.99       Redo NoWait %:  100.00
            Buffer  Hit   %:   48.49    In-memory Sort %:   99.77
            Library Hit   %:   96.75        Soft Parse %:   83.41
         Execute to Parse %:   71.89         Latch Hit %:   99.99
Parse CPU to Parse Elapsd %:   44.71     % Non-Parse CPU:   99.88
Wait Events for
s - second
cs - centisecond - 100th of a second
ms - millisecond - 1000th of a second
us - microsecond - 1000000th of a second
ordered by wait time desc, waits desc (idle events last)
                                                                   Avg
                                                     Total Wait   wait    Waits
Event                               Waits   Timeouts  Time (s)    (ms)     /txn
log file sync                      19,338          0        194     10      3.5
log file parallel write            25,170     18,348        147      6      4.5
db file scattered read             68,362          0         64      1     12.2
db file sequential read            62,643          0         29      0     11.2
control file parallel write           445          0         17     38      0.1
db file parallel write                678        678         16     24      0.1
async disk IO                         241          0          4     18      0.0
control file sequential read          232          0          2      7      0.0
direct path read                       70          0          0      4      0.0
direct path write                      42          0          0      5      0.0
SQL*Net break/reset to clien          748          0          0      0      0.1
db file parallel read                  12          0          0      6      0.0
buffer busy waits                      94          0          0      1      0.0
SQL*Net more data to client           199          0          0      0      0.0
latch free                             12          0          0      0      0.0
LGWR wait for redo copy                12          0          0      0      0.0
undo segment extension                 28         28          0      0      0.0
SQL*Net message from client        48,306          0     13,221    274      8.6
virtual circuit status                 45         45      1,350  29999      0.0
SQL*Net message to client          48,306          0          0      0      8.6
SQL*Net more data from clien           47          0          0      0      0.0
Instance Activity Stats
Statistic                                      Total     per Second    per Trans
CPU used by this session                       3,467            2.5          0.6
CPU used when call started                     3,468            2.5          0.6
CR blocks created                                 55            0.0          0.0
DBWR buffers scanned                          18,582           13.6          3.3
DBWR checkpoint buffers written                1,626            1.2          0.3
DBWR checkpoints                                   0            0.0          0.0
DBWR free buffers found                       18,131           13.3          3.2
DBWR lru scans                                    39            0.0          0.0
DBWR make free requests                           47            0.0          0.0
DBWR summed scan depth                        18,582           13.6          3.3
DBWR transaction table writes                      7            0.0          0.0
DBWR undo block writes                         1,642            1.2          0.3
SQL*Net roundtrips to/from client             48,280           35.3          8.6
background checkpoints completed                   1            0.0          0.0
background checkpoints started                     0            0.0          0.0
background timeouts                            1,337            1.0          0.2
buffer is not pinned count                   791,402          578.5        141.3
buffer is pinned count                     3,631,485        2,654.6        648.1
bytes received via SQL*Net from c          6,039,592        4,414.9      1,077.9
bytes sent via SQL*Net to client           5,058,304        3,697.6        902.8
calls to get snapshot scn: kcmgss            177,619          129.8         31.7
calls to kcmgas                              103,088           75.4         18.4
calls to kcmgcs                                1,453            1.1          0.3
change write time                                172            0.1          0.0
cleanouts and rollbacks - consist                  4            0.0          0.0
cleanouts only - consistent read                   3            0.0          0.0
cluster key scan block gets                   14,438           10.6          2.6
cluster key scans                              5,526            4.0          1.0
commit cleanout failures: callbac                  2            0.0          0.0
commit cleanout failures: cannot                   2            0.0          0.0
commit cleanouts                              55,009           40.2          9.8
commit cleanouts successfully com             55,005           40.2          9.8
consistent changes                                90            0.1          0.0
consistent gets                              957,540          700.0        170.9
consistent gets - examination                144,659          105.7         25.8
cursor authentications                            25            0.0          0.0
data blocks consistent reads - un                 90            0.1          0.0
db block changes                             230,107          168.2         41.1
db block gets                                200,468          146.5         35.8
deferred (CURRENT) block cleanout             31,872           23.3          5.7
dirty buffers inspected                           50            0.0          0.0
enqueue conversions                                1            0.0          0.0
enqueue releases                             105,919           77.4         18.9
enqueue requests                             105,919           77.4         18.9
enqueue waits                                      0            0.0          0.0
execute count                                 88,084           64.4         15.7
free buffer inspected                            113            0.1          0.0
free buffer requested                        650,274          475.4        116.1
hot buffers moved to head of LRU               1,991            1.5          0.4
immediate (CR) block cleanout app                  7            0.0          0.0
immediate (CURRENT) block cleanou                103            0.1          0.0
leaf node splits                                  44            0.0          0.0
logons cumulative                                  2            0.0          0.0
messages received                             25,947           19.0          4.6
messages sent                                 25,946           19.0          4.6
no buffer to keep pinned count                 5,325            3.9          1.0
no work - consistent read gets               735,115          537.4        131.2
opened cursors cumulative                     23,463           17.2          4.2
parse count (failures)                             1            0.0          0.0
parse count (hard)                             4,107            3.0          0.7
parse count (total)                           24,763           18.1          4.4
parse time cpu                                   418            0.3          0.1
parse time elapsed                               935            0.7          0.2
physical reads                               597,793          437.0        106.7
physical reads direct                          1,288            0.9          0.2
physical writes                                4,433            3.2          0.8
physical writes direct                         2,228            1.6          0.4
physical writes non checkpoint                 4,348            3.2          0.8
pinned buffers inspected                          56            0.0          0.0
prefetch clients - default                         2            0.0          0.0
prefetched blocks                            465,529          340.3         83.1
prefetched blocks aged out before                  6            0.0          0.0
process last non-idle time             2,458,805,155    1,797,372.2    438,837.3
recursive calls                              435,585          318.4         77.7
recursive cpu usage                            1,665            1.2          0.3
redo blocks written                           84,147           61.5         15.0
redo buffer allocation retries                     0            0.0          0.0
redo entries                                 115,533           84.5         20.6
redo log space requests                            0            0.0          0.0
redo log space wait time                           0            0.0          0.0
redo size                                 31,456,528       22,994.5      5,614.2
redo synch time                               19,391           14.2          3.5
redo synch writes                             20,648           15.1          3.7
redo wastage                              10,304,452        7,532.5      1,839.1
redo write time                               20,007           14.6          3.6
redo writer latching time                          0            0.0          0.0
redo writes                                   25,161           18.4          4.5
rollback changes - undo records a                  1            0.0          0.0
rollbacks only - consistent read                  50            0.0          0.0
rows fetched via callback                      5,516            4.0          1.0
session connect time                   2,458,805,155    1,797,372.2    438,837.3
session logical reads                      1,158,008          846.5        206.7
session pga memory                         2,230,308        1,630.3        398.1
session pga memory max                     2,278,192        1,665.4        406.6
session uga memory                           398,424          291.3         71.1
session uga memory max                       675,788          494.0        120.6
shared hash latch upgrades - no w             73,710           53.9         13.2
shared hash latch upgrades - wait                  0            0.0          0.0
sorts (disk)                                       8            0.0          0.0
sorts (memory)                                 3,468            2.5          0.6
sorts (rows)                                  77,223           56.5         13.8
summed dirty queue length                        519            0.4          0.1
switch current to new buffer                  51,025           37.3          9.1
table fetch by rowid                       1,906,675        1,393.8        340.3
table fetch continued row                      1,826            1.3          0.3
table scan blocks gotten                     582,439          425.8        104.0
table scan rows gotten                    20,054,333       14,659.6      3,579.2
table scans (long tables)                      1,371            1.0          0.2
table scans (short tables)                     8,220            6.0          1.5
transaction rollbacks                              0            0.0          0.0
user calls                                    48,356           35.4          8.6
user commits                                   5,596            4.1          1.0
user rollbacks                                     7            0.0          0.0
write clones created in foregroun                  0            0.0          0.0
init.ora Parameters
                                                                  End value
Parameter Name                Begin value                       (if different)
audit_trail                   TRUE
background_dump_dest          D:\oracle\admin\dbprod\bdump
compatible                    9.0.0
control_files                 D:\oracle\oradata\dbprod\CONTROL0
core_dump_dest                D:\oracle\admin\dbprod\cdump
db_block_size                 4096
db_cache_size                 33554432
db_domain
db_name                       dbprod
dispatchers                   (PROTOCOL=TCP)(SER=MODOSE), (PROT
fast_start_mttr_target        300
instance_name                 dbprod
java_pool_size                54525952
large_pool_size               5242880
log_archive_dest_1            location=D:\oracle\oradata\dbprod
log_archive_format            %t_%s.dbf
log_archive_start             TRUE
max_enabled_roles             148
open_cursors                  300
processes                     150
remote_login_passwordfile     EXCLUSIVE
shared_pool_size              46137344
sort_area_size                524288
timed_statistics              TRUE
undo_management               AUTO
undo_tablespace               UNDOTBS
user_dump_dest                D:\oracle\admin\dbprod\udump
--------------------------------------------------------------------------------Comments about the Statspack report will follow in another reply.
Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.

Similar Messages

  • Excessive Logical I/O's.

    DB - 9.2.0.8.0
    O.S - Win 2003 Server.
    I've got the following query, which does the excessive logical I/O. I really failed to figure out what caused these I/O's to occur.
    UPDATE REPAIRTIP SET BULLETINID =
    (SELECT DISTINCT B.BULLETINID FROM
    BULLETIN B
    INNER JOIN IMP_SERVICEREPAIRTIPSDATA I
    ON B.BULLETINNUMBER = I.TSB_NBR
    INNER JOIN IMP_REPAIRTIP T
    ON I.ISSUE_NBR = T.ISSUE_NBR
    AND I.PART_NBR = T.PART_NBR
    WHERE REPAIRTIP.REPAIRTIPID = T.REPAIRTIPID AND I.FEEDFILE_ID = 584)
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.00 0 0 0 0
    Execute 2 181.87 182.73 160 6618123 11654 5685
    Fetch 0 0.00 0.00 0 0 0 0
    total 3 181.89 182.74 160 6618123 11654 5685
    Misses in library cache during parse: 1
    Optimizer goal: CHOOSE
    Parsing user id: 74
    Rows Row Source Operation
    0 UPDATE
    5685 TABLE ACCESS FULL REPAIRTIP
    31 SORT UNIQUE
    62 TABLE ACCESS BY INDEX ROWID IMP_REPAIRTIP
    710625 NESTED LOOPS
    352470 NESTED LOOPS
    54359970 TABLE ACCESS BY INDEX ROWID IMP_SERVICEREPAIRTIPSDATA
    54359970 INDEX RANGE SCAN IX_SRT_FEEDFILE (object id 96233)
    352470 TABLE ACCESS BY INDEX ROWID BULLETIN
    352470 INDEX RANGE SCAN IDX_BULLETIN_BULLETINNO (object id 120835)
    352470 INDEX RANGE SCAN IDX_REPAIRTIPID_IMP_REPAIRTIP (object id 120836)
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net message to client 2 0.00 0.00
    SQL*Net message from client 2 77.80 77.80
    db file sequential read 149 0.01 0.06
    db file scattered read 3 0.01 0.01
    Here's auto trace output --
    compare@DEVDB> set autotrace traceonly statistics ;
    compare@DEVDB> UPDATE REPAIRTIP SET BULLETINID =
    2 (SELECT DISTINCT B.BULLETINID FROM
    3 BULLETIN B
    4 INNER JOIN IMP_SERVICEREPAIRTIPSDATA I
    5 ON B.BULLETINNUMBER = I.TSB_NBR
    6 INNER JOIN IMP_REPAIRTIP T
    7 ON I.ISSUE_NBR = T.ISSUE_NBR
    8 AND I.PART_NBR = T.PART_NBR
    9 WHERE REPAIRTIP.REPAIRTIPID = T.REPAIRTIPID AND I.FEEDFILE_ID = 584) ;
    5685 rows updated.
    Statistics
    2 recursive calls
    11645 db block gets
    6618119 consistent gets
    0 physical reads
    2377872 redo size
    794 bytes sent via SQL*Net to client
    1091 bytes received via SQL*Net from client
    4 SQL*Net roundtrips to/from client
    5686 sorts (memory)
    0 sorts (disk)
    5685 rows processed
    hare krishna
    Alok
    hare krishna
    Alok

    Thanks Jonathan and Hemant. Now, when I re-ran both the autotrace and explain. It seems both the plan got matched. But, I still feel the logical I/O's are still on the higher side . What do you suggest ?
    compare@DEVDB> UPDATE REPAIRTIP SET BULLETINID =
      2  (SELECT DISTINCT B.BULLETINID FROM
      3  BULLETIN B
      4  INNER JOIN IMP_SERVICEREPAIRTIPSDATA I
      5  ON B.BULLETINNUMBER = I.TSB_NBR
      6  INNER JOIN IMP_REPAIRTIP T
      7  ON I.ISSUE_NBR = T.ISSUE_NBR
      8  AND I.PART_NBR = T.PART_NBR WHERE REPAIRTIP.REPAIRTIPID = T.REPAIRTIPID AND I.FEEDFILE_ID = 584) ;
    5685 rows updated.
    Execution Plan
       0      UPDATE STATEMENT Optimizer=CHOOSE (Cost=4 Card=5685 Bytes=90960)
       1    0   UPDATE OF 'REPAIRTIP'
       2    1     TABLE ACCESS (FULL) OF 'REPAIRTIP' (Cost=4 Card=5685 Bytes=90960)
       3    1     SORT (UNIQUE) (Cost=8 Card=1 Bytes=68)
       4    3       TABLE ACCESS (BY INDEX ROWID) OF 'BULLETIN' (Cost=1 Card=1 Bytes=14)
       5    4         NESTED LOOPS (Cost=6 Card=1 Bytes=68)
       6    5           NESTED LOOPS (Cost=5 Card=1 Bytes=54)
       7    6             TABLE ACCESS (BY INDEX ROWID) OF 'IMP_REPAIRTIP' (Cost=2 Card=1 Byte
              s=24)
       8    7               INDEX (RANGE SCAN) OF 'IDX_REPAIRTIPID_IMP_REPAIRTIP' (NON-UNIQUE)
               (Cost=1 Card=1)
       9    6             TABLE ACCESS (BY INDEX ROWID) OF 'IMP_SERVICEREPAIRTIPSDATA' (Cost=3
               Card=1 Bytes=30)
      10    9               INDEX (RANGE SCAN) OF 'IX_SRT_PNB_ISSNB' (NON-UNIQUE) (Cost=1 Card
              =1)
      11    5           INDEX (RANGE SCAN) OF 'IDX_BULLETIN_BULLETINNO' (NON-UNIQUE)
    Statistics
            184  recursive calls
          11645  db block gets
          29465  consistent gets
           3173  physical reads
        2379496  redo size
            785  bytes sent via SQL*Net to client
           1083  bytes received via SQL*Net from client
              4  SQL*Net roundtrips to/from client
           5693  sorts (memory)
              0  sorts (disk)
           5685  rows processed
    compare@DEVDB> rollback;
    Rollback complete.
    compare@DEVDB> explain plan for
      2  UPDATE REPAIRTIP SET BULLETINID =
      3  (SELECT DISTINCT B.BULLETINID FROM
      4  BULLETIN B
      5  INNER JOIN IMP_SERVICEREPAIRTIPSDATA I
      6  ON B.BULLETINNUMBER = I.TSB_NBR
      7  INNER JOIN IMP_REPAIRTIP T
      8  ON I.ISSUE_NBR = T.ISSUE_NBR
      9  AND I.PART_NBR = T.PART_NBR WHERE REPAIRTIP.REPAIRTIPID = T.REPAIRTIPID AND I.FEEDFILE_ID = 584) ;
    Explained.
    compare@DEVDB> @Plan
    PLAN_TABLE_OUTPUT
    | Id  | Operation                        |  Name                          | Rows  | Bytes | Cost  |
    |   0 | UPDATE STATEMENT                 |                                |  5685 | 90960 |     4 |
    |   1 |  UPDATE                          | REPAIRTIP                      |       |       |       |
    |   2 |   TABLE ACCESS FULL              | REPAIRTIP                      |  5685 | 90960 |     4 |
    |   3 |   SORT UNIQUE                    |                                |     1 |    68 |     8 |
    |   4 |    TABLE ACCESS BY INDEX ROWID   | BULLETIN                       |     1 |    14 |     1 |
    |   5 |     NESTED LOOPS                 |                                |     1 |    68 |     6 |
    |   6 |      NESTED LOOPS                |                                |     1 |    54 |     5 |
    |   7 |       TABLE ACCESS BY INDEX ROWID| IMP_REPAIRTIP                  |     1 |    24 |     2 |
    |*  8 |        INDEX RANGE SCAN          | IDX_REPAIRTIPID_IMP_REPAIRTIP  |     1 |       |     1 |
    |*  9 |       TABLE ACCESS BY INDEX ROWID| IMP_SERVICEREPAIRTIPSDATA      |     1 |    30 |     3 |
    |* 10 |        INDEX RANGE SCAN          | IX_SRT_PNB_ISSNB               |     1 |       |     1 |
    |* 11 |      INDEX RANGE SCAN            | IDX_BULLETIN_BULLETINNO        |     1 |       |       |
    Predicate Information (identified by operation id):
       8 - access("T"."REPAIRTIPID"=:B1)
       9 - filter("I"."FEEDFILE_ID"=584)
      10 - access("I"."PART_NBR"="T"."PART_NBR" AND "I"."ISSUE_NBR"="T"."ISSUE_NBR")
      11 - access("B"."BULLETINNUMBER"="I"."TSB_NBR")
    Note: cpu costing is offhare krishna
    Alok

  • Help Needed in blocing excess quantity in production module

    Dear All,
    My client wants to block excess issue of raw materials or excess receipt of finished goods in the Production module.
    Can someone suggest me a solution for this?
    Regards,
    Bharath S
    Edited by: Bharath Kumar on Nov 4, 2010 11:04 AM

    Dear Mr. Jimmy,
    Thanks for the reply. I tried writing the query in the stored procedure but its not working.
    It would be grateful if someone can send me the query for this to put in the Transaction Notification.
    Regards,
    Bharath S

  • Difference between rollback and issue_rollback(null)

    In key-Next-Item i kept issue_rollback(null) command,then application working fine.but when i keep just normal rollback command in the same place,it showing do u want to save changes message on my front_end application.
    So can any one tell that what is the diffrence between the normal ROLLBACK command and issue_rollback(null) procedure.

    Since the documentation warns against using Issue_Rollback outside of an On-Rollback trigger, it may not be doing anything.
    The plain rollback statement is interpreted by Forms as a Clear_Form with no parameters (which means using the default parameter values, which means it is doing a Clear_Form(Ask_commit,To_savepoint).
    If you really want to undo any changes already made by the user when he hits the Tab or Enter key, you should issue the Clear_Form with the proper parameters. And then you have the issue of re-querying the data.
    Maybe you should explain what you really want to happen in the trigger.

  • AT&T blames iPhone 3G for roaming data charges in excess

    This is Outrageous. AT&T Called me Sept. 19 to advise my iPhone service would be cancelled. They are trying to collect $10,000 because the 3G was ROAMING Data in the background ONE day in Frankfurt Germany, 480MB they say.
    After 4 HOURS in the phone today (landline) with mutliple customer service agents, a family ready to go on Prozac because of the anxiety caused by this issue, and much heartburn on myself, I am without service and with a Billing Problem that AT&T does not want to take responsibility for.
    I swear to GOD, I did not use such amount of Braodband and I certainly can not afford to pay such large sum just because AT&T says so; fine print or not, this is plain burglary!
    AT&T customer services blames the iPhone 3G as a device which constantly "in the Background retrieves data from the network", in other words, the data and broadband was not a direct request of me, the consumer, and therefore not a practical application or service rendered, if in fact the 3G pulled such large amount of data as AT&T claims it did.
    If someone have had this problem, of hidden, surprise, OUTRAGEOUS charges, and know a way to resolve, please advise. The AT&T customer service people on the telephone have no authority to investigate and clarify. They cannot offer proof of what are 480MB consisting of, and simply demmand immediate payment if marginally reducing the amount on the spot.
    What an intimidating group of people at AT&T. I really hope someone in AT&T would look at these cases and realize how illogical and senseless it is to follow this inpersonal, irrational, unethical billing practice.
    I hope somebody in AT&T, or in the legal world, can help me out of this!
    A. Lira
    Dallas Texas

    I complained to the FCC . AT&T Customer Service Reps, after many calls totalling more than 9 hours now, can not break down the nature or the services rendered in the $20/Mb 500+MB they are charging me in excess of $10,000 Dlls. The phone was in my pocket. I used it to check e-mail from my children (no attachments, just text) figuring it'd be cheaper than $2.80 telephone roaming charges, right? AT&T does blame the device for TX/RX of data without user intervention.
    "Form 2000B at fcc.gov: To the FCC: AT&T is charging me for 500MB of broadband use in Germany and Netherlands that I DID NOT USE. They argue theri 3G iPhone works in the background without user intervention.
    After almost six hour on the telephone in 8 different calls with AT&T Wireless Customer Service, they insist on charging me $10,000 Dollars.
    This has caused a terrible amount of distress on me and my wife. I need help to stopthis fraudulent charge of $20/MB at 500MB of data I DID NOT REQUEST to transmitt or Receive. PLEASE HELP ME. I AM DESPERATE AND CAN NOT GET AT&T to accept the fraudulent nature of their claim. "
    AT&T is charging me for 500MB of broadband use in Germany and Netherlands that I DID NOT USE. They argue theri 3G iPhone works in the background without user intervention.
    After almost six hour on the telephone in 8 different calls with AT&T Wireless Customer Service, they insist on charging me $10,000 Dollars.
    This has caused a terrible amount of distress on me and my wife. I need help to stopthis fraudulent charge of $20/MB at 500MB of data I DID NOT REQUEST to transmitt or Receive. PLEASE HELP ME. I AM DESPERATE AND CAN NOT GET AT&T to accept the fraudulent nature of their claim.

  • IPad iOS 6.1.2 update causing excessive battery drain

    I have noticed in other discussions that a number of iPhone users have experienced excessive battery drain after updating to iOS 6.1.2.
    I am now experiencing this problem in a big way after updating to iOS 6.1.2 on an iPad 3.   Prior to this update, my battery life was very good, dropping to only 70% to 80% at the end of a typical day of use.
    After the update, which was said to be to fix a previious Mail Exchange battery drain issue (one that I was not experiencing), my battery was dropping to 30% after a few hours.   It was literally like holding a bucket with a hole in the bottom and watching the water drain out.
    I noticed that my Usage time and Standby time were identical, even though the ipad had been in sleep mode much of the time.   This indicates to me that something about this patch is causing the iPad not to actually sleep when in sleep mode.
    The iPhone discussion forums point to a number of possible fixes, including uninstalling all emails and re-installing them all the way to a total erasure and reinstalation of everything.  This worked for some, but not for all victims of this problem.
    Until Apple recognizes this problem and sends out another update, one less painful solution that worked for me was to change all of my email accounts from Push to Fetch every 15 minutes.   This has stopped the problem for me, for now. so I wanted to share this in case anyone else is experiencing similar problems.
    If other community members have discovered other short term or long term fixes then please do post here.
    Apple, I await an update that will allow me to restore Push functionality, or instructions on what steps will work to properly restore full functionality (what to remove and reinstall etc).

    Just to confirm that I have the same problem.  I updated to iOS6.1.2 on Friday 1 March 2013, I have an iPad2.  And Saturday morning my iPad was 0% after having nodded off on a 78% full battery.  This has NEVER happened before, and has become a daily occurrence.  I have now amended my Mail to fetch and hope it works.

  • Excessive memory use freezing 15inch MacBook Pro.

    Start time: 17:36:26 07/20/14
    I've just started having a major issue with my laptop. Several time over the last few days, the system has slowed to a virtual standstill, making the machine unusable for long periods of time. I've checked activity monitor and something is using pretty much the entire physical memory, plus huge (30gb-plus) amounts of virtual memory.
    It has eventually resolved itself each time, but it's a pretty major inconvenience. I've run a diagnostic and the results are posted in below. I don't know much about this type of stuff, but I noticed that a few processes were caught doing 'excessive wakeups' at the time I was experiencing problems. Has anyone got any idea what the problem might be and how it can be resolved?
    cheers
    Huw
    Model Identifier: MacBookPro6,2
    System Version: OS X 10.9.4 (13E28)
    Kernel Version: Darwin 13.3.0
    Boot Mode: Normal
    Time since boot: 32 minutes
    SATA
       Hitachi HTS545032B9SA02                
       HL-DT-ST DVDRW  GS23N                  
    USB
       Microsoft® Nano Transceiver v2.0 (Microsoft Corporation)
    Diagnostic reports
       2014-06-26 AiOFirmwareUpdater crash
       2014-07-12 devolonetsvc crash
       2014-07-12 devolonetsvc crash
       2014-07-12 devolonetsvc crash
       2014-07-12 devolonetsvc crash
       2014-07-12 devolonetsvc crash
       2014-07-12 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-13 devolonetsvc crash
       2014-07-14 devolonetsvc crash
    Log
       Jul 16 14:26:00 (default pager): [KERNEL]: Swap File Error.
       Jul 16 14:29:45 process devolonetsvc[63] caught causing excessive wakeups. Observed wakeups rate (per sec): 278; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 45138
       Jul 17 08:48:33 process AAM Updates Noti[251] caught causing excessive wakeups. Observed wakeups rate (per sec): 542; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 46064
       Jul 17 08:48:35 CODE SIGNING: cs_invalid_page(0x100de8000): p=336[spindump] final status 0x0, allowing (remove VALID) page
       Jul 17 09:20:56 wl0: Roamed or switched channel, reason #8, bssid 00
       Jul 17 09:56:36 process WindowServer[86] caught causing excessive wakeups. Observed wakeups rate (per sec): 238; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 230188
       Jul 17 10:37:15 wl0: Beacon Loss Event
       Jul 17 10:37:20 MacAuthEvent en1   Auth result for: 00 Auth request tx failed
       Jul 17 10:46:54 wl0: Roamed or switched channel, reason #8, bssid 00
       Jul 17 10:47:21 wl0: Roamed or switched channel, reason #2, bssid 00
       Jul 17 10:50:01 wl0: Roamed or switched channel, reason #4, bssid 00
       Jul 17 11:07:21 process QuickLookSatelli[3100] caught causing excessive wakeups. Observed wakeups rate (per sec): 328; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 48445
       Jul 17 11:13:53 wl0: Roamed or switched channel, reason #8, bssid 00
       Jul 17 14:29:34 MacAuthEvent en1   Auth result for: 00 Auth request tx failed
       Jul 17 14:29:41 wl0: Beacon Loss Event
       Jul 17 17:00:05 wl0: Roamed or switched channel, reason #4, bssid 00
       Jul 17 18:20:18 wl0: Roamed or switched channel, reason #4, bssid 00
       Jul 17 18:20:30 wl0: Beacon Loss Event
       Jul 17 18:22:32 wl0: Roamed or switched channel, reason #4, bssid 00
       Jul 17 18:24:07 wl0: Roamed or switched channel, reason #2, bssid 00
       Jul 17 21:08:25 WARNING: hibernate_page_list_setall skipped 8844 xpmapped pages
       Jul 20 17:06:10 process SecurityAgent[149] caught causing excessive wakeups. Observed wakeups rate (per sec): 661; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 45571
       Jul 20 17:10:20 process AAM Updates Noti[273] caught causing excessive wakeups. Observed wakeups rate (per sec): 536; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 47692
       Jul 20 17:21:28 process WindowServer[83] caught causing excessive wakeups. Observed wakeups rate (per sec): 447; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 83493
       Jul 20 17:26:33 process QuickLookSatelli[443] caught causing excessive wakeups. Observed wakeups rate (per sec): 313; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 45232
    Swap (MiB): 1220
    kexts
       com.apple.AppleFSCompression.AppleFSCompressionTypeLZVN (1.0.0d1)
       com.logmein.driver.LogMeInSoundDriver (1.0.3)
       com.Cycling74.driver.Soundflower (1.5.2)
       com.apple.GeForceTesla (8.2.4)
    Daemons
       org.postfix.master
       org.ntp.ntpd
       org.cups.cupsd
       com.vix.cron
       com.google.keystone.daemon
       com.adobe.SwitchBoard
       com.adobe.fpsaud
    Agents
       com.adobe.PDApp.AAMUpdatesNotifier.73776.UUID
       com.kodak.BonjourAgent
       com.google.keystone.system.agent
       com.adobe.CS5ServiceManager
       com.valvesoftware.steamclean
       com.spotify.webhelper
       com.nero.HSMMonitor
       com.kodak.KODAK
       com.kodak.KODAK
       com.kodak.KODAK
       com.amazon.cloud-player
       com.adobe.ARM.UUID
       com.adobe.ARM.UUID
    launchd
       /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist
       - com.adobe.AAM.Startup-1.0
       /Library/LaunchAgents/com.adobe.CS5ServiceManager.plist
       - com.adobe.CS5ServiceManager
       /Library/LaunchAgents/com.google.keystone.agent.plist
       - com.google.keystone.system.agent
       /Library/LaunchAgents/com.kodak.BonjourAgent.plist
       - com.kodak.BonjourAgent
       /Library/LaunchAgents/com.logmein.logmeingui.plist
       - com.logmein.logmeingui
       /Library/LaunchAgents/com.logmein.logmeinguiagent.plist
       - com.logmein.logmeinguiagent
       /Library/LaunchAgents/com.logmein.logmeinguiagentatlogin.plist
       - com.logmein.logmeinguiagentatlogin
       /Library/LaunchDaemons/com.adobe.fpsaud.plist
       - com.adobe.fpsaud
       /Library/LaunchDaemons/com.adobe.SwitchBoard.plist
       - com.adobe.SwitchBoard
       /Library/LaunchDaemons/com.google.keystone.daemon.plist
       - com.google.keystone.daemon
       /Library/LaunchDaemons/com.logmein.logmeinblanker.plist
       - com.logmein.logmeinblanker
       /Library/LaunchDaemons/com.logmein.logmeinserver.plist
       - com.logmein.logmeinserver
       Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist
       - com.adobe.AAM.Scheduler-1.0
       Library/LaunchAgents/com.adobe.ARM.UUID.plist
       - com.adobe.ARM.UUID
       Library/LaunchAgents/com.adobe.ARM.UUID.plist
       - com.adobe.ARM.UUID
       Library/LaunchAgents/com.amazon.cloud-player.plist
       - com.amazon.cloud-player
       Library/LaunchAgents/com.kodak.KODAK AiO Annual Opt.plist
       - N/A
       Library/LaunchAgents/com.kodak.KODAK AiO Firmware Updater.plist
       - N/A
       Library/LaunchAgents/com.kodak.KODAK AiO Software Updater.plist
       - N/A
       Library/LaunchAgents/com.nero.HSMMonitor.plist
       - com.nero.HSMMonitor
       Library/LaunchAgents/com.spotify.webhelper.plist
       - com.spotify.webhelper
       Library/LaunchAgents/com.valvesoftware.steamclean.plist
       - com.valvesoftware.steamclean
    Startup items
       /Library/StartupItems/HP IO/HP IO
       /Library/StartupItems/HP IO/Resources/version.plist
       /Library/StartupItems/HP IO/StartupParameters.plist
    Bundles
       /System/Library/CoreServices/SecurityAgentPlugins/HomeDirMechanism.bundle
       - com.apple.SecurityAgentPlugin.HomeDirMechanism
       /System/Library/CoreServices/SecurityAgentPlugins/KerberosAgent.bundle
       - com.apple.KerberosAgent
       /System/Library/CoreServices/SecurityAgentPlugins/loginwindow.bundle
       - com.apple.securityAgentPlugins.loginwindowUI
       /System/Library/CoreServices/SecurityAgentPlugins/MCXMechanism.bundle
       - com.apple.securityAgentPlugin.MCXMechanism
       /System/Library/CoreServices/SecurityAgentPlugins/PKINITMechanism.bundle
       - com.apple.PKINITMechanism
       /System/Library/CoreServices/SecurityAgentPlugins/RestartAuthorization.bundle
       - com.apple.securityAgentPlugin.RestartAuthorization
       /System/Library/Extensions/AMDRadeonVADriver.bundle
       - N/A
       /System/Library/Extensions/AMDRadeonX3000.kext
       - com.apple.AMDRadeonX3000
       /System/Library/Extensions/AMDRadeonX3000GLDriver.bundle
       - com.apple.AMDRadeonX3000GLDriver
       /System/Library/Extensions/AMDRadeonX4000.kext
       - com.apple.AMDRadeonX4000
       /System/Library/Extensions/AMDRadeonX4000GLDriver.bundle
       - com.apple.AMDRadeonX4000GLDriver
       /System/Library/Extensions/AppleFSCompressionTypeLZVN.kext
       - com.apple.AppleFSCompression.AppleFSCompressionTypeLZVN
       /System/Library/Extensions/AppleIntelHD3000Graphics.kext
       - com.apple.driver.AppleIntelHD3000Graphics
       /System/Library/Extensions/AppleIntelHD3000GraphicsGA.plugin
       - com.apple.driver.AppleIntelHD3000GraphicsGA
       /System/Library/Extensions/AppleIntelHD3000GraphicsGLDriver.bundle
       - com.apple.driver.AppleIntelHD3000GraphicsGLDriver
       /System/Library/Extensions/AppleIntelHD3000GraphicsVADriver.bundle
       - com.apple.AppleIntelHD3000GraphicsVADriver
       /System/Library/Extensions/AppleIntelHD4000Graphics.kext
       - com.apple.driver.AppleIntelHD4000Graphics
       /System/Library/Extensions/AppleIntelHD4000GraphicsGLDriver.bundle
       - com.apple.driver.AppleIntelHD4000GraphicsGLDriver
       /System/Library/Extensions/AppleIntelHD4000GraphicsVADriver.bundle
       - com.apple.AppleIntelHD4000GraphicsVADriver
       /System/Library/Extensions/AppleIntelHD5000Graphics.kext
       - com.apple.driver.AppleIntelHD5000Graphics
       /System/Library/Extensions/AppleIntelHD5000GraphicsGLDriver.bundle
       - com.apple.driver.AppleIntelHD5000GraphicsGLDriver
       /System/Library/Extensions/AppleIntelHD5000GraphicsVADriver.bundle
       - com.apple.AppleIntelHD5000GraphicsVADriver
       /System/Library/Extensions/AppleIntelHDGraphicsGLDriver.bundle
       - com.apple.driver.AppleIntelHDGraphicsGLDriver
       /System/Library/Extensions/AppleIntelHSWVA.bundle
       - com.apple.AppleIntelHSWFBVA
       /System/Library/Extensions/AppleIntelIVBVA.bundle
       - com.apple.AppleIntelIVBFBVA
       /System/Library/Extensions/AppleIntelMCEReporter.kext
       - com.apple.driver.AppleIntelMCEReporter
       /System/Library/Extensions/ATIRadeonX2000.kext
       - com.apple.ATIRadeonX2000
       /System/Library/Extensions/ATIRadeonX2000GA.plugin
       - com.apple.ATIRadeonX2000GA
       /System/Library/Extensions/ATIRadeonX2000GLDriver.bundle
       - com.apple.ATIRadeonX2000GLDriver
       /System/Library/Extensions/ATIRadeonX2000VADriver.bundle
       - com.apple.ATIRadeonX2000VADriver
       /System/Library/Extensions/EPSONUSBPrintClass.kext
       - com.epson.print.kext.USBPrintClass
       /System/Library/Extensions/GeForce.kext
       - com.apple.GeForce
       /System/Library/Extensions/GeForceGA.plugin
       - com.apple.GeForceGA
       /System/Library/Extensions/GeForceGLDriver.bundle
       - com.apple.GeForceGLDriver
       /System/Library/Extensions/GeForceTesla.kext
       - com.apple.GeForceTesla
       /System/Library/Extensions/GeForceTeslaGLDriver.bundle
       - com.apple.GeForceTeslaGLDriver
       /System/Library/Extensions/GeForceTeslaVADriver.bundle
       - com.apple.GeForceTeslaVADriver
       /System/Library/Extensions/GeForceVADriver.bundle
       - com.apple.GeForceVADriver
       /System/Library/Extensions/hp_designjet_series.kext
       - com.hp.print.hpio.Designjet.kext
       /System/Library/Extensions/hp_Deskjet_io_enabler.kext
       - com.hp.print.hpio.Deskjet.kext
       /System/Library/Extensions/hp_fax_io.kext
       - com.hp.kext.hp-fax-io
       /System/Library/Extensions/hp_Inkjet1_io_enabler.kext
       - com.hp.print.hpio.Inkjet1.kext
       /System/Library/Extensions/hp_Inkjet2_io_enabler.kext
       - com.hp.print.hpio.Inkjet2.kext
       /System/Library/Extensions/hp_Inkjet3_io_enabler.kext
       - com.hp.print.hpio.Inkjet3.kext
       /System/Library/Extensions/hp_Inkjet4_io_enabler.kext
       - com.hp.print.hpio.Inkjet4.kext
       /System/Library/Extensions/hp_Inkjet5_io_enabler.kext
       - com.hp.print.hpio.Inkjet5.kext
       /System/Library/Extensions/hp_Inkjet7_io_enabler.kext
       - com.hp.print.hpio.inkjet7.kext
       /System/Library/Extensions/hp_Inkjet8_io_enabler.kext
       - com.hp.print.hpio.inkjet8.kext
       /System/Library/Extensions/hp_Inkjet_io_enabler.kext
       - com.hp.print.hpio.Inkjet.kext
       /System/Library/Extensions/hp_io_printerclassdriver_enabler.kext
       - com.hp.hpio.hp_io_printerclassdriver_enabler
       /System/Library/Extensions/hp_Laserjet_io_enabler.kext
       - com.hp.print.hpio.Laserjet.kext
       /System/Library/Extensions/hp_Officejet_io_enabler.kext
       - com.hp.print.hpio.Officejet.kext
       /System/Library/Extensions/hp_Photosmart_io_enabler.kext
       - com.hp.print.hpio.Photosmart.kext
       /System/Library/Extensions/hp_PhotosmartPro_io_enabler.kext
       - com.hp.print.hpio.PhotosmartPro.kext
       /System/Library/Extensions/hp_qc_io_enabler.kext
       - com.hp.hpio.hp_psa530_630_io_enabler
       /System/Library/Extensions/LexmarkUSBMerge.kext
       - com.lexmark.print.usbmerge
       /System/Library/Extensions/LogMeInSoundDriver.kext
       - com.logmein.driver.LogMeInSoundDriver
       /System/Library/Extensions/PS3Enabler.kext
       - com.mice.driver.PS3Controller
       /System/Library/Extensions/Soundflower.kext
       - com.Cycling74.driver.Soundflower
       /System/Library/Extensions/TASCAM_US122L_US144.kext
       - com.tascam.usb2audio.driver
       /System/Library/Extensions/TASCAMUS122.kext
       - com.TASCAM.iokit.US122
       /Library/Audio/MIDI Drivers/EmagicUSBMIDIDriver.plugin
       - info.emagic.driver.unitor
       /Library/Audio/MIDI Drivers/TASCAM US122L-144 MIDI Driver.plugin
       - com.tascam.usb2audio.midi
       /Library/Audio/MIDI Drivers/US122MIDIDriver.plugin
       - com.TASCAM.midi.driver.US122
       /Library/Audio/Plug-Ins/HAL/AirPlay.driver
       - com.apple.audio.AirTunesHALPlugin
       /Library/Audio/Plug-Ins/HAL/AppleAVBAudio.driver
       - com.apple.audio.AppleAVBAudio
       /Library/Audio/Plug-Ins/HAL/BluetoothAudioPlugIn.driver
       - com.apple.audio.BluetoothAudioPlugIn
       /Library/Audio/Plug-Ins/HAL/iSightAudio.driver
       - com.apple.iSightAudio
       /Library/Audio/Plug-Ins/HAL/TASCAM_US122L_US144.plugin
       - com.tascam.usb2audio.hal
       /Library/Internet Plug-Ins/AdobePDFViewer.plugin
       - com.adobe.acrobat.pdfviewer
       /Library/Internet Plug-Ins/AdobePDFViewerNPAPI.plugin
       - com.adobe.acrobat.pdfviewerNPAPI
       /Library/Internet Plug-Ins/Default Browser.plugin
       - com.apple.DefaultBrowser.PlugIn
       /Library/Internet Plug-Ins/Flash Player.plugin
       - N/A
       /Library/Internet Plug-Ins/Flip4Mac WMV Plugin.plugin
       - net.telestream.wmv.plugin
       /Library/Internet Plug-Ins/Flip4Mac WMV Plugin.webplugin
       - net.telestream.wmv.webplugin
       /Library/Internet Plug-Ins/Google Earth Web Plug-in.plugin
       - com.Google.GoogleEarthPlugin.plugin
       /Library/Internet Plug-Ins/iPhotoPhotocast.plugin
       - com.apple.plugin.iPhotoPhotocast
       /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
       - com.apple.java.JavaAppletPlugin
       /Library/Internet Plug-Ins/OfficeLiveBrowserPlugin.plugin
       - com.microsoft.officelive.browserplugin
       /Library/Internet Plug-Ins/OnLiveGameClientDetector.plugin
       - N/A
       /Library/Internet Plug-Ins/Quartz Composer.webplugin
       - com.apple.QuartzComposer.webplugin
       /Library/Internet Plug-Ins/QuickTime Plugin.plugin
       - N/A
       /Library/Internet Plug-Ins/Silverlight.plugin
       - com.microsoft.SilverlightPlugin
       /Library/Internet Plug-Ins/Unity Web Player.plugin
       - com.unity.UnityWebPlayer
       /Library/Internet Plug-Ins/VeetleBroadcast-0.9.16
       - com.netscape.vlc
       /Library/Internet Plug-Ins/VeetleTVCore-0.9.16
       - com.veetle.plugin
       /Library/Internet Plug-Ins/VeetleTVPlayer-0.9.16
       - com.netscape.vlc
       /Library/iTunes/iTunes Plug-ins/Quartz Composer Visualizer.bundle
       - com.apple.QuartzComposer.iTunesPlugIn
       /Library/PreferencePanes/Flash Player.prefPane
       - com.adobe.flashplayerpreferences
       /Library/PreferencePanes/Flip4Mac WMV.prefPane
       - net.telestream.wmv.prefpane
       /Library/PreferencePanes/Growl.prefPane
       - com.growl.prefpanel
       /Library/QuickTime/AppleMPEG2Codec.component
       - com.apple.AppleMPEG2Codec
       /Library/ScriptingAdditions/Adobe Unit Types.osax
       - N/A
       /Library/Spotlight/GBSpotlightImporter.mdimporter
       - com.apple.garageband.spotlightimporter
       /Library/Spotlight/iBooksAuthor.mdimporter
       - com.apple.MDImporter.iBooksAuthor
       /Library/Spotlight/iWork.mdimporter
       - com.apple.MDImporter.iWork
       /Library/Spotlight/LogicPro.mdimporter
       - com.apple.MDImporter.LogicPro
       /Library/Spotlight/Microsoft Office.mdimporter
       - com.microsoft.MDImporter.Office
       Library/Address Book Plug-Ins/SkypeABDialer.bundle
       - com.skype.skypeabdialer
       Library/Address Book Plug-Ins/SkypeABSMS.bundle
       - com.skype.skypeabsms
       Library/Internet Plug-Ins/doubleTwistWebPlugin.bundle
       - com.doubleTwist.webPlugin
       Library/Internet Plug-Ins/OctoshapeWeb.plugin
       - com.octoshape.browserplugin
       Library/PreferencePanes/MusicManager.prefPane
       - com.google.musicmanager.pref
       Library/Widgets/Maya Calendar.wdgt
       - com.azteccalendar.widget.maya
       Library/Widgets/TimeScroller.wdgt
       - com.timescroller.widget
    dylibs
       /usr/lib/dtrace/libdtrace_dyld.dylib
       /usr/lib/libdvdcss.2.dylib
       /usr/lib/libgmalloc.B.dylib
       /usr/lib/libruby.2.0.0.dylib
       /usr/lib/libXplugin.1.dylib
    Apps
       /Applications/Dropbox.app
    Contents of /etc/hosts
       127.0.0.1 localhost
       127.0.0.1 activate.adobe.com
       127.0.0.1 practivate.adobe.com
       127.0.0.1 ereg.adobe.com
       127.0.0.1 activate.wip3.adobe.com
       127.0.0.1 wip3.adobe.com
       127.0.0.1 3dns-3.adobe.com
       127.0.0.1 3dns-2.adobe.com
       127.0.0.1 adobe-dns.adobe.com
       127.0.0.1 adobe-dns-2.adobe.com
       127.0.0.1 adobe-dns-3.adobe.com
       127.0.0.1 ereg.wip3.adobe.com
       127.0.0.1 activate-sea.adobe.com
       127.0.0.1 wwis-dubc1-vip60.adobe.com
       127.0.0.1 activate-sjc0.adobe.com
       127.0.0.1 hl2rcv.adobe.com
       255.255.255.255 broadcasthost
       ::1             localhost
       fe80::1%lo0 localhost
    Global login items
       /Library/Application Support/Hewlett-Packard/Software Update/HP Scheduler.app/
    Font issues: 40
    Firewall: On
    Restricted files: 1016
    Widgets
       TimeScroller
       Maya Calendar
       iCal
    Elapsed time (s): 223

    A.
    Quit Dropbox and see whether there's an improvement.
    B.
    Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock those files and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Back up all data.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    sudo find ~ $TMPDIR.. -exec chflags nouchg,nouappnd,noschg,nosappnd {} + -exec chown $UID {} + -exec chmod +rw {} + -exec chmod -N {} + -type d -exec chmod +x {} + 2>&-
    This time you'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button
    Select
               ▹ Restart
    from the menu bar.
    C.
    Some OS X files (Installer package receipts) are missing or unreadable. Other OS files may be missing as well.
    If you don't already have a current backup, back up all data. There are ways to back up a computer that isn't fully functional. Ask if you need guidance. You can skip this step if you don't care about the data that hasn't been backed up.
    Reinstall the OS.* Your data should be unaffected unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main Recovery screen.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • Having a problem with Excessive "modified" memory usage in Win7 x64, upwards of 3.6GB, any suggestions?

    I have 6GB of ram, a fresh install of Windows 7 x64, and the screenshot shows what happens after leaving my PC on for a couple days. (3782+MB being used by modified memory ATM).
    http://wow.deconstruct.me/images/ExcessiveMemory.jpg
    Any ideas on this?
    Edit:
    Added this after first round of suggestions
    http://wow.deconstruct.me/images/NotSoExcessiveMemory.jpg
    This is uptime of around 2 hours.
    The first image is of uptime of around 3-5 days.

    Matthew,
    The only reason why these pages are kept on the modified list indefinitely is because the system doesn't have any available pagefile space left. If you increase the size of the pagefile the system will write most of these pages to disk and then move them from the modified list to the standby list. Standby pages are considered part of "available memory", because they can be reused for some other purpose if necessary.
    Whether this would "fix" the problem or not depends on what the actual problem is. If it's an unbound memory leak then increasing the size of the pagefile will simply allow the system to run longer before it eventually hits the maximum pagefile size limit, or runs out of disk space. On the other hand, if it's a case of some application allocating a lot of memory and not using it for a long time, then increasing the pagefile might be a perfectly valid solution.
    Allowing the system to manage the size of the pagefile actually works well in most cases. Pagefile fragmentation (at the filesystem level) can only occur when the initially chosen size is not large enough and the system has to extend it at run time. For win7 we have telemetry data that shows that even for systems with 1 GB of RAM, less than 0.1% of all boot sessions end up having to extend the pagefile, and this number is even lower for larger amounts of RAM. If you think you are in that 0.1% and your pagefile might be getting fragmented, you can manually increase its minimum size such that the total system commit charge stays below 80% even if you run all your apps at once (80% is the threshold at which the pagefile is automatically extended). This will make sure the pagefile is created once and then stays at the same size forever, so it can't fragment. The maximum size can either be set to the same value as the minimum, or you can make it larger so that the system is more resilient to memory leaks or unexpectedly high loads.
    By the way, Windows doesn't use pagefiles as "extra memory", it uses them as a backing store for private pages, just like regular files are used as a backing store for EXEs/DLLs and memory mapped files. So if the system really has more than enough RAM (like in your second screenshot, where you have 3.6 GB of free pages) you shouldn't see any reads from the pagefile. You can verify this by going to the Disk tab in the resource monitor and looking for any disk IO from pagefile.sys. On smaller systems that don't have an excess of free pages you may see periodic reads from the pagefile, and this is expected because the total amount of data referenced by the OS/drivers/processes is larger than the total RAM. Forcefully keeping all pagefile-backed pages in memory (which is what disabling the pagefile does) would simply mean some other pages (memory mapped files, DLL code or data etc) would have to be paged out.
    Regarding further troubleshooting steps: If the system runs fine with a larger pagefile (commit charge stabilizes well below 80%, and you no longer see gigabytes of modified pages accumulating in memory) then you don't really need to do anything. If the problem persists, you can check for any processes with an abnormally high commit charge, and also check kernel memory usage in task manager. If it's a kernel leak you can usually narrow it down to a particular driver using poolmon.exe or kernel debugger.

  • Problem with RollBack in  Oracle Batching

    Hi all,
    This is Adhil. I am facing a problem with Oracle Batching in java.
    I am using java 1.5 and Oracle 10 g.
    I have a below standalone code to test the Oracle Batching (Assume that i have the 2 tables with zero records ).
    with the batch size set as 10, I am trying add 2 records in each table.
    Now I rise divideByZero error exception manually and trying to rollback the connection in catch statement . But couldn't rollback the connection. I see the 2 records added in both of my tables.
    The same code when i set the batchsize 2 and trying to insert 10 records ,I could rollback and no rows get inserted.
    Since I am going to get the no of insert from user in runtime , my rollback may fail in any combinations as in my first case(with batch size 10 and if the no of insert is 2).
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import oracle.jdbc.*;
    public class BatchTest{
         public static void main(String args[]) throws Exception{
              Connection conn = null;
              conn = new BatchTest().createConnection();
              new BatchTest().insertdata(conn);
         public Connection createConnection() throws Exception{
                   Properties props =new Properties();
                   props.load(ClassLoader.getSystemResourceAsStream("connection.properties"));
                   String connectionString = (String)props.get("connection");
                   String username = (String)props.get("username");
                   String password = (String)props.get("password");
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   Connection connection = DriverManager.getConnection(connectionString, username, password);
                   return connection;
         public void insertdata(Connection dbConnection){
              PreparedStatement psCnt =null;
              PreparedStatement psImp =null;
              try{
              dbConnection.setAutoCommit(false);
              psCnt = dbConnection.prepareStatement("insert into CHKCNT values (?,?)");
              psImp = dbConnection.prepareStatement("insert into CHKIMP values (?,?)");
              ((OraclePreparedStatement)psCnt).setExecuteBatch (10);
              ((OraclePreparedStatement)psImp).setExecuteBatch (10);
              int x=0;
              for(int i=1;i<=2;i++){
                        psCnt.setInt(1,i);
                        psCnt.setString(2,"Jack");
                        psImp.setInt(1,i);
                        psImp.setString(2,"John");
                        psImp.executeUpdate();
                        psCnt.executeUpdate();
              if(true) x=10/0;
              dbConnection.commit();
              }catch(Exception e){
                   try{
                   dbConnection.rollback();
                   dbConnection.close();
                   }catch(Exception ex){
                   e.printStackTrace();
              }finally{
                   try{
                        psCnt.close();
                   }catch(Exception ee){
                   ee.printStackTrace();
    Can anyone suggest me a way to make my rollback work.
    Thanks in advance.
    -adhil.J

    Hi all,
    This is Adhil. I am facing a problem with Oracle Batching in java.
    I am using java 1.5 and Oracle 10 g.
    I have a below standalone code to test the Oracle Batching (Assume that i have the 2 tables with zero records ).
    with the batch size set as 10, I am trying add 2 records in each table.
    Now I rise divideByZero error exception manually and trying to rollback the connection in catch statement . But couldn't rollback the connection. I see the 2 records added in both of my tables.
    The same code when i set the batchsize 2 and trying to insert 10 records ,I could rollback and no rows get inserted.
    Since I am going to get the no of insert from user in runtime , my rollback may fail in any combinations as in my first case(with batch size 10 and if the no of insert is 2).
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import oracle.jdbc.*;
    public class BatchTest{
         public static void main(String args[]) throws Exception{
              Connection conn = null;
              conn = new BatchTest().createConnection();
              new BatchTest().insertdata(conn);
         public Connection createConnection() throws Exception{
                   Properties props =new Properties();
                   props.load(ClassLoader.getSystemResourceAsStream("connection.properties"));
                   String connectionString = (String)props.get("connection");
                   String username = (String)props.get("username");
                   String password = (String)props.get("password");
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   Connection connection = DriverManager.getConnection(connectionString, username, password);
                   return connection;
         public void insertdata(Connection dbConnection){
              PreparedStatement psCnt =null;
              PreparedStatement psImp =null;
              try{
              dbConnection.setAutoCommit(false);
              psCnt = dbConnection.prepareStatement("insert into CHKCNT values (?,?)");
              psImp = dbConnection.prepareStatement("insert into CHKIMP values (?,?)");
              ((OraclePreparedStatement)psCnt).setExecuteBatch (10);
              ((OraclePreparedStatement)psImp).setExecuteBatch (10);
              int x=0;
              for(int i=1;i<=2;i++){
                        psCnt.setInt(1,i);
                        psCnt.setString(2,"Jack");
                        psImp.setInt(1,i);
                        psImp.setString(2,"John");
                        psImp.executeUpdate();
                        psCnt.executeUpdate();
              if(true) x=10/0;
              dbConnection.commit();
              }catch(Exception e){
                   try{
                   dbConnection.rollback();
                   dbConnection.close();
                   }catch(Exception ex){
                   e.printStackTrace();
              }finally{
                   try{
                        psCnt.close();
                   }catch(Exception ee){
                   ee.printStackTrace();
    Can anyone suggest me a way to make my rollback work.
    Thanks in advance.
    -adhil.J

  • Problem with rollback in EJB and CMT

    Hello,
    I faced a problem in my application that I really do not understand (but I really would like to). How can I trigger a rollback of a transaction that is container-managed (CMT)? I know that any system exceptions are supposed to be handled by the container automatically and will cause a transaction rollback when they are thrown from an enterprise bean method. My Problem now is that I'm unable to make this work in my application.
    Consider a situation like this:
    The ManageEntityBean holds a simple save() method that creates an instance of EntityA and another of EntityB. Both instances store an arbitrary number (here 10). After this, the entityManger (injected from the container) is asked to make these instances persistent. EntityB is mapped with a "unique" constraint, so any attempt to store the same number twice will cause an SQL Exception.
    First time when the save() method is invoked, the instances aEntity and bEntity are made permanent in the database. Second time when the save() method is invoked, the database throws an exception because bEntity is violating the unique constraint. What I would expect now is a complete rollback of the whole transaction. Instead, only bEntity has not been made permanent, but aEntity has.
    What's wrong with this code?
    @Stateless
    public class ManageEntityBean implements ManageEntity {
         @PersistenceContext
         private EntityManager entityManager;
         @TransactionAttribute(TransactionAttributeType.REQUIRED)
         public void save() {
              try {
                   EntityA aEntity = new EntityA(10);
                   EntityB bEntity = new EntityB(10);
                    entityManager.persist(aEntity);
                    entityManager.persist(bEntity);
              } catch (Exception e) {
                   throw new EJBException(e);
    @Entity
    public class EntityA implements java.io.Serializable {
         @Id
         @GeneratedValue
         private long     id;
            @Column(name="NUMBER")
            private int   number;
         public EntityA() {}
         public EntityA(int number) {
              this.number = number;
    @Entity
    public class EntityB implements java.io.Serializable {
         @Id
         @GeneratedValue
         private long     id;
         @Column(name = "NUMBER", unique = true)
         private int          number;
         public EntityB() {}
         public EntityB(int number) {
              this.number = number;
    }I found two related topics in this forum but still I didn't find the solution yet.
    [Enterprise JavaBeans - CMT and JDBC|http://forums.sun.com/thread.jspa?forumID=13&threadID=525651]
    and
    [ Forums - A CMT Session Bean Does Not Maintain the Transaction Correctly| http://forums.sun.com/thread.jspa?forumID=13&threadID=161512]
    Maybe anyone can give me a hint. Help is very much appreciated
    Christoph

    Thank you for your input!
    The save() method is simply invoked from the test applications main() method:
    public class Test {
         public static void main(String[] args) {
              JndiUtil<ManageEntity> jndiUtil = new JndiUtil<ManageEntity>();
              ManageEntity handler = jndiUtil.lookupBeanContext("ManageEntityBean", ManageEntity.class);
              handler.save();
    }Btw. I use Hibernate as persistence provider and JBoss 4.2.2.GA as application server.
    For clarity I attach some lines of the debug logging that is produced when the test application is getting started for the second time:
    ### open Session
    17:44:00,555 DEBUG *[SessionImpl] opened session at timestamp: 5007498610909184*
    17:44:00,555 DEBUG [AbstractEntityManagerImpl] Looking for a JTA transaction to join
    17:44:00,555 DEBUG [JDBCContext] successfully registered Synchronization
    17:44:00,555 DEBUG [AbstractEntityManagerImpl] Looking for a JTA transaction to join
    17:44:00,555 DEBUG [AbstractEntityManagerImpl] Transaction already joined
    ### invoke em.persist(aEntity)
    17:44:00,555 DEBUG [AbstractSaveEventListener] executing identity-insert immediately
    17:44:00,555 DEBUG [AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
    17:44:00,555 DEBUG *[ConnectionManager] opening JDBC connection*
    17:44:00,555 DEBUG [SQL]
    /* insert de.zippus.domain.EntityA
    17:44:00,556 INFO [STDOUT] Hibernate:
    /* insert de.zippus.domain.EntityA
    17:44:00,558 DEBUG [IdentifierGeneratorFactory] Natively generated identity: 2
    17:44:00,559 DEBUG [AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
    17:44:00,559 DEBUG [ConnectionManager] aggressively releasing JDBC connection
    17:44:00,559 DEBUG [ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: >0)]
    ### invoke em.persist(bEntity)
    17:44:00,559 DEBUG [AbstractSaveEventListener] executing identity-insert immediately
    17:44:00,559 DEBUG [AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
    17:44:00,559 DEBUG [ConnectionManager] opening JDBC connection
    17:44:00,559 DEBUG [SQL]
    /* insert de.zippus.domain.EntityB
    17:44:00,560 INFO [STDOUT] Hibernate:
    /* insert de.zippus.domain.EntityB
    17:44:00,561 DEBUG [AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
    17:44:00,561 DEBUG [ConnectionManager] aggressively releasing JDBC connection
    17:44:00,561 DEBUG [ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: >0)]
    17:44:00,561 DEBUG [JDBCExceptionReporter] could not insert: [de.zippus.domain.EntityB] [* insert de.zippus.domain.EntityB */ insert into >ENTITY_B (NUMBER) values (?)]
    com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry '10' for key 2
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
    17:44:00,563 WARN [JDBCExceptionReporter] SQL Error: 1062, SQLState: 23000
    17:44:00,563 ERROR [JDBCExceptionReporter] Duplicate entry '10' for key 2
    17:44:00,563 DEBUG [AbstractEntityManagerImpl] mark transaction for rollback
    17:44:00,563 ERROR [ManageEntityBean] Caught exception: javax.persistence.EntityExistsException: >org.hibernate.exception.ConstraintViolationException: could not insert: [de.zippus.domain.EntityB]
    17:44:00,563 ERROR [ManageEntityBean] Exception Cause: org.hibernate.exception.ConstraintViolationException: could not insert: >[de.zippus.domain.EntityB]
    17:44:00,564 DEBUG *[ManagedEntityManagerFactory] ************** closing entity managersession *************** Up to now I'm not that experienced in reading and understanding this kind of logging, but what I can see is, that there is a transaction that spans the whole unit of work and that this transaction is marked for rollback. I think that's quite a good thing, isn't it?
    But what really puzzles me here is, that both calls of em.persist() result in an opening of a jdbc connection and an immidiate execution of a database insert. Tell me if I'm wrong, but is this really the right place to happen?
    For what reason soever hibernate thinks it has to make these instances permanent, no matter if there is already a session that is taking care of this. If so, I might deal with a wrong hibernate configuration, I checked, but I can't find anything..
    What do you think?
    Thanks in advance!
    Christoph

  • Rollback segment Error coming for 8 lacks Record while creating MV

    Hi All,
    i am creating a materialized View and it gives us 8 lacks record but when we creates in production its fails due to rollback segment does not have enough space to handle it and it did not create the MV.
    can anyone help me out to resolve this issue for the below query while creating MV.
    SELECT DISTINCT NVL
    ((ROUND ((jt_date_completed - jt_date_requested) * 24, 2)
    0
    ) AS actual_hrs_to_complete,
    NVL ((ROUND ((jt_date_responded - jt_date_requested) * 24, 2)
    0
    ) AS actual_hrs_to_respond,
    peo1.peo_name AS agent_name,
    peo1.peo_user_name AS asagent_soe_id,
    le.lglent_desc AS ap_system,
    ' ' AS assign_work_request_comment,
    DECODE (jt.jt_bill_id,
    138802, 'CLIENT BILLABLE',
    138803, 'CONTRACTED',
    138804, 'INTERNAL BILLABLE',
    NULL, ' '
    ) AS billable,
    bl.bldg_name_cc AS building, bl.bldg_id_ls AS building_id,
    DECODE (bl.bldg_active_cc,
    'Y', 'ACTIVE',
    'INACTIVE'
    ) AS building_status,
    DECODE (jt.jt_wrk_cause_id,
    141521, 'STANDARD WEAR AND TEAR',
    141522, 'NEGLIGENCE',
    141523, 'ACCIDENTAL',
    141524, 'MECHANICAL MALFUNCTION',
    141525, 'OVERSIGHT',
    141526, 'VANDAL',
    141527, 'STANDARD',
    141528, 'PROJECT WORK',
    6058229, 'TEST',
    NULL, ' '
    ) AS cause_type,
    ' ' AS comments, peo3.peo_name AS completed_by,
    jt.jt_requestor_email AS contact_email,
    jt.jt_requestor_name_first
    || ' '
    || jt.jt_requestor_name_last AS contact_name,
    jt.jt_requestor_phone AS contact_phone,
    cc.cstctrcd_apcode AS corp_code,
    cc.cstctrcd_code AS cost_center,
    jt.jt_date_closed AS date_closed,
    jt.jt_date_completed AS date_completed,
    jt.jt_date_requested AS date_requested,
    jt.jt_date_responded AS date_responded,
    jt.jt_date_response_ecd AS date_response_ecd,
    jt.jt_date_scheduled AS date_scheduled,
    DECODE (jt.jt_def_id,
    139949, 'WTG VENDOR RESPONSE',
    139950, 'WAITING ON PARTS',
    139951, 'LABOR AVAILABILITY',
    139952, 'DEFERRED- HI PRI WORK',
    139953, 'WTG APPROVAL',
    139954, 'FUNDING REQUIRED',
    139955, 'ACCESS DENIED',
    139956, 'WTG MATERIAL',
    NULL, ' '
    ) AS deferral_reason,
    jt.jt_description AS description,
    jt.jt_date_resched_ecd AS ecd,
    fmg.facility_manager AS facility_manager,
    fl.floors_text AS FLOOR, gl.genled_desc AS general_ledger,
    ' ' AS kiosk_date_requested, ' ' AS kiosk_dispatch_confirmed,
    ' ' AS kiosk_dispatched,
    eqp.equip_customer_code AS linked_equipment_alias,
    eqp.equip_id AS linked_equipment_id,
    eqp.equip_text AS linked_equipment_name,
    DECODE (jt_originator_type_id,
    1000, 'PROJECT MOVE REQUEST',
    138834, 'CUSTOMER INITIATED CORRECTION',
    138835, 'CUSTOMER INITIATED REQUEST',
    138836, 'CORRECTIVE MAINTENANCE',
    138837, 'CONFERENCE ROOM BOOKING',
    138838, 'PROJECT INITIATED REQUEST',
    138839, 'PLANNED PREVENTIVE MAINTENANCE',
    138840, 'SELF INITATED REQUEST',
    NULL, ' '
    ) AS originator_type,
    ' ' AS payment_terms, priority_text AS priority_code,
    swoty.sworktype_text AS problem_type,
    prop.property_name_cc AS property,
    jt.jt_cost_quote_total AS quote_total,
    par.levels_name AS region,
    DECODE (jt.jt_repdef_id,
    141534, 'ADJUSTED SETTING',
    141535, 'TRAINING FOR END',
    141536, 'NEW REQUEST',
    141537, 'NO REPAIR REQUIR',
    141538, 'REPLACED PARTS',
    141539, 'REPLACE EQUIPMEN',
    1000699, 'NEW REQUEST',
    NULL, ' '
    ) AS repair_definitions,
    jt.jt_repairdesc AS repair_description,
    jt.jt_requestor AS requestor, ' ' AS requestor_cost_center,
    jt.jt_requestor_email AS requestor_email,
    jt.jt_requestor_name_first AS requestor_name,
    jt.jt_requestor_phone AS requestor_phone,
    ' ' AS response_time, rm.room_name_cc AS room,
    p1.peo_provider_code1 AS service_provider,
    p1.peo_address_1 AS service_provider_address,
    peocity.city_text service_provider_city,
    p1.peo_provider_code1 AS service_provider_code,
    peocity.city_country_name AS service_provider_country,
    peocur.currency_text AS service_provider_currency,
    p1.peo_name AS service_provider_description,
    p1.peo_dispatch_method AS serv_prov_dispatc_hmethod,
    p1.peo_rate_double AS serv_prov_double_time_rate,
    p1.peo_email AS service_provider_email,
    p1.peo_emergency_phone AS serv_prov_emergency_phone,
    p1.peo_fax AS service_provider_fax_number,
    p1.peo_home_phone AS service_provider_home_phone,
    p1.peo_rate_hourly AS service_provider_hourly_rate,
    p1.peo_title AS service_provider_job_title,
    p1.peo_method_id AS service_provider_method,
    p1.peo_cell_phone AS service_provider_mobile_phone,
    p1.peo_pager AS service_provider_pager,
    p1.peo_rate_differential AS service_provider_rates,
    p1.peo_rate_differential AS ser_prov_shift_differential,
    peocity.city_state_prov_text AS serv_prov_state_province,
    DECODE (p1.peo_active,
    'Y', 'ACTIVE',
    'INACTIVE'
    ) AS service_provider_status,
    p1.peo_url AS serv_prov_web_site_address,
    p1.peo_phone AS service_provider_work_phone,
    p1.peo_postal_code AS serv_prov_zip_postal_code, ' ' AS shift,
    ' ' AS skill,
    DECODE (jt.jt_bigstatus_id,
    138813, 'NEW',
    138814, 'PENDING',
    138815, 'OPEN',
    138816, 'COMPLETED',
    138817, 'CLOSED',
    138818, 'CANCELLED',
    NULL, ' '
    ) AS status,
    lev.levels_name AS subregion, ' ' AS trade,
    p1.peo_ls_interface_code1 AS vendor_id,
    p1.peo_fax AS vendor_purchasing_fax,
    p1.peo_vendor_site_code AS vendor_sitecode,
    jt.jt_id AS vendor_ticket, p1.peo_name AS vendor_companyname,
    jt.jt_requestor_vip AS vip, wo.wo_id AS work_order_no,
    jt.jt_id AS work_request,
    jt.jt_class_id AS work_request_class,
    woty.worktype_text AS work_type, ' ' AS wr_cost,
    jt.jt_description AS wr_description,
    ' ' AS wr_dispatch_method,
    DECODE (jt.jt_bigstatus_id,
    138813, 'NEW',
    138814, 'PENDING',
    138815, 'OPEN',
    138816, 'COMPLETED',
    138817, 'CLOSED',
    138818, 'CANCELLED',
    NULL, ' '
    ) AS wr_status,
    ctry.country_name AS country
    FROM citi.jobticket jt,
    citi.property prop,
    citi.bldg bl,
    citi.bldg_levels bldglvl,
    citi.LEVELS lev,
    citi.LEVELS par,
    (SELECT crstools.stragg (peo_name) facility_manager,
    bldgcon_bldg_id
    FROM citi.bldg_contacts, citi.people
    WHERE bldgcon_peo_id = peo_id
    AND bldgcon_contype_id IN (40181, 10142)
    GROUP BY bldgcon_bldg_id) fmg,
    citi.floors fl,
    citi.room rm,
    citi.general_ledger gl,
    citi.legal_entity le,
    citi.cost_center_codes cc,
    citi.equipment eqp,
    citi.worktype woty,
    citi.subworktype swoty,
    citi.work_order wo,
    citi.jt_workers jtwo,
    citi.priority,
    citi.country ctry,
    citi.people p1,
    citi.people peo3,
    citi.people peo1,
    citi.city peocity,
    citi.currency peocur
    WHERE jt.jt_bldg_id = bl.bldg_id
    AND bl.bldg_id = bldglvl.bldg_levels_bldg_id
    AND bldglvl.bldg_levels_levels_id = lev.levels_id
    AND lev.levels_parent = par.levels_id(+)
    AND prop.property_id = bl.bldg_property_id
    AND bl.bldg_active_ls <> 'N'
    AND jt.jt_floors_id = fl.floors_id(+)
    AND jt.jt_room_id = rm.room_id(+)
    AND jt.jt_bldg_id = fmg.bldgcon_bldg_id(+)
    AND jt.jt_genled_id = gl.genled_id(+)
    AND gl.genled_lglent_id = le.lglent_id(+)
    AND jt.jt_cstctrcd_id = cc.cstctrcd_id(+)
    AND jt.jt_equip_id = eqp.equip_id(+)
    AND jt.jt_id = jtwo.jtw_jt_id(+)
    AND jt.jt_worktype_id = woty.worktype_id(+)
    AND jt.jt_sworktype_id = swoty.sworktype_id(+)
    AND jt.jt_wo_id = wo.wo_id
    AND jt.jt_priority_id = priority_id(+)
    AND jt.jt_date_requested >= ADD_MONTHS (SYSDATE, -12)
    AND bl.bldg_country_id = ctry.country_id
    AND jtwo.jtw_peo_id = p1.peo_id(+)
    AND p1.peo_city_id = peocity.city_id(+)
    AND jt.jt_completed_by_peo_id = peo3.peo_id(+)
    AND p1.peo_rate_currency_id = peocur.currency_id(+)
    AND jt.jt_agent_peo_id = peo1.peo_id(+);
    Regards
    shyam~

    Hi,
    Its ora-1555? IS your undo_retention sufficient?
    Since you are developer the only option you have is to tune the query?
    Am curious to know like I create materialized view so that I do not have to run complex query on the master database / or to prevent the access to master database more than once to get the same data?
    Like to know which is your case because your query seem to be too complex to be the case for former. Do you think this materialized view would be used frequently in your application?
    Regards
    Anurag Tibrewal.

  • Scrap of material in subcontract and Excess material issue

    Hi,
             I want to know is there any setting such that ,  for mfg. a finish good material,  some qty. of raw material is scrap   the qty which is scrap i have add as negative qty in BOM  and  but after making the GR for Finish material , all positive qty. are consume by deduction of qty which i have mention as negative but scrap is not done automatically,  i am doing scrap sepearetely  so it is possible  whenevr i make the GR for finish good material then ,  the material for which i have maiatain as negative should get automatically scrap,  as the raw maetria are consum using 543 materials,
    second thing  the negative  qty of material i have mention in BOM of finish good  but insted of maiatining -ve qty in BOM  is it possible   to add the excess qty in PO  as -Ve qty  because  when we select the finish  material in Subcontract PO  all BOM components appear in PO   but there there is no option to add some addition material in PO.
      can we make the above settings
      regards,
        zafar

    Hi,
      Thanks for your reply.
      Just want to know one more think, as in subcontract  we are issue the material as per BOm,  as suppose, total qty of one raw material required is 4500,  which is to be consume for making the finish good but due to std. packing of raw material i want to issue the qty 5000,  but while making the GR  only 4500 should be consume and the reamining 500  should be shown as in vendor stock  after getting material back  we will take that as 542 movement.
      regards,
        zafar

  • Excessively high memory usage by Tomcat in NT

    We are facing the problem of excessive memory usage by our servlets (that call JNI functions). The memory usage seems to touch 50+ MB in 2000 Server but it drops down to 30 MB soon. But, this does not happen in NT. The memory keeps on increasing and there is a point in time when Tomcat occupies all the available memory.
    We are taking care of garbage collecting the objects frequently(by calling Runtime.gc()). Is there any other way by which we can have some kind of control over the usage of memory?
    Do we have to install a patch for NT (if something like this is available)?
    NT Server:
    PIII 500 MHz, 256MB RAM, 40GB HDD
    2000 Server:
    PIII 700 MHz, 128MB RAM, 20GB HDD
    Tomcat:
    Version 3.2.1
    JDK:
    Sun's JDK 1.3
    Any suggestions, pointers are appreciated.
    Thanks
    Manish
    [email protected]

    Hi, Manish:
    I've solved memory leak problem in JNI once. Memory leak may be resulted from inapproriate memory access in C or C++ library.
    My previous problem is: I get a C byte array from Java byte array by GetByteArrayElements, however, I never call ReleaseByteArrayElements before C function return. That will let that Java byte array unable to be garbage collected. After inserting ReleaseByteArrayElements before return, it won't run out of memory again. Similar problems may happen when useless Java object's reference count not zero because NewGlobalReference without calling DeleteGlobalReference.
    However, I've faced another problem in JNI (see http://forum.java.sun.com/thread.jsp?forum=52&thread=212275). I wonder if JVM release or reset memory allocated in C library. Hope it is not true.
    Regards,
    David Wu

  • HOW TO ROLLBACK ENCUMBRANCE BALANCE

    제품 : FIN_GL
    작성날짜 : 2003-11-24
    HOW TO ROLLBACK ENCUMBRANCE BALANCE
    ===================================
    PURPOSE
    balance table의 data 에 corrput 가 발생했을 경우 예산 가집행에 대한 rollback script를 제공한다.
    Explanation
    1. 관련 data를 모두 backup 받아 놓는다.
    2. data가 corrupt 된 기간을 확인한다.
    3. gl_balance table에서 corrupt 된 data를 delete한다.
    delete from GL_BALANCES
    where set_of_books_id = <set of books id which has the corruption >
    and actual_flag = 'E'
    and encumbrance_type_id = <Encumbrance type id of the corrupt balances>
    and period_year >= <Fiscal year which has the corruption >
    4. GL_SETS_OF_BOOKS table 을 update 한다.
    Update gl_sets_of_books
    set latest_encumbrance_year = <last correct encumbrance year>
    where set_of_books_id = <set of books id>
    5. Encumbrance Year 를 재오픈한다.
    Period 화면에서 해당 encumbrance year를 재오픈한다.
    6. Journal Status를 update 한다.
    update GL_JE_BATCHES set status = 'U', status_verified = 'N'
    where default_period_name in <List of periods in the
    corrupt fiscal year starting with the first period in that year
    up to the latest open for that encumberance type>
    and actual_flag = 'E'
    and set_of_books_id = <set of books id which has the corruption>
    and je_batch_id in
    (SELECT je_batch_id
    from GL_JE_HEADERS
    where encumbrance_type_id = <Corrupt encumbrance type id>
    and actual_flag = 'E'
    and set_of_books_id = <Corrupt Set of books Id>
    and period_name in <List of corrupt periods starting
    with the first period in the corrupt fiscal year
    up to the latest open for that encumbrance type>
    update GL_JE_HEADERS set status = 'U'
    where period_name IN <List of periods in the corrupt fiscal year
    starting with the first period in that year up to the latest
    open for that encumbrance>
    and actual_flag = 'E'
    and encumberance_type_id = <Corrupt encumbrance type id>
    and set_of_books_id = <Corrupt set of books id>
    update GL_JE_LINES
    set status = 'U'
    where period_name IN <<List of periods in the corrupt fiscal year
    starting with the first period in that year up to the latest
    open for that encumbrance>
    and set_of_books_id = <Corrupt set of books id>
    and je_header_id IN
    (select je_header_id
    from GL_JE_HEADERS
    where period_name in <List of periods in the corrupt fiscal
    starting with the first period in that year up to the latest
    open for that encumbrance>
    and actual_flag = 'E'
    and encumberance_type_id = <Corrupt Encumbrance Type Id>
    and set_of_books_id = <Corrupt Set of Books Id>
    7. encumbrance journal 들을 repost 한다.
    Example
    Reference Documents
    Note 99415.1

    If you want to load balances at the time of go live.
    Create a clearing account like data take over A/c
    MM will upload material balances using tcode MB1C and movement type 561
    it will generate the following accounting entry
    Finished goods stock a/c          Debit
    Semi-Finished goods stock a/c Debit
    Raw Material stock a/c             Debit
    Packing Material stock a/c        Debit
    Stores and spares a/c              Debit
    Data take over                          Credit
    Customer a/c (not recon G/l) Debit
    Data takeover a/c                  Credit
    Data takeover a/c                Debit
    Vendor a/c (not recon GL) Credit
    For Asset - tcode OASV
    Plant and Machinery a/c          Dr
    Accumulated depreciation a/c Credit
    Data takeover a/c                    Credit
    Cash balance through FBCJ
    G/L Tcode F-02,
    Data takeover a/c     Debit  (Balancing figure)
    Bank a/c                    Debit
    Advances                 Debit
    Share capital a/c       Credit
    Short term Loan a/c   Credit
    Long term loan a/c     Credit

  • HOW TO ROLLBACK BUDGET BALANCE

    제품 : FIN_GL
    작성날짜 : 2005-05-10
    HOW TO ROLLBACK BUDGET BALANCE
    ==============================
    PURPOSE
    GL Budget Balance 의 Period 설정이 잘 못 되었거나 Budget Balance 가 잘 못 지정되었을 경우에 아래와 같은 step으로 Budget Balance 를 Roll back 한다.
    Problem Description
    고객이 Budget 화면에서 End Date 설정을 잘 못 하여 Period 가 잘못 지정되었는데 Budget Journal이 생성된 후에 End Date 설정을 강제로 변경 하고자 할 경우나 Budget Balance 자체에 문제가 있을 때 아래와 같은 Step 으로 Rollback 한다.
    Solution Description
    Step 1. 관련 데이타는 미리 Back up 받아 놓는다.
    Step 2. Delete 할 Period를 결정한다.
    Step 3. GL_BALANCES table에서 해당 period 의 budget balance 를 Delete 한다.
    DELETE from GL_BALANCES
    where set_of_books_id = <set of books id which has the corruption >
    and actual_flag = 'B'
    and budget_version_id = <Budget version id of the corrupt budget >
    and period_year >= <Fiscal year which has the corruption >
    Step 4. Journal Statuses 를 Update 한다.
    UPDATE GL_JE_BATCHES set status = 'U', status_verified = 'N'
    where default_period_name in <List of periods in the
    corrupt fiscal year starting with the first period in that year
    up to the latest open for that budget>
    and actual_flag = 'B'
    and set_of_books_id = <set of books id which has the corruption>
    and je_batch_id in
    (SELECT je_batch_id
    from GL_JE_HEADERS
    where budget_version_id = <Corrupt budget version id>
    and actual_flag = 'B'
    and set_of_books_id = <Corrupt Set of books Id>
    and period_name in <List of corrupt periods starting
    with the first period in the corrupt fiscal year
    up to the latest open for that budget>
    UPDATE GL_JE_HEADERS set status = 'U'
    where period_name IN <List of periods in the corrupt fiscal year
    starting with the first period in that year up to the latest
    open for that budget>
    and actual_flag = 'B'
    and budget_version_id = <Corrupt budget version id>
    and set_of_books_id = <Corrupt set of books id>;
    update GL_JE_LINES set status = 'U'
    where period_name IN <<List of periods in the corrupt fiscal year
    starting with the first period in that year up to the latest
    open for that budget>
    and set_of_books_id = <Corrupt set of books id>
    and je_header_id IN
    (select je_header_id
    from GL_JE_HEADERS
    where period_name in <List of periods in the corrupt fiscal
    starting with the first period in that year up to the latest
    open for that budget>
    and actual_flag = 'B'
    and budget_version_id = <Corrupt budget version Id>
    and set_of_books_id = <Corrupt Set of Books Id>
    Step 5. Latest Open Budget Period 를 update 한다.
    UPDATE GL_BUDGETS
    set latest_opened_year = <Year prior to the corrupt fiscal year>,
    last_valid_period_name = <last period for the year prior to the
    corrupt fiscal year>
    where budget_name = <Budget name of the corrupt budget>
    and budget_type = 'standard'
    and set_of_books_id = <Corrupt set of books id>;
    DELETE from GL_BUDGET_PERIOD_RANGES
    where budget_version_id = <Corrupt budget version id>
    and period_year = <Corrupt budget fiscal year >;
    Step 6. Budget Year 를 Reopen한다.
    GL Responsibility 로 Applications에 접속하여 Budget Year를 Open
    Step 7. Budget Journals 을 Repost 한다.
    해당 Budget Journals 를 Repost 처리 한다.

    If you want to load balances at the time of go live.
    Create a clearing account like data take over A/c
    MM will upload material balances using tcode MB1C and movement type 561
    it will generate the following accounting entry
    Finished goods stock a/c          Debit
    Semi-Finished goods stock a/c Debit
    Raw Material stock a/c             Debit
    Packing Material stock a/c        Debit
    Stores and spares a/c              Debit
    Data take over                          Credit
    Customer a/c (not recon G/l) Debit
    Data takeover a/c                  Credit
    Data takeover a/c                Debit
    Vendor a/c (not recon GL) Credit
    For Asset - tcode OASV
    Plant and Machinery a/c          Dr
    Accumulated depreciation a/c Credit
    Data takeover a/c                    Credit
    Cash balance through FBCJ
    G/L Tcode F-02,
    Data takeover a/c     Debit  (Balancing figure)
    Bank a/c                    Debit
    Advances                 Debit
    Share capital a/c       Credit
    Short term Loan a/c   Credit
    Long term loan a/c     Credit

Maybe you are looking for

  • Error while invoking "create" on odata model

    Hello, I have an OData model  (added to the view) to which I would like to add a new entry: var data = { ID : 1234, SCENARIO_INSTANCE_ID : "235800598404399104", FULL_NAME : "Joachim", EMAIL : "[email protected]", TELEPHONE : "+555 11 222", CELLPHONE

  • After upgrading to OSX Mavericks, my Contacts app on my desktop not syncing with iCloud and changes I make on my iDevices are not being updated through system.

    In the desktop Contacts apps, there is an error icon always present (since the upgrade) in the upper left hand quadrant of the app window.  When I click on it I get an error msg.  See Screen grab below.

  • EJB question

    Dear fellow Java developers: I have a very straightforward question regarding ejb deployment using weblogic. In using the "jar" command of java, I have seen in various tutorials on ejb various uses of the command and want to know what is in fact happ

  • Fireface 800 I/O labels

    I'd like to replace my Fireface's default I/O labels (Input 1, Input 2 and so on) by a more descriptive label (Alog In 1, ADAT Out 6 etc.). I suppose this has to be done manually in the Audio Configuration window. Does anybody know an easier way to a

  • OVI Mail - how is it financed?

    Login to your "Free" OVI Mail account, click the OVI Service Terms link at the bottom left, and note: "Your use of the Service may be or may become subject to charges. Any fees charged by Nokia will be announced separately in connection with the Serv