Frequent insert wait

Hi,
I am experiencing high percentage of wait time contention event in RAC database which has frequent insert operations.
I am planning to use automatic segment space management to reduce the problem.
In addition to using assm,
I am just wondering whether using uniform and large extents sizes or increasing the sequence cache sizes would also reduce the problem ?

rico wrote:
Hi,
I am experiencing high percentage of wait time contention event in RAC database which has frequent insert operations.
I am planning to use automatic segment space management to reduce the problem.
In addition to using assm,
I am just wondering whether using uniform and large extents sizes or increasing the sequence cache sizes would also reduce the problem ?Consider doing actual benchmark tests.

Similar Messages

  • Wait time frequent insert

    Hello
    This was my exam question and still not sure about the answer
    You notice there is a very high percentage of wait time for contention event in your Rac database that has frequent insert operations.
    Which two recommendations may reduce this problem ?
    a-)shorter transactions
    b-)increasing sequence cache sizes
    c-)using reverse key indexes
    d-)uniform and large extents sizes
    e-)automatic segment space managemnt
    f-)smaller extent sizes Any suggestion ?

    Again, what exam are we talking about? If you're talking about one of the Oracle certification exams, be aware that you're not allowed to discuss post exam questions on public forums or to discuss them with other candidates. That's a violation of your certification agreement.
    Assuming we are not talking about an Oracle certification exam, I'd point out to the instructor that any or all the answers might be correct depending on the wait event.
    Justin

  • Contacts: inserting "wait" or "pause"

    I program my office voicemail access codes in the "contact", and after the receptionist answers, she places me in the voicemail system, and the phone automatically will enter the access codes when I press "resume" (this is how it worked with my blackberry). As far as I can tell the iPhone does not have a "wait" key,
    1.) does anyone know how to insert a "wait" ?
    2.) also, when I use the pause function, the tones are very long (usually for access codes at banks etc, they want the short tones). Does anyone know how to change the key tone to short?
    TIA

    The long tones that flow into one another do not work on ANY of the voicemail systems I need to use, neither my work nor my partner's work nor our home voicemail. The tones need to be short and separated. So far I haven't found a way to change this either.

  • Frequent insertion of ["r;text"] where I entered ["text"]

    I am using RH7.  With annoying frequency I find [”r;text”] where I entered ["text"], like so:
    The replacement string has backward quotes as seen in my subject line.  Copy and paste, for some reason, does not bring them in here.  I have continually fixed manually, only to have them come back.  I have done a multi-file search and replace.  And they still return.
    I can find no pattern.
    Usually, all quotes in a topic have been replaced if any have, but not always. 
    I have two RH projects, and it happens in both.
    It does not seem to affect topics based on when I last edited them.
    It is not related to building the .CHM file. 
    I had used RH7 for a number of months without the difficulty.  I only began seeing it after I reinstalled on a new computer, although I don't know if it  is related since I have no idea how long it had been happening before I noticed.
    Why is this, and what do I do about it?

    It is not clear to me, and probably therefore to others, what you are trying to achieve and where the error you state is appearing. Can you be more specific so we can help you.
    Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
    Follow the RoboColum(n) on Twitter

  • How to reduce tablesapces size due to frequently insert, update and delete?

    Dear all,
    Some of the tablespaces usage are almost 95%, I want to free some space for these tablesapces. As a result, I try to delete 50% data and the free space under the tablesapces are the same.
    Also, I try to use "ALTER TABLESPACE xxx COALESCE", it is not help as well.
    Please advice,
    Amy

    Some of the tablespaces usage are almost 95%, I want to free some space for these tablesapces. As a result, I try to delete 50% data and the free space under the tablesapces are the same.are you certain that you deleted 50% of the data which resides on that particular tablespace?

  • IE11 Windows 7 SP1 Home Premium - frequent waits

    IE11 with current Windows 7 SP1 Home Premium 64bit - Yesterday I allowed Windows Update to upgrade IE10 to IE11.  Since that upgrade, when I'm using IE11, my fast desktop PC has MANY frequent little "waits", where the little spinning
    circle appears on the screen.  I think the spinning circle replaced the old hourglass.  Anyway, when the circle is on the screen, things are frozen.  Even as I type this posting, the keyboard has frozen for a second or two every few seconds. 
    This NEVER happened with previous versions of IE and it never happens now with Firefox or Chrome.   Reboot does not fix the problem.   Only freezes when IE11 is open.  Freezes/waits also are happening without the circle appearing. What
    to do?  

    Hi,
    You may try to reset Internet Explorer settings to check the result.
    Reset internet explorer settings and check if it helps.
    http://support.microsoft.com/kb/923737
    Please understand that reset Internet Explorer to its default configuration. This step will also disable any add-ons, plug-ins, or toolbars that are installed.
    If it does not work, based on my experience, this is usually caused by 3rd party add-ons. Please launch IE 11 in No add-ons mode for a test. Click Start -> All Programs -> Accessories -> System
    Tools -> Internet Explorer (with no add-ons). 
    If the issue does not occur, refer to the following link.
    Slow five tips to boost performance
    http://windows.microsoft.com/en-us/windows/help/internet-explorer/slow-five-tips-to-boost-performance
    If starting Internet Explorer with no add-ons resolves the problem, isolate the browser add-on that is causing the issue. To do this, follow these steps :
    1. Click Start , and then click Internet Explorer.
    2. Click the Tools button, and then click Manage add-ons.
    3. Click an add-on in the Name list, and then click Disable.
    4. Repeat step 3 until you identify the add-on that is causing the issue.
    You may also back to use IE 10 as a workaround to check this issue.
    For more information, you may refer to:
    Fix Internet Explorer issues to make IE fast, safe and stable
    http://support.microsoft.com/mats/ie_performance_and_safety/en-us
    Tips for solving problems when Internet Explorer crashes or stops working
    http://windows.microsoft.com/en-US/windows7/tips-for-solving-problems-with-internet-explorer
    Hope it works.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • How to setup shortcut to insert a command in Oracle sql shell?

    Hi,
    Under sqlplus shell, if i want to frequently insert a long command while
    tuning queries, is there any way I can press a couple of keys to insert the
    command that is pre-prepared.
    For example, I need to frequently insert:
    sqlplus> alter session set events '10053 trace name context forever';
    anyone knows some tips to avoid typing?
    thanks,
    Rick

    user10217806 wrote:
    i mean sqlplus command line input interface under linux.Well, Ivan showed how to just use some sql files to do it .. not exactly pasting your command at the command line, but useful, nevertheless.
    As for actually pasting text at the command prompt, as I said, what you are asking has nothing to do with sqlplus itself and everything to do with the environment in which you are running it. For instance, if I use Putty to connect to my *nix boxes, it is a feature of putty to paste whatever is in the clipboard by simply right-clicking the mouse.  I can do the same thing at a Windows command prompt window if I have the properties set for 'quick edit'.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Is IOT good for huge inserts

    hi all
    I am in the process of designing tables for our new system. We want to prevent duplicated rows from being inserted into tables. For this purpose,i want to utilize IOTs instead of heap tables cause almost all the columns of our tables are primary keys.
    After talking to our application desigers, i was told that these table will have dense inserts at every monment.
    I dont't know if IOT suitable for this sitution becase i have googled alot that there are sayings that IOT only suitable for static tables.
    Any input will be appreciated.

    When to use IOTs:
    1. "An IOT is structured almost identically to a normal index. They are best used for relatively static lookup tables, that are always accessed through primary keys. If the mass update is an infrequent thing, and the table is mostly used for lookup, then I would likely go ahead and use an IOT and take the slow update performance occasionally. However, if mass updates are a frequent occurence, then this is probably not a good candidate for an IOT."
    By John Spencer
    Source:Re: IOT slower to update
    2. When the table basically consists of its primary kay and not much else, and when we access the table only through its primary key. The canonical example is a code lookup table, where we have two columns CODE and MEANING.
    By APC
    Source:When we Use Index Organized Table(IOT)?
    3. "IOT with 1 million inserts - maybe that works for you performance-wise, but kind of goes against the idea of IOT (better for updates, not as good for frequent inserts).
    What about MVs? Use the main/frequently used columns. With 1 million inserts a day (or about 694 inserts per minute), what human in your organization is going to be able to keep up with that rate of change? "
    By SteveC
    Source:http://dbaforums.org/oracle/index.php?showtopic=11146
    4. So, before reaching to any conclusion, i will read following too:
    a)http://www.oracle.com/technology/products/oracle9i/pdf/iot_twp.pdf
    b)http://www.oracle.com/technology/products/oracle9i/datasheets/iots/iot_ds.html
    c)http://www.orafaq.com/forum/t/145827/0/
    d)http://www.peled.com/white_papers/iot.pdf
    HTH
    Girish Sharma
    Edited by: Girish Sharma on Dec 9, 2009 11:09 AM
    3rd Point added..

  • Waiting time in process chain

    Hello,
    Could anyone tell me how to insert waiting time in a process chain?
    I need 30 minutes of waiting time before the nex step..
    Regards,
    Fredrik

    Aha! :-)..
    So, is this waiting time before or after the actual step?
    Regards,
    Fredrik

  • Deadlock classification

    I apologize for the length of this post. I am trying to develop a methodology for classifying deadlocks based on the profile in their trace file and to reliably recreate them. There are many gaps in my understanding and I would appreciate the considered advice of a deadlock specialist.
    For background, please refer to Exhibit A: http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/consist.htm#i5704
    In my experience, there are 3 main types of deadlock:
    Deadlock Type 1. Classic deadlock
    This is the textbook case of "bad application logic": two sessions requesting resources out of order. This type of deadlock only occurs on updates, never on inserts.
    Sample trace file:
                           ---------Blocker(s)--------  ---------Waiter(s)---------
    Resource Name          process session holds waits  process session holds waits
    TX-0001002c-00000ca4        18     146     X             20     158           X
    TX-0003001b-00000f02        20     158     X             18     146           X
    session 146: DID 0001-0012-0000070D session 158: DID 0001-0014-00000052
    session 158: DID 0001-0014-00000052 session 146: DID 0001-0012-0000070D
    Rows waited on:
    Session 158: obj - rowid = 00010ABE - AAAQq+AAEAAAN8PAAA
      (dictionary objn - 68286, file - 4, block - 57103, slot - 0)
    Session 146: obj - rowid = 00010ABD - AAAQq9AAEAAAN8HAAA
      (dictionary objn - 68285, file - 4, block - 57095, slot - 0)In plain English, the graph is saying,
    Session 146 has an X lock on Resource A and is waiting for an X lock on Resource B.
    Session 158 holds an X lock on Resource B and is waiting for an X lock on Resource A.
    Questions:
    * What is the meaning of the Resource Names (TX-0001002c-00000ca4 and TX-0003001b-00000f02)? Obviously these names refer to the tables being updated, but is the TX-* identifier something I can look up in the data dictionary somewhere?
    * Likewise, what do the DID * identifiers refer to?
    Steps to reproduce this kind of deadlock:
    create table a(c int);
    insert into a values(1);
    insert into a values(2);
    create table b as select * from a;
    -- Session 1:
    update a set c=2 where c=1;
    -- Session 2:
    update b set c=2 where c=1;
    update a set c=2 where c=1;
    -- (session 2 hangs at this point)
    -- Session 1:
    update b set c=2 where c=1;
    -- (session 2 deadlocks at this point)
    Deadlock Type 2. DML on a bitmap index
    Frequent inserts and updates on a table with a bitmap index are resource intensive and can also cause deadlocks because as the index is being updated it places a lock on the rows that are associated with the index branch it is updating. If the transaction does not commit quickly enough, there can be time for another session to pop in and try to lock the same resources. This kind of deadlock can occur on both updates AND inserts.
    Sample trace file:
                           ---------Blocker(s)--------  ---------Waiter(s)---------
    Resource Name          process session holds waits  process session holds waits
    TX-001d0004-000076fc        22      31     X             21      39           S
    TX-001e0050-00007700        21      39     X             22      31           S
    session 31: DID 0001-0016-00000002      session 39: DID 0001-0015-00000002
    session 39: DID 0001-0015-00000002      session 31: DID 0001-0016-00000002
    Rows waited on:
    Session 39: obj - rowid = 00036241 - AAA2JBAAEAAAKAKAAA
    Session 31: no rowNow, instead of waiting to obtain X-locks, the blocked sessions are waiting for S-locks.
    Questions:
    * S (share-table) locks lock the entire table (according to table 13-3 in Exhibit A). However, I have read that when a bitmap index is updated, it only locks the rows affiliated with that index entry, not the entire table. Can someone explain this apparent discrepancy?
    * In the Rows waited on section, sometimes I see "no row" for both sessions and I don't understand why. I guess I need a common-sense explanation of what is going on at the index level in the case of bitmap index updates.
    Steps to recreate:
    create table a(c int);
    create bitmap index BI_A on a(c);
    insert into a values(1);
    insert into a values(2);
    commit;
    -- Session 1:
    insert into a values(1);
    -- Session 2:
    insert into a values(2);
    -- Session 1:
    insert into a values(2);
    -- (session 1 hangs)
    -- Session 2:
    insert into a values(1);
    -- (deadlock in session 1)
    Deadlock Type 3. Unindexed foreign key
    This one is harder for me to understand. Suppose you have a parent and child table: If you were to update the child's foreign key, and there is no index on that column, then the whole of the parent table is locked for the duration of the update. (Question: is this correct? the whole table is locked?) Therefore if the transaction runs long enough, there is a chance another session will try to lock the same resources and cause deadlock. This kind of deadlock only occurs on updates of the foreign key, never on inserts.
    Sample trace file:
    I have never knowingly seen a trace file for this kind of deadlock so I'm not sure what the graph would look like. Can anyone fill me in here?
    Steps to recreate:
    Again, I am unsure how to consistently recreate this kind of deadlock. This is as far as I get:
    create table p (p_id int primary key);
    create table c (c_id int primary key, p_id int);
    alter table c add constraint fk_c_p foreign key(p_id)
      references p (p_id) enable;
    insert into p values(1);
    insert into p values(2);
    insert into c values(1,1);
    insert into c values(2,2);
    insert into c values(3,1);
    insert into c values(4,2);
    -- Session 1:
    update c set p_id=1 where p_id=2;
    -- Session 2:
    update c set p_id=1 where p_id=2;
    -- (session 2 hangs)However, I am unable to induce a deadlock in Session 2, so I cannot see the trace file lock graph created by this kind of deadlock. Can anyone make a suggestion?
    Thanks; I appreciate any help that is offered.

    Well, consider what happens when a deadlock occurs. (Assume the simple case of two sessions deadlocking on each other.) Both are waiters and blockers. That's the definition of a deadlock.
    After three seconds, the deadlock is detected, and one of the sessions catches an ORA-00060.
    Now, when that happens, the session that did not catch the error is still a blocker and a waiter.
    The other session, which caught the ORA-00060, is a blocker, but is no longer waiting.
    So, the deadlock situation does not last more than three seconds. There is no need for you to worry about finding and freeing them. Oracle will do that much for you. Your time is best spent trying to understand the root cause, and how to avoid the deadlock in the first place. If you need to, you can code your application to do something when it sees ORA-00060, say, rollback and restart the transaction.
    Hope that helps,
    -Mark

  • Why Win2k8 R2 VM on Hyper-V Server 2012 behaves erratically?

    Hello, 
    I realized this strange problem with Windows 2008 R2 VMs running on Hyper-V Server 2012. My Hyper-V Server 2012 host has been running mix of VMs just fine. I've a Linux VM running, a couple of Windows 2012 R2 VMs, a Windows 8. 
    I created three new VMs, gave them decent hardware. 4 GB of RAM each. A fixed VHDX file of 40 GB. I left processor allocation to Hyper-V. Windows 2008 R2 ISO was mounted to all three. Installation started. The VMs were plugged into an external network to
    access internet for Windows activation and software updates. 
    Installation went smooth. I could log on and kick off windows updates installation. it took a reboot but when it came back, strange things started happening. 
    First, after VM won't respond to CTRL+ALT+DEL command from the VM console; saying 'VM doesn't did not respond to command'. I inserted integration start up disk from Media Menu on VM's console window. It allowed me to log on this time. I continued
    to download/install windows updates to update and complete that. All important updates were selected (even in first step above) and none of optional update was selected.
    This round of updates download/install updates finished and VM rebooted. Again, when it became available it stopped responding to any of commands sent to VM, Reset, Stop,Shut down, Turn off and won't allow CTRL+ALT+DEL. Strangely this time it didn't
    like accepting mounting integration services start up disk. The message displayed; when any of these actions were performed, is "RPC service not available".
    What could go wrong with Windows 2008 R2 VM created just now behaving like this?
    Did someone experience issues like this with just built Windows 2008 R2 VMs? Please share and advise.
    Thanks.
    Regards, 
    Shahzad.

    Hi Adam,
    Indeed it is odd. The flow has been following, and I doubt any of these steps had caused any issue.
    Step 1. VM started, booted from ISO, installed OS, Reboot. (usual)
    Step 2. VM became available, password configured, logged on, checked DHCP assigned TCP/IP Settings.
    Step 3. WUAPP invoked to download install updates, updates required reboot, VM rebooted.
    Step 4. VM became available, won't respond to CTRL+ALT+DEL  (In hyper-V VM console DEL is replaced by End). 
    Step 5. Integration startup disk inserted, waited couple of seconds, VM allowed CTRL+ALT+DEL.
    Step 6. WUAPP invoked again to continue download/install of updates, it finished, VM rebooted.
    Step 7. VM became available, won't respond to any command sent to VM from console, just complains (RCP Service not available). Won't accept integration startup disk even. 
    BTW, the ISO used is trial edition of Win2k8 R2; popularly available for download, the
    180 days trial edition. 
    I couldn't get to stage to assign IP to VM, because I wanted to install all important updtes before I do any thing else. 
    Regards, 
    Shahzad.

  • How to handle multiple tables data in Entity Beans?

    How to handle multiple tables data in Entity Beans?
    i mean, my bean (non trivial) is responsible for frequent
    insertion in one table and some deletion on another table.
    Can anyone of you...please..?

    Is your data model right? If you are adding in one and deleting in another it sounds to me more like a process that an entity, in which case you may revisit your data model and simplify it, add in a session bean with the process method to co-ordinate between the two.
    However, if you want to map multiple different tables within a single entity bean it is possible and just part of the mapping. How you actualyl specify it depends on which implementation you are working with.
    Cheers,
    Peter.

  • Indexes for group by query on table with 5million records

    Hi,
    Here is my query which is taking ages to run :
         SELECT approved.budgetReferenceno
                   , approved.projects
                   , approved.allocations
                   , rptgen4
                         , financialyear
                   , cashclass
                   , SUM(nvl(approved.FullYear,0)) as FullYear
              FROM   approved
              JOIN   rpt_entity ON rpt_entity.level0 = approved.entity
              JOIN   cashclasses     ON accountcode    = approved.account
        where budgetreferenceno = refno    
        and
            entity in ( 
               (select Level0 from rpt_entity   where   
               (   entityparent in (select * from table(split(userid)))    or   rptgen5 in (select * from table(split(userid)))   )   ) 
         and
           ccs in (select level0 from rpt_ccs where rptgen4 in (select * from table(split(userid)))) or
           ccs in (select level0 from rpt_ccs where rptgen5 in (select * from table(split(userid)))) or
           ccs in (select level0 from rpt_ccs where rptgen6 in (select * from table(split(userid)))) or
           ccs in (select level0 from rpt_ccs where rptgen7 in (select * from table(split(userid))) ) or
           ccs in (select distinct(substr(column_value,2,length(column_value)-2)) from table(split_comma(userid)) )
              GROUP BY approved.budgetReferenceno
                   , approved.projects
                   , approved.allocations
                   , rptgen4
                         , financialyear
                   , cashclass
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 4074481161
    | Id  | Operation                                | Name            | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                         |                 | 31234 |  3660K|       | 86141   (1)| 00:17:14 |
    |   1 |  HASH GROUP BY                           |                 | 31234 |  3660K|    17M| 86141   (1)| 00:17:14 |
    |*  2 |   FILTER                                 |                 |       |       |       |            |          |
    |*  3 |    HASH JOIN                             |                 |   138K|    15M|       | 82427   (1)| 00:16:30 |
    |   4 |     TABLE ACCESS FULL                    | CASHCLASSES     |  2875 | 48875 |       |     5   (0)| 00:00:01 |
    |*  5 |     HASH JOIN                            |                 |   138K|    13M|       | 82420   (1)| 00:16:30 |
    PLAN_TABLE_OUTPUT
    |   6 |      TABLE ACCESS FULL                   | RPT_entity  |   725 | 10875 |       |    11   (0)| 00:00:01 |
    |*  7 |      HASH JOIN RIGHT SEMI                |                 |   138K|    11M|       | 82408   (1)| 00:16:29 |
    |   8 |       VIEW                               | VW_NSO_1        |    71 |   568 |       |    11   (0)| 00:00:01 |
    |*  9 |        FILTER                            |                 |       |       |       |            |          |
    |  10 |         TABLE ACCESS FULL                | RPT_entity  |   725 | 17400 |       |    11   (0)| 00:00:01 |
    |* 11 |         COLLECTION ITERATOR PICKLER FETCH| SPLIT           |       |       |       |            |          |
    |* 12 |         COLLECTION ITERATOR PICKLER FETCH| SPLIT           |       |       |       |            |          |
    |* 13 |       TABLE ACCESS FULL                  | approved        |  1170K|    89M|       | 82389   (1)| 00:16:29 |
    |  14 |    NESTED LOOPS                          |                 |     1 |    18 |       |    46   (0)| 00:00:01 |
    |  15 |     COLLECTION ITERATOR PICKLER FETCH    | SPLIT           |       |       |       |            |          |
    |* 16 |     INDEX RANGE SCAN                     | CC_INDEX1       |     1 |    16 |       |     1   (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    |  17 |    NESTED LOOPS                          |                 |     2 |    46 |       |    51   (2)| 00:00:01 |
    |* 18 |     INDEX FAST FULL SCAN                 | CC_INDEX2       |     1 |    21 |       |    46   (3)| 00:00:01 |
    |* 19 |     COLLECTION ITERATOR PICKLER FETCH    | SPLIT           |       |       |       |            |          |
    |  20 |    NESTED LOOPS                          |                 |     1 |    24 |       |    52   (0)| 00:00:01 |
    |  21 |     TABLE ACCESS BY INDEX ROWID          | RPT_ccs |     1 |    22 |       |    46   (0)| 00:00:01 |
    |* 22 |      INDEX SKIP SCAN                     | CC_INDEX1       |     1 |       |       |    45   (0)| 00:00:01 |
    |* 23 |     COLLECTION ITERATOR PICKLER FETCH    | SPLIT           |       |       |       |            |          |
    |  24 |    NESTED LOOPS                          |                 |     2 |    50 |       |    60   (0)| 00:00:01 |
    |  25 |     TABLE ACCESS BY INDEX ROWID          | RPT_ccs |     1 |    23 |       |    46   (0)| 00:00:01 |
    |* 26 |      INDEX SKIP SCAN                     | CC_INDEX1       |     1 |       |       |    45   (0)| 00:00:01 |
    |* 27 |     COLLECTION ITERATOR PICKLER FETCH    | SPLIT           |       |       |       |            |          |
    PLAN_TABLE_OUTPUT
    |* 28 |    COLLECTION ITERATOR PICKLER FETCH     | SPLIT_COMMA     |       |       |       |            |          |
    Predicate Information (identified by operation id):
       2 - filter( EXISTS (SELECT 0 FROM "RPT_ccs" "RPT_ccs",TABLE() "KOKBF$" WHERE
                  "LEVEL0"=:B1 AND "RPTGEN4"=VALUE(KOKBF$)) OR  EXISTS (SELECT 0 FROM "RPT_ccs"
                  "RPT_ccs",TABLE() "KOKBF$" WHERE "RPTGEN5"=VALUE(KOKBF$) AND "LEVEL0"=:B2) OR  EXISTS (SELECT 0
                  FROM "RPT_ccs" "RPT_ccs",TABLE() "KOKBF$" WHERE "RPTGEN6"=VALUE(KOKBF$) AND "LEVEL0"=:B3)
                  OR  EXISTS (SELECT 0 FROM "RPT_ccs" "RPT_ccs",TABLE() "KOKBF$" WHERE
    PLAN_TABLE_OUTPUT
                  "RPTGEN7"=VALUE(KOKBF$) AND "LEVEL0"=:B4) OR  EXISTS (SELECT 0 FROM TABLE() "KOKBF$" WHERE
                  SUBSTR(VALUE(KOKBF$),2,LENGTH(VALUE(KOKBF$))-2)=:B5))
       3 - access("ACCOUNTCODE"="approved"."ACCOUNT")
       5 - access("RPT_entity"."LEVEL0"="approved"."entity")
       7 - access("approved"."entity"="LEVEL0")
       9 - filter( EXISTS (SELECT 0 FROM TABLE() "KOKBF$" WHERE VALUE(KOKBF$)=:B1) OR  EXISTS (SELECT 0 FROM
                  TABLE() "KOKBF$" WHERE VALUE(KOKBF$)=:B2))
      11 - filter(VALUE(KOKBF$)=:B1)
      12 - filter(VALUE(KOKBF$)=:B1)
      13 - filter("approved"."BUDGETREFERENCENO"='BASE')
      16 - access("RPTGEN4"=VALUE(KOKBF$) AND "LEVEL0"=:B1)
    PLAN_TABLE_OUTPUT
      18 - filter("LEVEL0"=:B1)
      19 - filter("RPTGEN5"=VALUE(KOKBF$))
      22 - access("LEVEL0"=:B1)
           filter("LEVEL0"=:B1)
      23 - filter("RPTGEN6"=VALUE(KOKBF$))
      26 - access("LEVEL0"=:B1)
           filter("LEVEL0"=:B1)
      27 - filter("RPTGEN7"=VALUE(KOKBF$))
      28 - filter(SUBSTR(VALUE(KOKBF$),2,LENGTH(VALUE(KOKBF$))-2)=:B1)
    64 rows selected.
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE    11.1.0.7.0      Production
    TNS for IBM/AIX RISC System/6000: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - ProductionThe table has 28 columns none indexed the columns mentioned here have non unique values.
    The table approved has more than 10million records and the query is taking a huge time.
    The query first tries to restrict the search to only valid entities and cc (already indexed and working fine).
    The cardinality of allocations, projects is around 1000, entity is 3000, and cc is around 50,000, reference number = 2000, financialyear = 4
    Please suggest which index would be best to use on these columns given that there will no updations but frequent insertions.
    If nothing else works than I will need to change it to pre aggregated data for overnight run .
    Thanks,
    Neetesh
    Edited by: user13312817 on Nov 16, 2011 11:05 AM
    Edited by: user13312817 on Nov 16, 2011 11:36 AM
    Edited by: user13312817 on Nov 16, 2011 11:38 AM
    Edited by: user13312817 on Nov 16, 2011 12:02 PM

    Hello Adam,
    Tried this but still not much of a difference.
    create index test_index on approved (budgetreferenceno,projects,allocations,financialyear,entity,ccs,FullYear) compress 6;
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 2463060356
    | Id  | Operation                               | Name            | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                        |                 | 25030 |  4644K|       | 70852   (1)| 00:14:11 |
    |   1 |  TABLE ACCESS BY INDEX ROWID            | FEGEN4          |     1 |    13 |       |     2   (0)| 00:00:01 |
    |*  2 |   INDEX UNIQUE SCAN                     | INDEX1          |     1 |       |       |     1   (0)| 00:00:01 |
    |   3 |  TABLE ACCESS BY INDEX ROWID            | CASHCLASSES     |     1 |    17 |       |     2   (0)| 00:00:01 |
    |*  4 |   INDEX UNIQUE SCAN                     | CASHCLASSES_PK  |     1 |       |       |     1   (0)| 00:00:01 |
    |   5 |  HASH GROUP BY                          |                 | 25030 |  4644K|    21M| 70852   (1)| 00:14:11 |
    PLAN_TABLE_OUTPUT
    |   6 |   VIEW                                  |                 |   109K|    19M|       | 68578   (1)| 00:13:43 |
    |*  7 |    FILTER                               |                 |       |       |       |            |          |
    |*  8 |     HASH JOIN RIGHT SEMI                |                 |   484K|    99M|       | 68578   (1)| 00:13:43 |
    |   9 |      VIEW                               | VW_NSO_1        |    71 |  7242 |       |    11   (0)| 00:00:01 |
    |* 10 |       FILTER                            |                 |       |       |       |            |          |
    |  11 |        TABLE ACCESS FULL                | RPT_entity  |   725 | 17400 |       |    11   (0)| 00:00:01 |
    |* 12 |        COLLECTION ITERATOR PICKLER FETCH| SPLIT           |       |       |       |            |          |
    |* 13 |        COLLECTION ITERATOR PICKLER FETCH| SPLIT           |       |       |       |            |          |
    |* 14 |      TABLE ACCESS FULL                  | approved         |   982K|   106M|       | 68560   (1)| 00:13:43 |
    |  15 |     NESTED LOOPS                        |                 |     1 |    18 |       |    46   (0)| 00:00:01 |
    |  16 |      COLLECTION ITERATOR PICKLER FETCH  | SPLIT           |       |       |       |            |          |
    PLAN_TABLE_OUTPUT
    |* 17 |      INDEX RANGE SCAN                   | CC_INDEX1       |     1 |    16 |       |     1   (0)| 00:00:01 |
    |  18 |     NESTED LOOPS                        |                 |     2 |    46 |       |    51   (2)| 00:00:01 |
    |* 19 |      INDEX FAST FULL SCAN               | CC_INDEX2       |     1 |    21 |       |    46   (3)| 00:00:01 |
    |* 20 |      COLLECTION ITERATOR PICKLER FETCH  | SPLIT           |       |       |       |            |          |
    |  21 |     NESTED LOOPS                        |                 |     1 |    24 |       |    52   (0)| 00:00:01 |
    |  22 |      TABLE ACCESS BY INDEX ROWID        | RPT_ccs |     1 |    22 |       |    46   (0)| 00:00:01 |
    |* 23 |       INDEX SKIP SCAN                   | CC_INDEX1       |     1 |       |       |    45   (0)| 00:00:01 |
    |* 24 |      COLLECTION ITERATOR PICKLER FETCH  | SPLIT           |       |       |       |            |          |
    |  25 |     NESTED LOOPS                        |                 |     2 |    50 |       |    60   (0)| 00:00:01 |
    |  26 |      TABLE ACCESS BY INDEX ROWID        | RPT_ccs |     1 |    23 |       |    46   (0)| 00:00:01 |
    |* 27 |       INDEX SKIP SCAN                   | CC_INDEX1       |     1 |       |       |    45   (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    |* 28 |      COLLECTION ITERATOR PICKLER FETCH  | SPLIT           |       |       |       |            |          |
    |* 29 |     COLLECTION ITERATOR PICKLER FETCH   | SPLIT_COMMA     |       |       |       |            |          |
    Predicate Information (identified by operation id):
       2 - access("LEVEL0"=:B1)
       4 - access("ACCOUNTCODE"=:B1)
       7 - filter( EXISTS (SELECT 0 FROM "RPT_ccs" "RPT_ccs",TABLE() "KOKBF$" WHERE
                  "LEVEL0"=:B1 AND "RPTGEN4"=VALUE(KOKBF$)) OR  EXISTS (SELECT 0 FROM "RPT_ccs"
    PLAN_TABLE_OUTPUT
                  "RPT_ccs",TABLE() "KOKBF$" WHERE "RPTGEN5"=VALUE(KOKBF$) AND "LEVEL0"=:B2) OR  EXISTS (SELECT 0
                  FROM "RPT_ccs" "RPT_ccs",TABLE() "KOKBF$" WHERE "RPTGEN6"=VALUE(KOKBF$) AND "LEVEL0"=:B3)
                  OR  EXISTS (SELECT 0 FROM "RPT_ccs" "RPT_ccs",TABLE() "KOKBF$" WHERE
                  "RPTGEN7"=VALUE(KOKBF$) AND "LEVEL0"=:B4) OR  EXISTS (SELECT 0 FROM TABLE() "KOKBF$" WHERE
                  SUBSTR(VALUE(KOKBF$),2,LENGTH(VALUE(KOKBF$))-2)=:B5))
       8 - access("entity"="LEVEL0")
      10 - filter( EXISTS (SELECT 0 FROM TABLE() "KOKBF$" WHERE VALUE(KOKBF$)=:B1) OR  EXISTS (SELECT 0 FROM
                  TABLE() "KOKBF$" WHERE VALUE(KOKBF$)=:B2))
      12 - filter(VALUE(KOKBF$)=:B1)
      13 - filter(VALUE(KOKBF$)=:B1)
      14 - filter("BUDGETREFERENCENO"='BASE')
    PLAN_TABLE_OUTPUT
      17 - access("RPTGEN4"=VALUE(KOKBF$) AND "LEVEL0"=:B1)
      19 - filter("LEVEL0"=:B1)
      20 - filter("RPTGEN5"=VALUE(KOKBF$))
      23 - access("LEVEL0"=:B1)
           filter("LEVEL0"=:B1)
      24 - filter("RPTGEN6"=VALUE(KOKBF$))
      27 - access("LEVEL0"=:B1)
           filter("LEVEL0"=:B1)
      28 - filter("RPTGEN7"=VALUE(KOKBF$))
      29 - filter(SUBSTR(VALUE(KOKBF$),2,LENGTH(VALUE(KOKBF$))-2)=:B1)
    PLAN_TABLE_OUTPUT
    Note
       - dynamic sampling used for this statement
    69 rows selected.Thanks,
    Neetesh
    Edited by: user13312817 on Nov 17, 2011 7:04 AM

  • Motorola E815, Address Book, iSync 2.1.1, Mac OS 10.4.3

    I just replaced my Motorola v60i which worked perfectly fine with Address Book, iSync, Mac OS X 10.4.3, on a PowerBook G4. I upgraded to the Motorola E815 and although it syncs through Bluetooth it does not sync numbers with wait commands (i.e., 9785551212w1234w1) properly. The w is the wait command for burst dialing whereas 9785551212 would be sent, then you would press the right smart key to send 1234 (a password), and then you would press the right smart key to send 1 (to play a message). When the infomation is synced, iSync sends 978555121212341.
    If you manually enter the wait command on the phone and then sync it eliminates the w when synced to the Address Book.
    I played with entering a upper case W, but when synced, it converts it to a 9.
    Has anyone run into this? Is there a fix for this? Manually editing the numbers with w commands would be a real hassel.
    I contacted Verizon Wireless (Massachusetts) and they directed me to Motorola. After 6 calls to Motorola and 2-hours on the phone because their system kept hanging up on me, a support representative told be "Oh, you have a Macintosh. We don't support the Macintosh so call Apple." Real helpful. ;-(
    Any help would be greatly appreciated.
    PowerBook G4 15-inch   Mac OS X (10.4.3)  
    PowerBook G4 15-inch   Mac OS X (10.4.3)  
    PowerBook G4 15-inch   Mac OS X (10.4.3)  

    Mike, thanks for your response and advise.
    I talked to Apple via AppleCare Tech Support. Paul (the technician) was extremely helpful and we worked through the issue.
    What we did was to create a test user account and try syncing from the e815 to the Mac. That worked and all numbers with a w in them transferred fine. We deleted the test user.
    In my primary user account, we deleted the e815 from the Bluetooth System Preference, deleted the iSync device, deleted com.apple.Syndication.plist and com.apple.isync.plist from the Library > Preferences folders. Restarted the computer with Disk 1 of the original Mac OS X Installation CD and checked and repaired the harddrive. We restarted again.
    We set up the e815 in the Bluetooth System Preference. We established a connection in iSync. We than synced the phone. After syncing the e815 did not have the w in the numbers on the e815.
    We reset the device (phone) in inSync, which deleted all the information and transferred the data from the Address Book to the e815. The w were not in the e815.
    I then entered the w using the Insert Wait command in the e815 and resynced. Everything worked. So, the key "seems" to be to insert the w in the cellular telephone and then sync to the Macintosh. We synced several times afterwards and everything seems fine now.
    Paul (at AppleCare), you are awesome! Thanks so much.
    FYI - Paul said he would escalate the issue and hopefully Motorola or Apple will fix this "feature."
    PowerBook G4 15-inch   Mac OS X (10.4.3)  

  • Select with no conditions taking long time, too many blocks, pctused?

    select * from at_journal;is taking 15 seconds, which is absurd. I have similar situations with other log tables in this system.
    (selecting with rownum < 5 and with first_rows hint still takes 15 seconds)
    Suspicious parameters:
    PCT_FREE 1
    PCT_USED 99
    (Some other log tables have PCT_FREE 5, PCTUSED 90)
    The tables have frequent inserts, once every day all records older than 90 days get deleted.
    After computing statistics:
    Blocks: 42,304 (seems absurdly high)
    Size: 663 Mb
    NUM_ROWS: 505,966
    After copying data without compression to new table:
    Blocks: 3,785
    Size: 60 Mb
    NUM_ROWS: 505,966
    The select on the new table is instantaneous.
    On a side note, in general is compression for a table with frequent deletes OK? It seems OK to me.
    Storage parameters of table creation script:
    PCTUSED    99
    PCTFREE    1
    INITRANS   1
    MAXTRANS   255
    STORAGE    (
                INITIAL          64K
                MINEXTENTS       1
                MAXEXTENTS       UNLIMITED
                PCTINCREASE      0
                FREELISTS        1
                FREELIST GROUPS  1
                BUFFER_POOL      DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    NOMONITORING;I imagine that most blocks for the table are empty. In my mind pctused of 99 means most of the block space should be full. I have read several explanations of PCTUSED/pctfree including oracle documentation and it seems pctused of 99 means the block should be 99% full.
    Much thanks,
    goo

    goo wrote:
    I imagine that most blocks for the table are empty. In my mind pctused of 99 means most of the block space should be full. I have read several explanations of PCTUSED/pctfree including oracle documentation and it seems pctused of 99 means the block should be 99% full.Hello, you don't give your database version, but if you were using Automatic Segment Space Management you would not need to worry about the PCTUSED setting, and it could be that you already are:
      1  select tablespace_name, segment_space_management
      2 from dba_TABLESPACES
    TABLESPACE_NAME                SEGMEN
    SYSTEM                         MANUAL
    SYSAUX                         AUTO
    UNDOTBS1                       MANUAL
    TEMP                           MANUAL
    USERS                          AUTO
    EXAMPLE                        AUTOAnd if you are already using ASSM, then the PCTUSED is not an issue (PCTFREE still applies, but it's not an issue in your case).
    goo wrote:
    On a side note, in general is compression for a table with frequent deletes OK? It seems OK to me.Frequent DELETEs could be an issue because they will not reset the High Watermark, though there will not be a performance penalty because of the compression for DELETEs (the record only needs to be located for a DELETE, not decompressed). Your PCTUSED, however, is high enough so that any newly deleted record slots should be quickly reused, but... it depends on how those new records are being INSERTed. If, as Daniel says, the HWM is being effectively bypassed (Direct Path INSERTs, etc.), then the table will grow in size every day, but the volume of records effectively stays just about the same.
    Have a look at how the new records are being added to that table, if it's a:
    INSERT /*+ APPEND */ INTO tableA
    SELECT...Then the HWM is being advanced, and the newly vacated slots from the DELETEd records are not being reused. So the table will continually grow, for roughly the same amount of data, and there'll be a proportionately longer data retrieval time.

Maybe you are looking for

  • Photoshop CS3 Extended Crash on exit

    Problem with AdobeOwl.dll according to debug report. Also Variations not working. I can send jpg of crash report if you like.

  • Can anyone help with an invalid pin on an iTunes card

    I purchased an iTunes card today and i entered the code correctly but a message states that the code is not a valid code. Has any one had problems with this before and how can I fix it? Online support was no help because it wasn't working.

  • Check accounting document from FI / MM invoice?

    Hi All, May I know how I can identify the accounting document are created either from FI Invoice or MM invoice. What are the related table involve and search through? What I required is. If Accounting Document is created from FI Invoice.     Display

  • Help with html printing

    hi all i wonder if there is any command in html that inforce the printer to start print from the top of the page (A4 page)? thanks

  • I just auto updated my system and it froze the computer

    Hey, My imac asked me if I wanted to update my OS.  Everything seemed to go fine, but when it restarted, it got tomthe user login screen and froze.  Well not froze exactly, the mouse cursor still moves around, but when I click on anything nothing hap