treatment of the declaration

Dear Experts,

How a DML statement is addressed in the oracle database?

for example

1 syntax and semantics check

2. generate the hash value

3. check the shared pool to see if the statement is already there

4. If the statement is in the pool shared (after checking the semantics), reuse.

5 otherwise go for hard analysis

6. execution

Ok.. I hope that above steps are correct... Now I want to map these steps for v$ i.e. can I get information on these steps of views $ v as v$ sql and v$ sqlarea and where they map?

for example, in v$ sql, we address, hash_value, plan_hash_value, child_address, sql_id...

I ran after an order on 11 GR 2 (Windows 8 office)

Select ename, sal from scott.emp where empno = 7499

Select ename, sal from scott.emp where empno = 7788;

SQL_IDSUBSTR (SQL_TEXT, 1, 90)ADDRESSADDRESS HASH_VALUE PLAN_HASH_VALUE CHILD_ADDRESS EXECUTIONS

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

5f9sb1f1bc1kn select ename, sal from scott.emp where empno = 749900007FFFC6B39B883 2192967252 2949544139 00007FFFCED987F0 00007FFFC6B39B88
cgg1u404nhmn8 select ename, sal from scott.emp where empno = 778800007FFFCEC3FF203 155733640 2949544139 00007FFFC6BC2E58 00007FFFCEC3FF20

Now, I have following questions in mind:

1. What is the address here

2. What is hash_values

3. What is plan_hash_value and why it's even for both statements, even if they are different versions with different sql_id and address

4. What is the address of the child here

Concerning

Sunil Kumar

See:

http://docs.Oracle.com/CD/E16655_01/server.121/e15858/tgsql_sqlproc.htm#TGSQL175

http://docs.Oracle.com/CD/E16655_01/server.121/e17615/refrn30246.htm#REFRN30246

and so on:

Oracle Database Documentation online 12 c Release 1 (12,1)

Tags: Database

Similar Questions

  • How to translate the declaration C++ and C

    Hello

    I have a DLL that I want to use in a program developed by CVI (FDS version 8.5.1). DLL comes with documentation including a file include (* .h), where all function declarations are given. So usually I would just include this header file, unfortunately, this file was written for C++ and contains the declarations of functions of the following type:

    empty typedef (__stdcal * fp SOMETYPE) (double &, double &, long &, long).

    The compiler and I are confused by the '&' I know 'double' and ' double *', but not "double &'..." The same for the CVI that complains with an error of syntax, found '&' expected ')'.

    Then of course I have to manually translate this C++ C style header file - but I have no idea how to proceed... Maybe someone could help me? Thank you!

    It's been a while since I've done any C++, but as far as I know, you can again declare the function as:

    empty typedef (__stdcal * fp SOMETYPE) (double *, double * long *, long)

    in the header and call it from your code by passing the variables or pointers "address of".

    In this case, '&' in the function statement means "by reference."  It's a bit like pointers in C, but allowing the error checking (for example - cannot be NULL, cannot be re-assinged, etc.) and probably makes the compiler optimizations.  If you are interested in, search google for References C++, or you can check out wikipedia:

    http://en.Wikipedia.org/wiki/reference _ (C %2% B 2 B)

  • Line break WCF in the header/footer of the declaration

    Hello

    y there is it possible to force line breaks in headers or footers of the declaration? I'm on the way to develop my own report and you want to customize the header/foot a little more my way...

    Thanks and greetings

    Oliver

    I found the solution for me...

    Create your own text rendering engine and new lines of support set to true, now you can set line breaks with a normal entry in your text...

    If you know how, then, it's really easy...

    Thanks and greetings

    Oliver

  • In the treatment of the Upload, I have a progress in inventory for 11 days

    Hello

    In the treatment of the Upload, I have a progress in the inventory for 11 days.  I think it might be hung.  I already have another inventory, but it might stop the others for the last 2 weeks.

    Thank you

    Clark Collins IV

    SWN

    Hello Clark,.

    We have experienced some problems at that time load balancing, resulting in several clients pushing multiple downloads, which has compounded the problem. Dorsal team is actively addressing the issue. We ask that you not in additional downloads queue until it completes the process.

    Thank you.

  • Cannot be getNodeWithProps. AppParameters treatment in the SOAP header error: AppParameters does not exist in the SOAP header.

    Hi all

    Cannot be getNodeWithProps. AppParameters treatment in the SOAP header error: AppParameters does not exist in the SOAP header.

    " < = xmlns:env env:Envelope ' http://schemas.xmlsoap.org/SOAP/envelope/ ' > < env:Header / > < env:Server env:Body > < env:Fault > < faultcode > < / faultcode > < faultstring > cannot getNodeWithProps.» AppParameters treatment in the SOAP header error: AppParameters does not exist in the SOAP header. "< / faultstring > < details > < DrmServiceException xmlns ="http://drm.webservices.epm.oracle"> < Message xmlns:ns2 ="http://drm.webservices.epm.oracle"xmlns =" "> cannot getNodeWithProps." AppParameters treatment in the SOAP header error: AppParameters does not exist in the SOAP header. "< / Message > < Code xmlns:ns2 ="http://drm.webservices.epm.oracle"xmlns =" "> 0 < / Code > < / DrmServiceException > < / details > < / env:Fault > < / env:Body > < / env:Envelope > "

    clues?

    Thank you

    Mady

    Hi Mady,

    Have you run a test of the DRM of this URL service section? Part of the SOAP message that must be sent to the web service DRM when calling the AppParameters is in the header of the SOAP message. This is the example that gives the URL:


    http://DRM.WebServices.EPM.Oracle">
    http://DRM.WebServices.EPM.Oracle ">http://localhost:5240 / Oracle/Drm/APIAdapter "
    http://DRM.WebServices.EPM.Oracle "> ProductVersion = 11.1.2 CultureName = US, TimeZoneOffset =-360"

    The error is just saying that the section of AppParamters doesn't seem to be there in the SOAP message that was received. How you call the web service DRM method that returns this error? It seems just that, however, it is called the AppParameters is missing in the SOAP message is sent to.

    Do you need some kind of common authentication method setting upward for Weblogic and Shared Services, but not necessarily OID. I mentioned a possibility without using an external LDAP directory here on a case where you set up a development environment Re: configuration of the DRM web service API

    Concerning

    Craig

  • How to set a partialTriggers for the declarative component

    12.1.3 jdev

    I try to set partialTriggers for my component declarative.

    From another forum, people suggested using one different name other than partialTriggers to avoid override a final method in RichDeclarativeComponent.

    Then, I set this:

    < afc:attribute >

    < afc:attribute - name > myPartialTriggers < / afc:attribute - name >

    < afc:attribute - class > java.lang.String [] < / afc:attribute - class >

    < / afc:attribute >

    and

    "< af:selectOneChoice id = simple =" #{attrs.simple "dc_droplist_soc"} "readOnly =" #{attrs.readOnly} "disabled =" #{attrs.disabled} ' "

    value = "#{uploading." "Value}" label = "#{attrs.label}" binding = "#{dropListComp.selectOneChoice}".

    "autoSubmit =" #{attrs.autoSubmit} "required =" #{attrs.required} "visible =" #{attrs.visible} ' "

    valueChangeListener = "#{dropListComp.handleValueChangeListener} '"

    partialTriggers = "#{attrs.myPartialTriggers} ' / >"

    But it does not work. I don't see a partialTriggers work.

    Any suggestions?

    Thank you.

    Hello

    try to use PartialTrigger on the declarative component and then reference it from

    partialTriggers = ' #{uploading. '. PartialTriggers}' / >

    Frank

  • How to define an attribute of the declarative component with the list of options

    12.1.3 jdev

    I'm trying to define a declarative component UOM. It has a text box with a selectOneChoice of the optional codes for this type of unit of MEASURE.

    I have uomType as one of the attributes of my unit of MEASURE. It may be of WEIGHT, VOLUME, LENGTH, etc. Is it possible to provide a list of the channels supported for my uomType? So, when the user uses this component, they can select a type they want in the list, instead of typing in themselves.

    < afc:attribute >
    < afc:attribute - name > uomType < / afc:attribute - name >
    < afc:attribute - class > java.lang.String < / afc:attribute - class >
    < afc: required > true < / afc: required >
    < / afc:attribute >

    Thank you.

    Hello

    Unfortunately the lists are not an option with the declarative elements

    Frank

  • partial trigger on the declarative elements

    Hello

    I have a declarative component with many facets and a high component < af:panelGroupLayout >. I would like to refresh the entire component with PPR. In my page, I have a selectOneChoice with autoSubmit = 'true', but now I have to set the property partialTriggers to the declarative elements.

    So I created a new myPartialTriggers to attribute for declarative components as a string and changed the top element to < af:panelGroupLayout partialTriggers = "#{attrs.myPartialTriggers}" >. So now I can define the component property myPartialTriggers declarative the ID of the SelectOneChoice. It is not work that I get an exception:

    Error occurred: Houston-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg = cannot convert: c42:iflt9:dc_r2:dc_c2:naturalPersonSoc of type java.lang.String class at class [Ljava.lang.String;

    Thank you

    JDev 11.1.2.4

    Essentially, you surround the declarative component with a container and the container ppr. Read the whole story http://www.oracle.com/technetwork/developer-tools/adf/learnmore/005-how-to-bind-decl-comp-169123.pdf

    Timo

  • Anyone had any chance to get the 'Chat line' to answer a question, not to mention that the declarant is unavailable...

    Anyone had any chance to get the 'Chat line' to answer a question, not to mention that the declarant that it is not available at this time?

    Nevermind, I got a refund.

  • I have Adobe Acrobat 9 Standard on both of my computers.  Some time previously, one crashed my computer and I had to reinstall the operating system and all applications.  After you install Acrobat 9 special and differential treatment in the computer once,

    I have Adobe Acrobat 9 Standard on both of my computers.

    Some time previously, one crashed my computer and I had to reinstall the operating system and all applications.

    After you install Acrobat 9 special and differential treatment in the computer once, I wanted to update the update of the version 9.0.0 software to the same level as it was before the crash and that the other computer has version named 9.5.5.

    The update to version 9.0.0 system does not at all. 'There is no update' listed in the dialog box.

    Can you advise how to get my Adobo Acrobat 9 Standard (Version 9.0.0) could be updated to the same level it had before the accident.

    FTP://FTP.Adobe.com/pub/Adobe/Acrobat/Win/9.x/

  • How to use the declarative component without deployed as JAR

    Hi all
    I want to create a reusable component (declarative component) for PanelHeader with default features packed in I want to use in my application. Because this component will be used only in my project, I don't see a use to go through the process of creating a jar and deploying it before using it. Is it possible to use this component without creating a JAR.

    Thank you
    -Srini.

    User 895137,

    your welcome to ignore the best practices in the development of the ADF. The declarative elements are deployed in the libraries of the ADF. If you keep the declarative component in the application then project you will have a chance to deploy independent of the application (which means that your ADF library contain more than just the source of the component (which is where your nightmare begins)). Therefore, best practices

    1. create the declarative component in a new project in JDeveloper. Follow

    http://download.Oracle.com/docs/CD/E21764_01/Web.1111/b31973/af_reuse.htm#BABJBFDD

    2. If you don't ant to deploy components in a tag library, use declarative dynamic components (will not deploy-able in many applications, as you mentioned your future plan is), as shown here

    http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_declarativeComponent.html
    http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_componentDef.html
    http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_xmlContent.html

    Frank

  • Error message 'missing; before the declaration 24 "

    Hello

    I get the error message "missing; before the declaration 24 "in the following script:

    Create a variable to hold the document object

    var StartDate = (xfa.form.form1.page1.signature.StartDate.rawValue);
    var EndDate = (xfa.form.form1.page1.signature.EndDate.rawValue);
    var assocName = (xfa.form.form1.page1.signature.assocName.rawValue);
    assocID var = (xfa.form.form1.page1.subForm1.assocID.rawValue);
    var assocEmail = (xfa.form.form1.page1.subForm1.assocEmail.rawValue);
    var assocExt = (xfa.form.form1.page1.subForm1.assocExt.rawValue);
    var assocDept = (xfa.form.form1.page1.subForm1.assocDept.rawValue);
    var mgrName = (xfa.form.form1.page1.subForm1.mgrName.rawValue);
    var mgrEmail = (xfa.form.form1.page1.subForm1.mgrEmail.rawValue);
    var salariedHourly = (xfa.form.form1.page1.subForm1.salariedHourly.rawValue);
    directReports var = (xfa.form.form1.page1.subForm1.directReports.rawValue);
    var perfRating = (xfa.form.form1.page1.subForm1.perfRating.rawValue);
    var howLongWorking = (xfa.form.form1.page1.request.howLongWorking.rawValue);


    PRESENT DATE
    If (StartDate == "") then
    xfa.host.messageBox ("Please enter a shipping Date");
    xfa.host.setFocus ("xfa.form.form1.page1.subForm1.StartDate");

    HIRE DATE
    ElseIf (EndDate == "") then
    xfa.host.messageBox ("Please enter a hire Date");
    xfa.host.setFocus ("xfa.form.form1.page1.subForm1.EndDate");

    NAME OF PARTNER
    Else if (assocName == "") then
    xfa.host.messageBox ("Please enter your name");
    xfa.host.setFocus ("xfa.form.form1.page1.subForm1.assocName");

    PARTNER ID
    ElseIf (assocID == "") then
    xfa.host.messageBox ("Please enter your ID");
    xfa.host.setFocus ("xfa.form.form1.page1.subForm1.assocID");

    EMAIL PARTNER
    Else if (assocEmail == "") then
    xfa.host.messageBox ("Please enter your email address');
    xfa.host.setFocus ("xfa.form.form1.page1.subForm1.assocEmail");

    EXTENSION ASSOCIATE
    Else if (assocExt == "") then
    xfa.host.messageBox ("Please enter your extension number");
    xfa.host.setFocus ("xfa.form.form1.page1.subForm1.assocExt");

    DEPARTMENT ASSOCIATE
    Else if (assocDept == "") then
    xfa.host.messageBox ("Please enter your Department");
    xfa.host.setFocus ("xfa.form.form1.page1.subForm1.assocDept");

    NAME OF THE MANAGER
    Else if (mgrName == "") then
    xfa.host.messageBox ("Please enter your name of");
    xfa.host.setFocus ("xfa.form.form1.page1.subForm1.mgrName");

    E-MAIL MANAGER
    Else if (mgrEmail == "") then
    xfa.host.messageBox ("Please enter e-mail address of your manager");
    xfa.host.setFocus ("xfa.form.form1.page1.subForm1.mgrEmail");

    HOURLY EMPLOYEES
    Else if (salariedHourly == "") then
    xfa.host.messageBox ("Please enter if you are salaried or hourly");
    xfa.host.setFocus ("xfa.form.form1.page1.subForm1.salariedHourly");

    DIRECT SUBORDINATES
    ElseIf (directReports == "") then
    xfa.host.messageBox ("Please indicate if you have any direct report");
    xfa.host.setFocus ("xfa.form.form1.page1.subForm1.directReports");

    PERFORMANCE RATING
    Else if (perfRating == "") then
    xfa.host.messageBox ("Please certify your last performance rating");
    xfa.host.setFocus ("xfa.form.form1.page1.subForm1.perfRating");

    HOW LONG WORK
    Else if (howLongWorking == "") then
    xfa.host.messageBox ("Please indicate how long you think that this scheme of work");
    xfa.host.setFocus ("xfa.form.form1.page1.questions.howLongWorking");

    on the other
    Button6.execEvent ("Click");
    Page2.presence = "visible";

    EndIf

    I have been hunting for several hours and can't seem to find or correct the problem. Can anyone help?

    Thank you

    MDawn

    It would be easier if I cpoudl see the form in action... .a you send it to [email protected] and include a description of how to reproduce the problem.

    Paul

  • Treatment of the values not defined forms

    I have a form with 50 frames.

    Sometimes when my users submit it form, if the field value is equal to zero, completely remove the input area.

    For example, when the form is submitted, and they get to the processing page. the value of form field for the field they deleted is «»

    This causes problems as the value of the form is "", where it should be 0.00

    I'm CFPARAM to the processing page. But I guess that, given that the value is set ("'") they are not used.

    Is there a way for treatment in the form of code page so that if one of the fields of the form are "" they have by default a value of 0.00?

    Pat

    You could do it in a loop and | or a function.

    I.E.

    
         
              
         
    
    

    You may need to change this there are some areas that you don't want to test this way.

  • the declaration of the type of this expression is ill-formed incompleteor

    error 320 to the column of the row 22 14
    the declaration of the type of this expression is ill-formed incompleteor
    error on line 22, column 4 0
    Declaration ignored
    DECLARE
         v_value VARCHAR2(50);
         v_prod_id varchar2(100);
         v_prod_name VARCHAR2(100);
    BEGIN
         v_value:=:product.SIZE_LONG;
         v_prod_id:=:product.prod_id;
         v_prod_name:=:product.prod_name;
         IF v_value is not null then 
         insert into product (prod_id,prod_name,DRESS_COMPOSITION,WASH_LABEL_INSTRUCTION,PRESSING_CHARGE,DYEING_CHARGE,
         EXTRA_CHARGE,FINISHING_CHARGE,ITEM_TYPE,TOTAL_FOB,SEASON_YEAR,INTERSTAT_CODE,RETAIL_EURO,WHOLESALE_EURO,
         RETAIL_USD,WHOLESALE_USD,RETAIL_GBP,WHOLESALE_GBP,CATEGORY)
         values (v_prod_id||'-L',v_prod_name||'-Long',:product.DRESS_COMPOSITION,:product.WASH_LABEL_INSTRUCTION,
         :product.PRESSING_CHARGE,:product.DYEING_CHARGE,:product.EXTRA_CHARGE,:product.FINISHING_CHARGE,:product.ITEM_TYPE,
         :product.TOTAL_FOB,:product.SEASON_YEAR,:product.INTERSTAT_CODE,:product.RETAIL_EURO,
         :product.WHOLESALE_EURO,:product.RETAIL_USD,
         :product.WHOLESALE_USD,:product.RETAIL_GBP,:product.WHOLESALE_GBP,:product.CATEGORY);
         LOOP
              insert into product_detail1(prod_id,item_code,item_name,qty,price,unit,avg_rate) 
              values (:product_detail1.prod_id,:product_detail1.item_code,:product_detail1.item_name,
              :product_detail1.qty,:product_detail1.price,:product_detail1.unit,:product_detail1.avg_rate);
                   exit when NO_DATA_FOUND;
              NEXT_RECORD;
         END LOOP;
    elsif
         v_value is  null then 
         delete from product where prod_id=(v_prod_id||'-L');
    end if;
    END;
    Please Guide

    Why this errro comes

    Thanks and greetings
    Vikas Singhal

    I don't know why not use is not the same as I showed. The error is coming because the closer you get the lower case letter in the condition. Before apply the code, you first need to examine carefully.

    Change This.  exit when :system.last_record = 'true';to  exit when :system.last_record = 'TRUE';
    

    Don't forget to use VALIDATION after END of LOOP

    After that he will even record to another record, the only change is prod_code
    LARGE, SMALL or SHORT etc.

    But you said before that the product size = LONG then you want to insert the record. And now, for all sizes. In any case, if yes, then remove the IF condition.

    -Clément

  • Top 3 treatments in the table groyp by Department

    Hi friends,
    I want the query for albums 3 treatments in the table groyp by Department
    Please help me
    Thanks and greetings
    kesana Niasse
    select ename, dept,sal
    from
    (select ename,dept, sal, row_number() over (partition by dept order by sal desc) rn
    from employee)
    where rn <= 3
    /
    

    You can also use TOP N query, RANK and DENSE_RANK analytical function instead of row_number to get the same result

Maybe you are looking for

  • Safari on iPhone

    On iPhone: I type "Safari", the page opens with the options - popular, Google Maps, News, Wikipedia, etc. I recently visited another site several times, now that the site (USA TODAY) specifically appears with the other options. How to remove this opt

  • Download Tracktor?

    Try to download Traktor DJ software via the external disk drive. It is said that it can not be installed on this drive. I'm not very tech savy, so any DJ who use Mac and Tracktor, and useful advice that would be great! Thank you!

  • window crash, when the battery removed

    I had pushed the power button on my laptop thought that he was arrested, but is sleep, & then I had removed the battery note the maximum of devices serial No.. When turned on, it shows an error, when trying to recover from pressing f11, it take to re

  • where to download Eclipse plugin to version 4.5

    Hello world Can someone tell me where, since then, I download eclipse 4.5? I have eclipse for 5.0 but I run the app on blackberry 4.5. But I can't find the link for the Blackberry Eclipse 4.5.

  • Two Applications of blackBerry Smartphones found on...

    My BB Storm 9530 Recently, I turned on my BB Storm & noticed 2 APPS that were on my phone that I've never added? One was YOUTUBE I thought great just what I wanted. So I clicked on 'I Aggree' but he said 'not supported for this device? is there a You