SQL performance drops after 20 mins

Hello,
I am using Oracle Version 9.2.0.5
I have an SQL query that starts off fast but the performance drops after running for 20 mins. It continues to drop till a point where it becomes painfully slow.
The query is as attached below:
SELECT      /*+ INDEX (abe ASR_I_BID_PRD_TOD_5FAX)
INDEX (aae ASR_I_AE_RC_BR)
INDEX (ab ASR_UK_BASES)
INDEX (aaac ASR_I_AFAC_SP)
+*/aae.f8_code
||','||     aae.sector
||','||     aae.ouc
||','||     aae.rule_type
||','||     aae.base_ref
||','||     aae.prodlist_ref
||','|| aaac.L101
||','|| aaac.L201
||','|| aaac.L301
||','|| aaac.L401
||','|| aaac.L501
||','|| aaac.L601
||','|| aaac.L701
||','|| aaac.L801
||','|| aaac.L802
||','|| aaac.L830
||','|| aaac.L850
||','|| aaac.L870
||','|| aaac.L901
||','|| aaac.L1001
||','||     LTRIM(TO_CHAR((aae.disaggregated_amount*abe.percentage*aaac.chain_perc)/10000,'999999999999999.99'))
FROM asr_owner.asr_account_entries aae
, asr_owner.asr_base_elements_5fax abe
, asr_ff_audit_chains aaac
, asr_owner.asr_bases ab
WHERE aae.run_code = '5fax'
AND ab.run_code = aae.run_code
AND ab.base_type = aaac.base_type
AND ab.base_id = abe.base_id
AND ab.base_ref = aae.base_ref
AND aaac.base_type = 'L'
AND aaac.business <> 'R'
AND aae.trans_type IN ('A','C','D')
AND abe.base_id = aae.base_id
AND 100*(abe.exhaust_level)+abe.exhaust_sub_level = 101
AND aaac.start_prod = abe.product
AND ABS((aae.disaggregated_amount*abe.percentage*aaac.chain_perc)/10000) >= 0.01
It has huge number of records. I have checked all join conditions and they are all fine.
asr_owner.asr_account_entries - 3.6 millions rows
asr_owner.asr_base_elements_5fax - 1.8 million rows
asr_ff_audit_chains - 5.8 million rows
asr_owner.asr_bases - 0.5 million rows
The autotrace and plan are as follows
Statistics
0 recursive calls
0 db block gets
5264 consistent gets
3522 physical reads
0 redo size
525 bytes sent via SQL*Net to client
456 bytes received via SQL*Net from client
1 SQL*Net roundtrips to/from client
5 sorts (memory)
0 sorts (disk)
0 rows processed
PLAN_TABLE_OUTPUT
| Id | Operation | Name | Rows | Bytes | Cost |
| 0 | SELECT STATEMENT | | 83 | 13529 | 12465 |
| 1 | TABLE ACCESS BY INDEX ROWID | ASR_FF_AUDIT_CHAINS | 83 | 6225 | 617 |
| 2 | NESTED LOOPS | | 83 | 13529 | 12465 |
| 3 | NESTED LOOPS | | 1 | 88 | 11848 |
| 4 | NESTED LOOPS | | 2201 | 113K| 3044 |
| 5 | TABLE ACCESS BY INDEX ROWID| ASR_BASES | 774 | 13158 | 722 |
| 6 | INDEX FULL SCAN | ASR_UK_BASES | 104K| | 104 |
| 7 | TABLE ACCESS BY INDEX ROWID| ASR_ACCOUNT_ENTRIES | 3 | 108 | 3 |
| 8 | INDEX RANGE SCAN | ASR_I_AE_RC_BR | 8 | | 1 |
| 9 | TABLE ACCESS BY INDEX ROWID | ASR_BASE_ELEMENTS_5FAX | 1 | 35 | 4 |
| 10 | INDEX RANGE SCAN | ASR_I_BID_PRD_TOD_5FAX | 1 | | 3 |
| 11 | INDEX RANGE SCAN | ASR_I_AFAC_SP | 8241 | | 9 |
Note: cpu costing is off, PLAN_TABLE' is old version
19 rows selected.
I have also tried without the hints and the plan looks like
| Id | Operation | Name | Rows | Bytes | Cost |
| 0 | SELECT STATEMENT | | 83 | 13529 | 679 |
| 1 | TABLE ACCESS BY INDEX ROWID| ASR_FF_AUDIT_CHAINS | 83 | 6225 | 617 |
| 2 | NESTED LOOPS | | 83 | 13529 | 679 |
| 3 | HASH JOIN | | 1 | 88 | 370 |
| 4 | HASH JOIN | | 2201 | 113K| 208 |
| 5 | TABLE ACCESS FULL | ASR_BASES | 774 | 13158 | 16 |
| 6 | TABLE ACCESS FULL | ASR_ACCOUNT_ENTRIES | 12125 | 426K| 191 |
| 7 | TABLE ACCESS FULL | ASR_BASE_ELEMENTS_5FAX | 18325 | 626K| 161 |
| 8 | INDEX RANGE SCAN | ASR_I_AFAC_SP | 8241 | | 9 |
Note: cpu costing is off, PLAN_TABLE' is old version
16 rows selected.
I have tried increasing the hash_area_size parameter to 20MB (it is currently 10MB).
I have tried setting the tuning parameters like optimizer_index_cost_adj but to no success.
Could you please help.

Thanks a lot for all the help.
Here is another query that is running quite slow. Any help on this might be helpful
EXPLAIN PLAN SET statement_id = 'auditextract' FOR
SELECT /*+NO_INDEX(aaac)
       NO_INDEX(aae)
       NO_INDEX(abe)
       NO_INDEX(ab)
       NO_INDEX(agp)+*/
     aae.run_code
,     aae.f8_code
,     aae.sector
,     aae.ouc
,     aae.rule_type
,     aae.base_ref
,     aae.prodlist_ref
,     aae.trans_type
,     aaac.base_type
,DECODE(NVL(aaac.exhaust_chain,'NULL'),'NULL',',',NULL)||aaac.exhaust_chain||
  DECODE(NVL(aaac.exhaust_chain,'NULL'),'NULL',NULL,',')||LTRIM(RTRIM(aaac.final_prod))||
            RPAD(',',14-DECODE(aaac.final_level,1001,14,901,13,870,12,850,11,830,10,802,9,801,8,701,7,601,6,501,5,401,4,301,3,201,2,101,1),',') exhaust_chain,
     aaac.final_level     ,
     aaac.business ,
     L101,
     L101_TOD,
     L201,
     L201_TOD,
     L301,
     L301_TOD,
     L401,
     L401_TOD,
     L501,
     L501_TOD,
     L601,
     L601_TOD,
     L701,
     L701_TOD,
     L801,
     L801_TOD,
     L802,
     L802_TOD,
     L830,
     L830_TOD,
     L850,
     L850_TOD,
     L870,
     L870_TOD,
     L901,
     L901_TOD,
     L1001,
     L1001_TOD,
     (aae.disaggregated_amount*abe.percentage*aaac.chain_perc)/10000 money
FROM   asr_owner.asr_account_entries aae
,      asr_owner.asr_base_elements_5fax abe
,      asr_owner.asr_bases ab
,      ASR_FF_AUDIT_CHAINS aaac
WHERE  aae.run_code    = '5fax'
AND    ab.run_code = aae.run_code
AND    abe.run_code = ab.run_code
AND    ab.base_type = aaac.base_type
AND    ab.base_id = abe.base_id
AND    aaac.base_type = 'L'
AND    aaac.business = 'R'
AND    ab.base_ref = aae.base_ref
AND    aae.trans_type IN ('A','C','D','G','J')
AND    abe.base_id     = aae.base_id
AND    abe.exhaust_level = 1
AND    abe.exhaust_sub_level = 1
AND    aaac.start_prod = abe.product
AND    NOT EXISTS (SELECT 1
                    FROM asr_group_prods agp
                    WHERE agp.product_group IN ('SW500','SR500','G176')
                    AND  (aaac.L101 =  agp.product OR
                              aaac.L201 =  agp.product OR
                                 aaac.L301 =  agp.product OR
                                 aaac.L401 =  agp.product OR
                                 aaac.L501 =  agp.product OR
                                 aaac.L601 =  agp.product OR
                                 aaac.L701 =  agp.product OR
                                 aaac.L801 =  agp.product OR
                                 aaac.L802 =  agp.product OR
                                 aaac.L830 =  agp.product OR
                                 aaac.L850 =  agp.product OR
                                 aaac.L870 =  agp.product OR
                                 aaac.L901 =  agp.product OR
                                 aaac.L1001 =  agp.product))
AND    abs((aae.disaggregated_amount*abe.percentage*aaac.chain_perc)) >= 100
PLAN_TABLE_OUTPUT
| Id  | Operation             |  Name                   | Rows  | Bytes | Cost  |
|   0 | SELECT STATEMENT      |                         |   571 |   112K|  5586 |
|*  1 |  FILTER               |                         |       |       |       |
|*  2 |   HASH JOIN           |                         |   571 |   112K|  5586 |
|*  3 |    HASH JOIN          |                         |    53 |  5406 |   370 |
|*  4 |     HASH JOIN         |                         |  2974 |   177K|   178 |
|*  5 |      TABLE ACCESS FULL| ASR_BASES               |   770 | 15400 |    16 |
|*  6 |      TABLE ACCESS FULL| ASR_BASE_ELEMENTS_5FAX  | 26178 |  1048K|   161 |
|*  7 |     TABLE ACCESS FULL | ASR_ACCOUNT_ENTRIES     | 17739 |   710K|   191 |
|*  8 |    TABLE ACCESS FULL  | ASR_FF_AUDIT_CHAINS     |   126K|    12M|  5215 |
|*  9 |   TABLE ACCESS FULL   | ASR_GROUP_PRODS         |     1 |    10 |     2 |
Predicate Information (identified by operation id):
   1 - filter( NOT EXISTS (SELECT /*+ */ 0 FROM "ASR_GROUP_PRODS" "AGP" WHERE
              ("AGP"."PRODUCT_GROUP"='G176' OR "AGP"."PRODUCT_GROUP"='SR500' OR
              "AGP"."PRODUCT_GROUP"='SW500') AND ("AGP"."PRODUCT"=:B1 OR "AGP"."PRODUCT"=:B2
              OR "AGP"."PRODUCT"=:B3 OR "AGP"."PRODUCT"=:B4 OR "AGP"."PRODUCT"=:B5 OR
              "AGP"."PRODUCT"=:B6 OR "AGP"."PRODUCT"=:B7 OR "AGP"."PRODUCT"=:B8 OR
              "AGP"."PRODUCT"=:B9 OR "AGP"."PRODUCT"=:B10 OR "AGP"."PRODUCT"=:B11 OR
              "AGP"."PRODUCT"=:B12 OR "AGP"."PRODUCT"=:B13 OR "AGP"."PRODUCT"=:B14)))
   2 - access("SYS_ALIAS_14"."START_PROD"="ABE"."PRODUCT")
       filter(ABS("AAE"."DISAGGREGATED_AMOUNT"*"ABE"."PERCENTAGE"*"SYS_ALIAS_14".
              "CHAIN_PERC")>=100)
   3 - access("AB"."BASE_REF"="AAE"."BASE_REF" AND
              "ABE"."BASE_ID"="AAE"."BASE_ID")
   4 - access("AB"."BASE_ID"="ABE"."BASE_ID")
   5 - filter("AB"."RUN_CODE"='5fax' AND "AB"."BASE_TYPE"='L')
   6 - filter("ABE"."RUN_CODE"='5fax' AND "ABE"."EXHAUST_LEVEL"=1 AND
              "ABE"."EXHAUST_SUB_LEVEL"=1)
   7 - filter("AAE"."RUN_CODE"='5fax' AND ("AAE"."TRANS_TYPE"='A' OR
              "AAE"."TRANS_TYPE"='C' OR "AAE"."TRANS_TYPE"='D' OR "AAE"."TRANS_TYPE"='G' OR
              "AAE"."TRANS_TYPE"='J'))
   8 - filter("SYS_ALIAS_14"."BASE_TYPE"='L' AND "SYS_ALIAS_14"."BUSINESS"='R')
   9 - filter(("AGP"."PRODUCT_GROUP"='G176' OR "AGP"."PRODUCT_GROUP"='SR500' OR
              "AGP"."PRODUCT_GROUP"='SW500') AND ("AGP"."PRODUCT"=:B1 OR "AGP"."PRODUCT"=:B2
              OR "AGP"."PRODUCT"=:B3 OR "AGP"."PRODUCT"=:B4 OR "AGP"."PRODUCT"=:B5 OR
              "AGP"."PRODUCT"=:B6 OR "AGP"."PRODUCT"=:B7 OR "AGP"."PRODUCT"=:B8 OR
              "AGP"."PRODUCT"=:B9 OR "AGP"."PRODUCT"=:B10 OR "AGP"."PRODUCT"=:B11 OR
              "AGP"."PRODUCT"=:B12 OR "AGP"."PRODUCT"=:B13 OR "AGP"."PRODUCT"=:B14))
Note: cpu costing is off
47 rows selected.

Similar Messages

  • DB performance drops after DB bounce

    Hello,
    In one of our Production databases the Performance of Jobs suddenly drops after Database restart.
    I suspect the SQL execution plan for 1 or few SQL's in the JOB changes after restart.
    What all factors can cause an SQL Execution plan to change ?
    How do I determine the cause ? [any trace or dumping thru ORADEBUG. will it help ?
    Thanks in advance for yur help.
    Regards,
    Valli                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    user4566776 wrote:
    Hello,
    In one of our Production databases the Performance of Jobs suddenly drops after Database restart.
    I suspect the SQL execution plan for 1 or few SQL's in the JOB changes after restart.Why suspect it when you can prove/disprove it? It would be very simple. Take an explain plan on your targeted queries when they are running good. Bounce the database and take another explain plan immediately after it comes up.
    >
    What all factors can cause an SQL Execution plan to change ?
    How do I determine the cause ? [any trace or dumping thru ORADEBUG. will it help ?
    Thanks in advance for yur help.
    Regards,
    Valli
    That being said, I strongly suspect what you are seeing is the result of the buffer cache being empty when the database first starts.  Thus, for a while after restart, all queries will result in physical reads, whereas once you get a 'normal' working set in the buffer cache, a good percentage of reads will be logical instead of physical.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Performance drop after new hardrive,

    the performance dropped drasticly after a I superdupered yje old Hardrive to the new disc.
    not only in Pro logic but also in Ableton Live....?
    any ideas....
    thx Daniel

    What I meant was that many hard drives come formatted for Windows and need to be reformatted for Apple machines, but you've certainly found the answer in your drive's speed.

  • Discrete graphics card performance drop after overheating

    Recently I played Amnesia: The Dark Descent on my pc while overclocking slightly using Sapphire TRIXX. I changed GPU clock from 750 to 84x and memory clock from 900 to 10xx. During a cinematic the com crashed, ctrl at del failed to load up but sound was still coming out. I left it like this for2-5 min before force shutdown. When I turned on my laptop again n tried to play games there was a huge performance drop. Games running at 60 fps turned to 20 plus when using dedicated graphics card only ( I disabled dynamic mode n used fixed mode while playing amnesia also, which means I was purely using the dedicated graphics card.)
    My laptop is a hp dm4 3005tx Beats edition, with Intel I5 2.5GHz processor and 8.00 gig ram. I also disabled paging file on my laptop btw, regretting this .
    can some1 tell me hw to fix.this problem or can I replace my discrete graphics card? Because my laptop has Radeon hd 7470m and Intel hd graphics

    The graphics card is soldered on so no replacement. I would do a wipe and reload of the OS and stop overclocking laptop video cards. They are too sensitive to heat and other issues. You are asking for trouble, and may have already found it. At a minimum run DriverCleaner and remove the video driver until you get back to a low-res screen generic vga hardware and then reinstall the best driver you can find.

  • Wifi performance drops after connecting dualshock 3 via bluetooth

    As the title says,  when i sync my dualshock 3 control via bluetooth to my sgp321, wifi performance drops from 50 mbps to 8 mbps or less.... 
    I've tried all the common "solutions"  given,  from pccompanion restoring to put the router in the fridge with a potato nailed on the wifi antenna during a week, starting on Halloweens night... 
    Could i have a sony expertise answering about this issue??? 
    Regards. 

    Could it be that you have your WiFi and Bluetooth in same frequency band? Any chance you can try WiFi on the 802.11n band? or try changing channels of your WiFi router? I don't think you can change your Bluetooth. Frequencies... I believe WiFi on "n" operates at 5 ghz as opposed to bluetooth operating in 2.4 ghz band... that way less chance of interference

  • Macbook pro mid 2012 no retina performance drop after efi

    Hi, mi macbook pro mid 2012 no retina after efi update the performance are too slow, thats is the same problem with retina, please fix it, in osx mountain lyon the aplications that used every daywith video is poor, in bootcamp with games is the same problem, the cpu clock drops from3.3 ghz to 1.2 ghz or more. Waiting for a mew efi update bescause my mac is the same that a macbook air

    No Apple hasn't officially stated anything about this issue. After I updated to EFI Update 2.0 I noticed the issues and started doing my research and found people in the Macrumors forums having the same problems and eventually I was reading that users that didn't update yet weren't seeing the update in their updates meaning Apple pulled the update from the servers. Other users reported after calling Applecare that they were aware of the issue.

  • SQL Performance Issues after migrating to 10.2.0.3 from 9i

    Hi,
    We recently migrated our database from 9i (9.2.0.8) to 10.2.0.3 (Test Environment), we have Windows 32 bit server on RAC+ASM, we have noticed several of our SQL which ran prettry efficiently in 9i are just taking hours to complete. I opened a SR with Oracle support and it is still WIP, but I would like to ask if anyone has similar kind of experience and what they did to resolve it ? Any feedback is appreciated.
    Regards
    Mansoor

    The first thing to do would be to take a SQL Trace of the same SQL from both 9i and 10g installations and compare the results. That should give you the clue as to where to look for.
    Also, it is always recommended to gather the statistics after an upgrade in major version. I hope it is done already.

  • Performance drop after CPU upgrade.

    Hias,
    I got a new CPU.
    I expected some performace gain icw the old one.
    However...it is a lot slower 
    I went from 64.000 to 47.000 in aquamark. Didn't record the values axeactly, but it seems like the CPU part is the one that is lagging behand.
    I did need to reinstall and upgrade vid.card drivers and sound card drivers and CPU drivers.
    Any1 have a clue the cause of this.

    Sorry, should have it a bit more clear:
    http://valid.x86-secret.com/show_oc?id=44047 <-old CPU (3200+ Winnie)
    http://valid.x86-secret.com/show_oc?id=68314 <-new CPU (Opeteron 148)
    I upgraded bios from 3.3 to 9.2.
    I didn't change any other HW, As u can see (follow the links) memory settings are about the same.

  • Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute then turn on wifi on iMac before it can reconnect. Need some help please.

    Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute, then turn on wifi on iMac before it can reconnect. Need some help please.
    Already gone through troubleshooting guide a zillion times. Thanks.

    This worked for me... A little time consuming but once you get rolling it goes GREAT... Thanks....
    I got my artwork and saved it to my Desktop
    Opened up Microsoft Paint and clicked on "File" and "Open" and found it to get it on the screen to resize it
    Clicked "resize" and a box for changing it opened up
    Checked the box "Pixels" and "Unchecked maintain aspect ratio"
    Set Horizontal for 640 and Vertical for 480
    Clicked on "OK" and went back to "File" and did a "Save As" and chose JPEG Picture
    It came up "File Already Existed" and clicked "OK" (really did not care about the original artwork I found because wrong size)
    Went to iTunes and on the movie right clicked on "Get Info", clicked on "Details", then "Artwork"
    Go to the little box on the top left that shows your old artwork and click on it to get the little blue border to appear around it and hit "Delete" to make it gone
    Click on "Add Artwork" and find it where you put the one from above on your Desktop and hit "Open" and OK and your new artwork is now there and all good.
    Sounds like a lot of steps to follow but after around 5 or so you will fly through it. This worked perfect on my iPhone 6 Plus and I have artwork on my Home Videos now.

  • Cme call drop after 3 min

    I have problem in cme9.1 with 8 fxo it was working fine, Before one week incoming call drop after 3 min this is configuration for fxo 
    supervisory disconnect dualtone mid-call
    no battery-reversal
    input gain -3
    output attenuation -3
    echo-cancel coverage 32
    cptone BE
    timeouts initial 5
    timeouts interdigit 3
    timeouts call-disconnect 3
    timeouts ringing 5
    timeouts wait-release 1
    timing hookflash-out 500
    timing guard-out 300
    timing sup-disconnect 50
    connection plar opx xxxx
    impedance complex2
    caller-id enable
    caller-id alerting line-reversal
    caller-id alerting dsp-pre-allocate

    Hello,
    Can you please post the show run and collect the below debug making one test call.
    debug voip ccapi inout
    debug vpm signal
    debug voip vtsp default
    debug voip vtsp session
    debug voip hpi all
    Regards
    Nadeem

  • Performance drop around 20% after adding an index

    Hi,
    I have an xml file (around 300 Kb, 3500 Nodes), the application internal works with dbxml handles but for display purposes I need xpaths for each node. First I was calculating them on request, but for requests with a lot of nodes it just takes too long (also memory usage was a big issue). In order to improve the performance I'm building a kind of metadata file after the import of the original document. The structure of this metadata file is:
    <data>
        <node idx:id="<berkeley dbxml node handle>">
            <xpath>...here some xpath...</xpath>
        </node>
    </data>That improved significantly the memory usage, but the response time is still a little bit below acceptable. Now I've thought, that adding an index to that metadata file would do it, BUT it doubled the response time. In the shell (with a much simpler query) the performance drop is around 20%.
    Query in the shell:
    doc("container.dbxml/test.xml.metadata")/data/node[@idx:id="BgIBBQAO"]/xpathQueryPlan without index:
    <XQuery>
      <DbXmlNav>
        <QueryPlanFunction result="document" container="container.dbxml">
          <OQPlan>D(node-metadata-equality-string,name:http://www.sleepycat.com/2002/dbxml,=,'test.xml.metadata',U)</OQPlan>
        </QueryPlanFunction>
        <DbXmlStep axis="child" name="data" nodeType="element"/>
        <DbXmlStep axis="child" name="node" nodeType="element"/>
        <DbXmlFilter>
          <DbXmlCompare name="equal" join="attribute" prefix="idx" uri="http://www.xyz.de/dnb/index" name="id" nodeType="attribute">
            <Sequence>
              <AnyAtomicTypeConstructor value="BgIBBQAO" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
            </Sequence>
          </DbXmlCompare>
        </DbXmlFilter>
        <DbXmlStep axis="child" name="xpath" nodeType="element"/>
      </DbXmlNav>
    </XQueryQueryPlan with index.
    <XQuery>
      <DbXmlNav>
        <QueryPlanFunction result="document" container="container.dbxml">
          <OQPlan>D(node-metadata-equality-string,name:http://www.sleepycat.com/2002/dbxml,=,'test.xml.metadata',V(node-attribute-equality-string,@id:http://www.xyz.de/dnb/index,=,'BgIBBQAO'))</OQPlan>
        </QueryPlanFunction>
        <DbXmlStep axis="child" name="data" nodeType="element"/>
        <DbXmlStep axis="child" name="node" nodeType="element"/>
        <DbXmlFilter>
          <DbXmlCompare name="equal" join="attribute" prefix="idx" uri="http://www.makrolog.ag/dnb/index" name="id" nodeType="attribute">
            <OQPlan>V(node-attribute-equality-string,@id:http://www.xyz.de/dnb/index,=,'BgIBBQAO')</OQPlan>
            <Sequence>
              <AnyAtomicTypeConstructor value="BgIBBQAO" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
            </Sequence>
          </DbXmlCompare>
        </DbXmlFilter>
        <DbXmlStep axis="child" name="xpath" nodeType="element"/>
      </DbXmlNav>
    </XQueryChanging query to
    doc("container.dbxml/test.xml.metadata")//node[@idx:id="BgIBBQAO"]/xpathslows down the query more than adding the index.
    In my application I've also tried setIndexNodes(true) on my container, the response time increased by factor 10... Am I doing something wrong?
    Please tell me, if you need more information.
    Best regards,
    Wadim
    Berkeley DBXML 2.3.10 (Patches 1-9, Patches 1-2 Berkeley DB)
    Java 1.6
    WinXP Pro SP2

    In my application, without fetching the metadata a query for 10 nodes takes 6ms, with fetching the metadata 6s (so around 1000 times slower).
    I could go down to 4.5s after changing:
    declare variable $METADATA := doc(concat($CONTAINER,'/',$DOCUMENT,'.metadata'))/data;and then in the function:
    distinct-values($METADATA/node[@idx:id = $id]/xpath)to:
    declare variable $METADATA := concat($CONTAINER,'/',$DOCUMENT,'.metadata');and in the function:
    doc($METADATA)/data/node[@idx:id = $id]/xpath I've also seen dbxml:lookup-attribute-index function, but calling ist like this
    dbxml:lookup-attribute-index($CONTAINER,"id")[1]results in:
    # An unexpected error has been detected by Java Runtime Environment:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1038d7d4, pid=976, tid=3664
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
    # Problematic frame:
    # C  [libdbxml23.dll+0x7d7d4]
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    ---------------  T H R E A D  ---------------
    Current thread (0x00386c00):  JavaThread "main" [_thread_in_native, id=3664]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000054
    Registers:
    EAX=0x00000000, EBX=0x103e7894, ECX=0xbcfa7f2b, EDX=0x65860002
    ESP=0x003eeaf4, EBP=0x1086580c, ESI=0x10732c70, EDI=0x00000000
    EIP=0x1038d7d4, EFLAGS=0x00010206
    Top of Stack: (sp=0x003eeaf4)
    0x003eeaf4:   bcfa7f7b 00000000 10736a18 003eec08
    0x003eeb04:   10747248 104d87d8 109110b4 120ace18
    0x003eeb14:   120ad55c 107c0ffc 10732c70 bcf812d7
    0x003eeb24:   10732c70 003eec3c 003eec9c 00000040
    0x003eeb34:   103e226c 00000000 00000000 00000000
    0x003eeb44:   00000000 00000000 10880c01 00000000
    0x003eeb54:   00000000 00000000 00000000 1089af01
    0x003eeb64:   10880c68 10747c20 00000001 00000000
    Instructions: (pc=0x1038d7d4)
    0x1038d7c4:   24 40 8b e8 e8 33 23 fc ff 8b 84 24 b0 00 00 00
    0x1038d7d4:   8b 4f 54 6a 00 8d 54 24 44 52 50 c7 84 24 b4 00
    Stack: [0x003a0000,0x003f0000),  sp=0x003eeaf4,  free space=314k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C  [libdbxml23.dll+0x7d7d4]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j  com.sleepycat.dbxml.dbxml_javaJNI.XmlResults_next__SWIG_0(J)J+0
    j  com.sleepycat.dbxml.XmlResults.next()Lcom/sleepycat/dbxml/XmlValue;+4
    j  de.makrolog.dbxml.DBXMLDao.processQuery(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+139
    j  de.dnb.edith.DBXMLIndicesTest.testIndices()V+183
    v  ~StubRoutines::call_stub
    j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
    j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
    j  junit.framework.TestCase.runTest()V+108
    j  junit.framework.TestCase.runBare()V+7
    j  junit.framework.TestResult$1.protect()V+4
    j  junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V+1
    j  junit.framework.TestResult.run(Ljunit/framework/TestCase;)V+18
    j  junit.framework.TestCase.run(Ljunit/framework/TestResult;)V+2
    j  junit.framework.TestSuite.runTest(Ljunit/framework/Test;Ljunit/framework/TestResult;)V+2
    j  junit.framework.TestSuite.run(Ljunit/framework/TestResult;)V+37
    j  org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(Lorg/eclipse/jdt/internal/junit/runner/TestExecution;)V+40
    j  org.eclipse.jdt.internal.junit.runner.TestExecution.run([Lorg/eclipse/jdt/internal/junit/runner/ITestReference;)V+17
    j  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests([Ljava/lang/String;Ljava/lang/String;Lorg/eclipse/jdt/internal/junit/runner/TestExecution;)V+61
    j  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Lorg/eclipse/jdt/internal/junit/runner/TestExecution;)V+10
    j  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run()V+70
    j  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main([Ljava/lang/String;)V+14
    v  ~StubRoutines::call_stub
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
      0x02d6c800 JavaThread "ReaderThread" [_thread_in_native, id=1080]
      0x029cdc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3816]
      0x029c9000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3152]
      0x029c8000 JavaThread "Attach Listener" daemon [_thread_blocked, id=2304]
      0x029c7000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3244]
      0x029c2000 JavaThread "Finalizer" daemon [_thread_blocked, id=2824]
      0x029bdc00 JavaThread "Reference Handler" daemon [_thread_blocked, id=2248]
    =>0x00386c00 JavaThread "main" [_thread_in_native, id=3664]
    Other Threads:
      0x029bc800 VMThread [id=1528]
      0x029d8400 WatcherThread [id=3836]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation   total 960K, used 268K [0x228e0000, 0x229e0000, 0x22dc0000)
      eden space 896K,  23% used [0x228e0000, 0x229138d0, 0x229c0000)
      from space 64K,  96% used [0x229c0000, 0x229cf7a0, 0x229d0000)
      to   space 64K,   0% used [0x229d0000, 0x229d0000, 0x229e0000)
    tenured generation   total 4096K, used 572K [0x22dc0000, 0x231c0000, 0x268e0000)
       the space 4096K,  13% used [0x22dc0000, 0x22e4f0a8, 0x22e4f200, 0x231c0000)
    compacting perm gen  total 12288K, used 1342K [0x268e0000, 0x274e0000, 0x2a8e0000)
       the space 12288K,  10% used [0x268e0000, 0x26a2f840, 0x26a2fa00, 0x274e0000)
        ro space 8192K,  62% used [0x2a8e0000, 0x2ade14a8, 0x2ade1600, 0x2b0e0000)
        rw space 12288K,  52% used [0x2b0e0000, 0x2b727278, 0x2b727400, 0x2bce0000)
    Dynamic libraries:
    0x00400000 - 0x00423000      C:\Programme\Java\jre1.6.0_03\bin\javaw.exe
    0x7c910000 - 0x7c9c7000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c907000      C:\WINDOWS\system32\kernel32.dll
    0x77da0000 - 0x77e4a000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e50000 - 0x77ee1000      C:\WINDOWS\system32\RPCRT4.dll
    0x7e360000 - 0x7e3f0000      C:\WINDOWS\system32\USER32.dll
    0x77ef0000 - 0x77f37000      C:\WINDOWS\system32\GDI32.dll
    0x76330000 - 0x7634d000      C:\WINDOWS\system32\IMM32.DLL
    0x7c340000 - 0x7c396000      C:\Programme\Java\jre1.6.0_03\bin\msvcr71.dll
    0x6d7c0000 - 0x6da0a000      C:\Programme\Java\jre1.6.0_03\bin\client\jvm.dll
    0x76af0000 - 0x76b1e000      C:\WINDOWS\system32\WINMM.dll
    0x6d310000 - 0x6d318000      C:\Programme\Java\jre1.6.0_03\bin\hpi.dll
    0x76bb0000 - 0x76bbb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d770000 - 0x6d77c000      C:\Programme\Java\jre1.6.0_03\bin\verify.dll
    0x6d3b0000 - 0x6d3cf000      C:\Programme\Java\jre1.6.0_03\bin\java.dll
    0x6d7b0000 - 0x6d7bf000      C:\Programme\Java\jre1.6.0_03\bin\zip.dll
    0x6d570000 - 0x6d583000      C:\Programme\Java\jre1.6.0_03\bin\net.dll
    0x71a10000 - 0x71a27000      C:\WINDOWS\system32\WS2_32.dll
    0x77be0000 - 0x77c38000      C:\WINDOWS\system32\msvcrt.dll
    0x71a00000 - 0x71a08000      C:\WINDOWS\system32\WS2HELP.dll
    0x719b0000 - 0x719f0000      C:\WINDOWS\system32\mswsock.dll
    0x66710000 - 0x66769000      C:\WINDOWS\system32\hnetcfg.dll
    0x719f0000 - 0x719f8000      C:\WINDOWS\System32\wshtcpip.dll
    0x13000000 - 0x1301e000      C:\dbxml-2.3.10\libdb_java45.dll
    0x03410000 - 0x034e4000      C:\dbxml-2.3.10\libdb45.dll
    0x78130000 - 0x781cb000      C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700\MSVCR80.dll
    0x7c420000 - 0x7c4a7000      C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700\MSVCP80.dll
    0x10270000 - 0x102f8000      C:\dbxml-2.3.10\libdbxml_java23.dll
    0x10310000 - 0x1043f000      C:\dbxml-2.3.10\libdbxml23.dll
    0x12000000 - 0x121cf000      C:\dbxml-2.3.10\xerces-c_2_7.dll
    0x10460000 - 0x106a5000      C:\dbxml-2.3.10\xqilla10.dll
    VM Arguments:
    java_command: org.eclipse.jdt.internal.junit.runner.RemoteTestRunner -version 3 -port 2476 -testLoaderClass org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader -loaderpluginname org.eclipse.jdt.junit.runtime -classNames de.dnb.edith.DBXMLIndicesTest
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\Programme\Java\jdk1.6.0_03
    PATH=C:\Programme\Java\jre1.6.0_03\bin\client;C:\Programme\Java\jre1.6.0_03\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\Gemeinsame Dateien\GTK\2.0\bin;C:\Programme\Java\jdk1.6.0_03\bin;C:\dbxml-2.3.10;
    USERNAME=wadim
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 6 Stepping 5, GenuineIntel
    ---------------  S Y S T E M  ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 (2 cores per cpu, 1 threads per core) family 15 model 6 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3
    Memory: 4k page, physical 2095520k(701180k free), swap 4194303k(3631216k free)
    vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310

  • Users VPN drops after every 5 mins

                       Hi everyone,
    We have user whose remote VPN drops after every 5 mins.
    Need to know whats things i can check to troubleshoot the issue?
    User connects by RSA Token.
    ISP connection is ok its not issue.
    Any thing i can check in ASA ?
    Thanks
    Mahesh

    On the client side, have you tested wired vs wireless to see if the problems exists in both?  If it's only one of them but not the other, try updating the drivers.  Also, if it's windows 7, take a look at the power settings in control panel.  I've seen where agressive power settings will shut off the network port when idle.  Not that big of a deal in a LAN environment but it wreaks havoc on VPN.

  • PL/SQL to create a temp table that will be dropped after session ends

    Is it possible in PL/SQL to create a temp table that will be dropped after the session ends? Please provide example if possible. I can create a global temp table in PL/SQL but I am not sure how (if possible) to have it 'drop' once the session ends.
    DB: 10g
    OS: Wiindoze 2003 Server
    :-)

    As others have mentioned (but probably not clearly explained), Oracle treats temporary tables differently to SQL Server.
    In SQL Server you create a temporary table and it gets dropped (automatically I assume, I dont do SQL Server) after the session finishes. This will obviously allow each session to "request" a temporary table to use, then use it, and not have to worry about cleaning up the database after the session has finished.
    Oracle takes a different approach...
    On the assumption that each session is likely to be creating a temporary table for the same purposes, with the same structure, Oracle let's you create a Global Temporary Table a.k.a. GTT (which you've already come across). You only have to create this table once and you leave it on the database. This then means that any code written to use that table doesn't have to be dynamic code and can be verified and checked at compile time, just like code written for any other table. The difference of a GTT from a regular table is that any data you put into that table can only be seen by that session and will not interfere with any data of other sessions and, when you either commit, or end the session (depending on the "on commit delete rows" or "on commit preserve rows" option used when creating the GTT), that data from your own session will automatically be removed and hence the table is cleaned up that way, whilst the actual table itself remains.
    Some people from SQL Server backgrounds try and create and drop tables dynamically in their PL/SQL code, but this leads to problems...
    SQL> ed
    Wrote file afiedt.buf
      1  begin
      2    execute immediate 'create table my_temp (x number)';
      3    insert into my_temp values (1);
      4    execute immediate 'drop table my_temp';
      5* end;
    SQL> /
      insert into my_temp values (1);
    ERROR at line 3:
    ORA-06550: line 3, column 15:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 3, column 3:
    PL/SQL: SQL Statement ignoredi.e. the code will not compile for direct DML statements trying to use that table.
    They then try and get around this issue by making their DML statements dynamic too...
    SQL> ed
    Wrote file afiedt.buf
      1  create or replace procedure my_proc is
      2  begin
      3    execute immediate 'create table my_temp (x number)';
      4    execute immediate 'insert into my_temp values (''A'')';
      5    execute immediate 'drop table my_temp';
      6* end;
    SQL> /
    Procedure created.... which looks great and it compiles ok... but... when they try and run it...
    SQL> exec my_proc;
    BEGIN my_proc; END;
    ERROR at line 1:
    ORA-01722: invalid number
    ORA-06512: at "SCOTT.MY_PROC", line 4
    ORA-06512: at line 1... oops the code has a bug in it. Our DML statement was invalid.
    This is really something that would have been caught at compile time, if the statement had been a direct DML statement rather than dynamic. And thus we see the problem with people trying to write all their code as dynamic SQL... it's more likely to contain bugs that won't be detected at compile time and only come to light at run time... sometimes only under certain conditions and sometimes once it's got into a production environment. Bad Idea!!!! ;)
    Far better to never create tables (or most other database objects) at run time. Just create them once as part of the database design/implementation and use them as required, allowing you to catch the most common coding errors up front before they get anywhere near a test environment or worse still, a production environment.

  • Help needed in SQL performance - Using CASE in SQL statement versus 2 query

    Hi,
    I have a requirement to find count from a bunch of tables.
    The SQL I have gives the count of all members.
    I have created 2 queries to find count of active and inactive members.
    The key difference is only the active dates.
    Each query takes 20 seconds to execute.
    I modified the SQL to use CASE statement in the SELECT.
    So after the data is fetched the CASE statement will evaluate the active date and gives 2 counts (active and inactive)
    Is it advisable to use this approach. Will CASE improve SQL performance ? I have to justify this.
    Please let me know your thoughts.
    Thanks,
    J

    Hi,
    If it can be done in single SQL do it in single SQL.
    You said:
    Will CASE improve SQL performance There can be both cases to prove if the performance is better or worse.
    In your case you should tell us how it is.
    Regards,
    Bhushan

  • Bluetooth dropping after update to 10.6.8

    The bluetooth connection between my Nokia BH-908 headsets and my mac mini periodically drops after I upgraded to 10.6.8.   Restarting blued daemon via Bluetooth Explorer does not fix the problem; I have to reboot the computer to restore the connection.   I've tried resetting the System Management Controller (SMC) and I attempted to delete the device and re-pairing it.  Neither of those things worked, the headset sill drops periodically.    This is what the kernel logs say when the device drops:
    Aug  8 07:01:41 kernel[0]: E:[AppleUSBBluetoothHCIController][BulkOutWriteCompleteHandler] ERROR2: 0xe0004006; sizeRem=00000059; isInactive = 0, suspended = 0
    Aug  8 07:01:41 kernel[0]: E:[AppleUSBBluetoothHCIController][SendACLData] Bulk out [ACL] data failed. (error = 0xe000404f )
    Aug  8 07:01:42: --- last message repeated 20 times ---
    Again, this only started happening after I upgraded to 10.6.8.   Any suggestions for resolving this issue?

    It was a good suggestion, but unfortunately that didn't solve the prolem.   Here's the Bluetooth Exploer actions I tried:

Maybe you are looking for

  • Dropping a Table Using PL/SQL

    I've read that PL/SQL doesn't support DDL, which seems to mean that I cannot use PL/SQL to create, alter, or drop a table. Is this true? I've written (but not tested) some PL/SQL code that needs to drop a table and rename another table under certain

  • My daughter's iPod won't connect to internet.

    Sorry I know many people have probably asked this, but I still don't get it!  I really don't know what to put in the VPN section and it is very confusing.  I know that the pssword we're entering is correct because we've entered it so many times now,

  • Satellite L550-11k - HDMI + VGA at the same time?

    Hi there, I have Satellite L550-11k laptop, and i was wondering if i can have external monitor working hooked up on VGA port and HDMI monitor working ( or just audio from hdmi ) at the same time. I tried and have no luck making it work together. I am

  • Showing headers in portal for MSS

    hi       when i login to portal , i have MSS role  , and when i click on the MSS role , i need overview, team  as the header , i dont want Budgets and plannings as part of header and  also when i click the team  or overview  , there related  services

  • Different view on hierarchy between rsa1 and rsecadmin

    Hi togther, i've got the following problem and I don't why it appears and how to solve it. I've created a hierarchy for an infoobject in the rsa1, all notes are characteristic nodes. The hierarchy tables seems to be OK. The representation of the hier