to solve the problems of performance (running slow SQL queries), which should be the systematic approach

Hello

I am new to oracle.  Need some advice on how we should approach to problems of performance especially for SQL queries running slow on the database.

Thanks in advance.

6e85b3c2-5f02-40CB-A8AD-d2279f63b4be wrote:

Hello

I am new to oracle.  Need some advice on how we should approach to problems of performance especially for SQL queries running slow on the database.

Thanks in advance.

Start here;  http://docs.Oracle.com/CD/E11882_01/server.112/e10822/TOC.htm

Continue here: http://docs.oracle.com/cd/E11882_01/server.112/e41573/toc.htm

Tags: Database

Similar Questions

  • (Suddenly) Gets slow SQL queries, caused by high CPU and buffer high

    Hi all

    We lack a database of Oracle 11 g Enterprise Edition Release 11.2.0.3.11 - 64 bit Production.

    As a scheduled task, we lack a query:


    SELECT *

    DE (

    SELECT T. * , LAG( DATE_FROM, 1, NULL ) OVER (PARTITION BY OUR_ID ORDER BY DATE_TO ) AS PREV_FROM, LAG( DATE_TO, 1, NULL ) OVER (PARTITION BY OUR_ID ORDER BY DATE_ FROM ) AS PREV_TO, LEAD(DATE_FROM, 1, NULL ) OVER (PARTITION BY OUR_ID ORDER BY DATE_FROM) AS NEXT_FROM

    DE STOCK_A T

    OUR_ID = :B1 )

    WHERE DATE_FROM = : B2


    This query has run every minute for 3 years. The size of the STOCK_A table has increased some over the years: thousands of records go, no record out.


    Since last Sunday, we have huge performance problems. The query had a runtime of 0.02 seconds. Now it's up to 1.4 seconds. Since it must deal with thousands of lines, this considerable increase in execution time is problematic.


    When this query parsing, we discovered that the CPU has increased enormously. About 20% of the 90% of the runtime execution time. This is probably caused by the enormous increase of receives it from the buffer. Of thousands to millions. Given that we have not made any changes to the database instance, we're stuck as to how this performance problem suddenly appeared. It's literally from one day to the next.


    Someone at - it experience with this problem? Any help would be much appreciated.


    Kind regards


    Lupker

    I took a little longer than expected, but we have finally solved the problem.

    He seems to have been a bug in the application currently running on the database. A process in the application began to write many lines in the table as before. This behavior was expected, but what was not expected was the volume of 'same' records that were written in the table. So finally, we analyzed the data and indexes, and of course, the effectiveness of the index was strongly fell because of the unique, indexed values. Once we cleaned the duplicate lines and rebuild the indexes, we got our previous performance back after removal of the bug in the application of course. Simple enough, but we were so focused on a vice of the Oracle that we have overlooked the possibility that data could have been the cause of our problems. Who it was.

    Problem solved!

    Thanks to all those responding to this thread. Your help is very appreciated.

  • How do to cancel/return HTTP request (because of slow SQL queries)

    Hi everyone - I have a flex application that requires a connection first. The connection queries my database to check if it's a name of user and password valid. 95% of the time the query to check if it's a name of user and password valid takes almost no time (less than one second) and the user connects very, very quickly. But on occasion, for some reason, the query takes a long time or something where the valid/invalid result is not returned for about 20 to 40 seconds. If I hit the button submit once again, it will return the SQL query and very quickly (in general) work very well. It is a simple query to find the name of user and password, so I think that something is maybe going on why it it takes so long.

    Two questions:

    1. no idea why this could happen that some of the time, and most of the time it works fine? Any suggestions or fix for this?

    2. an idea to solve this problem I came up with, I could just cancel and resend the request. Anyone know how I can cancel and return the most recent httprequest object? Should I have it checked to see if I do a query, and the result is not returned within 2 seconds, then cancel the current request and return? This does not solve the real problem, but it provide a workaround. If I was a user of connect, and a login page lasted 30 seconds, 5% of the time I connect, I get bored and leave or think that it does not work.

    Note: I may queries on the site, what happens the same question, but the connection of the user request is the most visible and the most important. I would like to find a solution to avoid other problems too.

    Help, please! Thank you!!

    As a side note, if you want to see the site/application I'm talking, it's www.yahtzo.com

    The site is fully functional, just try to fix some bugs. If you have the time, play some games!

    Thank you!

    HTTPServcie has a requestTimeout property, I don't remember exactly if there is a default value. Together, a custom value and if you get an answer for this amount of time the HTTPService will trigger the ResultEvent. Inspect the event you could get some extra info to know that there was a timeout.

    C

  • Windows 7 running slow will be upgraded to windows 10 clear of problems

    I am running windows 7 Professional 64-bit, but it raised a number of questions and is slow.

    The standard way to solve this would be to do a clean reinstall.  If I want to upgrade to Windows professional 10 this will have the same effect, or I have to re - install Windows 7 first before the upgrade.

    Also, on my second computer I am also running P 7 Professional but the 32 bit version.  Can I download the Windows Professional 64-bit for this machine 10 and doing a full install instead of upgrade Windows 7 32-bit to 32-bit Windows 10.

    Doing one in put place at level will not solve your performance problems. In fact, this could worsen.

    You can perform a clean when install upgrade to Windows 10:

    Click option to change what to keep

    Do not select anything

    Click Next

    How to: upgrade previous versions of Windows using the file ISO for Windows 10

    You can try to solve your problems of performance of Windows 7 by using the following tips:

    How to speed up your Windows 7 system:

    http://techingiteasy.WordPress.com/2010/01/11/speed-up-your-system-for-the-new-year/

    In regards to your second computer, yes you can, see instructions how to:

    How to: switch from 32-bit versions of Windows to Windows 10 64-bit

  • Computer suddenly starts running slow

    Hi all

    More computer problems - yay.

    I can boot my computer without problem. For about 2 minutes, it works perfectly - things open fast, close quickly, etc.

    Then all of a sudden, the whole system just slows down. All that I'm starting to take forever - the same computer hangs when I click on the start menu. Freezes completely, just for like 5, 10 seconds. But it happens every time, making it incredibly long to open anything (5 minutes for opening google chrome page.)

    I have a MSI motherboard with AMD drivers.

    I noticed that during the freeze, the computer disconnects from the internet (connected with an ethernet cable), raise above the symbol of the internet's yellow warning triangle.

    I start the computer in safe mode, fiddling around with a number of things when I got a warning window stating that I don't have an AMD graphics driver or that its does not work properly. This thread, I think it might be the drivers I installed using an MSI/AMD disc that came with the computer, so I installed them again using the disc, but no difference.

    System Restore does not work, I restored the closest point possible without success.

    Oh, I do not update windows, I had previous problems with windows after updates, so I cut them. This could it be? I'm not sure.

    Any help would be greatly appreciated!

    (1) try a "clean boot".

    How to perform a clean boot in Windows:
    (solve a problem by performing a clean boot in Windows Vista, Windows 7 or 8)
    http://support.Microsoft.com/kb/929135

    Perform a clean boot to determine if background programs are interfering with your game or other programs
    http://support.Microsoft.com/kb/331796

    One by one add back one application at a time in the boot list to check if a particular software application is the cause of the slow down.

    2) update your drivers from MSI web site

    Chances are the drivers to your MSI drive are older versions and have been updated:

    http://www.msi.com/product/MB/

    (3) scan your PC for viruses:

    Details of virus removal
    Download the free version of Malwarebytes, it will detect and remove most of the viruses.
    http://www.Malwarebytes.org/products/malwarebytes_free

    ESET Online Scanner:
    http://www.eset.com/us/online-scanner/
    ESET removal tool (Windows 7 only)
    Burn it to a CD or create a USB bootable thumb with her:
    http://KB.eset.com/esetkb/index?page=content&ID=SOLN3509

    BitDefender Online Scanner:
    http://www.BitDefender.com/scanner/online/free.html

    Kaspersky Rescue Disk:
    https://support.Kaspersky.com/viruses/RescueDisk
    Kaspersky Rescue Disk 10 is designed to scan and disinfect x 86 and computers compatible x 64
    who have been infected. The application should be used when the infection is so severe
    that it is impossible to disinfect the computer using anti-virus applications or malware removal utilities

    Kaspersky free Antivirus Scanning:
    http://www.Kaspersky.com/virus-scanner

    Norton Power Eraser
    http://security.Symantec.com/nbrt/NPE.asp?lcid=1033
    Note: Because the Norton Power Eraser uses aggressive methods to detect these threats,
    There is a risk that it can select some legitimate programs for removal.
    You should use this tool very carefully, and only after you have exhausted other options.

    Microsoft safety scanner
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Also:
    Take a critical look at your current AV software, it is produced to date or old and obsolete.

    Unexplained computer behavior may be caused by deceptive software
    http://support.Microsoft.com/kb/827315

    J W Stuart: http://www.pagestart.com

    .

  • Cannot run PL/SQL using SQL * more

    Hello

    I am very new in the SQL environment. I want to run the following PL/SQL code, which should allow me to send an e-mail, using sql * more:

    DECLARE
    l_mailhost VARCHAR2 (64): = "qiudubcorrel001.qa.local";
    l_from VARCHAR2 (64): = "[email protected]";
    l_to VARCHAR2 (64): = "[email protected]";
    l_mail_conn UTL_SMTP.connection;
    BEGIN
    l_mail_conn: = UTL_SMTP.open_connection (('10.253.14.240'), 25);
    UTL_SMTP. HELO (l_mail_conn, '10.253.14.240');
    UTL_SMTP.mail (l_mail_conn, l_from);
    UTL_SMTP. RCPT (l_mail_conn, l_to);
    UTL_SMTP. Data (l_mail_conn, 'single string message.' |) Chr (13));
    UTL_SMTP. Quit (l_mail_conn);
    END;

    When I type the code above in sql * Plus, it does nothing but waiting just as if the code is incomplete and he expects something more! Could someone tell me what is the problem here?

    Thank you
    Kamal

    Hello

    Try to put a / on a new line after END;

    Concerning
    Peter

  • How to find the sql queries executed in one day with the sql and runtime text

    Hi Experts,

    Please tell me the sql query to find out the queries executed on a particular day and the runtime and the sql text of the query.

    Please reply urgent.

    Thanks in advance

    Database instance 'A' may have run 100 SQL queries today.  As for the instance of database 'B' could have exploited queries SQL 1 million today.  Instance of database 'B' to 'keep' the 1 million SQL statements - in memory or on disk do you expect?  Of course not.  There the age or flush or invalidate memory SQL statements.  He can't keep them on the disk (imagine running a completely different set of 1.2million SQL statements tomorrow and 1.3 the next day).

    AWR and StatsPack can make counts the number of "n" top of the page ("n" default to 30) SQL statements which are still present in the cache of the library (not years, rinsed, invalidated) when a snapshot was taken.  They can't declare "all" SQL statements.

    To return to your needs.  WHY do you need all the SQL statements?  Or are there only certain operations specific SQL would you be interested?  Could they have been treated by allowing audit (for example, UPDATE and DELETE with EXTENDED verification instructions)?

    Hemant K Collette

  • More I stay on my computer the slower it runs. How can I solve this problem?

    I turned on my computer at least 2 hours per day. When you go to FaceBook, I wouldn't click on links to articles and videos. the longer I stay on the site the slower my computer runs. How can I solve this problem?

    You have not provided a lot of information.

    What is your antivirus?

    If you haven't done so already, run SAS and MBAM:

    For the SAS portable scanner:

    http://www.SUPERAntiSpyware.com/portablescanner.html

    Also download, update and run the version FREE of MBAM (not the version pro or trial!):

    http://www.Malwarebytes.org/products/malwarebytes_free

    You can remove them later if you wish, but the full run scans with them and your antivirus after update all 3.

  • I updated my drivers and now my computer runs very slowly. How to solve the problem?

    I've recently updated my Intel graphics driver and my drivers Nvidia because they were terribly outdated. As a result, I am able to run some games that I couldn't run before, but my computer became very slow. Now, the startup time is significantly slower, and the worst part is that the actual performance of the system is slower. I checked in the Task Manager, and my physical memory constantly rotates between 40 and 60% (I have 8 GB of RAM, Windows 7) without any game or program being open, except the web browser and Skype.

    What is perhaps the reason for this problem? Is certainly the problem in the drivers? How to solve the problem?

    "My graphics card is GEFORCE GTX 660 M. Is it compatible with the latest driver? »

    Ah! A laptop computer. With laptops, it is generally better to download the driver from the mfg, not Nvidia.

    This is because the computer laptop mfg bring changes that can make the improper generic Nvidia driver.

    and while I always count should not slow down the system... You never know.

    "What services I need to run.


    Just to keep the correct terminology-

    Services is the area where you stopped the service of bitlocker.

    The start is where you keep things from loading when you start in Windows.

    -Most of the time what's in Startup deactivation is something personal need, but there are some things that

    I must be on the left.

    I leave the Intel common user interfaceand Installshield update service, mainly because I don't bother

    Discover what they are doing.

    I also let anti-virus, Realtek audio, software profile keyboard and a few other things active.

    I don't have Adobe Flash loading with Windows, but I don't use it a lot, and when I do the software that

    uses it it launches automatically.

    The bottom line here is that if you have software that you use all the time, it is more convenient to have it start with

    Windows.

    -Concerning the Services. This also has to do with personal preferences to a certain extent, but most things can be left alone.

    I do not use the Services tab in the Configuration of the system, because I think it's only a one time adjustment.

    (Clean boot, linked earlier, is the best tool for the verification of conflicts with Services)

    To stop or disable a Service manually, tap - services.msc - in the run command to open

    the main window of Services.

    There is an Adobe Flash update in Services that should be kept, but when Adobe makes an update

    I select the option notify me, but not to install it automatically.

    I always preferred this with any updates, including Windows updates as there is less chance of a corrupt

    Update If you're aware, it happens and do not do something intensive system while the update is being installed, particularly when an update requires a restart to complete.

    -Registry. In the control run, type - regedit - and browse the registry with the file path in the

    previous post and follow the instructions. You can save the key you are modify if you wish, that the use of the

    backup to change the value to what is current would be faster than navigating to the key again.

    -When playing around with things you are not familiar with creating a System Restore point before you

    making these changes is a good insurance policy.

    If you don't know how to create a system restore point - time to do some research.

    In fact, all of the above is covered by tons of tutorials out there in the www.

    SSD vs HDD - the specifications of the system for you the machine should be in your user manual or on the

    MFG web site.

    Prefetch is useful with HARD drive, because it improves performance somewhat, but read-ahead is not really necessary with SSD.

    and can reduce the life expectancy SSD a bit (there is debate on gravity)

    More research for more details. D

    -If you use a HARD disk and that you have enabled Prefetch, the Prefetch will be rebuilt over time, if you delete the files.

    -Here's another tip for when you are not sure of the impact of deleting files.

    Rename file/folder. You can do something like add another couple of P to the front, or a 1a which will move

    the file to the top of the window. If nothing is wrong in the next few days, you can delete the folder.

    This method protects to empty the trash accidentally and lose the file/folder.

    -Speaking of deleting the file. A great TEMP folder can slow things way down.

    Run Windows, Disk Cleanup . This will remove many files in the Temp folder.

    Or, for a full, clean, go to the - your User\AppData\Local\Temp

    Open the Temp folder and delete anything that can be deleted (impossible to delete the files that are used).

    -Defragment your HARD drive

    -Run the Zig - zag Kit you'd use again and analyze the results.

    It was a long, huh!

    .

  • Internet and the performance of Windows 7 on computor are loading and running slow

    Original title: super fofana
    my computer and the internet is loading and running slow

    Hi Charlesdurbin,

    Thanks for posting in the Microsoft Community.

    If I understand correctly you have a performance issue with your computer and the Internet.

    He would be grateful if you can answer these questions to help you further.

    1. have you made changes on the computer before this problem?
    2. what version of Internet Explorer you are using, if you are using Internet Explorer?
    3. is it limited while accessing a particular application?

    I would suggest trying the following methods and check if it helps.


    Method 1:

    Optimize Windows 7 for better performance: http://windows.microsoft.com/en-us/windows7/Optimize-Windows-7-for-better-performance

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again, the data files that are infected can be cleaned by removing the file completely, which means that there is a risk of data loss.

    Method 2:

    I suggest you perform a clean boot and check if it helps.

    Clean boot will check if any third-party application is causing the problem, as the clean boot helps eliminate software conflicts.

    How to solve problems using the clean boot in Windows 7: http://support.microsoft.com/kb/929135
    Note: Once the diagnosis has been made, make sure that you try to step 7 of the article to reset the computer as usual

    Method 3:

    The resolution of performance problems of Internet explore and see if that solves the problem: http://windows.microsoft.com/en-US/windows7/Open-the-Internet-Explorer-Performance-troubleshooter


    Method 4:

    Optimization of Internet Explorer and check to see if it can help

    How to optimize Internet Explorer? : http://support.microsoft.com/kb/936213

    Note: Please note that reset the settings of Internet Explorer running resets all of the settings defined by the user, including those established by the installed extensions, toolbars and other add-ons for IE by default. This includes all the security, privacy and settings area. Also, this will delete browsing history, delete all temporary Internet, cookies, form data files and especially all the passwords

    Reference:

    Improve performance and security in Internet Explorer: http://support.microsoft.com/mats/ie_performance_and_safety/

    Thanks for posting the results and let us know if you need help to solve the problem and we will be happy to help you.

  • When I start the machine, continuous hard drive work for almost 1/2 hour, meanwhile if I open a program, the machine runs very slowly. Help solve the problem please

    I have wndow XP Home edition service pack 3 installed on my lap top. When I start the computer the hard drive continues to work for almost 1/2 hour; Meanwhile, if I open IE, or any program, the machine runs very slowly and I just can not open the program up until the drive hard light is off. Please help solve the problem

    How much RAM you have on your system? (Right click on "My Computer"-> properties)

    As a general rule, Windows XP does not work well if you have less than 1 GB or more of RAM.  What usually happens is that your RAM capacity is exceeded leading to overflow on virtual memory (the drive) to compensate for the need of RAM in the computer.  This causes your system to beat on your hard drive and slow down your system.

    If this is your problem, the options are to increase the RAM on your system or decrease the non-essential programs that launch at startup on your computer using a tool like Autoruns.

    HTH,
    JW

  • How can I solve the problem of slow computer or what nested steps I need to take more things that I mention below to slow computer speed?

    Hello

    I know that for your computer to start faster, you can disable in msconfig certain applications or auto-start services

    I also know that to make your computer faster to do a virtual and half larger than the memory size, more you will need to start it and the value of the same size virtual memory, for example start value 3000 end value3000.

    I know also some malicious spyware can slow down your computer.

    In addition, you can add more memory to mke your computer more fast, your drive hard must be empty of 25%.

    In addition to these things I mentioned before nested thing wat do I check to solve the problem of slow computer?

    can you give me some?

    Thank you

    Johan

    The size of the virtual memory required will depend on the type of requests and is influenced by the installed physical memory. The 1.5 times value really applies to computers with a limited amount of ram and the use of virtual will decrease with an increase in physical (but remove never virtual memory altogether) while Shawn says investigate fitting over RAM.

    Setting the pagefile identical to max and min values will reduce fragmentation but was so moving to a less actively used by car.

    http://TechNet.Microsoft.com/en-us/magazine/ff382717.aspx

    The largest suites 'internet security' may have much more impact than the plain simple AV (that's why I use MSE).

    By far the biggest kick in performance should be move to the SSD, it reduces by half my boot time.

    If a desktop computer fits a discreet graphics card, she discharge the graphic CPU and restores memory used.

    As well as Msconfig, check the contents of the process in the Task Manager tab. Most will be perfectly legitimate, but you can identify the odd thief of uninstalled programs.

    NOT tempted by claims of speed countless programs available. Rarely, they make a significant difference and can do serious damage.

  • When I run Mozilla Firefox I get the error message "ReferenceError: Globalstorage is not defined." How to solve this problem?

    When I run Mozilla Firefox I get the error message "ReferenceError: Globalstorage is not defined." How to solve this problem?
    -Vinayak

    GlobalStorage is no longer supported in the current Firefox (removed in Firefox 13), versions so the extension or Web site that uses it needs an update and use localStorage instead.

  • The screen of my computer no longer turns. It is supposed to run it any way, I flip the screen, I can not understand how to solve this problem

    The screen of my computer no longer turns. It is supposed to run it any way, I flip the screen, I can not understand how to solve this problem. I guess a child (best case scenario) or my husband (worst case) have been involved in this. But it drives me crazy. Any ideas on how to get that back in action?

    Hello

    What is the brand and model of the computer?

    Were there recent changes made on the computer before the show?

    This issue could be due to corrupted graphics cards drivers. I suggest you to update the latest version of the drivers of graphics from the manufacturer's Web site and check if it helps.

    http://Windows.Microsoft.com/en-us/Windows-8/get-best-display-monitor

    Thank you.

  • Error manually running Windows updates "the website has encountered a problem and cannot display the page you are trying to view. The options provided below might help you solve the problem.

    Original title - manual update of Windows XP via "Windows Update" fails

    07/01/14: click on "Windows Update" on the desktop (XP Home) and XP Tablet

    Result: 'the site has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem. »

    This office has begun on about 3 days ago and just this morning appeared on the Tablet

    I do McAfee and Microsoft updates manually every morning after the startup of computers so that they will not automatically be updated when I'm busy with other things

    I suspect that the McAfee via Verizon security package is the culprit since the 'look' of their package and procedures changed end of December

    Since then, they have had updates almost every day

    And around the same time, my problem appeared on XP Home Edition, I was not able to access Adobe PDF files and had to re-download Adobe Reader XI

    Any body else having the same problem?

    And help get the update of Windows XP to run again?

    It would not be the first step to disable automatic updates in Control Panel and manually download and install the most recent cumulative security update for internet explorer since without first, everything in the way of troubleshooting will be futile?

    Download and install the latest cumulative security for IE8 update and manually restart the computer.

    visit windows update via the shortened link in your Start menu.

    Assuming that you have Win XP SP3 and IE8, it will be the necessary file

    http://download.Microsoft.com/download/1/9/A/19A6AC47-9EA0-455F-B918-A44D25B5304C/IE8-WindowsXP-KB2898785-x86-enu.exe

Maybe you are looking for