Doubt abt query outlines

I am working on performance issue in my project.I want to create stored outlines for the query fetching the results.But in user_Outlines table a, under category default the outline is shown as USED .How can I make this USED for my query?
If I have session level stored outlines under default category and some other category for same query and then when I run the query which stored outline is considered is taken by query ?Is it default one?
Please clarify...

I don't understand your question.
The USED flag indicates if an outline has been employed. Unused outlines can be purged immediately. Outlines with a used status must be set to unused before they can be removed with a package procedure call. Outlines get used by executing their query.
I personally don't use outlines. Using hints effectively is tricky, and hints can produce unexpected results when upgrading or patching database versions. I use hints when necessary but prefer to control them myself instead of letting the database do it. I might use outlines of other methods to get a query to run efficiently did not work but they wouldn't be my first choice

Similar Messages

  • Plz clear this doubt abt query and subquery

    hi
    can a sql statement display data from a table that is referred in it's subquery without including the table in the from clause..
    please give an example for this
    thank u
    rajiv

    Have you tried it yourself?
    It would be much quicker than waiting for a forum answer.

  • Doubt abt proxies

    hi this is seshagiri.
    i have doubt abt proxies. when u created ABAP server proxy,objects were generated.
        1. ABAP interface
        2.structure for data type
        3. structure for msg type
    WAT IS THE DIFFERENCE BETWEEN DATATYPE STRUCT AND MSG TYPE STRUCT.
    AND ONE MORE THING IS PROXIES ARE RUNNING ON WHICH ENGINE

    Hi,
    To see the deff between DT and MT
    A message type comprises a data type that describes the structure of a message
    More than one message interface can use the same message type. For example, an asynchronous outbound message interface and an asynchronous inbound message interface can reference the same message type because the request message does not need to be mapped.
    ·        When defining a message mapping you can directly reference message types to map messages from an outbound interface to messages from a receiver interface.
    For technical reasons, a data type is not sufficient to describe the instance of a message. In XML schema, data types are defined as abstract types that are not yet fixed to an element. You can only describe an instance of a message when you have specified a data type as an element type. Therefore, a message type defines the root element of a message.
    A message type does not define the direction of the message exchange
    Just go thru following links-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a8/bfc6373c8fea43bdb3541535bcbd43/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a8/bfc6373c8fea43bdb3541535bcbd43/frameset.htm
    Regards
    chilla..

  • Doubt in Query designer

    Hi all:
    I have a doubt in Query ...
    I have an infocube for GR quantities and other infocube for confimation quantities.
    In a multiprovider,i collect this two cubes.In query designer,if i given GR date as i/p,
    confirmation quantities doesnt display.IF i didnt give GR date as i/p,then both GR and Confimation
    quantities display in seperate line.In that case if i see the confirmation quantitis column,GR quantity is
    and same for GR quanitiy.
    Waiting for your inputs.
    Rgds
    MSK

    MSK,
    These two pieces of information are at different levels. GR Date is mapped only to the GR quantities cube and no mapped to the confirmation quantities cube.
    Map GR date in the multi-provider to a date in the confirmation quantities cube.
    Aneesh

  • Doubt in query statement in receiver jdbc

    HI
    Again a doubt in XML format for receiver jdbc.
    I want to execute a query
    select sum(col1) sum(col2) from tablename where startdate <= tdate.
    My payload message looks like this
    <AggregateFn action="SQL_QUERY">
      <access>SELECT sum(Weight) FROM KmFuelTrace WHERE resourceno = '$resno$' AND startdate = '$sdate1$'</access>
    - <key>
      <resno compareOperation="EQ">CHILLED_02</resno>
      <sdate1 compareOperation="LT">06/08/2007</sdate1>
       </key>
      </AggregateFn>
    I am getting a error "Data type mismatch in criteria expression" .
    I have defined the datatypes correctly with DateTrans function . I think its the problem with access statement.
    How to give the selection criteria for non-text fields. (can i use same quotes and dollar combination for date field too) . Or is there any other mistake in the xml structure

    Aarthi,
    Try the following
    <AggregateFn action="SQL_QUERY">
    <access>SELECT sum(Weight) FROM KmFuelTrace WHERE resourceno = '$resno$' AND startdate = $sdate1$</access>
    - <key>
    <resno compareOperation="EQ">CHILLED_02</resno>
    <sdate1 compareOperation="LT">06/08/2007</sdate1>
    </key>
    </AggregateFn>
    Also check what us the date format that database uses and give the similar format.
    Regards,
    Sudharshan N A
    Message was edited by:
            Sudharshan Aravamudan

  • Regarding Doubt in Query

    Hi Friends,
    I have a doubt in Oracle Query.
    Query
    SELECT ID FROM LIST;
    ResultSet
    1
    2
    3
    4
    5
    789
    In the above query the result will in seperate rows, bu i want it as
    1,2,3,4,5.............,789.
    Can anyone help me to write a query for this type of output.
    Thanks,
    Dick....

    with t as(select 1 col1 from dual
    union select 2 from dual
    union select 3 from dual
    union select 4 from dual
    union select 5 from dual
    union select 6 from dual)
    select   ltrim(max(sys_connect_by_path(to_char(col1),',')),',') col1
    from (select col1,
           row_number() over(order by col1) r1,
           row_number() over(order by col1)-1 r2
          from t)
    start with r1 = 1
    connect by prior r1=r2;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Doubt abt the context that is defined

    hi,
    we do have an option of declaring the nodes in the context of the particular view and also we can define the same in the component controller. my doubt is if we call a node with the meta data usage then we get a declaration like
    DATA lo_nd_aenr TYPE REF TO if_wd_context_node.
      DATA lo_el_aenr TYPE REF TO if_wd_context_element.
    to which context it is pertaining to whether to the context node of the view or to the component controller.
    and please say me wht is the advantage of declaring the nodes in the component controller and then dragging them in to the particular view where it is necessary.
    and if possible say me the differences between declaring the nodes in the component controller and the view.
    thanks and regards
    ibrahim.md

    Hi Ibrahim,
    The attribute wd_context, refers to the current context. If you are using it in the component controller, it means the component controller's context. In the view, it means that particular view's context.
    Declaring context nodes in the comp controller is used when you want to share your data across views. Say you have a use case where you enter some search query in one view, and on clicking search, the results are displayed in a subsequent view. Then the second view will not have your search parameters by default. They have to be made attributes in the comp controller, and mapped in both views. So the data can be shared.
    Otherwise there is no big difference. A comp controller node when mapped to your view just becomes another node in the view context. It will be read as any other node in the view only.
    Hope this helps.
    Regards
    Nithya

  • Doubt abt the EMI and SMI images on 3560 switches

    hi all i have a silly doubt. if i buy a 3560 with the SMI image loaded in it. and then i install a EMI image in it then will it support the EMI images. i mean my main doubt is is it just abt the images or do we need a license on the switch for running a EMI image in it.
    regards
    sebastan

    in short, YES, you can load an EMI on your 3560 as it's currently configured.
    (no license key or such to activate is required)
    if you have an SMI switch that can support EMI image, as in most cases, then you can upgrade to the EMI image with the EMI software downloaded from cisco.com.
    technically, you are required to have purchased an EMI license to be legal to use the image.
    (although you can load an EMI image at anytime)
    the license is NOT installed anywhere, just a piece of paper that confirms you paid for the software.
    if you need further information on licensing please contact cisco licensing at http://cisco.com/go/license (requires CCO login) or call 800.553.2447 and ask for 'licensing'.

  • Doubts in Query & Infoset Builder

    Hi All,
    I have a problem/doubt with my query, Due to a requirement I have to place a Check box in my Selection scree of Query.
    Unfortunately when I place my Checkbox in Info-set(SQ02), Its showing check Box at first place.
    Example:
    We have a Query with selection screen fields as
    MBLNR
    MJAHR
    MATNR
    MENGE
    Now When I add a Checkbox in SQ02 & when I run the report, I am getting this Checkbox, at Top of selection screen.
    Actually I am looking to have this Check box after my selection-screen elements.
    I tried with Sequence on selection-screen, but its only working with the fields declared in Selections.
    Is there any chance like I can declare my Selection screen parameters in the position I want.
    Please advice me.
    Thanks,
    Dileep .C

    user10447332 wrote:
    (!)select * from emp where rownum>5
    it wont give o/p/what is the reason.
    if we mention rownum<=5 then it gives o/p what is the reasonIts because rownum is applied to the row at the last stage of fetch. It is applied to the row which would be displayed to the user. So after your row is ready to be shown to the requester, it is assigned rownum as 1 and then oracle checks if it is greater than 5. Since the result is false, this row is rejected and next row is given rownum as 1 and checked again. Since all rows would fail (as all rows would be assigned as rownum 1) you would get no rows selected.
    (2)
    i have two data bases. i want to import 2 tables from database1 to data base2.how to do it.
    Well you can use
    - exp/imp
    expdp/impdp
    copy commmand
    db link
    (3)i have servers at 3 locations us,uk,asia.
    if data is changed in one server.it should reflect in all servers.
    if we query from any server we have to get same result how to do it.You can use
    materialized view
    oracle streams
    3rd party tool like golden gate
    (4)
    i have data in excel file.i want to load data from excel file int o my tavble .how to do it(dont use sql loader)I only know sql loader as a way to do it
    Regards
    Anurag

  • Doubt in Query(on 28th)

    Hi all
    I wrote the following query
    SELECT COUNT(DISTINCT QUESTION_ID) AS QCOUNT,
    DECODE(((SUM(SUM(WORK_SPACE))/5)*100)/QCOUNT,<50,COUNT(DISTINCT RESPONSER_ID)) AS COUNT1,
    DECODE(((SUM(SUM(WORK_SPACE))/5)*100)/QCOUNT,>=50 AND <=60,COUNT(DISTINCT RESPONSER_ID)) AS COUNT2,
    DECODE(((SUM(SUM(WORK_SPACE))/5)*100)/QCOUNT,>=60 AND <=75,COUNT(DISTINCT RESPONSER_ID)) AS COUNT3,
    DECODE(((SUM(SUM(L.WORK_SPACE))/5)*100)/QCOUNT,>75,COUNT(DISTINCT RESPONSER_ID)) AS COUNT4
    FROM TQDB_LEARNER_RESPONSE
    Can i use QCOUNT IN DECODE Function.
    I am getting 'Missing Expression Error"
    Is thr any other alternative to write this query
    Regards.

    Hi Thanks for reply.
    I have changed my query as following.
    SELECT
    CASE WHEN (((SUM(DISTINCT WORK_SPACE)/5)*100)/COUNT(DISTINCT QUESTION_ID))<50 THEN COUNT(DISTINCT RESPONSER_ID) ELSE NULL END AS COUNT1,
    CASE WHEN (((SUM(DISTINCT WORK_SPACE)/5)*100)/COUNT(DISTINCT QUESTION_ID))>=50 AND (((SUM(WORK_SPACE)/5)*100)/COUNT(DISTINCT QUESTION_ID)) <=60 THEN COUNT(DISTINCT RESPONSER_ID) ELSE NULL END AS COUNT2,
    CASE WHEN (((SUM(DISTINCT WORK_SPACE)/5)*100)/COUNT(DISTINCT QUESTION_ID))>=60 AND (((SUM(WORK_SPACE)/5)*100)/COUNT(DISTINCT QUESTION_ID)) <=75 THEN COUNT(DISTINCT RESPONSER_ID) ELSE NULL END AS COUNT3,
    CASE WHEN (((SUM(DISTINCT WORK_SPACE)/5)*100)/COUNT(DISTINCT QUESTION_ID))>75 THEN COUNT(DISTINCT RESPONSER_ID) ELSE NULL END AS COUNT4
    FROM TQDB_LEARNER_RESPONSE
    Will it work for AND Condition(>=50 and <=60)
    Pls Help me

  • Doubts in query ..

    Hi Genius,
                  I have a doupts in Report..
          <b> budat = 01.04.2007 to 30.04.2007</b> 
          <b> matnr = a001</b>
           SELECT * FROM zs_mkpf_mseg
                        into corresponding fields of table it_opbal
                        WHERE werks =  itmat-werks
                        AND matnr = itmat-matnr
                        AND budat LT s_budat-low.
    Now iam getting the opening balance..that is the closing balance of up to
    30-3-2007.
    My req is..between 1st month to 30th, i have to calculate the opbal of every day wise(1-4-07 to 30-4-07) for that how i should write the query statement.
    please suggest me.

    Hi
    SELECT gjahr belnr  FROM bseg
                        into corresponding fields of table int_bseg
                        WHERE werks =  itmat-werks
                        AND budat = s_budat-low.
    loop at int_BSEG.<-- loop at ur date declared internal table
    read table int_bseg WITH KEY BELNR = INT_BSEG-BELNR
            GJAHR = INT_BSEG-GJAHR. <-- to read the same internal table
    IF int_bseg-belnr = 'compare value'.
            total = total + int_bseg-belnr. " here goes ur coding part for date "
    try like thi s
    Reward all helpfull answers
    Regards
    Pavan

  • Nagging doubt abt windows

    Hi People,
    One of my friend says "Windows will not work
    continuously for more than 49.7 days!!!" Is it
    True????????????
    Here is a bit of information, which may surprise you
    all.
    Windows crashes automatically if you don't switch
    off the machine for 49.7 Days. Microsoft accepts this.
    Do you know why? If not read this
    In Windows the Virtual Machine Manager (here after
    referred as VMM) is responsible for creation,
    execution, monitoring and termination of virtual
    machines. This VMM, which is a 32 bit, protected mode
    operating system, provides a number of system services
    at chip level of programming. One of these services is
    "Get_System_Time". This particular service loads the
    EAX register with the time in milliseconds since
    Windows started. This service is accurate to 1 ms. EAX
    is a 32 bit register. So the maximum number of
    milliseconds it can hold is (2^32)-1 = 4294967295
    milliseconds
    = 4294967.295 seconds
    = 71582.79 minutes
    = 1193 hours
    = 49.7 days
    So after 49.7 days the EAX resets to zero. Most of
    the Drivers use this Time Service to keep track of the
    Time out of various services they provide. So after
    49.7 days the drives cannot use the get_System_Time
    function of VMM and they crash.
    Any of u tell me is it true after testing?
    P.S: Sorry for asking abt windows in this java forums. But I have no other source to get help.

    One more reason not to use Winblows. Microsoft itself admits this. See this url.
    http://support.microsoft.com/support/kb/articles/Q216/6/41.asp
    But it seems that it is applicable only to Windows 95/98.

  • Two Doubt abt Area Menu and Conv from C to I

    Hello Guys,
    I have two doubt can some one help me on the same.
    1. I have created one area menu , added all T code in that and it is successfully move to prod. server. problem I am facing is that when user click on the t code
    it give message <b>Transaction does not exist.</b>. Although T code available and user have right to access the same.
    2. I have created one ALV in which I have shown AUSP-ATWRT value, which of type character but in our case we have numeric value over there. I am taking that value . But when End user want to take the Graph from ALV it's show nothing. Because value is character. Now I have change the type of Internal table variable as I. But it creating problem and giving Dump.
    Please provide me valuable suggestion.
    Regards
    Swati..

    Hi,
    Field mentioned by you is char type in DD so it will not be displaye as number in graph.
    So you can convert that field using function like CK_AND_CONVERT_NUMERICS to numeric.
    Hope this will help you.
    Reward all help ful answers.
    Jogdand M B

  • Doubt abt GL acct

    Hi Gurus, I hav one doubt regarding GL acct.
    Suppose v r using 2 seperate company codes say 1000 & 2000, which r totaly independent. & if using the same chart of account for both the company codes (means using the same GL account numbers for respective function), will it mean that suppose we procure material for plant 1000 & 2000 and its having GL number as 11004400 for that entry then will that GL acct number show cumulative of both plant's purchasing? or shud v use different GL acct numbers to hav transperency in accounting?
    Regards,
    Sarang

    Hi,
    It is not required to maintain different chart of accounts. You can maintain same chart of accounts for both the company codes.
    For reporting purpose, you can get the report with the combination of comapny code and chart of accounts.
    For example, you can get the financial statement with the combination of COA, G/L & comapny code in F.01 t.code
    Regards,
    Prabu
    Edited by: prabu krishnasamy on Jun 15, 2009 12:26 PM

  • Doubt abt Log4j

    hi to all.
    i have doubt in Log4j. to create log i have done code as follows..
    static Category cat = Category.getInstance(LogTest.class.getName());
    PropertyConfigurator.configure("../webapps/CSPPS/WEB-INF/classes/CustomLog.properties");
    cat.info("Address");
    (1) When i compied my LogTest class compile successfully and run too. but when the compile time the msg comes like
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -deprecation for details.
    (2)if i give without full path like above error has come.. hw would i avoid it..
    (3)i have to write log file depends upon the day.. ex..if i run march 3 005 then the file name comes like MyLog.2005-03-03 and create another date like MyLog.2005-03-04.... how to do this..
    give ur valueable suggestion..
    thx n adv..with regards
    DJ

    i have doubt in Log4j. Me too!

Maybe you are looking for

  • IPhoto book low quality warning?

    I've created an iPhoto book. I'm ready to buy it but I get a warning that some of the photos are too low quality for the type of book I've chosen. Yet all photos were imported at 300dpi and there's no warning on any one photo that the quality is low.

  • CS Live Services Update Failed

    I'm trying to update my CS5 CS Live Services Update, but everytime I try it gets 2 seconds in and gives me an error. I've tried to read other discussions, but I'm not that tech savvy and I don't know what to look for to solve the problem. InDesign cr

  • Windows not gaining focus...

    Hello! After recent update (I can't recall having this issue before) windows that previously had focus, but lost it after I opened a new window, do not gain focus after I close the new window. This is very irritating, because now I have to click on t

  • I accidentally cleared all my cookies. Now I get the Japanese home page and I want ONLY the English home page

    I accidentally cleared all my cookies. Now I get the Japanese home page and I want ONLY the English home page. I was on the home page at the time & I copied the address. It is still in my preferences section. but even when I paste it in, I still get

  • Little plastic thing, what is it for?

    What is the small white plastic piece inside the packaging for? I can see that the Nano fits inside it along with the USB cord and it looks like it's supposed to attach to something but there is no explanation of it in the manual