analysis Vs hard soft

Hello Experts / gurus


I have a few questions for query execution details.


Question 1: How do we know if the request goes to parse soft or hard analysis?

Question 2: Where can we check exactly to find it?

Ques3: If the query will Parse hard, how can I show proof?

Ques4: If the query will soft Parse, how can I show proof?


-GooGle don't really know an answer to this question!

Thanks in advance!

> If you include the hash value, I can understand very well, but we missed...

There is nothing prevents you to accomplish the same experience.  It wouldn't matter anyway, the hash value would have been the same between the two statements.

> what I thought (if (SQL_ID, HASH_VALUE, SQL_TEXT) these values are the same for both declarations = it is soft analysis)

Absolutely not.

> If (SQL_ID, HASH_VALUE) is different, it's hard analysis.

Well, any.  New topic that appears in v$ sql got there because of a difficult analysis.

> but I do NOT understand why you went to the ' v$ sql_shared_cursor '

> Question 1 :-is this good place to find, if the analysis is soft_parse or not?

Because this view will show you why two identical sql statements (with same sql_id or hash_value) could NOT be reused.  This is the scenario you sketched out.

> Question 2 using sql_id, hash_value   we can determine if it is hard analysis or not?

If an sql statement is reused (uses good bind variables, etc.), you can see his performances increases.

declare

L_Name varchar2 (30);

number of l_employee_id;

Start

l_employee_id: = 101;

Select first_name from l_name from employees where employee_id = l_employee_id;

l_employee_id: = 102;

Select first_name from l_name from employees where employee_id = l_employee_id;

l_employee_id: = 103;

Select first_name from l_name from employees where employee_id = l_employee_id;

end;

/

Select sql_id, executions, sql_text from v$ sql where lower (sql_text) like '% employees;

SQL_ID EXECUTIONS SQL_TEXT

------------- -------------------- ----------------------------------------------------------

3. SELECT FIRST_NAME from EMPLOYEES WHERE EMPLOYEE_ID = bhd9y189arp8q: B1

Tags: Database

Similar Questions

  • Parse Hard & Soft Parse for a given SQL?

    Hi all

    I need to know which of these is a hard and soft analysis for a given Sql. What I think is the 'charges' and 'invalidation' indicates if a cursor is invalidated and gets reloaded, which allows us to check if a call analysis becomes hard analysis.

    Confusion here is should "Disk reads" value nonzero means hard analysis regardless of the 'load' and 'invalidation' and 'Disc bed' zero value means soft parse?

    SELECT a.SQL_ID, a.INSTANCE_NUMBER, a.SNAP_ID,
      TO_CHAR(b.END_INTERVAL_TIME, 'DD-MON-YYYY HH24:MI') snap_time,
      a.PLAN_HASH_VALUE,
            ROUND(a.ELAPSED_TIME_DELTA/1000000) TOTAL_EXECUTION_TIME_SEC,
            ROUND(a.CPU_TIME_DELTA/1000000)    cpu_seconds,
            a.ROWS_PROCESSED_DELTA    rows_processed,
            a.BUFFER_GETS_DELTA      buffer_gets,
            a.DISK_READS_DELTA      disk_reads,
            a.EXECUTIONS_DELTA      executions,
            a.PARSE_CALLS_DELTA    parses,
      a.VERSION_COUNT             version_count,
            a.LOADS_TOTAL               loads_total,
            a.INVALIDATIONS_TOTAL       invalidations_total
    FROM DBA_HIST_SQLSTAT a, DBA_HIST_SNAPSHOT b
    WHERE a.SNAP_ID = b.SNAP_ID and a.INSTANCE_NUMBER=b.INSTANCE_NUMBER
    AND a.INSTANCE_NUMBER=1 AND a.SQL_ID='bsraj0u9r9d3w'
    ORDER BY a.SNAP_ID desc;
    
                                                                 TOTAL
                  Instance      Snap Snap                    EXECUTION     CPU                    Buffer     Disk                   version loads invalidations
    Sql Id          Number        Id Time                    TIME(Sec) Seconds     Rows             Gets    Reads Executions Parses   count total         total
    ------------- -------- --------- -------------------- ------------ ------- -------- ---------------- -------- ---------- ------ ------- ----- -------------
    bsraj0u9r9d3w        1      9368 12-FEB-2016 12:00              14      13      200       14,079,211      780          2      1       1     6             5 --- hard Parse
    bsraj0u9r9d3w        1      9348 11-FEB-2016 16:00             110      91    1,500      104,806,435        0         15      4       1     5             4 --- ??
    bsraj0u9r9d3w        1      9347 11-FEB-2016 15:00              30      29      500       34,922,061        0          5      2       1     5             4 --- ??
    bsraj0u9r9d3w        1      9346 11-FEB-2016 14:00              14      13      200       14,009,248        0          2      1       1     5             4 --- ??
    bsraj0u9r9d3w        1      9341 11-FEB-2016 09:00              14      13      200       14,009,957      651          2      2       1     5             4 --- hard Parse
    bsraj0u9r9d3w        1      9297 09-FEB-2016 13:00              20      20      500       23,380,631        0          5      4       1     4             3 --- ??
    bsraj0u9r9d3w        1      9294 09-FEB-2016 10:00              65      53    1,300       58,569,220        0         13     13       1     3             2 --- ??
    bsraj0u9r9d3w        1      9293 09-FEB-2016 09:00              18      17      300       18,635,057        0          3      2       1     3             2 --- ??
    bsraj0u9r9d3w        1      9292 09-FEB-2016 08:00              70      67    1,700       77,145,560      787         17     17       1     3             2 --- hard Parse
    bsraj0u9r9d3w        1      9272 08-FEB-2016 12:00              18      18      400       22,164,178        0          4      4       1     2             1 --- ??
    bsraj0u9r9d3w        1      9270 08-FEB-2016 10:00             106     101    2,500      123,154,635        0         26     24       1     2             1 --- ??
    bsraj0u9r9d3w        1      9269 08-FEB-2016 09:00              11      10      300       11,401,899      657          3      3       1     2             1 --- hard Parse
    bsraj0u9r9d3w        1      9253 07-FEB-2016 17:00             104      98    2,300      115,320,927      788         23     23       1     1             0 --- hard Parse
    

    Thanks in advance

    Reads disk do not mean that the query will invalidation thus analyze hard. Reading disc mean simply that the IO that happens from disk and it is perhaps due to the result not being not not available in memory.

    I'm not sure why you use this type of analysis to check if requests are going for hard analysis or not? Why not pick up a particular query run and use TKPROF(better SQLTXPLAN) or AWR based SQRPT.sql to check the same? What is the exact issuethat, you're trying to solve?

    Aman...

  • Resolution of requests for long durations

    Hello

    We can directly implement the recommendations provided by MS Oracle SQL Tuning advisor *(10g) * as it is long running queries or we must make additional measurements?

    I hope that we must compare the SQL execution to the existing query plan and query recommended, is that enough or more? Thanks for posting

    Thank you
    Hari.

    Hello

    I think so

    We can directly implement the recommendations provided by MS Oracle SQL Tuning advisor *(10g) * as it is long running queries or we must make additional measurements?

    NO can't you. IE you can accept the profile recommended by Advanced optimizer, but it didn't affect/change the already for a long time the application runing.

    I hope that we must compare the SQL execution to the existing query plan and query recommended, is that enough or more? Thanks for posting

    SQL profile contain generally advance information required by the optimizer to produce effective explain the plan. If you look inside the SQL profile, you will find that it contains ultimately a set of TIPS of SQL.

    So to answer your first question, NO, because when SQL Analysis first hard/soft it parse already have generate / used its query plan, then you cannt change an existing query running. The new accepted SQL profile will be used the next time.

    Answers to your second question - once you run the SQL tuning advisor you would see typically other recommends, for example, statistics are out of date, create the new set of index etc etc. So you should first focus on these recommendations first. I know its bit cubersome to apply all of these recommendations, but practically when you implement these reco (except accept the sql profile) and still perform SQL Tuning advisor then could see previous recommendations went away (you already implemented like them), but if the SQL Setup again recommend to accept the profile so I think it would be OK. Because you already explored other tuning techniques recommended by the optimizer. Also the profile SQL too can become obsolete and to maintain their.

  • Hard Vs soft analysis analysis

    Hi all

    Suppose I execute a SQL query, once it is executed it will get in the Shared pool.

    Second time when I run the same query, that query will be in the shared pool. This second query execution time will not need of optimization and generate explain to new plan. It will use explain the plan used in the first execution of the query.

    Now, suppose that the plan of the explain command used is not plan optimal and before you run the second query times I created some indexes on the tables used in the query and the indexes can improve the performance of queries.

    Is it good or bad?

    Optimizer generates plan still even in the analysis of soft or not?

    OR

    Soft and hard parsing analysis differed only in terms of "Load the code in the Shared Pool", rest steps are the same for Parse Soft and Hard Parse Optimzer run and find plan even in the analysis of Soft?

    Two posts on hard Parse Soft Parse confusion:

    http://www.DBA-Oracle.com/t_hard_vs_soft_parse_parsing.htm

    https://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:2588723819082

    There are significant errors in this text, for example:

    QUOTE

    1. Loading in shared pool - SQL source code is loaded into RAM for parsing. (the analysis stage 'hard')
    2. ,,,
    3. ...
    4. Transformation of the query - Oracle will transform complex SQL in simpler forms, equivalent and replace the aggregations by materialized views, as the case may be. In earlier versions of Oracle the query_rewrite = true parameter should be defined for the rewriting of the materialized view.
    5. Optimization - Oracle, and then creates an execution plan, based on the statistics of your schema (or perhaps with 10 g dynamic sampling statistics).  Oracle has build costs decision tree during this period, by choosing the track with the cost lowest perceived.
    6. ...

    What is the difference between a hard and a soft analysis in Oracle?  Just the first step, step 1 as shown in red above.  In other words, a soft analysis does not require a reload shared pool (and associated allocation of RAM memory).

    ENDQUOTE

    This is wrong - or, at best, very wrong.

    The CRITICISM of 'hard' analysis, is that an implementation plan should be created for the instruction; that the statement must be optimized.  (In a modern version of Oracle, passing bly, query processing is not a discrete step that precedes the optimization). If the session can take the advantage of doing a 'mild' analysis, it means it didn't optimize instruction.

    Concerning

    Jonathan Lewis

  • How to set up the hard and soft limit to the/etc/Project Help for Clusterware

    Please advise on how to set up/etc/Project to set the appropriate Hard and Soft limit on files for Oracle Clusterware 11 GR 2 what Solaris 10 installation.

    What is the command line to set limits of Hard/Soft to/etc/Project file for the Oracle software owner? Thank you

    Hello

    Please advise on how to set up/etc/Project to set the appropriate Hard and Soft limit on files for Oracle Clusterware 11 GR 2 what Solaris 10 installation.

    What is the command line to set limits of Hard/Soft to/etc/Project file for the Oracle software owner? Thank you

    Consult the kernel configuration settings and swap space link below

    http://www.oraclemasters.in/?p=974

    Thank you
    A H E E R X

  • Difference between bouncebacks in canvas of the campaign against the campaign analysis report

    I have a campaign currently having only an email to send in it.  When I look at the green number in the corner of the email, I show 12 bouncebacks (and some selected because of defection, but 12 listed as bouncebacks). However, when I run the report of insight, it is said there were only 3 total-1 2 hard, soft.  I have already noticed this kind of disparity before. Someone has any ideas why I see that?

    Hi Jessica,.

    Bounceback numbers you see in your campaign analysis report are emails which Eloqua tried to send, but failed due to a bounceback. The numbers you see in the canvas of the campaign are the contacts that have been excluded from the benefit of enamel because they have rebounded in a previous transmission;

  • Analysis

    What is hard & soft analysis. How to avoid hard analysis of an application, means what parameter must use in the query to avoid. ?

    Here's your answer...
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:P11_QUESTION_ID:2588723819082

  • analysis of the material space

    is there a way I can check my total disk space Widget?

    I seems if involved in the properties panel, double space do I really use?

    ???

    something like an analysis of hard disk

    You can use free utilities like TreeSize or WinDirStat to see what is taking place. MS - MVP - Elephant Boy computers - don't panic!

  • How to capture hardparsed Sqls.

    Hi I'm using Oracle 10.2.0.4.0.

    I want to get the list of those who are hardpared several times (maybe 100 times more) SQL and do not bind variable, increasing therefore shared burden of pool. So is there an easy way to capture these sqls, only using "Select" statements (that I did not create the object of rights in prod)?.

    Hello

    you are right about that there is two different cases: several cursors of the child (because of the incompatibility of the bind variables size, settings of optimizer etc.) and several sliders parent (due to the use of literals). Given that in your original post you were talking about is not using bind variables, I don't mention one, since it is has nothing to do with the not not using bindings. But if you want to look at the issue as well, perhaps the best reference is MOS 296377.1 and notes referenced that are there. I doubt that V$ SQL.parse_calls will be of no use here because analysis calls include soft parsed and interested probably only parsed hard.

    You're not quite right about "different sql_id for the same text" - the text will be different due to different values of literals, and this is exactly the reason for different sql id

    Best regards
    Nikolai

  • Search App Store not available?

    Everything seems to work in the App Store, except the search option.  When I try to look for an app, I get the "App Store not available" message.  It happens on my iPhone and iPad.  Any suggestions on how to fix the error?  I tried the option hard/soft reset already.

    Thank you!

    Hi davidbowlin!

    Thank you for joining the communities Support from Apple! Looks like you are having problems connecting to the App Store. I know how it is important to be able to connect to the App Store to make purchases on your devices. Reset is a great place to start. Read this article with the steps for If you cannot connect to the iTunes Store. This will give you a few extra steps, you can try and be able to get the issues resolved to connect to the App Store.

    See you soon!

  • iOS 10 - Emoji in not included in the predictive text

    Updated to iOS 10 today. Always play with it and try to understand things. But one thing that some friends of mine who can make my iPhone's display an emoji in the section of text predictive once you enter a word that has an associated emoji.

    I tried to disable/enable the predictive text, reset the dictionary of text and adding and removing of keyboards and languages, as proposed in line. Also tried to change these settings and hard/soft reset the phone. No dice.

    Now I am cause of GROUND I wiped my own dictionary that I was put in place for some time. Back to the AutoCorrect 'duck' If you know what I mean

    A few colleges to work can get emoji in predictive text while myself and others may not.

    This function does not seem to work anywhere in the phone, iMessage, Notes, E-mail, etc.

    Anyone else having this problem read this?

    I use an iPhone 6 Plus.

    Thank you

    Yes - I see the same question. The only thing I have not tried is a full restore, but I was hoping to avoid this.

  • Recover photos from iphone, knowing the password

    Hello

    I'll try to keep it short.

    1. my Iphone 4S has got a broken screen

    2. I have not used for 1 month (aprox)

    3. after replacing the screen, the date has been reset to January 1, 1970

    4. the phone is off "try again in 24,000,000 minutes.

    Facts in brief.

    -I do not know the password

    -J' tried to disconnect the battery - same date

    -It is not sync with iTunes (received a new computer)

    -I don't have the old computer to Apple/Lockdown ID

    -J' tried an update and it worked (I now have IOS 9.3), but it is still blocked

    -J' tried insert/remove different SIMs and reset (hard/soft)

    Is there a way to fix the clock or recover my photos and records? I have some that I really care and I am willing to spend a reasonable amount to get them.

    Thank you very much.

    Alex

    If you have changed the date of May 1970 or earlier and cannot restart your iPhone, iPad or iPod touch - Apple Support

    If you really iOS 9.3, this issue should have been resolved.

    What is Apple/Lockdown?

    How you did update a locked phone?

    There seems to be some made missing. Are what 'lock' you referring?

    Locking activation?  > > > Find my iPhone Activation Lock - Apple Support

  • Windows does not turn on or restart properly - boots to black screen

    Whenever I reboot my computer or turn the power off and then turn it on, it will send me to a white, black screen. It passes through the small loading bar microsoft, then it sends me to this black screen. If it starts fine then the slider appears, but most of the time there's just on this black screen for hours and hours and I have to hold the power button so he can close.

    I tried to do the analysis of hard drive and restoring the system, but I don't know what the problem is. Any help? Thank you.

    Hello

    ·          Were there any changes made to your computer before this problem?

    Step 1: Use the option ' enable video low resolution (640 × 480) ' start and then update your video card driver.

    a. click the Start button, click the arrow next to Shut Down and then click on restart.

    b. do one of the following:

    ·         If your computer has a single operating system installed, press and hold the F8 key as your computer restarts. You need to press F8 before the Windows logo appears. If the Windows logo appears, try again by waiting until the Windows logon prompt appears, and then stop and restart your computer.

    ·         If your computer has more than one operating system, use the arrow keys to select the operating system you want to start in safe mode, and then press F8.

    c. on the Advanced Boot Options screen, use the arrow keys to select activate video low resolution (640 × 480) and press ENTER.

    d. connect to your computer with an account of a user who has administrator rights.

    e. If you can see your desktop, there is a problem with your video card. Try to update your video card driver. For more information, see update a hardware driver that is not working properly.

    f. If these instructions allow to solve the problem, you are finished. If this is not the case, go to the next set of steps.

    Step 2: Start the computer in safe mode and disable your video card

    a. start in safe mode: http://windows.microsoft.com/en-US/windows-vista/Start-your-computer-in-safe-mode

    b. sign in your computer with a user account with administrator rights. When your computer is in safe mode, you will see marked Safe Mode in the corners of your screen.

    c. open the Manager of devices by clicking the Start button, click Control Panel, click System and security, and then, under system, clicking Device Manager.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    d. in the list of categories of equipment, expand the category of display cards. Take note of your graphics card.

    e. right click on your graphics card and then click on disable. Confirmation prompt, click Yes.

    f. close all open windows and restart your computer normally.

  • faliure id on laptop

    not sure if this is good advice, but here goes. I have a Pavilion g6 notebook that has had changes made to the system as a replacement for the Norton antivirus to another with a few other spyware and malware .the windows media player has been replaced by another media player of unknown origin. everything is fine for a day until yesterday when nothing would load up on the screen apart from what looks like a screensaver of choice you get when you first install, but this is as far as I can get to work far enter too far into the system goes. I managed to get what seems to be a diognostic page. Solange performing an analysis of hard drive what happens with this message. "failure id: 94le1s-5s071f-mfpv4k - 619 k 03", does this mean?, and it is able to fix?   Thank you.

    Hard drive has failed or is failing fast and will need to be replaced. If you are still in warranty HP sent a new. If this isn't the case, you can use a laptop SATA hard detail. You also need a recovery media to install your operating system and the drivers/software on the new hard drive. I hope you did yours? If this isn't the case, it can be ordered from HP for a small fee usually.

  • BlackBerry Z30 sim not detected after security wipe

    Hello

    My unlocked Z30 BB does not detect the sim card after security wipe. I did hard and soft reset, but the problem still persists. Today I took it to the service center and the guy told me that the sim connector pin is defective. How could he say that without inspection? To my surprise, he also informed that I need to replace the motherboard. Can someone please give an overview on:

    ++ If these questions have been seen on Z30 (I've seen for Z10) where security wipe cause the SIM to go unnoticed?

    ++ If security wipe and connector are correlated?

    ++ The worst case if the sim card connector is broken, fill out the motherboard needs to be replaced? (I know its 80% of the cost)

    ++ Is there anyway I can defend higher up in the service center

    Troubleshooting:

    > same sim works in any other mobile phone

    > no sim card works in Z30

    > The used micro sim card is the standard sim and not cut manually.

    > Reset multiple hard / soft / volume up and down reset button did the test (equivalent to removing the battery).

    I am based in India, in Bangalore, and the unit is under warranty (only 4 months). Name of the service center is Redington India, Cunningham road, bangalore.

    Any pointer is appreciated. Thanks for your help!

    Kind regards

    Imran

    A wipe destroy a physical component such as a SIM Slot

    It's just a coincedence

    Location SIM can be bought online, but you need to know how to solder.

    I see some listed on ebay for $4 USD

Maybe you are looking for

  • Upgrade xp2 to xp3

    I'm trying to update XP2 for XP 3...  In "windows update" if I click on express or custom, I get the same answer "site has encountered a problem and cannot display the page you are trying to view.   I need to pass so I can install Fixit to remove "st

  • Windows Vista mail. Impossible to delete some items from the deleted items folder.

    I can delete the new entries, but there are a few video fwded causing w/message does not. the Explorer did the same thing.

  • Windows Activation failed after the replacement CMOS battery

    I upgraded my computer (HP Pavilion m7570n) from Windows XP to Windows 7 Pro (64), with the exception of a few problems earlier with the installation of MSE, it works well and much faster than Windows XP, has never had a problem starting up. Since th

  • Smartphones blackBerry seriously, what gives with my e-mail/e-mail icons? Help, please!

    Since the failure, I had serious problems with access to my e-mail/e-mail icons! I posted about this before. I deleted the service t recorded books the HRTS and sent service books and I have done hard it recharges with the device more then I care to

  • Percentile calculation BI

    Hi friends,I was bit confused with the calculation of percentiles and explain my scenario. I have the sub reportIn the above I'm not sure how to do the base salary average annual is calculated. I can see the formula substituted for this column as bel