Query result is very slow

i have two table master detail, for instance dept and emp
the situtation is this. i need the recod of those departements who has clerks in specific time hired. i wrote following query. but due to millions of records in two tables its very very slow.
select * from emp a,dept b
where a.deptno in (select distinct deptno from emp where job='clerk')
and hiredate >= '01-jun-2004' and hiredate <='01-jan-2007'
and a.deptno=b.deptno
can any body tune it.

One thing I am seeing, that I find very troubling, is that posters such as the OP on this thread seem to be facing these tasks in a classroom or testing environment where they don't actually have access to Oracle and SQL*Plus.
They are being asked to tune something that exists only on paper and don't have the tools to provide an explain plan, probably don't even have the ability to do a describe on the table(s) because they don't actually exist.
If this is the case then the education system is cheating these people because tuning is not done in a room with the lights off by guessing. It is done, and only done, with:
EXPLAIN PLAN FOR
DBMS_XPLAN
TKPROF
a look at the statistics, etc.
Here's a real-world example of what is wrong with what I see. Anyone want to guess which of these queries is the most efficient?
SELECT srvr_id
FROM servers
INTERSECT
SELECT srvr_id
FROM serv_inst;
SELECT srvr_id
FROM servers
WHERE srvr_id IN (
  SELECT srvr_id
  FROM serv_inst);
SELECT srvr_id
FROM servers
WHERE srvr_id IN (
  SELECT i.srvr_id
  FROM serv_inst i, servers s
  WHERE i.srvr_id = s.srvr_id);
SELECT DISTINCT s.srvr_id
FROM servers s, serv_inst i
WHERE s.srvr_id = i.srvr_id;
SELECT /*+ NO_USE_NL(s,i) */ DISTINCT s.srvr_id
FROM servers s, serv_inst i
WHERE s.srvr_id = i.srvr_id;
SELECT DISTINCT srvr_id
FROM servers
WHERE srvr_id NOT IN (
  SELECT srvr_id
  FROM servers
  MINUS
  SELECT srvr_id
  FROM serv_inst);
SELECT srvr_id
FROM servers s
WHERE EXISTS (
  SELECT srvr_id
  FROM serv_inst i
  WHERE s.srvr_id = i.srvr_id);
WITH q AS (
  SELECT DISTINCT s.srvr_id
  FROM servers s, serv_inst i
  WHERE s.srvr_id = i.srvr_id)
SELECT * FROM q;
SELECT DISTINCT s.srvr_id
FROM servers s, serv_inst i
WHERE s.srvr_id(+) = i.srvr_id;
SELECT srvr_id
FROM (
  SELECT srvr_id, SUM(cnt) SUMCNT
  FROM (
    SELECT DISTINCT srvr_id, 1 AS CNT
    FROM servers
    UNION ALL
    SELECT DISTINCT srvr_id, 1
    FROM serv_inst)
  GROUP BY srvr_id)
WHERE sumcnt = 2;
SELECT DISTINCT s.srvr_id
FROM servers s, serv_inst i
WHERE s.srvr_id+0 = i.srvr_id+0;And yes they all return the exact same result set using the test data.
The chance that anyone can guess the most efficient query looking at what I just presented is precisely zero.
Because the query most efficient in 8.1.7.4 is not the most efficient query in 9.2.0.4 which is not the most efficient query in 10.2.0.2.

Similar Messages

  • Query Execution is very slow through Froms

    Hello Friends
    I am facing a problem with D2k Forms. when a run a Query through SQL its execution speed is very fast. the same Query when i run through Forms, like create basetable block and
    set_block_property and execute it is very slow. How do i overcome this problem.
    what are the various steps to keep in mind when writing code in forms.
    thanks in Advance

    Hi,
    In order to gather schema statistics in EBS, you will have to login as Sysadmin and submit a request named as "Gather Schema Statistics"
    Refer below link:
    http://appsdba.info/docs/oracle_apps/R12/GatherSchemaStatistics.pdf
    Also ensure to schedule the respective request so as to have your statistics up to date, either weekly or monthly as per your system environment.
    Please refer note:
    How Often Should Gather Schema Statistics Program be Run? [ID 168136.1]
    How to Gather Statistics on Custom Schemas for Ebusiness Suite 11i and R12? [ID 1065813.1]
    Hope this helps!
    Best Regards

  • Oracle query / view performing very slow.

    Hello,
    I had created a view in my application for example
    CREATE OR REPLACE VIEW EmpTransfer
    ( EMPID,EMPNAME,EMPMANAGER,EMPDOB,EMPTRANSFER)
    AS
    SELECT EMPID,EMPNAME,EMPMANAGER,EMPDOB,EMPTRANSFER
    FROM EMP ;
    After couple of months if we changed a columnname in the table EMP and added a new column.
    We changed column name EMPTRANSFER to OldEMPTRANSFER and added a new column as NEWEMPTRANSFER.
    The indexes were recreated on OldEMPTRANSFER and new index is creatd on NEWEMPTRANSFER column.
    the view is again recreated.
    CREATE OR REPLACE VIEW EmpTransfer
    ( EMPID,EMPNAME,EMPMANAGER,EMPDOB,OldEMPTRANSFER,NEWEMPTRANSFER )
    AS
    SELECT EMPID,EMPNAME,EMPMANAGER,EMPDOB,OldEMPTRANSFER ,NEWEMPTRANSFER
    FROM EMP ;
    This view is working as expected but some times this view is working very slow.
    The performance of this view is randomly slow.
    Is it possible that column name change will cause slowness...?

    What's the explain plans for both before and after the column change? It could possibly be running slow the first time because of a hard parse due to the query change, which will remain until it's in the shared_pool.
    Edited by: DaleyB on 07-Oct-2009 04:53

  • Select query performance is very slow

    Could you please explain me about BITMAP CONVERSION FROM ROWIDS
    Why the below query going for two times BITMAP CONVERSION TO ROWIDS on the same table.
    SQL> SELECT AGG.AGGREGATE_SENTENCE_ID ,
      2         AGG.ENTITY_ID,
      3         CAR.REQUEST_ID REQUEST_ID
      4    FROM epic.eh_aggregate_sentence agg ,om_cpps_active_requests car
      5   WHERE car.aggregate_sentence_id =agg.aggregate_sentence_id
      6  AND car.service_unit = '0ITNMK0020NZD0BE'
      7  AND car.request_type = 'CMNTY WORK'
      8  AND agg.hours_remaining > 0         
      9  AND NOT EXISTS (SELECT 'X'
    10                    FROM epic.eh_agg_sent_termination aggSentTerm
    11                   WHERE aggSentTerm.aggregate_sentence_id = agg.aggregate_sentence_id
    12                     AND aggSentTerm.date_terminated <= epic.epicdatenow);
    Execution Plan
    Plan hash value: 1009556971
    | Id  | Operation                           | Name                       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                    |                            |     5 |   660 |    99   (2)| 00:00:02 |
    |*  1 |  HASH JOIN ANTI                     |                            |     5 |   660 |    99   (2)| 00:00:02 |
    |   2 |   NESTED LOOPS                      |                            |       |       |            |          |
    |   3 |    NESTED LOOPS                     |                            |     7 |   658 |    95   (0)| 00:00:02 |
    |*  4 |     TABLE ACCESS BY INDEX ROWID     | OM_CPPS_ACTIVE_REQUESTS    |    45 |  2565 |    50   (0)| 00:00:01 |
    |   5 |      BITMAP CONVERSION TO ROWIDS    |                            |       |       |            |          |
    |   6 |       BITMAP AND                    |                            |       |       |            |          |
    |   7 |        BITMAP CONVERSION FROM ROWIDS|                            |       |       |            |          |
    |*  8 |         INDEX RANGE SCAN            | OM_CA_REQUEST_REQUEST_TYPE |   641 |       |    12   (0)| 00:00:01 |
    |   9 |        BITMAP CONVERSION FROM ROWIDS|                            |       |       |            |          |
    |* 10 |         INDEX RANGE SCAN            | OM_CA_REQUEST_SERVICE_UNIT |   641 |       |    20   (0)| 00:00:01 |
    |* 11 |     INDEX UNIQUE SCAN               | PK_EH_AGGREGATE_SENTENCE   |     1 |       |     0   (0)| 00:00:01 |
    |* 12 |    TABLE ACCESS BY INDEX ROWID      | EH_AGGREGATE_SENTENCE      |     1 |    37 |     1   (0)| 00:00:01 |
    |  13 |   TABLE ACCESS BY INDEX ROWID       | EH_AGG_SENT_TERMINATION    |    25 |   950 |     3   (0)| 00:00:01 |
    |* 14 |    INDEX RANGE SCAN                 | DATE_TERMINATED_0520       |     4 |       |     2   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - access("AGGSENTTERM"."AGGREGATE_SENTENCE_ID"="AGG"."AGGREGATE_SENTENCE_ID")
       4 - filter("CAR"."AGGREGATE_SENTENCE_ID" IS NOT NULL)
       8 - access("CAR"."REQUEST_TYPE"='CMNTY WORK')
      10 - access("CAR"."SERVICE_UNIT"='0ITNMK0020NZD0BE')
      11 - access("CAR"."AGGREGATE_SENTENCE_ID"="AGG"."AGGREGATE_SENTENCE_ID")
      12 - filter("AGG"."HOURS_REMAINING">0)
      14 - access("AGGSENTTERM"."DATE_TERMINATED"<="EPIC"."EPICDATENOW"())now this query is giving the correct result, but performance is slow.
    Please help to improve the performance.
    SQL> desc epic.eh_aggregate_sentence
    Name                                      Null?    Type
    ENTITY_ID                                          CHAR(16)
    AGGREGATE_SENTENCE_ID                     NOT NULL CHAR(16)
    HOURS_REMAINING                                    NUMBER(9,2)
    SQL> desc om_cpps_active_requests
    Name                                      Null?    Type
    REQUEST_ID                                NOT NULL VARCHAR2(16)
    AGGREGATE_SENTENCE_ID                              VARCHAR2(16)
    REQUEST_TYPE                              NOT NULL VARCHAR2(20)
    SERVICE_UNIT                                       VARCHAR2(16)
    SQL> desc epic.eh_agg_sent_termination
    Name                                      Null?    Type
    TERMINATION_ID                            NOT NULL CHAR(16)
    AGGREGATE_SENTENCE_ID                     NOT NULL CHAR(16)
    DATE_TERMINATED                           NOT NULL CHAR(20)
    .

    user10594152 wrote:
    Thanks for your reply.
    Still i am getting same problemIt is not a problem. Bitmap conversion usually is a very good thing. Useing this feature the database can use one or several unselective b*indexes. Combine them and do a kind of bitmap selection. THis should be slightly faster than a FTS and much faster than a normal index access.
    Your problem is that your filter criteria seem to be not very usefull. Whcih is the criteria that does the best reduction of rows?
    Also any kind of NOT EXISTS is potentiall not very fast (NOT IN is worse). You can rewrite your query with an OUTER JOIN. Sometimes this will help, but not always.
    SELECT AGG.AGGREGATE_SENTENCE_ID ,
            AGG.ENTITY_ID,
            CAR.REQUEST_ID REQUEST_ID
    FROM epic.eh_aggregate_sentence agg
    JOIN om_cpps_active_requests car ON ar.aggregate_sentence_id =agg.aggregate_sentence_id
    LEFT JOIN epic.eh_agg_sent_termination aggSentTerm ON aggSentTerm.aggregate_sentence_id = agg.aggregate_sentence_id and aggSentTerm.date_terminated <= epic.epicdatenow
    WHERE car.service_unit = '0ITNMK0020NZD0BE'
    AND car.request_type = 'CMNTY WORK'
    AND agg.hours_remaining > 0         
    AND aggSentTerm.aggregate_sentence_id is nullEdited by: Sven W. on Aug 31, 2010 4:01 PM

  • Multiple Digital Signatures (certificates) results in VERY slow PDF

    I created a form in Lifecycle that typically has 8 signatures.  As more signatures are added the form slows down significantly.  Our director, who ultimately signs off on the document, has informed us that it took him 35+ minutes to approve 3 documents.  The forms are on a network drive.  I had read some old threads that mentioned this issue was being investigated and the newer versions of Acrobat should help speed up this process.  We are currently running Acrobat X 10.1.4.  Any suggestions as to what might be slowing things down?  I know the digital signatures require validating and expect it to slow things down a bit but 11+ minutes is probably more than it should be.  Thanks

    Hi,
    Just out of curiousity, if the form has been Reader Enabled, and, if the director could download the free Adobe Reader v11 from the Adobe web site, and he signs the file using version 11, is the signing process faster? It should be much faster in version 11 because we fixed the recursive validation issue that made dealing with multiple signatures so slow.
    If you're interested in the nuts and bolts read on, but if not I'll understand...
    The way signature validation use to work is Acrobat (and Reader as well because because the signature creation and validation mechanisms are the same in both) would start to validate signature number 8 right after the signature was created (it needs to do the validation so it knows whether or not to put the green check mark next to the signature). As part of the validation process it would need to re-validate each previous signature (and this is where things start to get weird). In order to validate signature 7 it has to also validate all previous signatures (6 thru 1) and every time it validates a new signature it has to do all of the previous signatures. Each signature would get validated as many times as it was part of the revision list. That is, signature 1 got validated eight times, signature 2 seven times and so on.
    Begining with version 11 (or XI as it says in the product) we stopped all of the recursive validation and just do each signature once which makes the signature validation process much quicker. I'm always looking for real world examples, and if you can test it with Reader XI I'd appreciate knowing the results.
    Thanks,
    Steve

  • MacBook Pro 2009 new hard drive install results in very slow function and freezing

    I just wanted to post my resolution to a problem that I had trouble finding an answer to on these forums.
    Short version:
    I replaced the hard drive in my 2009 MacBook Pro because the computer froze and upon reboot the Disk Utility said it was corrupted, but with the new hard drive the computer ran very slowly and often showed the spinning rainbow wheel. I replaced the SATA cable that connects the hard drive to the motherboard and it works perfectly once again.
    Long version:
    Recently my MacBook Pro (2009 running Snow Leopard) froze up and I performed a hard reset by holding down the power button. When I turned the computer back on it would not boot OS so I ran disk utility from the Snow Leopard install DVD. The test said the hard drive was corrupted, and since the computer is way past warranty I decided to change the drive out myself. I bought a 500GB Seagate Momentus 5400 Drive from Amazon, opened the computer and replaced the existing hard drive with the new one. When I first booted from the OS install DVD, my computer was not recognizing that any hard drive was present. I read somewhere on these forums that sometimes the formatting on new Seagate drives can't be read by MacBooks and they need to be reformatted using another computer, but I tried simply taking the hard drive out and putting it back in a couple of times thinking maybe I had just not plugged it in correctly. After the 4th attempt the hard drive magically showed up, and I was able to reformat the drive and install OS and even Windows XP on bootcamp.
    Everything seemed to be okay but applications were running slowly considering this was a fresh drive and OS install. Over time, the computer started to hang more and more. In OS I would get the spinning rainbow wheel even when doing something as simple as opening a browser window in Chrome or trying to type into a text field. When I tried to use Windows it would simply freeze after only a short time and I'd have to do a hard reset.
    I went to the Genius Bar at the Apple store which was unhelpful, so I continued searching through these forums to try to figure out the problem. I noticed a lot of people had trouble with the SATA cable that came with the computer because it's quite thin and delicate, and would get damaged when changing out the hard drive. However most of these people seemed to experience a question mark when starting up the computer, whereas mine would fully boot and be functional for a time. I thought it unlikely that a damaged cable could possibly leave the computer partially functional. Finally though I gave in a dropped the $26 for a new SATA cable on Amazon. As soon as I installed it the problem was fixed, and the computer runs as fast as when I first bought it. I don't know if I damaged the cable changing the hard drive (I was extremely careful) or if my original hard drive was not actually corrupted and the cable was already damaged. I mentioned the possibility of the cable being damaged at the Apple store and the representative said that often times they fail because people carry the laptop with one hand, and because of the way this model was designed this puts a lot of pressure right on that thin cable. Regardless, if you do plan on changing out your hard drive in your MacBook keep in mind that the SATA cable is sensitive, and that if you experience problems with a fresh hard drive and OS install the SATA cable is a likely culprit.

    If you think you have either a hard drive or a cable problem, to the best of my knowledge the only product that can help isolate both of them is Scannerz. You can check it out at:
    http://scsc-online.com/Scannerz.html
    I think that's the correct link. If it isn't and you're interested and that's wrong, just google it. I'd also check out their downloads section, especially the sort of short document on using path isolation to detect and isolate problems.
    Scannerz can detect both errors and irregularities. It uses the surface scan progress as a reference. Cable problems never show up at the same location because they're typically intermittent. Surface problems always show up at the exact same place. That's the only product (at least commercially available) that can do that.
    I don't know if this information is of any value to you because it sort of sounds like you've already solved the problem, but it might be of use if you have problems in the future.
    In any case, I've seen several posts on several different sites where people were reporting insulation break down on some of the SATA cables. Apparently the insulation breaks down and the cable starts shorting to the case.

  • Query is running very slow when consulting history data in EBS

    SELECT *
      FROM (select NVL(TO_CHAR(aps.vendor_id), 'SIN PROVEEDOR') CODIGO,
                   NVL(aps.vendor_name, 'SIN PROVEEDOR') PROVEEDOR,
                   null IMPORTE_TRANSACCIONAL,
                   SUM(nvl(CTL.GROSS_EXTENDED_AMOUNT, CTL.EXTENDED_AMOUNT) *
                       NVL(Cta.EXCHANGE_RATE, 1)) IMPORTE_FUNCIONAL
              from ra_customer_trx_all cta,
                   ra_cust_trx_types_all ctt,
                   ra_customer_trx_lines_all ctl,
                   mtl_system_items_b inv,
                   hz_cust_accounts ca,
                   hz_parties p,
                   AR_CUSTOMERS ac,
                   hz_cust_acct_sites_all hcca,
                   hz_cust_site_uses_all hcsua,
                   RA_TERRITORIES rt,
                   Jtf_Rs_Salesreps vend,
                   gl_code_combinations glc,
                   ap_suppliers aps,
                   (select paa.item_id, paa.vendor_id
                      from PO_ASL_ATTRIBUTES paa, PO_APPROVED_SUPPLIER_LIST PASL
                     where Paa.Asl_Id = PASL.Asl_Id(+)
                       and pasl.disable_flag is null) paa2
             where CTA.cust_trx_type_id = ctt.cust_trx_type_id
               and ctl.customer_trx_id = cta.customer_trx_id
               and ctl.Inventory_Item_Id = inv.inventory_item_id(+)
               and ctt.gl_id_rec = glc.code_combination_id
               and ca.cust_account_id = cta.bill_to_customer_id
               and p.party_id = ca.party_id
               and ac.CUSTOMER_ID = cta.bill_to_customer_id
               and hcca.cust_account_id = ca.cust_account_id
               and hcca.org_id = '82'
               and hcsua.site_use_id = cta.bill_to_site_use_id
               and hcsua.cust_acct_site_id = hcca.cust_acct_site_id
               and hcsua.org_id = '82'
               and rt.territory_id(+) = hcca.territory_id
               and cta.primary_salesrep_id = vend.salesrep_id(+)
               and inv.organization_id = '84'
               and paa2.vendor_id = aps.vendor_id(+)
               and ctl.inventory_item_id = paa2.item_id(+)
               AND CTT.TYPE IN ('INV', 'CM')
               and ca.cust_account_id(+) = cta.bill_to_customer_id
               and p.party_id(+) = ca.party_id
               and ctl.Line_Type = 'LINE'
               and cta.complete_flag = 'Y'
               and cta.status_trx not in ('VD')
               and cta.legal_entity_id = '23274'
               and cta.trx_date between to_Date('01/10/2014', 'dd/MM/yyyy') AND
                   to_Date('13/10/2014', 'dd/MM/yyyy')
             group by aps.vendor_id, aps.vendor_name
            UNION
            select 'SIN ITEM' CODIGO,
                   'SIN ITEM' PROVEEDOR,
                   null IMPORTE_TRANSACCIONAL,
                   SUM(nvl(CTL.GROSS_EXTENDED_AMOUNT, CTL.EXTENDED_AMOUNT) *
                       NVL(Cta.EXCHANGE_RATE, 1)) IMPORTE_FUNCIONAL
              from ra_customer_trx_all       cta,
                   ra_cust_trx_types_all     ctt,
                   ra_customer_trx_lines_all ctl,
                   hz_cust_accounts          ca,
                   hz_parties                p,
                   AR_CUSTOMERS              ac,
                   hz_cust_acct_sites_all    hcca,
                   hz_cust_site_uses_all     hcsua,
                   RA_TERRITORIES            rt,
                   Jtf_Rs_Salesreps          vend,
                   gl_code_combinations      glc
             where CTA.cust_trx_type_id = ctt.cust_trx_type_id
               and ctl.customer_trx_id = cta.customer_trx_id
               and ctl.Inventory_Item_Id is null
               and ctt.gl_id_rec = glc.code_combination_id
               and ca.cust_account_id = cta.bill_to_customer_id
               and p.party_id = ca.party_id
               and ac.CUSTOMER_ID = cta.bill_to_customer_id
               and hcca.cust_account_id = ca.cust_account_id
               and hcca.org_id = '82'
               and hcsua.site_use_id = cta.bill_to_site_use_id
               and hcsua.cust_acct_site_id = hcca.cust_acct_site_id
               and hcsua.org_id = '82'
               and rt.territory_id(+) = hcca.territory_id
               and cta.primary_salesrep_id = vend.salesrep_id(+)
               AND CTT.TYPE IN ('INV', 'CM')
               and ca.cust_account_id(+) = cta.bill_to_customer_id
               and p.party_id(+) = ca.party_id
               and ctl.Line_Type = 'LINE'
               and cta.complete_flag = 'Y'
               and cta.status_trx not in ('VD')
               and cta.legal_entity_id = '23274'
               and cta.trx_date between to_Date('01/10/2014', 'dd/MM/yyyy') AND
                   to_Date('13/10/2014', 'dd/MM/yyyy')
             group by 'SIN ITEM', 'SIN ITEM') T_GRUPO
    order by DECODE(T_GRUPO.PROVEEDOR,
                     'SIN ITEM',
                     'A',
                     'SIN PROVEEDOR',
                     'A',
                     T_GRUPO.PROVEEDOR)

    Hi Hussein,
    APP 12.1.3
    Database 11.2.0.3.0
    SO linux x86-64
    stadistics: 0ne month ago 
    this  slowness is from three months ago
    Execution Plan
    | Id  | Operation                                                  | Name                                  | Rows  | Bytes | Cost (%CPU)|
    |   0 | SELECT STATEMENT                                 |                                          |      2 |   318 | 12680   (1)|
    |   1 |  SORT ORDER BY                                      |                                          |      2 |   318 | 12680   (1)|
    |   2 |   VIEW                                                        |                                          |      2 |   318 | 12679   (1)|
    |   3 |    SORT UNIQUE                                          |                                         |      2 |   697 | 12679  (51)|                                      
    |   4 |     UNION-ALL                                              |                                          |        |            |               |                                
    |   5 |      HASH GROUP BY                                   |                                           |      1 |   377 |  6338   (1)|                                      
    |   6 |       NESTED LOOPS OUTER                        |                                            |      1 |   377 |  6336   (1)|                                      
    |   7 |        NESTED LOOPS OUTER                       |                                           |      1 |   343 |  6336   (1)|                                      
    |   8 |         NESTED LOOPS                                 |                                              |      1 |   328 |  6335   (1)|                                      
    |   9 |          NESTED LOOPS                                |                                              |      1 |   323 |  6335   (1)|                                      
    |  10 |           NESTED LOOPS OUTER                 |                                                 |      1 |   311 |  6333   (1)|                                      
    |  11 |            NESTED LOOPS                           |                                                    |      1 |   304 |  6332   (1)|                                      
    |  12 |             NESTED LOOPS                          |                                                  |      1 |   296 |  6332   (1)|                                      
    |  13 |              NESTED LOOPS                        |                                                   |      1 |   275 |  6329   (1)|                                      
    |* 14 |               HASH JOIN                               |                                                   |      1 |   192 |  6328   (1)|                                      
    |* 15 |                HASH JOIN                    |                                                              |  6493 |   450K|  5778   (1)|                                       
    |* 16 |                 HASH JOIN                   | |                                                              6493 |   367K|  5432   (1)|                                       
    |* 17 |        TABLE ACCESS BY INDEX ROWID | RA_CUSTOMER_TRX_ALL                  |  6556 |   288K|  4635   (1)|                                       
    |* 18 |                   INDEX RANGE SCAN          | RA_CUSTOMER_TRX_N5                     | 26223 |        |    97   (2)|                                      
    |* 19 |                  TABLE ACCESS FULL          | HZ_CUST_SITE_USES_ALL                  | 40227 |   510K|   797   (3)|                                       
    |* 20 |                 TABLE ACCESS FULL           | HZ_CUST_ACCT_SITES_ALL                  | 20020 |   254K|   345   (3)|                                       
    |  21 |                TABLE ACCESS FULL            | HZ_CUST_ACCOUNTS                             | 40020 |  4728K|   549   (3)|                                       
    |* 22 |               INDEX UNIQUE SCAN             | HZ_PARTIES_U1                                       |      1|                  |     0   (0)|                                       
    |* 23 |       TABLE ACCESS BY INDEX ROWID    | RA_CUSTOMER_TRX_LINES_ALL           |     1 |    21      |     3   (0)|                                       
    |* 24 |               INDEX RANGE SCAN              | RA_CUSTOMER_TRX_LINES_N2                |      4 |            |     2   (0)|                                      
    |* 25 |             INDEX UNIQUE SCAN               | MTL_SYSTEM_ITEMS_B_U1                      |      1 |     8      |     0   (0)|                                      
    |* 26 |            INDEX RANGE SCAN                 | JTF_RS_SALESREPS_U1                           |      1 |     7      |     1   (0)|                                      
    |* 27 |           TABLE ACCESS BY INDEX ROWID       | RA_CUST_TRX_TYPES_ALL              |      1 |    12      |     2   (0)|                                      
    |* 28 |            INDEX RANGE SCAN                 | RA_CUST_TRX_TYPES_U1                           |      1 |            |     1   (0)                                       
    |* 29 |          INDEX UNIQUE SCAN                  | GL_CODE_COMBINATIONS_U1                     |      1 |     5      |     0   (0)|                                      
    |  30 |         VIEW PUSHED PREDICATE               |                                                                |      1 |    15      |     1   (0)|                                      
    |* 31 |          FILTER                             |                                                                                 |        |       |            |                                      
    |  32 |           NESTED LOOPS OUTER                  |                                                                 |      1 |    54      |     1   (0)|                                      
    |  33 |            TABLE ACCESS BY INDEX ROWID      | PO_ASL_ATTRIBUTES                          |      1 |    39      |     1   (0)|                                      
    |* 34 |             INDEX SKIP SCAN                              | PO_ASL_ATTRIBUTES_N1                    |      1 |               |     1   (0)|                                      
    |  35 |            TABLE ACCESS BY INDEX ROWID    | PO_APPROVED_SUPPLIER_LIST           |     1      |    15     |     0   (0)|                                       
    |* 36 |             INDEX UNIQUE SCAN                      | PO_APPROVED_SUPPLIER_LIST_U1        |     1      |              |     0   (0)|                                       
    |  37 |        TABLE ACCESS BY INDEX ROWID        | AP_SUPPLIERS                                       |      1      |    34       |     0   (0)|                                      
    |* 38 |         INDEX UNIQUE SCAN                         | AP_SUPPLIERS_U1                                    |      1      |              |     0   (0)|                                      
    |  39 |      SORT GROUP BY NOSORT                   |                                                               |      1 |   320           |  6341   (1)|                                      
    |  40 |       NESTED LOOPS                          |                                                                       |        |                      |            |                                      
    |  41 |        NESTED LOOPS                         |                                                                        |      1 |   320           |  6340   (1)|                                      
    |  42 |         NESTED LOOPS                        |                                                                       |      1 |        299      |  6337   (1)|                                     
    |  43 |          NESTED LOOPS OUTER                 |                                                                  |      1 |   216           |  6336   (1)|                                      
    |* 44 |           HASH JOIN                         |                                                                              |      1 |   209      |  6335   (1)|                                      
    |* 45 |            TABLE ACCESS FULL                | HZ_CUST_ACCT_SITES_ALL                        | 20020  |   254K      |   345   (3)|                                      
    |* 46 |            HASH JOIN                        |                                                                           |  5819      |  1113K     |  5989   (1)|                                      
    |* 47 |             HASH JOIN                       |                                                                            |  5875      |   430K     |      5439   (1)|                                      
    |* 48 |              HASH JOIN                      |                                                                            |  5931      |   359K     |  4641   (1)|                                      
    |  49 |               NESTED LOOPS                  |                                                                       |     38      |   646      |     6   (0)|                                     
    |* 50 |                TABLE ACCESS FULL            | RA_CUST_TRX_TYPES_ALL                        |          38 |   456      |     6   (0)|                                     
    |* 51 |                INDEX UNIQUE SCAN            | GL_CODE_COMBINATIONS_U1                       |      1      |     5      |     0   (0)|                                     
    |* 52 |       TABLE ACCESS BY INDEX ROWID   | RA_CUSTOMER_TRX_ALL                              |  6556 |   288K |  4635   (1)|                                     
    |* 53 |                INDEX RANGE SCAN             | RA_CUSTOMER_TRX_N5                               | 26223    |        |    97   (2)|                                     
    |* 54 |              TABLE ACCESS FULL              | HZ_CUST_SITE_USES_ALL                         | 40227 |   510K |   797   (3)|                                     
    |  55 |             TABLE ACCESS FULL               | HZ_CUST_ACCOUNTS                                 | 40020 |  4728K |   549   (3)|                                     
    |* 56 |           INDEX RANGE SCAN                  | JTF_RS_SALESREPS_U1                             |      1      |     7      |     1   (0)|                                     
    |* 57 |          INDEX UNIQUE SCAN                  | HZ_PARTIES_U1                                             |       1      |       |     0   (0)|                                     
    |* 58 |         INDEX RANGE SCAN                    | RA_CUSTOMER_TRX_LINES_N2                     |      4      |         |     2   (0)|                                     
    |* 59 |        TABLE ACCESS BY INDEX ROWID          | RA_CUSTOMER_TRX_LINES_ALL           |     1       |    21     |     3   (0)|                                    
    Predicate Information (identified by operation id):
      14 - access("CUST"."CUST_ACCOUNT_ID"="CTA"."BILL_TO_CUSTOMER_ID" AND
                  "HCCA"."CUST_ACCOUNT_ID"="CUST_ACCOUNT_ID")
      15 - access("HCSUA"."CUST_ACCT_SITE_ID"="HCCA"."CUST_ACCT_SITE_ID")
      16 - access("HCSUA"."SITE_USE_ID"="CTA"."BILL_TO_SITE_USE_ID")
      17 - filter("CTA"."COMPLETE_FLAG"='Y' AND "CTA"."STATUS_TRX"<>'VD' AND "CTA"."                                                                            LEGAL_ENTITY_ID"=23274)
      18 - access("CTA"."TRX_DATE">=TO_DATE(' 2014-01-01 00:00:00', 'syyyy-mm-dd hh2                                                                             
    4:mi:ss') AND
                  "CTA"."TRX_DATE"<=TO_DATE(' 2014-10-13 00:00:00', 'syyyy-mm-dd hh2                                                                             
    4:mi:ss'))
      19 - filter("HCSUA"."ORG_ID"=82)
      20 - filter("HCCA"."ORG_ID"=82)
      22 - access("PARTY_ID"="PARTY_ID")
      23 - filter("CTL"."INVENTORY_ITEM_ID" IS NOT NULL AND "CTL"."LINE_TYPE"='LINE'                                                                             
      24 - access("CTL"."CUSTOMER_TRX_ID"="CTA"."CUSTOMER_TRX_ID")
      25 - access("CTL"."INVENTORY_ITEM_ID"="INV"."INVENTORY_ITEM_ID" AND "INV"."ORG                                                                             
    ANIZATION_ID"=84)
      26 - access("CTA"."PRIMARY_SALESREP_ID"="VEND"."SALESREP_ID"(+))
      27 - filter("CTT"."GL_ID_REC" IS NOT NULL AND ("CTT"."TYPE"='CM' OR "CTT"."TYP                                                                             
    E"='INV'))
      28 - access("CTA"."CUST_TRX_TYPE_ID"="CTT"."CUST_TRX_TYPE_ID")
      29 - access("CTT"."GL_ID_REC"="GLC"."CODE_COMBINATION_ID")
      31 - filter("PASL"."DISABLE_FLAG" IS NULL)
      34 - access("PAA"."ITEM_ID"="CTL"."INVENTORY_ITEM_ID")
           filter("PAA"."ITEM_ID"="CTL"."INVENTORY_ITEM_ID")
      36 - access("PAA"."ASL_ID"="PASL"."ASL_ID"(+))
      38 - access("PAA2"."VENDOR_ID"="APS"."VENDOR_ID"(+))
      44 - access("HCCA"."CUST_ACCOUNT_ID"="CUST_ACCOUNT_ID" AND
                  "HCSUA"."CUST_ACCT_SITE_ID"="HCCA"."CUST_ACCT_SITE_ID")
      45 - filter("HCCA"."ORG_ID"=82)
      46 - access("CUST"."CUST_ACCOUNT_ID"="CTA"."BILL_TO_CUSTOMER_ID")
      47 - access("HCSUA"."SITE_USE_ID"="CTA"."BILL_TO_SITE_USE_ID")
      48 - access("CTA"."CUST_TRX_TYPE_ID"="CTT"."CUST_TRX_TYPE_ID")
      50 - filter("CTT"."GL_ID_REC" IS NOT NULL AND ("CTT"."TYPE"='CM' OR "CTT"."TYP                                                                             
    E"='INV'))
      51 - access("CTT"."GL_ID_REC"="GLC"."CODE_COMBINATION_ID")
      52 - filter("CTA"."COMPLETE_FLAG"='Y' AND "CTA"."STATUS_TRX"<>'VD' AND "CTA"."                                                                             
    LEGAL_ENTITY_ID"=23274)
      53 - access("CTA"."TRX_DATE">=TO_DATE(' 2014-01-01 00:00:00', 'syyyy-mm-dd hh2                                                                             
    4:mi:ss') AND
                  "CTA"."TRX_DATE"<=TO_DATE(' 2014-10-13 00:00:00', 'syyyy-mm-dd hh2                                                                             
    4:mi:ss'))
      54 - filter("HCSUA"."ORG_ID"=82)
      56 - access("CTA"."PRIMARY_SALESREP_ID"="VEND"."SALESREP_ID"(+))
      57 - access("PARTY_ID"="PARTY_ID")
      58 - access("CTL"."CUSTOMER_TRX_ID"="CTA"."CUSTOMER_TRX_ID")
      59 - filter("CTL"."INVENTORY_ITEM_ID" IS NULL AND "CTL"."LINE_TYPE"='LINE')
    Note
       - 'PLAN_TABLE' is old version
    Statistics
             15  recursive calls
              0  db block gets
       62543652  consistent gets
         269141  physical reads
            172  redo size
          12832  bytes sent via SQL*Net to client
            674  bytes received via SQL*Net from client
             16  SQL*Net roundtrips to/from client
              2  sorts (memory)
              0  sorts (disk)
            212  rows processed

  • Update Query is running very slow

    Database version 11.2.0.2
         UPDATE ps_jrnl_ln a SET a.jrnl_line_status = :"SYS_B_0" WHERE a.project_id = :"SYS_B_1" AND a.account IN ( SELECT DISTINCT c.account FROM PSTREENODE A , PSTREELEAF B , PS_OI_NODE_BAL_PC G , PS_GL_ACCOUNT_TBL C WHERE A.EFFDT = ( SELECT MAX(X.EFFDT) FROM PSTREEDEFN X WHERE A.SETID = X.SETID AND A.TREE_NAME = X.TREE_NAME) AND B.SETID = A.SETID AND A.TREE_NODE = G.TREE_NODE AND A.TREE_NAME = G.TREE_NAME AND g.activeflag = :"SYS_B_2" AND B.TREE_NAME = A.TREE_NAME AND B.EFFDT = A.EFFDT AND B.TREE_NODE_NUM BETWEEN A.TREE_NODE_NUM AND A.TREE_NODE_NUM_END AND C.ACCOUNT BETWEEN B.RANGE_FROM AND B.RANGE_TO) AND EXISTS ( SELECT :"SYS_B_3" FROM PS_JRNL_HEADER C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.JOURNAL_ID = C.JOURNAL_ID AND A.JOURNAL_DATE = C.JOURNAL_DATE AND C.JOURNAL_LOCKED = :"SYS_B_4" AND C.PROCESS_INSTANCE = :"SYS_B_5")
    {Code}
    Execution Plan--------------------------------------------------------------------------------------------------------------
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
    | 0 | UPDATE STATEMENT | | 5 | 395 | | 10586 (17)| 00:02:08 |
    | 1 | UPDATE | PS_JRNL_LN | | | | | |
    |* 2 | HASH JOIN SEMI | | 5 | 395 | | 10586 (17)| 00:02:08 |
    | 3 | NESTED LOOPS | | 5 | 360 | | 19 (6)| 00:00:01 |
    | 4 | SORT UNIQUE | | 5 | 165 | | 6 (0)| 00:00:01 |
    | 5 | TABLE ACCESS BY INDEX ROWID | PS_JRNL_HEADER | 5 | 165 | | 6 (0)| 00:00:01 |
    |* 6 | INDEX RANGE SCAN | PSZJRNL_HEADER | 5 | | | 3 (0)| 00:00:01 |
    |* 7 | TABLE ACCESS BY INDEX ROWID | PS_JRNL_LN | 1 | 39 | | 4 (0)| 00:00:01 |
    |* 8 | INDEX RANGE SCAN | PS_JRNL_LN | 1 | | | 3 (0)| 00:00:01 |
    | 9 | VIEW | VW_NSO_1 | 378K| 2585K| | 10565 (17)| 00:02:07 |
    |* 10 | FILTER | | | | | | |
    |* 11 | HASH JOIN | | 68M| 9738M| | 10561 (17)| 00:02:07 |
    | 12 | INDEX FAST FULL SCAN | PSAPSTREENODE | 23610 | 1175K| | 63 (0)| 00:00:01 |
    | 13 | MERGE JOIN | | 90M| 8548M| | 9370 (7)| 00:01:53 |
    | 14 | SORT JOIN | | 670 | 30150 | | 6 (17)| 00:00:01 |
    | 15 | MERGE JOIN CARTESIAN | | 670 | 30150 | | 5 (0)| 00:00:01 |
    |* 16 | TABLE ACCESS FULL | PS_OI_NODE_BAL_PC | 2 | 80 | | 3 (0)| 00:00:01 |
    | 17 | BUFFER SORT | | 335 | 1675 | | 2 (0)| 00:00:01 |
    | 18 | INDEX FAST FULL SCAN | PSAGL_ACCOUNT_TBL | 335 | 1675 | | 1 (0)| 00:00:01 |
    |* 19 | FILTER | | | | | | |
    |* 20 | SORT JOIN | | 562K| 28M| 77M| 8778 (1)| 00:01:46 |
    | 21 | INDEX FAST FULL SCAN | PSCPSTREELEAF | 562K| 28M| | 1315 (1)| 00:00:16 |
    | 22 | SORT AGGREGATE | | 1 | 25 | | | |
    | 23 | FIRST ROW | | 1 | 25 | | 2 (0)| 00:00:01 |
    |* 24 | INDEX RANGE SCAN (MIN/MAX)| PSBPSTREEDEFN | 1 | 25 | | 2 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - access("A"."ACCOUNT"="ACCOUNT")
    6 - access("C"."PROCESS_INSTANCE"=TO_NUMBER(:SYS_B_5) AND "C"."JOURNAL_LOCKED"=:SYS_B_4)
    7 - filter("A"."PROJECT_ID"=:SYS_B_1)
    8 - access("A"."BUSINESS_UNIT"="C"."BUSINESS_UNIT" AND "A"."JOURNAL_ID"="C"."JOURNAL_ID" AND
    SYS_OP_DESCEND("JOURNAL_DATE")=SYS_OP_DESCEND("C"."JOURNAL_DATE"))
    filter(SYS_OP_UNDESCEND(SYS_OP_DESCEND("JOURNAL_DATE"))="C"."JOURNAL_DATE")
    10 - filter("A"."EFFDT"= (SELECT MAX("X"."EFFDT") FROM "PSTREEDEFN" "X" WHERE "X"."TREE_NAME"=:B1
    AND "X"."SETID"=:B2))
    11 - access("B"."SETID"="A"."SETID" AND "A"."TREE_NODE"="G"."TREE_NODE" AND
    "A"."TREE_NAME"="G"."TREE_NAME" AND "B"."TREE_NAME"="A"."TREE_NAME" AND "B"."EFFDT"="A"."EFFDT")
    filter("B"."TREE_NODE_NUM">="A"."TREE_NODE_NUM" AND
    "B"."TREE_NODE_NUM"<="A"."TREE_NODE_NUM_END")
    16 - filter("G"."ACTIVEFLAG"=TO_NUMBER(:SYS_B_2))
    19 - filter("C"."ACCOUNT"<="B"."RANGE_TO")
    20 - access(INTERNAL_FUNCTION("C"."ACCOUNT")>=INTERNAL_FUNCTION("B"."RANGE_FROM"))
    filter(INTERNAL_FUNCTION("C"."ACCOUNT")>=INTERNAL_FUNCTION("B"."RANGE_FROM"))
    24 - access("X"."SETID"=:B1 AND "X"."TREE_NAME"=:B2)
    52 rows selected.

    I don't see any benefit of the extenal conversion. Cost is still same.
    | Id  | Operation                        | Name              | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT                 |                   |     5 |   395 |       | 10586  (17)| 00:02:08 |
    |   1 |  UPDATE                          | PS_JRNL_LN        |       |       |       |            |          |
    |*  2 |   HASH JOIN SEMI                 |                   |     5 |   395 |       | 10586  (17)| 00:02:08 |
    |   3 |    NESTED LOOPS                  |                   |     5 |   360 |       |    19   (6)| 00:00:01 |
    |   4 |     SORT UNIQUE                  |                   |     5 |   165 |       |     6   (0)| 00:00:01 |
    |   5 |      TABLE ACCESS BY INDEX ROWID | PS_JRNL_HEADER    |     5 |   165 |       |     6   (0)| 00:00:01 |
    |*  6 |       INDEX RANGE SCAN           | PSZJRNL_HEADER    |     5 |       |       |     3   (0)| 00:00:01 |
    |*  7 |     TABLE ACCESS BY INDEX ROWID  | PS_JRNL_LN        |     1 |    39 |       |     4   (0)| 00:00:01 |
    |*  8 |      INDEX RANGE SCAN            | PS_JRNL_LN        |     1 |       |       |     3   (0)| 00:00:01 |
    |   9 |    VIEW                          | VW_NSO_1          |   378K|  2585K|       | 10565  (17)| 00:02:07 |
    |* 10 |     FILTER                       |                   |       |       |       |            |          |
    |* 11 |      HASH JOIN                   |                   |    68M|  9738M|       | 10561  (17)| 00:02:07 |
    |  12 |       INDEX FAST FULL SCAN       | PSAPSTREENODE     | 23610 |  1175K|       |    63   (0)| 00:00:01 |
    |  13 |       MERGE JOIN                 |                   |    90M|  8548M|       |  9370   (7)| 00:01:53 |
    |  14 |        SORT JOIN                 |                   |   670 | 30150 |       |     6  (17)| 00:00:01 |
    |  15 |         MERGE JOIN CARTESIAN     |                   |   670 | 30150 |       |     5   (0)| 00:00:01 |
    |* 16 |          TABLE ACCESS FULL       | PS_OI_NODE_BAL_PC |     2 |    80 |       |     3   (0)| 00:00:01 |
    |  17 |          BUFFER SORT             |                   |   335 |  1675 |       |     2   (0)| 00:00:01 |
    |  18 |           INDEX FAST FULL SCAN   | PSAGL_ACCOUNT_TBL |   335 |  1675 |       |     1   (0)| 00:00:01 |
    |* 19 |        FILTER                    |                   |       |       |       |            |          |
    |* 20 |         SORT JOIN                |                   |   562K|    28M|    77M|  8778   (1)| 00:01:46 |
    |  21 |          INDEX FAST FULL SCAN    | PSCPSTREELEAF     |   562K|    28M|       |  1315   (1)| 00:00:16 |
    |  22 |      SORT AGGREGATE              |                   |     1 |    25 |       |            |          |
    |  23 |       FIRST ROW                  |                   |     1 |    25 |       |     2   (0)| 00:00:01 |
    |* 24 |        INDEX RANGE SCAN (MIN/MAX)| PSBPSTREEDEFN     |     1 |    25 |       |     2   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("A"."ACCOUNT"="ACCOUNT")
       6 - access("C"."PROCESS_INSTANCE"=TO_NUMBER(:SYS_B_5) AND "C"."JOURNAL_LOCKED"=:SYS_B_4)
       7 - filter("A"."PROJECT_ID"=:SYS_B_1)
       8 - access("A"."BUSINESS_UNIT"="C"."BUSINESS_UNIT" AND "A"."JOURNAL_ID"="C"."JOURNAL_ID" AND
                  SYS_OP_DESCEND("JOURNAL_DATE")=SYS_OP_DESCEND("C"."JOURNAL_DATE"))
           filter(SYS_OP_UNDESCEND(SYS_OP_DESCEND("JOURNAL_DATE"))="C"."JOURNAL_DATE")
      10 - filter("A"."EFFDT"= (SELECT MAX("X"."EFFDT") FROM "PSTREEDEFN" "X" WHERE "X"."TREE_NAME"=:B1
                  AND "X"."SETID"=:B2))
      11 - access("B"."SETID"="A"."SETID" AND "A"."TREE_NODE"="G"."TREE_NODE" AND
                  "A"."TREE_NAME"="G"."TREE_NAME" AND "B"."TREE_NAME"="A"."TREE_NAME" AND "B"."EFFDT"="A"."EFFDT")
           filter("B"."TREE_NODE_NUM">="A"."TREE_NODE_NUM" AND
                  "B"."TREE_NODE_NUM"<="A"."TREE_NODE_NUM_END")
      16 - filter("G"."ACTIVEFLAG"=TO_NUMBER(:SYS_B_2))
      19 - filter("C"."ACCOUNT"<="B"."RANGE_TO")
      20 - access(INTERNAL_FUNCTION("C"."ACCOUNT")>=INTERNAL_FUNCTION("B"."RANGE_FROM"))
           filter(INTERNAL_FUNCTION("C"."ACCOUNT")>=INTERNAL_FUNCTION("B"."RANGE_FROM"))
      24 - access("X"."SETID"=:B1 AND "X"."TREE_NAME"=:B2)
    52 rows selected.

  • Query is running very slow

    INSERT INTO IHUB.TMP_SUPPLIES_PO
    NEW_SCHEDULE_DATE,
    ORDER_TYPE,
    NEW_ORDER_QUANTITY,
    NEW_ORDER_PLACEMENT_DATE,
    FIRM_PLANNED_TYPE,
    LINE_ID,
    ORDER_NUMBER,
    SUBINVENTORY_CODE,
    ITEM_NAME,
    ORGANIZATION_CODE,
    SUPPLIER_NAME,
    SUPPLIER_SITE_CODE,
    COMMENTS,
    ORIGINAL_NEED_BY_DATE,
    PROMISED_DATE,
    NEED_BY_DATE,
    ACCEPTANCE_REQUIRED_FLAG,
    UOM_CODE,
    SR_INSTANCE_CODE,
    DELETED_FLAG,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_LOGIN,
    REQUEST_ID,
    PROGRAM_APPLICATION_ID,
    PROGRAM_ID,
    PROGRAM_UPDATE_DATE,
    PROCESS_FLAG
    SELECT DISTINCT F.DUE_DT AS NEW_SCHEDULE_DATE,
    1 AS ORDER_TYPE,
    ( F.QTY_PO_STD
    - NVL(xx_psft_to_ihub_pkg_rj.get_rcv_qty_supplies_po (F.BUSINESS_UNIT, F.PO_ID, F.LINE_NBR, F.SCHED_NBR, F.DISTRIB_LINE_NUM),0)
    + NVL(xx_psft_to_ihub_pkg_rj.get_rtv_qty_supplies_po (F.BUSINESS_UNIT, F.PO_ID, F.LINE_NBR, F.SCHED_NBR, F.DISTRIB_LINE_NUM),0)
    ) AS NEW_ORDER_QUANTITY,
    F.PO_DT AS NEW_ORDER_PLACEMENT_DATE,
    CASE WHEN F.FROZEN_FLG = 'N'
    THEN 2
    ELSE 1
    END AS FIRM_PLANNED_TYPE,
    1 AS LINE_ID,
    F.BUSINESS_UNIT
    || ':'
    || F.PO_ID
    || ':'
    || F.LINE_NBR
    || ':'
    || F.SCHED_NBR
    || ':'
    || F.DISTRIB_LINE_NUM AS ORDER_NUMBER,
    NULL AS SUBINVENTORY_CODE,
    F.INV_ITEM_ID AS ITEM_NAME,
    F.BUSINESS_UNIT_IN AS ORGANIZATION_CODE,
    H.NAME1 || ':' || F.VENDOR_ID as SUPPLIER_NAME,
    F.VNDR_LOC AS SUPPLIER_SITE_CODE,
    NULL AS COMMENTS,
    G.ORIG_PROM_DT AS ORIGINAL_NEED_BY_DATE,
    F.DUE_DT AS PROMISED_DATE,
    F.DUE_DT AS NEED_BY_DATE,
    'N' AS ACCEPTANCE_REQUIRED_FLAG,
    F.UNIT_OF_MEASURE AS UOM_CODE,
    'P',
    2,
    SYSDATE,
    SYSDATE,
    1173,
    58957,
    410496,
    724,
    56364,
    sysdate,
    1
    FROM SYSADM.PS_PL_ITEM_ATTRIB@FSUPGCLINK A,
    SYSADM.PS_BU_ITEMS_INV@FSUPGCLINK B,
    SYSADM.PS_MASTER_ITEM_TBL@FSUPGCLINK C,
    SYSADM.PS_PL_GROUP_IN@FSUPGCLINK E,
    SYSADM.PS_PL_PO_DIST_VW2@FSUPGCLINK F,
    SYSADM.PS_PO_LINE_SHIP@FSUPGCLINK G,
    SYSADM.PS_VENDOR@FSUPGCLINK H
    WHERE 1=1
    AND E.BU_GROUP = 'ASCP'
    AND A.PLANNED_BY <> '4'
    AND A.BUSINESS_UNIT = B.BUSINESS_UNIT
    AND A.INV_ITEM_ID = B.INV_ITEM_ID
    AND B.ITM_STATUS_CURRENT < '4'
    AND B.INV_ITEM_ID = C.INV_ITEM_ID
    AND C.ITM_STATUS_CURRENT < '4'
    AND C.SETID =
    (SELECT D.SETID
    FROM SYSADM.PS_SET_CNTRL_REC@FSUPGCLINK D
    WHERE D.RECNAME = 'MASTER_ITEM_TBL'
    AND D.SETCNTRLVALUE = A.BUSINESS_UNIT
    AND A.BUSINESS_UNIT = E.BUSINESS_UNIT
    AND A.BUSINESS_UNIT = F.BUSINESS_UNIT_IN
    AND A.INV_ITEM_ID = F.INV_ITEM_ID
    AND F.PO_STATUS <> 'C'
    AND F.BUSINESS_UNIT = G.BUSINESS_UNIT
    AND F.PO_ID = G.PO_ID
    AND F.LINE_NBR = G.LINE_NBR
    AND F.SCHED_NBR = G.SCHED_NBR
    AND F.VENDOR_SETID = H.SETID
    AND F.VENDOR_ID = H.VENDOR_ID
    AND ( F.QTY_PO_STD
    - NVL(xx_psft_to_ihub_pkg_rj.get_rcv_qty_supplies_po (F.BUSINESS_UNIT, F.PO_ID, F.LINE_NBR, F.SCHED_NBR, F.DISTRIB_LINE_NUM),0)
    + NVL(xx_psft_to_ihub_pkg_rj.get_rtv_qty_supplies_po (F.BUSINESS_UNIT, F.PO_ID, F.LINE_NBR, F.SCHED_NBR, F.DISTRIB_LINE_NUM),0)
    ) > 0

    Yes here is the execution plan for select statement I have already removed distict from the select. Also I am using oracle databases 11.2.0.2
    Execution Plan
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Inst |IN-OUT|
    | 0 | SELECT STATEMENT | | 1 | 287 | 2041 (2)| | |
    |* 1 | COUNT STOPKEY | | | | | | |
    |* 2 | FILTER | | | | | | |
    |* 3 | FILTER | | 3 | 27 | 1 (0)| | |
    | 4 | REMOTE | | | | | FSUPG~ | R->S |
    | 5 | REMOTE | PS_SET_CNTRL_REC | 1 | 25 | 3 (0)| FSUPG~ | R->S |
    Predicate Information (identified by operation id):
    1 - filter(ROWNUM<=3)
    2 - filter("C"."SETID"= (SELECT "D"."SETID" FROM "D" WHERE
    "D"."RECNAME"='MASTER_ITEM_TBL' AND "D"."SETCNTRLVALUE"=:B1))
    3 - filter("F"."QTY_PO_STD"-NVL("XX_PSFT_TO_IHUB_PKG_RJ"."GET_RCV_QTY_SUPPLIES_
    PO"("F"."BUSINESS_UNIT","F"."PO_ID","F"."LINE_NBR","F"."SCHED_NBR","F"."DISTRIB_LI
    NE_NUM"),0)+NVL("XX_PSFT_TO_IHUB_PKG_RJ"."GET_RTV_QTY_SUPPLIES_PO"("F"."BUSINESS_U
    NIT","F"."PO_ID","F"."LINE_NBR","F"."SCHED_NBR","F"."DISTRIB_LINE_NUM"),0)>0)
    Remote SQL Information (identified by operation id):
    4 - SELECT "A1"."BU_GROUP","A1"."BUSINESS_UNIT","A2"."BUSINESS_UNIT","A2"."INV_
    ITEM_ID","A2"."PLANNED_BY","A3"."BUSINESS_UNIT","A3"."PO_ID","A3"."LINE_NBR","A3".
    "SCHED_NBR","A3"."DISTRIB_LINE_NUM","A3"."INV_ITEM_ID","A3"."UNIT_OF_MEASURE","A3"
    ."DUE_DT","A3"."FROZEN_FLG","A3"."QTY_PO_STD","A3"."BUSINESS_UNIT_IN","A3"."PO_STA
    TUS","A3"."PO_DT","A3"."VENDOR_SETID","A3"."VENDOR_ID","A3"."VNDR_LOC","A4"."SETID
    ","A4"."VENDOR_ID","A4"."NAME1","A5"."BUSINESS_UNIT","A5"."INV_ITEM_ID","A5"."ITM_
    STATUS_CURRENT","A6"."BUSINESS_UNIT","A6"."PO_ID","A6"."LINE_NBR","A6"."SCHED_NBR"
    ,"A6"."ORIG_PROM_DT","A7"."SETID","A7"."INV_ITEM_ID","A7"."ITM_STATUS_CURRENT"
    FROM "SYSADM"."PS_PL_GROUP_IN" "A1","SYSADM"."PS_PL_ITEM_ATTRIB"
    "A2","SYSADM"."PS_PL_PO_DIST_VW2" "A3","SYSADM"."PS_VENDOR"
    "A4","SYSADM"."PS_BU_ITEMS_INV" "A5","SYSADM"."PS_PO_LINE_SHIP"
    "A6","SYSADM"."PS_MASTER_ITEM_TBL" "A7" WHERE "A7"."ITM_STATUS_CURRENT"<'4' AND
    "A5"."INV_ITEM_ID"="A7"."INV_ITEM_ID" AND
    "A3"."BUSINESS_UNIT"="A6"."BUSINESS_UNIT" AND "A3"."PO_ID"="A6"."PO_ID" AND
    "A3"."LINE_NBR"="A6"."LINE_NBR" AND "A3"."SCHED_NBR"="A6"."SCHED_NBR" AND
    "A5"."ITM_STATUS_CURRENT"<'4' AND "A2"."BUSINESS_UNIT"="A5"."BUSINESS_UNIT" AND
    "A2"."INV_ITEM_ID"="A5"."INV_ITEM_ID" AND "A3"."VENDOR_SETID"="A4"."SETID" AND
    "A3"."VENDOR_ID"="A4"."VENDOR_ID" AND "A3"."PO_STATUS"<>'C' AND
    "A2"."INV_ITEM_ID"="A3"."INV_ITEM_ID" AND
    "A2"."BUSINESS_UNIT"="A3"."BUSINESS_UNIT_IN" AND "A2"."PLANNED_BY"<>'4' AND
    "A2"."BUSINESS_UNIT"="A1"."BUSINESS_UNIT" AND "A1"."BU_GROUP"='ASCP' (accessing
    'FSUPGCLINK.OII.OCEANEERING.COM' )
    5 - SELECT "SETCNTRLVALUE","RECNAME","SETID" FROM "SYSADM"."PS_SET_CNTRL_REC"
    "D" WHERE "RECNAME"='MASTER_ITEM_TBL' AND "SETCNTRLVALUE"=:1 (accessing
    'FSUPGCLINK.OII.OCEANEERING.COM' )
    Note
    - 'PLAN_TABLE' is old version
    Statistics
    89 recursive calls
    24 db block gets
    8 consistent gets
    0 physical reads
    0 redo size
    3164 bytes sent via SQL*Net to client
    524 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    3 rows processed
    SQL> SQL>
    SQL>

  • MS-Access query running very slow

    Hi,
    We've MS-Access application which was pointing to UDB. Now we migrated it to point Oracle DB 9.2. After migration some of the query is running very slow.
    These queries used to take less than 30 seconds in UDB now taking more than 5 Minutes in Oracle.
    some more obeservation :
    (1) Some of the queries using "HAVING" clause without any aggregate function. When I moved this condition to "WHERE" clause, performance improved a lot.
    But problem is that I can't suggest this solution to "USERS". They are creating query using "query wizard" in MS-Access and they started creating noise on this.
    (2) I tested same MDB in two different PCs and same query is returning records in 4 seconds in one system, is taking more than 10 minutes in other system.
    Since I'm new to MS-Access, I don't know what other information I need to provide here.
    Please help me out.

    I have seen the problem like this,too
    can i have you

  • Oracle interview questions;; query very slow

    Hai
    Most of time in interview they ask..
    WHAT IS THE STEPS U DO WHEN UR QUERY IS RUNNNING VERY SLOW..?
    i used to say
    1) first i will check for whether table is properly indexed or not
    2) next properly normalized or not
    interviewers are not fully satisfied with these answers..
    So kindly tell me more suggestion
    S

    Also when checking the execution plan, get the actual plan using DBMS_XPLAN.DISPLAY_CURSOR, rather than the predicted one (EXPLAIN PLAN FOR). If you use a configurable IDE such as SQL Developer of PL/SQL Developer it is worth taking the time to set this up in the session browser so that you can easily capture it while it's running. You might also look at the estimated vs actual cardinalities. While you're at it you could check v$session_longops, v$session_wait and (if you have the Diagnostic and Tuning packs licenced) v$active_session_history and the various dba_hist% views.
    You might try the SQL Tuning Advisor (DBMS_SQLTUNE) which generates profiles for SQL statements (requires ADVISOR system privilege to run a tuning task, and CREATE ANY SQL PROFILE to apply a profile).
    In 11g look at SQL Monitor.
    Tracing is all very well if you can get access to the tracefile in a reasonable timeframe, though in many sites (including my current one) it's just too much trouble unless you're a DBA.
    Edited by: William Robertson on Apr 18, 2011 11:40 PM
    Sorry Rob, should probably have replied to oraclehema rather than you.

  • Challenging Query working very slow

    Hi Guys
    my query is working very slow .. i think i am using old functions to fetch data .. is anybody can recommand changes into it to make it faster
    SELECT  a.Student_Updated,
            a.Course_Updated,
            b.Notes_Updated,
            a.School_ID,
            a.School_Code,
            a.School_Name,
            a.Course_Code,
            a.Course_Name,
            ass.ass_type  Assessment_Type,
            ass.ass_status Assessment_Status,
            ass.ass_work_due_date  Assessment_Date,
            ass.ass_result_achieved  Assessment_result,
            a.Last_Name,
            a.First_Name,
            a.Initials,
            a.Stud_ID,
            a.User_ID,
            a.Email,
            b.Code1,
            b.Code2,
            b.Code3,
            b.Code4,
            b.Code5,
            b.Code6,
            b.Code7,
            b.Code8,
            b.Code9,
            b.Code10,
            b.Code11,
            b.Code12,
            b.Code13,
            b.Code14,
            b.Code15,
            b.Code16,
            b.Code17,
            b.Code18,
            b.Code19,
            b.Code20,
            b.Code21,
            b.Code22,
            b.Code23,
            b.Code24,
            a.Cert_Status,
            a.Class_Status,
            b.Notes1,
            b.Notes2,
            b.Notes3,
            b.Notes4
    FROM  
        (SELECT s.s_ref                            Stud_ID,
         s.s_date_changed                    Student_Updated,
         max(sba.sba_date_changed)                Course_Updated,
         cc.cc_user_value_1                    School_ID,
         lv.lv_high_value                    School_Code,
         lv.lv_meaning                        School_Name,
         sba.sba_sb_ref                        Course_Code,
         sb.sb_name                          Course_Name,
         s.s_surname                        Last_Name,
         s.s_forename_1                        First_Name,
         substr(s.s_forename_2, 1, 1)                 Initials,
         s.s_vehicle_reg_no                    User_ID,
         decode(s.s_e_mail_address,
                 null, decode(s.s_vehicle_reg_no,
                            null, null, s.s_vehicle_reg_no||'@abdn.ac.uk'),
                s.s_e_mail_address||'@aberdeen.ac.uk')    Email,
         sba.sba_significance                    Cert_Status,
         sba.sba_status                        Class_Status
        FROM students s,
             study_block_associations sba,
             study_blocks sb,
             cost_centres cc,
             calendar_periods cp,
             local_values lv
        WHERE s.s_ref = sba.sba_s_ref
         AND sba.sba_sb_ref = sb.sb_ref
         AND sb.sb_cc_ref = cc.cc_ref
         AND cc.cc_user_value_1 = lv.lv_value(+)
         AND lv.lv_domain = 'CC USER VALUE 1'
         --    AND    nvl(s.s_disabilities, '99') not in ('0', '0T', '00', '97', '98', '99')
         AND length(sba.sba_sb_ref) = '6'
         AND instr('L|W', sba.sba_status) > 0
         AND sba.sba_type = 'E'
         AND sba.sba_calp_period_code = cp.calp_period_code
         AND calp_cal_ref = 'RYEAR'
         AND trunc(sysdate) BETWEEN calp_start_date AND calp_end_date
        GROUP BY
            s.s_ref,
            s.s_date_changed,
            sba.sba_sb_ref,
            sb.sb_name,
            cc.cc_user_value_1,
            lv.lv_high_value,
            lv.lv_meaning,
            s.s_surname,
            s.s_forename_1,
            substr(s.s_forename_2, 1, 1),
            s.s_disabilities,
            s.s_vehicle_reg_no,
            decode(    s.s_e_mail_address,
                null,    decode(    s.s_vehicle_reg_no,
                        null,    null,
                            s.s_vehicle_reg_no||'@abdn.ac.uk'),
                    s.s_e_mail_address||'@aberdeen.ac.uk'),
            sba.sba_significance,
            sba.sba_status
        ) a,
        (SELECT    sle.sle_s_ref                        Stud_ID,
         max(sle.sle_date_created)                Notes_Updated,
         sum(case when sle.sle_le_ref = '01' then 1 else 0 end)    Code1,
         sum(case when sle.sle_le_ref = '02' then 1 else 0 end)    Code2,
         sum(case when sle.sle_le_ref = '03' then 1 else 0 end)    Code3,
         sum(case when sle.sle_le_ref = '04' then 1 else 0 end)    Code4,
         sum(case when sle.sle_le_ref = '05' then 1 else 0 end)    Code5,
         sum(case when sle.sle_le_ref = '06' then 1 else 0 end)    Code6,
         sum(case when sle.sle_le_ref = '07' then 1 else 0 end)    Code7,
         sum(case when sle.sle_le_ref = '08' then 1 else 0 end)    Code8,
         sum(case when sle.sle_le_ref = '09' then 1 else 0 end)    Code9,
         sum(case when sle.sle_le_ref = '10' then 1 else 0 end)    Code10,
         sum(case when sle.sle_le_ref = '11' then 1 else 0 end)    Code11,
         sum(case when sle.sle_le_ref = '12' then 1 else 0 end)    Code12,
         sum(case when sle.sle_le_ref = '13' then 1 else 0 end)    Code13,
         sum(case when sle.sle_le_ref = '14' then 1 else 0 end)    Code14,
         sum(case when sle.sle_le_ref = '15' then 1 else 0 end)    Code15,
         sum(case when sle.sle_le_ref = '16' then 1 else 0 end)    Code16,
         sum(case when sle.sle_le_ref = '17' then 1 else 0 end)    Code17,
         sum(case when sle.sle_le_ref = '18' then 1 else 0 end)    Code18,
         sum(case when sle.sle_le_ref = '19' then 1 else 0 end)    Code19,
         sum(case when sle.sle_le_ref = '20' then 1 else 0 end)    Code20,
         sum(case when sle.sle_le_ref = '21' then 1 else 0 end)    Code21,
         sum(case when sle.sle_le_ref = '22' then 1 else 0 end)    Code22,
         sum(case when sle.sle_le_ref = '23' then 1 else 0 end)    Code23,
         sum(case when sle.sle_le_ref = '24' then 1 else 0 end)    Code24,
         sle4.Notes1,
         sle4.Notes2,
         sle4.Notes3,
         sle4.Notes4
        FROM abdn_student_le_provisions sle,
            (SELECT    sle3.sle_s_ref,
                    max(case when sle3.ord = 1 then sle3.sle_description end) Notes1,
                    max(case when sle3.ord = 2 then sle3.sle_description end) Notes2,
                    max(case when sle3.ord = 3 then sle3.sle_description end) Notes3,
                    max(case when sle3.ord = 4 then sle3.sle_description end) Notes4
              FROM (SELECT    row_number() over (partition by sle2.sle_s_ref order by sle2.sle_s_ref) as ord,
                            sle2.sle_s_ref,
                            sle2.sle_description
                    FROM abdn_student_le_provisions sle2
                    WHERE sle2.sle_description is not null
                    ) sle3
             GROUP BY
                sle3.sle_s_ref
            ) sle4
        WHERE    sle.sle_s_ref = sle4.sle_s_ref(+)
        GROUP BY
            sle.sle_s_ref,
            sle4.Notes1,
            sle4.Notes2,
            sle4.Notes3,
            sle4.Notes4
        ) b,
        assessments ass
    WHERE a.Stud_ID = b.Stud_ID
    AND a.Stud_ID = ass.ass_s_ref(+)
    AND a.Course_Code = ass.ass_sb_ref(+);

    Thread: HOW TO: Post a SQL statement tuning request - template posting
    HOW TO: Post a SQL statement tuning request - template posting

  • Oracle query running very slow

    Hi,
    We've MS-Access application which was pointing to UDB. Now we migrated it to point Oracle DB 9.2. After migration some of the query is running very slow.
    These queries used to take less than 30 seconds in UDB now taking more than 5 Minutes in Oracle.
    some more obeservation :
    (1) Some of the queries using "HAVING" clause without any aggregate function. When I moved this condition to "WHERE" clause, performance improved a lot.
    But problem is that I can't suggest this solution to "USERS". They are creating query using "query wizard" in MS-Access and they started creating noise on this.
    (2) I tested same MDB in two different PCs and same query is returning records in 4 seconds in one system, is taking more than 10 minutes in other system.
    Since I'm new to MS-Access, I don't know what other information I need to provide here.
    Please help me out.

    ms wrote:
    Hi All
    I am using Oracle 11g . My table contains 10-12 lac rows.Do not use the word lac: it is common in the Indian sub-continent but not known much outside of
    there because it is not standard English.
    >
    1) what is the difference between a index on one column and an index of number of columns ( i.e composite index). The obvious answer of one contains only one column and the other contains more than one.
    2) For what columns in a where clause should index be created ( single columns index or composite index ).Depends
    3) Also can u suggest how to improve the perfomane of thsi query?Please read: SQL and PL/SQL FAQ
    which tells you how to ask a performance related question

  • Report region runs very slow, but its sql runs fast

    We have a page with a report region Type :SQL Query (plsq function body returning sql query) which runs very slow, pegging the tach on our db box for almost a minute before returning report rows. However, if we run the generated sql from sql plus, it returns all the rows in under 10 seconds with nary a blip on the box. Any idas how what could be causing this or how to debug?
    Thanks,
    Steve

    OK, here is the bad boy, shortly after our code that returns the data.
    declare
    rc__ number;
    simple_list__ owa_util.vc_arr;
    complex_list__ owa_util.vc_arr;
    begin
    owa.init_cgi_env(:n__,:nm__,:v__);
    htp.HTBUF_LEN := 63;
    null;
    null;
    simple_list__(1) := 'sys.%';
    simple_list__(2) := 'dbms\_%';
    simple_list__(3) := 'utl\_%';
    simple_list__(4) := 'owa\_%';
    simple_list__(5) := 'owa.%';
    simple_list__(6) := 'htp.%';
    simple_list__(7) := 'htf.%';
    simple_list__(8) := 'wpg_docload.%';
    if ((owa_match.match_pattern(p_string =>
    'f'
    /* */,p_simple_pattern =>
    simple_list__
    ,p_complex_pattern =>
    complex_list__
    ,p_use_special_chars =>
    false)))
    then
    rc__ := 2;
    else
    null;
    null;
    f(p=>:p);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    end if;
    :rc__ := rc__;
    end;
    call count cpu elapsed disk query current rows
    Parse 0 0.00 0.00 0 0 0 0
    Execute 1 25.53 26.59 4492 20992 60 1
    Fetch 0 0.00 0.00 0 0 0 0
    total 1 25.53 26.59 4492 20992 60 1

  • My 2009 Macbook Pro is running very slow

    After installing Maverick on my 2009 Macbrook Pro initially the result was very slow, practically unresponsive and unusable. After investigating many reports of similar problems I have not found anything to rectify the problem. Have downloaded and reinstalled Maverick - have tried many suggestions but whilst currently marginally usable I am getting to the end of my patience and am very disapponted that it would not seem that Apple have sorted this problem out with an answer or even an apology. Please, please Apple sort yourseves out - you will cause yourselves iripairable damage if you continue to ignore the many problems that are being reported - this is my question to you - when and if will you sort this out please?

    Thank you for your reply and help - information below:-
    Hardware Information:
              MacBook Pro (13-inch, Mid 2009)
              MacBook Pro - model: MacBookPro5,5
              1 2.26 GHz Intel Core 2 Duo CPU: 2 cores
              2 GB RAM
    Video Information:
              NVIDIA GeForce 9400M - VRAM: 256 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 1:31:19
    Disk Information:
              Hitachi HTS545016B9SA02 disk0 : (160.04 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) /: 124.98 GB (37.76 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
                        BOOTCAMP (disk0s4) /Volumes/BOOTCAMP: 34.2 GB (1.38 GB free)
              MATSHITADVD-R   UJ-868 
    USB Information:
              Seagate  Desktop          2 TB
                        EFI (disk1s1) <not mounted>: 209.7 MB
                        SEAGATE 2TB MAC (disk1s2) /Volumes/SEAGATE 2TB MAC: 2 TB (863.85 GB free)
              Apple Inc. Built-in iSight
              Apple Internal Memory Card Reader
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
              Apple Inc. iPhone
              Apple Inc. iPad
              Logitech USB Receiver
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
    Thunderbolt Information:
    Kernel Extensions:
              com.avg.Antivirus.OnAccess.kext          (14.0)
              net.kromtech.kext.Firewall          (2.3.5 - SDK 10.8)
              com.livedrive.filesystems.livedrivefs          (2.1.14)
              com.trusteer.driver.gakl_driver_2          (1)
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist 3rd-Party support link
              [loaded] com.avg.Antivirus.infosd.plist 3rd-Party support link
              [loaded] com.avg.Antivirus.services.plist 3rd-Party support link
              [loaded] com.google.keystone.daemon.plist 3rd-Party support link
              [loaded] com.trusteer.rooks.rooksd.plist 3rd-Party support link
              [loaded] com.zeobit.MacKeeper.AntiVirus.plist 3rd-Party support link
              [loaded] com.zeobit.MacKeeper.plugin.AntiTheft.daemon.plist 3rd-Party support link
    Launch Agents:
              [loaded] com.avg.Antivirus.gui.plist 3rd-Party support link
              [loaded] com.google.keystone.agent.plist 3rd-Party support link
              [loaded] com.lexmark.lexnetlaunchd.plist 3rd-Party support link
              [loaded] com.trusteer.rapport.rapportd.plist 3rd-Party support link
              [loaded] jp.buffalo.NASPower.plist 3rd-Party support link
              [not loaded] jp.buffalo.NASPower_pla.plist 3rd-Party support link
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [failed] com.apple.SafariBookmarksSyncer.plist 3rd-Party support link
              [loaded] com.nchsoftware.expressinvoice.agent.plist 3rd-Party support link
              [loaded] com.zeobit.MacKeeper.Helper.plist 3rd-Party support link
              [loaded] uk.co.markallan.clamxav.clamscan.plist 3rd-Party support link
              [loaded] uk.co.markallan.clamxav.freshclam.plist 3rd-Party support link
    User Login Items:
              iTunesHelper
              Dropbox
              AutoLaunchApp
              LivedriveCore
              RealPlayer Downloader Agent
              VMware Fusion Start Menu
    Internet Plug-ins:
              Google Earth Web Plug-in: Version: 6.0 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              Flip4Mac WMV Plugin: Version: 3.2.0.16   - SDK 10.8 3rd-Party support link
              npBTEmailConfig: Version: 1.0 3rd-Party support link
              CouponPrinter-FireFox: Version: Version 1.0.11X
              AdobePDFViewerNPAPI: Version: 10.1.8 3rd-Party support link
              FlashPlayer-10.6: Version: 11.9.900.170 - SDK 10.6 3rd-Party support link
              RealPlayer Plugin: Version: (null) 3rd-Party support link
              Silverlight: Version: 5.1.10411.0 - SDK 10.6 3rd-Party support link
              Flash Player: Version: 11.9.900.170 - SDK 10.6 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              iPhotoPhotocast: Version: 7.0
              AdobePDFViewer: Version: 10.1.8 3rd-Party support link
              Scorch: Version: 6.2.0 3rd-Party support link
              JavaAppletPlugin: Version: 14.8.0 - SDK 10.9 Outdated! Update
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    User Internet Plug-ins:
              Picasa: Version: 1.0 3rd-Party support link
    3rd Party Preference Panes:
              Flash Player  3rd-Party support link
              Flip4Mac WMV  3rd-Party support link
              MacFUSE  3rd-Party support link
              Paragon NTFS for Mac ® OS X  3rd-Party support link
              TaskBoard  3rd-Party support link
              Trusteer Endpoint Protection  3rd-Party support link
    Bad Fonts:
              None
    Old Applications:
              SLLauncher:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
              Wondershare Helper Compact:          Version: 2.2.6.4 - SDK 10.5 3rd-Party support link
                        /Users/rogerpalmer/Library/Application Support/Helper/Wondershare Helper Compact.app
              Camptune X:          Version: 10.1 - SDK 10.5 3rd-Party support link
              Picasa:          Version: 3.9.16 - SDK 10.4 3rd-Party support link
              Windows Server Launchpad:          Version: 1.0 - SDK 10.5 3rd-Party support link
    Time Machine:
              Skip System Files: NO
              Mobile backups: ON
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 116.40 GB Disk used: 81.23 GB
              Destinations:
                        SEAGATE 2TB MAC [Local] (Last used)
                        Total size: 2 
                        Total number of backups: 26
                        Oldest backup: 2013-12-28 13:51:44 +0000
                        Last backup: 2014-01-05 07:31:48 +0000
                        Size of backup disk: Excellent
                                  Backup size 2  > (Disk size 116.40 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   4%          WindowServer
                   3%          backupd
                   1%          EtreCheck
                   1%          RealPlayer Downloader Agent
                   0%          AVG
    Top Processes by Memory:
              213 MB          com.apple.WebKit.WebContent
              117 MB          Safari
              43 MB          Finder
              41 MB          Messages
              35 MB          AVG
    Virtual Memory Information:
              41 MB          Free RAM
              579 MB          Active RAM
              540 MB          Inactive RAM
              285 MB          Wired RAM
              945 MB          Page-ins
              97 MB          Page-outs

Maybe you are looking for

  • Unable to connect to itunes

    Hi my son cant seem to connect to itunes on his ipod although yesterday it was working a few days ago. Any advise? We downloaded a new game onto it yesterday through itunes on the computer but with it being unable to connect to itunes it wont load up

  • Passing parameters through Single JCo to different systems

    I have created a web dynpro application and integrated into a portal, which access R/3 using a JCo destination and retrieves the data using a BAPI. But I want to integrate the same application into another portal, which would access the different R/3

  • Changing background.

    Is there a way to change the background without going into system preferences? I believe in windows you can right click and set an image as the desktop....is something similar possible on the mac? am I overlooking the obvious? -justin

  • Payload Searching

    hi, this question is with reference to Alex's blog on payload searching. https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3196. [original link is broken] [original link is broken] [original link is broken] I have implemented this and my code sea

  • I need help finding a version of Adobe Flash player to run on my PowerMac G5.  It is a Power PC, not Intel

    I need a version of Adobe Flash Player to work on my PowerPC.  Adobe has not been able to help me at all.