Query running sometimes slow and sometimes fast on both prod and dev. Help

We are running a job that is behaving so inconsistently that I am ready to jump off the 19th floor. :-)
This query that goes against one table, was just coming to halt in production. After 4 days of investigation we thought it was the resource on production box. Now we have another dev box where we were also having the same issue. This box gets updated with production data everyday. There is a 3rd box. DBA ran update statistics on the 3rd box and the job was never slow there. When we updated 2nd box (dev) with statistics from th 3rd box, the job also ran fine. So we thought we know for sure that it is the statistics that we need to up. Now for business testing, the 2nd and 3rd box got updated with data and statistics from production box (the troubled one). We thought surely we will see issues on the 2nd and 3rd box, but the job was just running fine on these boxes. As I said, the 2nd box gets updated with production data everyday. After last night's refresh this job is running long on the 2nd box again. We are really puzzled. Has any one experience anything like this before?
thanks in advance.
Reaz.

We got our dba who is checking the plan when ever we run the job.
The dba is running the trace right now. Here is the trace result from the trace:
SELECT STATUS_FLAG, FSI_TID, FSI_REC_TID, AREA, VALUE_DATE, CANCEL_DATE,
TO_DATE(ENTRY_DATE_TIME), PRODUCT, CUST_TID
FROM
ORD_FX WHERE WSS_GDP_SITE = :B3 AND DEAL_NUMBER = :B2 AND TICKET_AREA = :B1
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 514 0.23 0.27 0 0 0 0
Fetch 514 253.40 247.44 0 16932188 0 514
total 1028 253.63 247.71 0 16932188 0 514
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: 26 (recursive depth: 1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
latch: cache buffers chains 2 0.00 0.00
no IO issue in any database at any time. We saw a little high IO in production yesterday so we thought we are looking at a resource issue, but today the system is fine and we had no luck with the job.

Similar Messages

  • Query runs very slow and sometime freezes

    Hi Experts,
    I have just installed SAP GUI 710 but when i open a query in analyzer it runs very slow and  if the variables are set for more than 6 months it just sits there and finally times out. It takes at least 5 minutes to open the query if it opens at all. Can you please advise me on how to resolve this issue??
    Thanks, point will be awarded.

    Worth running RSRT .
    Ravi Thothadri

  • All design programs running extremely slow and takes forever to save and sometimes shuts down randomly?

    Ok so  I'm a design student at a community college (about to graduate soon and will be continuing on getting my BFA) I have all of the creative cloud suite. I have Illustrator, Photoshop, Lightroom, InDesign, etc. Recently I started having problems with all of the programs. Whenever I work in the programs they would run extremely slow. Recently, I tried to save a .eps file that was only about 1.2 GB and it took me an hour to save, and this was when I was working off of my computer desktop. When I place the .eps file in Indesign, everything would go blank and it would freeze up. Also I had an error sign popping up from InDesign saying "out of memory". Im not sure if that is related to my computer's hard drive or indesign itself. I just started using creative suite so the creative suite is pretty new to me. Sometimes in Indesign when I do the Command+w to preview the whole project, it would be completely black and showing nothing and I would hit escape and the whole software screws up. Then I would do a force quit on the software and then Indesign would say there was a serious error and must shut down. That error message has been popping up several times now. I also talked to Apple support and they suggested me doing a Repair disk utility (which I am currently doing right now) and also recommended me contacting Adobe since they know their software. I checked software to see if there is any updates that is needed but everything is up to date. I'm not quite sure why its acting like this so I'm reaching out both to Apple and Adobe to see if both can help me solve the problem. If anybody had experienced this problem before and could help me troubleshoot this issue that would be great.

    I installed the creative suite about a year ago, and this just started happening last weekend. I didn't think it would be a problem and that it would last for a day since I was working on InDesign all day and Illustrator and it usually goes away after I finish using the programs. But this has been occurring for about a week now and has not gone away. and yes the other programs are running slow. I was trying to resize some images for a client and Photoshop was acting extremely slow  when I was trying to resize the image and also place an image into a 8x10 document in Photoshop. I'm not sure how to find my system specifications.
    All design programs running extremely slow and takes forever to save and sometimes shuts down randomly? 

  • My mac book pro runs so slow and little round rainbow keep popping up

    My mac book pro runs very slow and little round rainbow keeps popping up

    First, back up all data immediately, as your boot drive might be failing.
    Step 1
    This diagnostic procedure will query the system log for messages that may indicate a hardware fault. It changes nothing, and therefore will not, in itself, solve your problem.
    If you have more than one user account, these instructions must be carried out as an administrator. I've tested them only with the Safari web browser. If you use another browser, they may not work as described.
    Triple-click anywhere in the line below on this page to select it:
    syslog -k Sender kernel -k Message CReq 'Channel t|GPU D|I/O|nspace-h|n Cause: -' | tail | open -ef
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. Normally the command will produce no output, and the window will be empty. If the TextEdit window (not the Terminal window) has anything in it, stop here and post it — the text, please, not a screenshot. The title of the TextEdit window doesn't matter, and you don't need to post that.
    Step 2
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have a portable computer, check the cycle count of the battery. It may be due for replacement.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane. See whether there's any change.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    If you're booting from an aftermarket SSD, see whether there's a firmware update for it.
    If you have a MacBook Pro with dual graphics, disable automatic graphics switching in the Energy Saverpreference pane for better performance at the cost of shorter battery life.
    Step 3
    When you notice the problem, launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 4
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • My MacBook pro is running very slow and unresponsive.

    My MacBook pro is running very slow and unresponsive. I have mid 2010 model running on lion. Past few days it looks very unresponsive. Tried to reinstall lion as clean copy. Still no luck. Any help on this is much appreciated !
    My model has 4 gb ram.

    Things That Can Keep Your Computer From Slowing Down
    If your computer seems to be running slower here are some things you can do:
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Repair the Hard Drive - Lion
    Boot from your Lion Recovery HD. When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    Suggestions for OS X Maintenance
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time, then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • On my macbook pro I have a message on my homepage telling me that certain items want to use my keychain. I've pressed cancel the message will not go. The mac is now running very slow and iphoto and safari are not working. Can anyone help?

    On my macbook pro I have a message on my homepage telling me that certain items want to use my keychain. I've pressed cancel the message will not go. The mac is now running very slow and iphoto and safari are not working. Can anyone help?

    What version of Mac OS X?
    What home page?
    What browser?

  • I am having a problem with my cs6 running very slow and when i save i am getting an error message that says, "This document is bigger than 2 gb (the file may not be read correctly by some TIFF viewers.) please help

    I am having a problem with my cs6 running very slow and when i save i am getting an error message that says, "This document is bigger than 2 gb (the file may not be read correctly by some TIFF viewers.) please help

    wen6275,
    It looks like you're actually using a camera or phone to take a photo of your monitor.
    That's not what is commonly known as a "screen shot". 
    It looks like you're on a Mac.  Hitting Command+Shift+3 places a capture of the contents of your entire monitor on your Desktop; hitting Command+Shift+4 will give you a cross-hairs cursor for you to select just the portion you want to capture.
    I'm mentioning this because I fear I'm not construing your original post correctly when you type "I am working with a large files [sic], currently it has 149 layers, all of which are high resolution photographs", so I'm wondering if there's some similar use of your own idiosyncratic nomenclature in your description of your troublesome file.
    Perhaps I'm just having a major senior moment myself, but I'm utterly unable to imagine such a file.  Would you mind elaborating?

  • My new ipod touch 4g that i just got is running extremely slow and the apps crash alot. I have about 10gb left out of 16 gb. When i got it, it was brand new, and ran like how it is now. I was just wondering if this could be some sort of defect?

    My new ipod touch 4g that i just got is running extremely slow and the apps crash alot. I have about 10gb left out of 16 gb. When i got it, it was brand new, and ran like how it is now. I was just wondering if this could be some sort of defect?

    My new ipod touch 4g that i just got is running extremely slow and the apps crash alot. I have about 10gb left out of 16 gb. When i got it, it was brand new, and ran like how it is now. I was just wondering if this could be some sort of defect?

  • HT1338 XSERVE 10.6.8 is running very slow, and Workgroup Manager is not responding

    XSERVE 10.6.8 is running very slow, and Workgroup Manager is not responding. There is no more updates to download.

    munish khanna wrote:
    1. upgrade to lion, which should over write previous software and the reasons for it being slow.
    No, you don't want to upgrade over a buggy system, Lion has issues of it's own that will only complicate matters, plus Lion is slower than Snow Leopard.
    Learn all the pitfalls before you upgrade to Lion, like all your Rosetta/older programs will no longer work and more.
    Leave Lion for a new hardware purchase is my advice, it's still got plenty of security and other issues.
    For your performance, your likely better off replacing the hard drive with a 7,200 RPM model and maxing the RAM, download the free MacTracker to find out your specs, and OtherWorld Computing is good for videos, tools and parts.
    http://eshop.macsales.com/installvideos/
    2. Format the hard disc and reinstall snow leopard.
    That will work, provided your data is off the machine first.
    Now how do i reinstall snow leopard as it was an online purchased upgrade from leopard.
    The 10.6 Snow Leopard disk that you upgraded 10.5 Leopard from actually has the full OS X 10.6 on it.
    All you have to do is stick the disk in and hold the c key down while booting, use Disk Utility to erase the entire drive, quit and install 10.6.
    Of course your not going to get the free iLife that came with the 10.5 grey disks, see if you can first install 10.5 with the same methods, then setup with the same user name as before, then upgrade to 10.6
    I think Apple nulled booting off the 10.5 disks, but it won't hurt to try.
    Another method would be to install 10.6 fresh by itself, then use the program called Pacifist to extract iLife from the 10.5 disks.
    http://www.charlessoft.com/
    Read here for plenty of how to's
    https://discussions.apple.com/message/16276201#16276201

  • Photoshop Elements 12 runs really slow and is almost unusable.

    Photoshop (and Premiere) Elements 12 runs really slow and is almost unusable.
    All other high end software works perfectly including 3D rendering software.
    27" iMac mid 2011.
    16gb of RAM.
    Over 100gb free hdd space.
    Radeon HD card 2GB.
    3.4 GHz Intel Core i7.
    I have tested on tiny low quality images as well.
    I bought this with the bundled Premiere Elements which is also unusable even with the smallest and lowest quality video file.
    iMovie works fine as does other video editing software. I ONLY have an issue with Photoshop and Premiere Elements 12.
    Mavericks 10.9.3
    Elements 12.1

    After the latest update, Firefox is much better. Using it again.

  • My iPad is running really slow, and I can't connect to my iTunes account or App Store ,keeps saying can't connect to server ,but have another iPad in house and it's working fine

    My ipad is running really slow, and it will not let me connect to iTunes or App Store, but have another iPad in house which is working fine I,please help

    Try a hard reset by pressing the Home button and Wake / Sleep button at the same time, keep them both pressed until the Apple Logo appears on the screen.
    This does not lose any data on your iPad.

  • My macbook pro 13 inch is running extremely slow and I have no idea of what to do. Can someone please help me?

    Everything is just running completely slow and it was not like this. I do not know what to do at all, please help. Thank you.

    Your problem has nothing to do with "viruses." DO NOT install any kind of "anti-virus" software.
    First, back up all data immediately, as your boot drive might be failing.
    One possible cause of a slow user interface is a large number of image or video files on the Desktop with preview icons. If you have more than a dozen or so such files, move them to another folder.
    Otherwise, take these steps when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 2
    You must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way as above. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Post the 50 or so most recent messages in the log — the text, please, not a screenshot.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into a message.
    Important: Some personal information, such as your name, may appear in the log. Edit it out before posting.

  • Mac book pro is running very slow and won't connect to the Internet

    Mac book pro is running very slow and won't connect to the Internet. Please help I'm rubbish with computers!

    Mac book pro is running very slow and won't connect to the Internet. Please help I'm rubbish with computers!

  • My mac pro is running really slow and the beach ball keeps appearing

    my mac pro is running really slow and the beach ball keeps appearing
    is there some good free software that cleans it up, new to macpro
    Software  OS X 10.9.2 (13C1021)

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
    SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar at the top of the screen.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.

  • HT1338 My Mac book Pro is running very slow and the rainbow ball is appearing all the time. Any suggestions for clean up??

    My Mac book Pro is running very slow and the rainbow ball is appearing all the time. Any suggestions for clean up?? I have the OS X Lion system.

    As well as what a brody asked :
    - do you need more RAM? (run Activity Monitor and see how much free RAM - green - is available)
    - do you Restart fairly regularly, e.g. at least once a week, to clear out any swap or temporary files?
    - do  you need to do maintenance, e.g. clearing out caches and unused logs, etc?

Maybe you are looking for

  • How to Import MPEG1 files

    my camera creates MPEG1 files. I dont think IDVD supports this format. How can i make a DVD of these files ? is there a way of converting them? cheers kev

  • .htaccess file in ~user/Sites directory

    Hello all, I'm having trouble getting a .htaccess file to work in my user directory (~/rwilson4/Sites/private, to be specific). They've always worked just fine in any subfolder of /Library/Webserver/Documents/, but they're not being recognized in my

  • MediaPlayback - event fired when file not found?

    I want to have a playlist containing mp3 from multiple sites. I would like to use the MediaPlayback component to play these. If we try to play an mp3 that is not currently available we'd simply like to skip to the next mp3. I don't see any event or a

  • Aperture 2 Upgrade Problem

    I am trying to upgrade to Aperture 2.0 from a fully updated MacBook Pro. On the first attempt Aperture seems to start opening a Library and then reports "Unknown Error 1." This even occurred when trying to open a specific library. I deleted Aperture

  • Up to 20mb

    So I go to the website and run a test and it says up to 20mb is available on my line I typed my number in. Phone bt and ask when I will get this they tell my I can not have it yet as my account is on an old system even though the checker when I typed