Query is slow in instance1 and fast in instance2 of RAC

Hi,
I have a query which runs in 20 minutes in node1 of RAC and the same query run for 10 seconds in node2 of RAC.Node1 is a processing instance which may have more IO but this much elapsed time difference seems to be very odd.Query using same plan in both instances
Can you please explain me what all possibilities for a query to behave differently in 2 instances of RAC?
Thanks very much for your help!
Thanks

This is definitely wierd! Will it be possible for you to provide the Explain Plan information from both the nodes...hopeful it will help with some pointers/insights.
Thanks
Chandra

Similar Messages

  • Query runs slower when using variables & faster when using hard coded value

    Hi,
    My query runs slower when i use variables but it runs faster when i use hard coded values. Why it is behaving like this ?
    My query is in cursor definition in a procedure. Procedure runs faster when using hard coded valus and slower when using variables.
    Can anybody help me out there?
    Thanks in advance.

    Hi,
    Thanks for ur reply.
    here is my code with Variables:
    Procedure populateCountryTrafficDetails(pWeekStartDate IN Date , pCountry IN d_geography.country_code%TYPE) is
    startdate date;
    AR_OrgId number(10);
    Cursor cTraffic is
    Select
              l.actual_date, nvl(o.city||o.zipcode,'Undefined') Site,
              g.country_code,d.customer_name, d.customer_number,t.contrno bcn,
              nvl(r.dest_level3,'Undefined'),
              Decode(p.Product_code,'820','821','821','821','801') Product_Code ,
              Decode(p.Product_code,'820','Colt Voice Connect','821','Colt Voice Connect','Colt Voice Line') DProduct,
              sum(f.duration),
              sum(f.debamount_eur)
              from d_calendar_date l,
              d_geography g,
              d_customer d, d_contract t, d_subscriber s,
              d_retail_dest r, d_product p,
              CPS_ORDER_DETAILS o,
              f_retail_revenue f
              where
              l.date_key = f.call_date_key and
              g.geography_key = f.geography_key and
              r.dest_key = f.dest_key and
              p.product_key = f.product_key and
              --c.customer_key = f.customer_key and
              d.customer_key = f.customer_key and
              t.contract_key = f.contract_key and
              s.SUBSCRIBER_KEY = f.SUBSCRIBER_KEY and
              o.org_id(+) = AR_OrgId and
              g.country_code = pCountry and
              l.actual_date >= startdate and
              l.actual_date <= (startdate + 90) and
              o.cli(+) = s.area_subno and
              p.product_code in ('800','801','802','804','820','821')
              group by
              l.actual_date,
              o.city||o.zipcode, g.country_code,d.customer_name, d.customer_number,t.contrno,r.dest_level3, p.product_code;
    Type CountryTabType is Table of country_traffic_details.Country%Type index by BINARY_INTEGER;
    Type CallDateTabType is Table of country_traffic_details.CALL_DATE%Type index by BINARY_INTEGER;
    Type CustomerNameTabType is Table of Country_traffic_details.Customer_name%Type index by BINARY_INTEGER;
    Type CustomerNumberTabType is Table of Country_traffic_details.Customer_number%Type index by BINARY_INTEGER;
    Type BcnTabType is Table of Country_traffic_details.Bcn%Type index by BINARY_INTEGER;
    Type DestinationTypeTabType is Table of Country_traffic_details.DESTINATION_TYPE%Type index by BINARY_INTEGER;
    Type ProductCodeTabType is Table of Country_traffic_details.Product_Code%Type index by BINARY_INTEGER;
    Type ProductTabType is Table of Country_traffic_details.Product%Type index by BINARY_INTEGER;
    Type DurationTabType is Table of Country_traffic_details.Duration%Type index by BINARY_INTEGER;
    Type DebamounteurTabType is Table of Country_traffic_details.DEBAMOUNTEUR%Type index by BINARY_INTEGER;
    Type SiteTabType is Table of Country_traffic_details.Site%Type index by BINARY_INTEGER;
    CountryArr CountryTabType;
    CallDateArr CallDateTabType;
    Customer_NameArr CustomerNameTabType;
    CustomerNumberArr CustomerNumberTabType;
    BCNArr BCNTabType;
    DESTINATION_TYPEArr DESTINATIONTYPETabType;
    PRODUCT_CODEArr PRODUCTCODETabType;
    PRODUCTArr PRODUCTTabType;
    DurationArr DurationTabType;
    DebamounteurArr DebamounteurTabType;
    SiteArr SiteTabType;
    Begin
         startdate := (trunc(pWeekStartDate) + 6) - 90;
         Exe_Pos := 1;
         Execute Immediate 'Truncate table country_traffic_details';
         dropIndexes('country_traffic_details');
         Exe_Pos := 2;
         /* Set org ID's as per AR */
         case (pCountry)
         when 'FR' then AR_OrgId := 81;
         when 'AT' then AR_OrgId := 125;
         when 'CH' then AR_OrgId := 126;
         when 'DE' then AR_OrgId := 127;
         when 'ES' then AR_OrgId := 123;
         when 'IT' then AR_OrgId := 122;
         when 'PT' then AR_OrgId := 124;
         when 'BE' then AR_OrgId := 132;
         when 'IE' then AR_OrgId := 128;
         when 'DK' then AR_OrgId := 133;
         when 'NL' then AR_OrgId := 129;
         when 'SE' then AR_OrgId := 130;
         when 'UK' then AR_OrgId := 131;
         else raise_application_error (-20003, 'No such Country Code Exists.');
         end case;
         Exe_Pos := 3;
    dbms_output.put_line('3: '||to_char(sysdate, 'HH24:MI:SS'));
         populateOrderDetails(AR_OrgId);
    dbms_output.put_line('4: '||to_char(sysdate, 'HH24:MI:SS'));
         Exe_Pos := 4;
         Open cTraffic;
         Loop
         Exe_Pos := 5;
         CallDateArr.delete;
    FETCH cTraffic BULK COLLECT
              INTO CallDateArr, SiteArr, CountryArr, Customer_NameArr,CustomerNumberArr,
              BCNArr,DESTINATION_TYPEArr,PRODUCT_CODEArr, PRODUCTArr, DurationArr, DebamounteurArr LIMIT arraySize;
              EXIT WHEN CallDateArr.first IS NULL;
                   Exe_pos := 6;
                        FORALL i IN 1..callDateArr.last
                        insert into country_traffic_details
                        values(CallDateArr(i), CountryArr(i), Customer_NameArr(i),CustomerNumberArr(i),
                        BCNArr(i),DESTINATION_TYPEArr(i),PRODUCT_CODEArr(i), PRODUCTArr(i), DurationArr(i),
                        DebamounteurArr(i), SiteArr(i));
                        Exe_pos := 7;
    dbms_output.put_line('7: '||to_char(sysdate, 'HH24:MI:SS'));
         EXIT WHEN ctraffic%NOTFOUND;
    END LOOP;
         commit;
    Exe_Pos := 8;
              commit;
    dbms_output.put_line('8: '||to_char(sysdate, 'HH24:MI:SS'));
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_CUSTNO ON country_traffic_details (CUSTOMER_NUMBER)';
              execDDl(lSql);
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_BCN ON country_traffic_details (BCN)';
              execDDl(lSql);
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_PRODCD ON country_traffic_details (PRODUCT_CODE)';
              execDDl(lSql);
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_SITE ON country_traffic_details (SITE)';
              execDDl(lSql);
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_DESTYP ON country_traffic_details (DESTINATION_TYPE)';
              execDDl(lSql);
              Exe_Pos:= 9;
    dbms_output.put_line('9: '||to_char(sysdate, 'HH24:MI:SS'));
    Exception
         When Others then
         raise_application_error(-20003, 'Error in populateCountryTrafficDetails at Position: '||Exe_Pos||' The Error is '||SQLERRM);
    End populateCountryTrafficDetails;
    In the above procedure if i substitute the values with hard coded values i.e. AR_orgid = 123 & pcountry = 'Austria' then it runs faster.
    Please let me know why it is so ?
    Thanks in advance.

  • Why is the IPad 4 so slow to charge and fast to discharge ??

    Why does the IPad 4 discharge so fast and be so slow to recharge

    Hello, willismom. 
    Thank you for visiting Apple Support Communities. 
    Battery life can be difficult to troubleshoot as multiple factors contribute to how long a charge can last.  Graphic intensive applications, display brightness and data connectivity are just a few of the items that can cause the battery life to decrease rapidly.  I would need to know a little more information about your usage patterns to give you and idea on how to maximize battery life.  However, here are some tips on how to adjust settings and charge the device that may help. 
    iPad: Charging the battery
    http://support.apple.com/kb/ht4060
    About Batteries
    About iPad Batteries
    If you feel that you need assistance with the battery concern, you can always reach out to us via the link below. 
    Contact Apple
    Cheers,
    Jason H. 

  • Airport Express slow on wireless and fast on ethernet

    I have an airport extreme setup as a base.
    I then created a network.
    Through the house I have airport expresses setup to extend the range.
    They are all setup as N with robustness.
    When I connect my macbook pro to the airport express most near I get 24696 kb/s download. But when I connect to the airport express via wireless my download falls to less then 8000 kb/s.
    I tried this with different airport express devices setup and each one acted the same way.
    If I connect to the express with an Ethernet cable is it super fast.
    When I connect to it wireless it drops to at least half speed.
    The really odd part.. if I connect via wireless to the airport extreme I get FULL speed. So the extreme can sent out full speed but it seems the express has an issue with wireless speed.
    Can anyone help?
    I hate to see if you used this to extend wireless that it would have to travel through two or more express devices. I would be down to a 2400 baud modem speed.

    I have the exact same problem down to the letter. Anye help out there?

  • 9ias : Slow first time and fast the other times

    Hi,
    I'm facing a problem with using Reports 9ias on a HP-UX server ...
    I start a report server on the server
    I'm calling the report from forms with RUN_REPORT_OBJECT (destype=file, desformat=pdf, batch, synchronous) and then call a web.show_document.
    The first time I run the report it takes a long time ...
    The others times, even with different parameters, it appears immediately
    I've understood the Report Server is using a cache and it takes time to load reports in it.
    We have 250 reports in our application, and we would like the reports to run immediately for the end-users.
    How can I put all the reports into the cache automatically in background ?
    Is there a way to speed up the first call ?
    Thx in advance !

    iOS: Troubleshooting Messages

  • The Download Circle Is Slower On Homescreen And Faster On App Store And iPad Mini Not Shows Up On My MacBook.

    Well Since I Updated to iOS 8 My iPad Mini 2 Has Errors Downloading An App For Example: Today I Tried To Download A Chess App It Started Downloading it After The Circle in App store was Completed It Shows An Error Unable To Download Your App Try Again Later So I Went Back To The Home Screen And The App icon's Circle Was Not Fully Complete.And My iPad Mini 2 Does Not Show Up ON The Devices List ON My Mac It Shows An Error And It Does Not Show on My Mac. Please HELP Me
    Mac Specifications:
    MacBook 13-inch, Aluminum, Late 2008
    Mac OS X Lion 10.7 (11A511)
    2.4 GHz Intel Core 2 Duo
    2 GB 1067 MHz RAM
    NVIDIA GeForce 9400M 256 MB
    250 GB SATA Hard Disk

    Force iPad into Recovery Mode. Follow step 1 to 6 very closely.
    http://support.apple.com/kb/HT1808
    Note: You may have to repeat the above a few times.

  • Flash SLOW in chrome and fast in other browsers???

    How is this possible. The sfw goes like lightening in explorar (yes) and in firefox and like a tortoise in chrome. Do I need to download a plugin for chrome or is there a problem with flash and chrome. It's important as I am about to release an important program in schools.
    Cheers guys as always.

       This worked for me (only in Google Chrome browser):
    1) In your Google Chrome browser, type into the address bar: "about:plugins" (without quotation marks) and press Enter;
    2) On the very top, your should see "Flash (2 files)" (sometimes it says 3 and even more files)(if yours say only "(1 file)" - this method is NOT for you);
    3) Click "Details" at the upper-right corner of the page;
    4) Hit on "Disable" next to all of the OLDER versions of "Shockwave Flash", leaving ONLY the latest version of "Shockwave Flash" ENABLED !!! (if all of the versions seem to be the same, disable all of the versions closer to the top, leaving only ONE enables at the very bottom of the list - you have to leave at least one enabled, or your FlashPlayer will stop working all along!!!)
    5) Check-mark the whole "Flash" group with "Always allow" and close "Plug-ins" tab in your Google Chrome browser.
    6) Completely close (X out) your Google Chrome browser.
    7) Re-open your Google Chrome browser again.
    8) Go to "www.youtube.com" and open any video, then switch into full-screen mode to see if the video plays fine (without frame-by-frame playback))
    9) Good luck!)

  • Calc Script runs slow one day and fast the next?

    We are on Essbase 11.1.2.1. When we run calc scripts to load our actuals and run some allocation scripts, the difference in running time for the same exact script is very different day to day. One day three hours the next 45 minutes. Our servers are just for Essbase. We are on Windows 2008 R2. Has anyone else run into this or have any idea how we could figure out the reason for this. Thanks.

    Thanks.  In that case, I would try to grab the cube statistics - especially number of upper-level and input blocks, compression ratio and fragmentation (in EAS you can only see one of the two fragmentation statistics, 'Average Clustering Ratio', not 'Average Fragmentation Quotient') before each run, just to see if they're varying wildly.  Also, if your calc scripts log summary information (is there a SET MSG command in them?  If not you could try SET MSG SUMMARY) then Essbase will write high-level statistics on how much work was done to the application log.
    You can see which cubes are loaded (and consuming memory) in the EAS treeview - if they have a check (tick) mark they are loaded.  But you can also see current activity by right-clicking on the server in the EAS treeview and selecting Edit | Sessions.   That will show whether there are other operations (loads, calcs, reports, restructures etc) occurring at the same time.
    If none of the above give any clues and this is a virtual box (or you have SAN storage) you really will need someone who understands your infrastructure to help.
    I'm assuming these are BSO cubes, by the way!

  • Which Mac Pro? More cores=slower speeds? And most of us know the speed matters or FPU for music and I don't understand the faster is for the least amount of procs. And while I get the whole rendering thing and why it makes sense.

    Which Mac Pro? More cores=slower speeds? And most of us know the speed matters or FPU for music and I don't understand the faster is for the least amount of procs. And while I get the whole rendering thing and why it makes sense.
    The above is what the bar says. It's been a while and wondered, maybe Apple changed the format for forums. Then got this nice big blank canvas to air my concerns. Went to school for Computer Science, BSEE, even worked at Analog Devices in Newton Massachusetts, where they make something for apple. 
    The bottom line is fast CPU = more FPU = more headroom and still can't figure out why the more cores= the slower it gets unless it's to get us in to a 6 core then come out with faster cores down the road or a newer Mac that uses the GPU. Also. Few. I'm the guy who said a few years ago Mac has an FCP that looks like iMovie on Steroids. Having said that I called the campus one day to ask them something and while I used to work for Apple, I think she thought I still did as she asked me, "HOW ARE THE 32 CORES/1DYE COMING ALONG? Not wanting to embarrass her I said fine, fine and then hung up.  Makes the most sense as I never quite got the 2,6,12 cores when for years everything from memory to CPU's have been, in sets of 2 to the 2nd power.  2,4,8,16,32,64,120,256,512, 1024, 2048,4196,8192, 72,768.  Wow. W-O-W and will be using whatever I get with Apollo Quad. 
    Peace to all and hope someone can point us in THE RIGHT DIRECTION.  THANK YOU

    Thanks for your reply via email/msg. He wrote:
    If you are interested in the actual design data for the Xeon processor, go to the Intel site and the actual CPU part numbers are:
    Xeon 4 core - E5.1620v2
    Xeon 6 core - E5.1650v2
    Xeon 8 core - E5.1680v2
    Xeon 12 core - E5.2697v2
    I read that the CPU is easy to swap out but am sure something goes wrong at a certain point - even if solderedon they make material to absorb the solder, making your work area VERY clean.
    My Question now is this, get an 8 core, then replace with 2 3.7 QUAD CHIPS, what would happen?
    I also noticed that the 8 core Mac Pro is 3.0 when in fact they do have a 3.4 8 core chip, so 2 =16? Or if correct, wouldn't you be able to replace a QUAD CHIP WITH THAT?  I;M SURE THEY ARE UO TO SOMETHING AS 1) WE HAVE SEEN NO AUDIO FPU OR PERHAPS I SHOULD CHECK OUT PC MAKERS WINDOWS machines for Sisoft Sandra "B-E-N-C-H-M-A-R-K-S" -
    SOMETHINGS UP AND AM SURE WE'LL ALL BE PLEASED, AS the mac pro      was announced Last year, barely made the December mark, then pushed to January, then February and now April.
    Would rather wait and have it done correct than released to early only to have it benchmarked in audio and found to be slower in a few areas- - - the logical part of my brain is wondering what else I would have to swap out as I am sure it would run, and fine for a while, then, poof....
    PEACE===AM SURE APPLE WILL BLOW US AWAY - they have to figure out how to increase the power for 150 watts or make the GPU work which in regard to FPU, I thought was NVIDIA?

  • Custom Report for slow and fast moving items

    Dear Xperts,
    My client wants to develop a new report for slow and fast moving items, I checked the std report MC46 however as per std SAP design this report does not consider the special stock like project stock (Q)...could you please help me to know how can develop this new report with following input and output fields?
    Input fields:
    Plant
    Material
    Material Group
    MRP Area
    Special Stock Indicator
    Special Stock (Type)
    Output Fields:
    Material
    Material type
    Material group
    MRP Controller
    MRP Area
    ABC indicator
    Material price
    Category field – Slow, Fast, Non-moving
    Current Stock
    Last Issue Date
    Thanks in Advance
    Regards
    Rahul

    Dear Rahul,
    If you required  project stock and consignment stock with valuated stock report in same place you need to generate new info structure as given below link. Or you can go with customized report with abaper.
    Info structure validation
    Regards
    Sanjeet Kumar

  • Firefox was fast when I first started using. Now, very slow to open and freezes often. Frequent message is "Warning-unresponsive script". Do I need to switch back to Internet Explorer?

    Switched from Internet Explorer because seemed slow. Firefox was fast at first. Then upgraded to Firefox 4 and frequently have trouble opening. Sometimes page doesn't open, or is very slow. If I try to open again I will get Mozilla Firefox Unresponsive or a message that say "Warning-Unresponsive Script". Often have to restart and do the whole thing again. Don't really want to switch back to Internet Explorer, but getting tired of taking a half hour to get into my emails!

    I am having the same problem, but not sure what's causing the slow down. Restarting in safe mode fixes the performance problem... but disabling all plug ins and extensions in normal mode (and restarting firefox) still shows the bug. Any ideas?

  • Alarm and Event Query Very Slow

    Group,
    I am using the DSC Alarm and Event Query vi to pull data from the SQL database (not the Citadel).  I have a filter set up that specifies the "Alarm Area" and the start and stop dates with maximun results set to 22.  These dates are set to only pull the last 24 hrs.  This vi will return around 10 to 20 entries out of perhaps 80-90 total events in the last 24 hours in the database.   This database is ~2M in size.   I have to set the timeout to almost 10 min for this vi to not produce a timeout error.  The results returned are correct but it just seems that the time to run this vi is excessive.  It is quering a database on the same system that the quering vi is running on.  Should I expect better preformance?
    Thanks
    Todd

    Verne,
    I have boiled down the code to this attachment.  This query took almost 7 min to return 22 results from a database size that is listed as 2.09877E+6.  I have also tried the Alarms and Event Query to spreadsheet vi also and it takes the same amount of time.  I am wondering if I place the Alarms and Events into the same (Citidel) database that the traces are going if it would be much faster.  I seem to get trace data back very fast.  If I recall correctly I seperated the alarms from the trace because I was having some sort of problem accessing the alarm data in the combined database...but that was several labVIEW versions ago.  Anyone else having this problem?
    Thanks
    Todd
    Attachments:
    Generate Alarm Log General Test.vi ‏19 KB

  • Can anyone explain in the Boundary Groups the Setting of Connection SLOW and FAST?

    Hello,
    we have many locations with DP´s and created Boundary Groups with the Connection FAST.
    Now we have some Clients outside they are connected only with UMTS or DSL.
    For DSL the connections is set to FAST and for UMTS is set to SLOW.
    I must explain that i take over a configuration because i am a new employee here.
    Can anyone explain me the different, in detail, of SLOW and FAST?
    thank you well and with best regards.
    André

    Quote from here:
    http://technet.microsoft.com/en-us/library/gg712679.aspx#BKMK_BoudnaryNetworkSpeed
    "You can configure the network connection speed of each distribution point in a boundary group. Clients use this value when they connect to the distribution point. By default, the network connection speed is configured as
    Fast, but it can also be configured as Slow. The network connection speed and the deployment configuration determine whether a client can download content from a distribution point
    when the client is in an associated boundary group."
    So basically, when you deploy something, this setting determines does the client download the content or not. Shown in the bellow picture:
    For example, if you have a client configured inside boundary group that's 'Slow' and then you deploy something to this client, you can configure does the deployment run or not.

  • After installing Lion OSX 10.7.1 my MBP went slow. Is not quick and fast like before.

    Its been two weeks now, I have installed the Lion OSX 10.7.1. Everday whenever I wake it up from the sleep mode the MBP opens so slowly. It takes about 5 minutes to come on its early stage. Before it wasnt like that. Very quick and fast before.

    Backup your files to a external drive and c boot off the 10.6 disk and use Disk Utiltiy to erase the whole drive, format HFS+ journaled and then quit, install 10.6
    Set the drive name and user name the same as before. Log in and Software Update to 10.6.8
    The install your programs from fresh sources again, then finally return your user files to their respective folders (Music, Pictures etc).
    Your computer will be fast and stable again, Lion has tested slower than Snow Leopard and it's glitchy too right now, perhaps 6 months later it will be fast again.

  • What is this code mean, ( 14 slow blinking lights and 5 fast blinking lights) mean

    need to know what this means please, 14 slow blinking lights and 5 fast blinking lights) mean

    thank you thank you for taking an interest. this is so frustrating.
    i only have apple keyboard, mighty mouse, and 20 inch cinema display connected. this morning took out memory and tried to boot up with individual pairs in the first bank. first the (2)256, the (2) 1g, and then the other (2) 1g modules. everytime I get the weird fuzzy wheel under the logo after a while, black screen flashes, then grey apple logo fuzzy screen then black forever.
    I ran tiger updates this morn. still will only boot to safe mode. then tried to run leopard disk to install it
    will not boot from leopard disk.
    tried safe boot, then doulble click install leopard, restart, then the saga repeats with the pixely red square around the wheel.
    these are fresh drives with only what came on instll disk loaded.
    thanks again for taking an interest.
    i love this system(well at least i did). I want to install leopard on my powerbook too but am terrified to do so right now since it is working and I have work to do. Can't afford to have no computer to do my work on...self employment is great?!
    This is making me crazy. I anxiously await your words of wisdom.

Maybe you are looking for

  • Logging File Settings Don't Work

    Well, the Topic Summary above seems to explain the problem. We are trying to limit the size of the log files to 1000 KB (1 MB). We also want to keep 10 archived copies. Here are the settings that are being used: Maximum File Size (kb) 1000 Maximum Nu

  • PDF from html

    I have a large volume of html (currently PDF'ing to around 250 pages) that is generated dynamically. My question is a simple one but it's driving me to distraction. How can I control the formtting in the resulting PDF. I'm not asking for anything com

  • I just bought a hp 7510 and the menu is in spanish im trying to get it back to english

    I JUST BOUGHT AN HP 7510 PRINTER IM TRYING TO SET UP AND ITS IN SPANISH HOW DO I GET IT BACK TO ENGLISH

  • Toshiba Satellite battery/AC problems?

    After days of agony, I broke down and order a new AC adapter and battery for the Toshiba Satellite from Amazon (which cost about $20 for both, new, including free shipping; Toshiba wants over a $100 for the battery and nearly the same for the AC adap

  • Maintain back ground activity while file dialog pop is open

    If i use a labview pop for example file dialog pop up and i put in an event stracture,the event case doesn't come back to the timeout case till the user  closes the pop up(it could be by clicking ok or cancel)..is there a way of making it that as the