Performance doubt: Manual tuning or Oracle tuning features?

Hi all,
I'm reading some docs regarding performance, and most of then mention and recommend the use of the Oracle tuning features, as SQL Access Advisor, SQL Performance Analyzer, SQL Tuning Sets and so on. What i want to know from the most experienced dbas here is if you use these performance features from Oracle, or if you prefer to perform tuning tasks "by hand"?. By hand i mean checking the explain plan, checking statistics, index seletivity, histograms and so on.
Thanks in advance.

Fabricio_Jorge wrote:
Another simple doubt/question: What would be your tuning strategy? For example, what a commonly do is:
1) Check the object statistics.Yes, make sure statistics are current. The tricky part is that I have heard enough stories (not seen this myself) about new stats messing up performance that I prefer to save off the old stats before generating new ones - just in case
2) Check if the columns used in the predicates are indexed, and if not, i check the seletivity of then to see if an index creation would be efficient.This is probably my most effective tuning technique. I check the selectivity but create the index anyway to see what happens with it in place. Sometimes even though a new index is created the optimizer won't use it, and in other cases the index does not help performance even when the optimizer uses it. Any changes must be carefully checked.
3) If it is possible, create a materialized view with the query rewrite feature.I use MVs, but as a later resort. I prefer instead to recode SQL if possible to get better results to avoid having yet another database object to keep track of. With luck the optimizer can use the automated query rewrite capability to avoid changing the original SQL.
>
4) If it is a RAC env, i try to increase the CACHE value of the sequencesI have not worked on many RAC environments and when I have did not have much to do with sequences. I did learn that select list inline views often perform poorly compared to equivalent queries using table joins (not specifically a RAC issue)
>
5) Check the Memory and Segment Advisors and hit ratios, taking the necessary procedures, if the advisors indicate so.I am not usually given privileges to use these tools. I have gotten good results from the SQL tuning advisor when I can use it but have seen it miss things so I prefer to manually analyze SQL.
>
6) After all of this, i would try to tune the query by rewriting it. I leave this as a last option because generally you must know the data/env of the company that you are allocated. If you don't know the env very well, you can make bad recommendations about a specific
query.Doing the rewrite is something I do earlier in the process due to the fact that I rarely get DBA privilege on my projects and don't get access to some of the tools you mentioned. I can (hopefully) control SQL so I focus on it. Sometimes I cannot control SQL and have to rely on materailzed views, indexes, and other environmental factors to help SQL run faster.
>
OBS: All of this is done in parallel with the Statspack/AWR report "on hand"AWR is a great tool to use for tuning. OEM (which I rarely get access to) is another.

Similar Messages

  • Performance tuning of Oracle 9i Database

    I want to know, what are the different parameters in the tuning of Oracle 9i database.
    A few, i can list like
    1) Re-building of indexes
    2) Making the heavy transaction tables lighter
    3) Checking if the indexes are firing
    In a similar fashion, i needed what are the other parameters which can be a good indication of the health of the database. I hope, my question is clear.
    Please, help in solving the doubt.
    regards

    Hmm there is parameter coming up called _<your db name>_fast=true in some later future release.Its still not implemented yet but expected to be coming up soon due to excessive demand.
    Your list's first element only is the show-stopper.Richard Foote has talked extensively about this.Its almost never that a index is requiriing a rebuild.There should be benchmarks to prove the benefit (if any ) of the operation.Please visit his blog http://richardfoote.wordpress.com to readmore about this.
    2) Making the heavy transaction tables lighter
    I didnt get this one.
    3) Checking if the indexes are firing
    You mean by chance that they are in use or not?If yes than again this may not be the indication of the success truly.It may be possible that they are in use but not the right thing for the query.BTW indexes being used or not is not the database health check.Its the query's health check.
    There are no certain parameters which needs to be on a cerain value.Every parameter and its value can have variation depending upon the environment,workload and most importantly release of the databse.If you want to benchmark your db's health ,I shall suggest take a STatspack report before the problem and when you see a variation in it and compare.This will give you the lead to find the bottleneck in the db's performance.Instance tuning(changing parameters) is the last resort or near to last one.
    Aman....

  • Siebel Upgrade and Performance Tuning On Oracle 11g Training At Oracle Open

    Hi All,
    If you are interested in attending a Siebel Upgrade and Performance Tuning for Oracle 11g please let me know. We are planning to offer this course during the same week as OOW in San Francisco. For anyone who can’t attend in person we are planning to offer a net meeting with a dial in.
    This education is offered to actual Siebel customers.
    R
    Robert Ponder
    Lead Architect and Director
    Ponder Pro Serve
    cell: 770.490.2767
    fax: 770.412.8259
    email: [email protected]
    web: www.ponderproserve.com

    Hi All,
    If you are interested in attending a Siebel Upgrade and Performance Tuning for Oracle 11g please let me know. We are planning to offer this course during the same week as OOW in San Francisco. For anyone who can’t attend in person we are planning to offer a net meeting with a dial in.
    This education is offered to actual Siebel customers.
    R
    Robert Ponder
    Lead Architect and Director
    Ponder Pro Serve
    cell: 770.490.2767
    fax: 770.412.8259
    email: [email protected]
    web: www.ponderproserve.com

  • Performance tuning of Oracle 10 g

    Dear Team ,
    I am in need of tuning my Database against the performance .
    I have visited lots of Web pages in Net for Performance tuning .
    It shows some values for the Performance tuning , But I dont how to read the values
    Wheather my database is good or it need to tuned again .
    So kindly help me for good performance tuning in my Database (Oracle 10g)
    Regards
    Augustine

    Hi Augustine;
    I am in need of tuning my Database against the performance .
    I have visited lots of Web pages in Net for Performance tuning .
    It shows some values for the Performance tuning , But I dont how to read the values
    Wheather my database is good or it need to tuned again .First step should be run ASH AWR report than check your CPU usage(also other parameter) from Oracle Enterprise Manager console.
    Check top5 event and try to understand what is happining on ur database. Actualyy There is no specific answer for your question, just check report try to understand to what eat your source? when it happens?what is fruquence etc.. So just run report and observe it
    Check below search
    http://www.google.com.tr/search?q=Performance+tuning+of+Oracle+10&rls=com.microsoft:en-us&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1&redir_esc=&ei=v0fxS8bTCtOrsAaYqfTbAg
    There are many docs related performance.
    Hope it helps
    Regard
    Helios

  • Step for performance tuning in oracle 10g

    hi,
    i want to know the step of persformance tuning and sql tuning.

    I'd suggest you to refer to documentation: [Oracle Database 2 Day + Performance Tuning Guide 10g Release 2 (10.2)|http://download.oracle.com/docs/cd/B19306_01/server.102/b28051/toc.htm]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Oracle tuning

    Other than googling which I will do, you guys know any good resources about
    Oracle Tuning. I'm a complete beginner on the topic.

    The proper place to start tuning is with understanding the architecture and therefore understanding what can, and can not, be tuned.
    Personal recommendation - in order:
    - docco: Concepts manual;
    - docco: Database Administration Guide;
    - Tom Kyte's books (see http://www.apress.com)
    - docco: Performance TUning guide;
    - Cary Milsap's "Optiminzing Oracle Performance" pub by O'Reilly
    - anything by Jonathan Lewis
    - anything by any of the Oak Table members (http://www.oaktable.net)
    BTW: Tuning is simply 3 generic steps
    1) 'identify what important use activity is slow', followed by
    2) 'identify all the things that makes the activity slow', followed by
    3) 'speed up the part(s) that gives you the best improvement'.
    Keep those in mind when you (or the writers of the books, people assisting you, etc.) jump to conclusions. A LOT of people jump (myself included) from 1) directly to 3) too often and simply waste time. The real trick is understanding, in ever-increasng detail, all the litttle parts that slow the use action - hence the need to understand the architecture, and especially the recommendation for Tom Kyte's books.

  • Oracle tuning questionnaire (Help wanted)

    I'm doing my dissertation about Oracle tuning,
    and I need your help to fill in my questionnaire,
    if you would like to participate in my website questionnaire,
    the questionnaire in http://www.abubaker.co.uk

    This appears to be a duplicate thread
    Oracle tuning questionnaire
    Justin

  • Oracle tuning questionnaire

    I'm doing my dissertation about Oracle tuning,
    and I need your help to fill in my questionnaire,
    if you would like to participate in my website questionnaire,
    the questionnaire in http://www.abubaker.co.uk

    okei, I will have a try ....till weekend Don't bother. The questionnaire is naively phrased and structured. More fundamentally it is broken - no box for answer to question 13, no further questions, no submit button or additional navigation. Please can I have my five minutes back?
    Cheers, APC

  • Doubtful about security of oracle's Wrap code!

    Dears
    I am little bit doubtful about security of oracle's own Wrap code like package "sys.utl_smtp" .
    Someone can easily Unwrap it without source code?
    How it possible? whats your opinion about this? please can anybody clear me.
    Regards
    Abdul Halim
    Edited by: Abdul Halim on May 31, 2013 8:14 PM

    Halm, you are operating under the mistaken belief that your code deserves hiding from the customer and competitors to begin with. Why? All you are doing in the code is performing DML. It is not like your application is the only one in the world that performs its function.
    If someone really wanted to they could figure out what your code is basically doing just by looking at the table and file data before and after running the code. By careful manipulation of the data and studying the results they can figure out what is being done and then develop their own specific of the how it is done. One can also look at Oracle's internals as the code is being processed both using Oracle provided views and direct peaking at Oracle's shared memory. Then there are tools like sql trace which will captute the SQL, waits, and binds for the process.
    But all of this is kind of mute in that most shops do not have the talent to write their own unwrapper nor has the shop purchased an unwrapper so if you wrap the code it is going to be secured from most users and competitiors. I would just recommend that potential customers not purchase your product becuase the customer is going to need access to the code either for debugging (bugs will exist in the code) or tuning. Likely both.
    IMHO -- Mark D Powell --

  • How Performance can be improved at  Oracle Database level

    Hi Everyone,
    Need a suggestion ......
    I m managing SAP Landscape of Retail Sector Client.
    where SAP ERP PRD database size is : 2 TB.
    at SAP Application Layer .... we have setup five application system to distribute load because around 1200 users work concurrently.
    Out of these 1200 Users around 300 Users keeps on fetching
    reports from database which worsen database performance.
    We have changed parameters of Database to improve performance.
    What we have thought to setup replica of PRD system .
    On which Only Report Users will execute reports.
    & that System will work as Disaster Recovery Site of PRD System.
    In process of that We have restored the PRD Backup on another System. But How can we replicate daily changes of PRD System on Restored System.
    One which we have thought by applying offline archive files.
        daily . But somebody has told us that we can not apply
        offline archive files of PRD System to restored system
        because that Restored database is in Open stage & being
       used.
    (ii) Secondly, Incremental Backup which is very time-consuming action.
    Please suggest , If you have an idea & I want to know How
    offline archive log file application on DR Site .
    Thanks in advance !!!
    Points will be rewarded !!!
    Thanks
    Deepak !!!

    deepak  gosain wrote:>
    > Hi Everyone,
    Hi Deepak!
    > Need a suggestion ......
    I'll try my best
    > I m managing SAP Landscape of Retail Sector Client.
    > where SAP ERP PRD database size is : 2 TB.
    > at SAP Application Layer .... we have setup five application system to distribute load because around 1200 users work concurrently.
    >
    > Out of these 1200 Users around 300 Users keeps on fetching
    > reports from database which worsen database performance.
    Hmm.. might happen.
    > We have changed parameters of Database to improve performance.
    Oh - which ones? Why? Who told you to?
    > What we have thought to setup replica of PRD system .
    > On which Only Report Users will execute reports.
    > & that System will work as Disaster Recovery Site of PRD System.
    This setup does not work for SAP environments. To get reports out of a system with SAP the database must be open to writes.
    > In process of that We have restored the PRD Backup on another System. But How can we replicate daily changes of PRD System on Restored System.
    Such thing would be done via a Standby-DB.
    > One which we have thought by applying offline archive files.
    >     daily . But somebody has told us that we can not apply
    >     offline archive files of PRD System to restored system
    >     because that Restored database is in Open stage & being
    >    used.
    That person told you the truth.
    > (ii) Secondly, Incremental Backup which is very time-consuming action.
    Depends on your reference. Compared to what is it very time-consuming?
    Compared with a full DB-Backup this is likely to be the less time-consuming option.
    > Please suggest , If you have an idea & I want to know How
    > offline archive log file application on DR Site .
    For a how-to in Standby-Setup you may want to have a look into the Oracle documentation like here [Introduction to Oracle Data Guard |http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/concepts.htm#SBYDB00010]
    > Thanks in advance !!!
    You're welcome !!!
    > Points will be rewarded !!!
    Oh - nice !!!!!!!!!!
    Now get a bit earnest as well:
    From what you described it sounds like you're setup is a bit undersized.
    If your report users use BI for their reports, than it may pay off to setup a seperate BI system that gets it's data from the ERP system automatically and not whenever a user starts a report.
    Another option may be to consider using a RAC cluster  - but this would be a very expensive option.
    In any case the important first step has to be to find out, what the real cause for the performance degration is.
    Perhabs the I/O Subsystem is the problem, perhabs the network. Perhabs another CPU would do wonder.
    You'll never know - before you analyse this in depth.
    Reading hints would include these notes:
    618868     FAQ: Oracle performance
    72638     Performance problems with SQL*Net
    354080     Note collection for Oracle performance problems
    853576     Oracle 10g: Performance analysis w/ ASH and Oracle Advisors
    793113     FAQ: Oracle I/O configuration
    619188     FAQ: Oracle wait events
    805934     FAQ: Database time
    Best regards,
    Lars

  • How to Perform Forced Manual Failover of Availability Group (SQL Server) and WSFC (Windows Server Failover Cluster)

    I have a scenario with the three nodes with server 2012 standard, each running an instance of SQL Server 2012 enterprise, participate in a
    single Windows Server Failover Cluster (WSFC) that spans two data centers.
    If the nodes in the primary data center are unavailable due to data center outage. Then how I can able to access node in the WSFC (Windows Server Failover Cluster) in the secondary disaster recovery data center automatically with some script.
    I want to write script that can be able to check primary data center by pinging some IP after every 5 or 10 minutes.
    If that IP is unable to respond then script can be able to Perform Forced Manual Failover of Availability Group (SQL Server) and WSFC (Windows Server Failover Cluster)
    Can you please guide me for script writing for automatic failover in case of primary datacenter outage?

    please post you question on failover clusters in the cluster forum.  THey will explain how this works and point you at scipts.
    You should also look in the Gallery for cluster management scripts.
    ¯\_(ツ)_/¯

  • How to Perform Forced Manual Failover of Availability Group (SQL Server) and WSFC (Windows Server Failover Cluster) with scrpiting

    I have a scenario with the three nodes with server 2012 standard, each running an instance of SQL Server 2012 enterprise, participate in a
    single Windows Server Failover Cluster (WSFC) that spans two data centers.
    If the nodes in the primary data center are unavailable due to data center outage. Then how I can able to access node in the WSFC (Windows Server Failover Cluster) in the secondary disaster recovery data center automatically with some script.
    I want to write script that can be able to check primary data center by pinging some IP after every 5 or 10 minutes.
    If that IP is unable to respond then script can be able to Perform Forced Manual Failover of Availability Group (SQL Server) and WSFC (Windows Server Failover Cluster)
    Can you please guide me for script writing for automatic failover in case of primary datacenter outage?

    You are trying to implement manually what should be happening automatically in the cluster. If the primary SQL Server becomes unavailable in the data center, it should fail over to the secondary SQL Server automatically.  Is that not working?
    You also might want to run this configuration by some SQL experts.  I am not a SQL expert, but if you have both hosts in the data center in a cluster, there is no need for replication between those two nodes as they would be accessing
    the database from some form of shared storage.  Then it looks like you are trying to implement Always On to the DR site.  I'm not sure you can mix both types of failover in a single configuration.
    FYI, it would make more sense to establish a file share witness in your DR site instead of placing a third node in the data center for Node Majority quorum.
    . : | : . : | : . tim

  • Oracle spatial feature is working in 10g stadard edition

    hi
    is it working oracle spatial features in oracle stadard edition
    thanks

    Locator, a subset of Spatial, is a feature of the Standard Edition.
    The white paper available from the Spatial page on OTN has further details.
    Oracle Locator: Location-Enabling Every Oracle Database—Technical White Paper
    Jayant

  • SP2-0575: Use of Oracle SQL feature not in SQL92 Entry Level.

    Hi,
    When I tried to login I am able to login but getting the following message:SP2-0575: Use of Oracle SQL feature not in SQL92 Entry Level.
    After loging, when I tried to "SELECT SYSDATE FROM DUAL;" I am getting the following error.
    ORA-00942: table or view does not exist
    Can somebody please help me ?

    this error may be related to glogin.sql files content, what are the outputs for these -
    SQL> describe dual ;
    Name                                      Null?    Type
    DUMMY                                              VARCHAR2(1)
    SQL> select * from dual ;
    D
    Xbest regards.

  • Sp2-0575: Use of oracle SQL feature  not in sql 92 entry level.

    Hi,
    While logging to sqlplus I'm getting the following message
    "sp2-0575: Use of oracle SQL feature not in sql 92 entry level."
    and login is successful, but I'm not able to generate next value from the sequence .
    t says no rows selected when i request
    for nextval a
    EX: select mySeq.nextval from dual; (mySeq is sequence)
    Thanx,
    Ravi.

    What has happened is that someone has enabled the Oracle feature called as FIPS flagger.
    This is a feature that Oracle provides to you if you plan to write SQL code that should be portable
    to other RDBMS systems. IF you enable this flagger and use a feature which is not in the SQL standard,
    Oracle will complain that use of this feature will make your application Oracle dependent, and you may not
    be able to run this application against any other RDBMS.
    To disable this for your SQL*Plus session do this:
    SQL> set flagger off
    SQL>
    Once you do this it will allow you to use all SQL commands including Oracle specific extensions.

Maybe you are looking for

  • Drag and Drop to Change Order in a List

    Does anyone know of an example where there is the ability to drag and drop elements in a list and thus change their order? (I.E. drag item one below item two and then item one and two change locations) Thanks!

  • Google search bar in safari with SL

    clear searches is now gone and google doesn't suggest any search terms as you type.

  • Visual Composer 6.0 Patch2 on EP60 SP7 WAS 6.40 SP8

    Hello, I am trying to test visual composer for some of our developemnts. I have installed Visual composer 6.0 Patch2 and am able to connect to the CRM systems using the Portal framework. The iview created in the VC works in preview mode in VC workben

  • Old computer itunes to new mac itunes

    I have a new Mac and had a Pc previously.  I'm wondering why my songs from my itunes account are not apearing in my itunes on my mac.  Many were bought in itunes.  I understand that songs copied from cd's would be unavailable.  But why am I not seein

  • Activating Scripting on the Web Server

    I found this, but can not locate Scripting on the Web Server: Configuration page Activating Scripting on the Web Server To use scripting with a Web service, you must activate the functionality on the LabVIEW Web Server. In LabVIEW, select Scripting o