Queries giving results to slowly

Hi DBAs,
Our Database is running on the 10.2.0.4 and the database(UAT DB) contain very less number of Records in the tables.
My application team facing problem with Queries output,the queries taking execution time very less and its showing out to user after 15min.
how to tune database for overcome this problem and as a DBA what I need monitor ,is there any memory parameter need to change .
Thanks!
tmadugula

Dear tmadugula,
You can either use AWR reports and ADDM findings (if you have purchased the diagnostic pack) and / or statspack to analyze the bottleneck. You can also use some specific dynamic performance views like v$sysstat, v$sesstat, v$system_event for analyzing.
You can create an SQL Tuning Set and place your relevant SQL queries (v$sql) and run the SQL Tuning Advisor or SQL Access Advisor. Access advisor can be used to spot neccessary indexes, materialized views or materialized view logs.
Hope That Helps.
Ogan

Similar Messages

  • Search is working fine on one server but not giving results from other servers. moss 2007?

    hi,
    we have multi server or wfe architecture. configured search service on one server 01, central admin is 02, and query as 03, now crawled content with hostname:port of 01. everything is fine.
    but now when we trying to search results its giving results on server 01 which is index and query role. but didnt return any results in other servers.
    help is really appreciated.
    Thanks,
    SJ

    I thought you are posting question in wrong forum. Please move the question to
    https://social.technet.microsoft.com/Forums/en-US/home?forum=sharepointsearch. There some one will help
    Ravin Singh D

  • Enhancement is in active state but not giving result.

    Hi All,
    Could you pls help me with this. I created an enchancement for a function module MARM_GENERIC_READ_WITH_MATNR.  The enchancement is in active state but not giving the result. The result before and after enchancement is the same.
    Thanks,
    GC

    Hi Guru,
    If you have created an implicit enhancement point you need to make sure that enahncement point is active and as well the Function Module is also Active.
    Second thing is that if you have written any code inside the enhancement point, then make sure that you are entering the Ehancement point coding block.
    For this do put a break point and do a debug test the coding - what exactly happens through the Coding.
    It may be that the Coding Block inside the Enhancement point is not getting executed or the ehancement point is not getting executed(chekc for what reason ?)
    Based on the abvove inputs hope you would have got some clue or would have got the solution.
    If found useful please do reward
    Encourage others to answer your queries by rewarding them suitably
    Thanks
    Venugopal

  • Unable to perform for-each on quer-database() result

    Hi
    I am using the quer-database function in my XSLT which is returning more than 1 value.
    when i try assigning these values I am only able to assign the first row of elements. When I try dragging the for-each activity and try using it with the qurey-database node set I get an error saying "An expression must have only one link to the Target schema".
    Is there some way that I can achieve this in my XSLT?
    <xsl:template match="/">
    <xsl:for-each select="">
    <client:processResponse>
    <client:Name>
    <xsl:value-of select="oraext:query-database(concat(&quot;select entryid from XXLF_CHARACTERS where item_number=&quot;,&quot;'&quot;,/ns0:Customer/ns0:CustomerInfo,&quot;'&quot;),false(),true(),&quot;jdbc/devag&quot;)"/>
    </client:Name>
    <client:Name2>
    <xsl:value-of select="oraext:query-database(concat(&quot;select entryvalue from XXLF_CHARACTERS where item_number=&quot;,&quot;'&quot;,/ns0:Customer/ns0:CustomerInfo,&quot;'&quot;),false(),true(),&quot;jdbc/devag&quot;)"/>
    </client:Name2>
    </client:processResponse>
    </xsl:for-each>
    </xsl:template>
    This is what my XSLT looks like
    Thanks.

    You have to use ROW and ROWSET to be able to able to get multiple elements... See the sample bellow...
    http://neeraj-soa-tips.blogspot.com.au/2011/04/getting-xml-output-from-oraextquery.html
    Cheers,
    Vlad

  • MC+E Report not giving results for One Plant

    Dear All,
    I am executing MC+E standard report for four plants but I am not getting the output for one plant. This report fetches data from the table S001 while executing VA01. I checked that there are no entries for that plant in this table hence obviously I cann't get the output.
    Can anyone suggest me where lies the problem. My SD consultant is able to generate invoices, but the result of VA01 are not getting reflected in S001.
    Regards,
    Alok.

    Dear Alok,
                   Same was the problem with me, one of my seniors helped me with it. The report does not reflect data for the other one, as somebody may have made changes to the standard Info Structure.Probably a 'Z' or 'Y' update group is mainatined and proper update rules are not attached to the info structure. Ask you SD consultant to check out the update rules. It is a big risk to make changes to the info structure as it may lead to loss of Master and may stop functioning of SAP across modules. Ask a expert from SD to work onto it.
    Reagards,
    Ashutosh
    [email protected]

  • Visualization plan not giving results

    After executing plan visualization of a calculation view (graphical view) , Visualized Plan  shows each and every nodes as per model design. But it doesn't show how much time consumed  and how may rows are getting fetched during the execution by each node, which normally it does. 
    Note : It ‘s only happening with some calculation views ( NOT ALL ).
    Any idea / suggestion ?

    Lipsa
    This is not clear wat u meant with ur machine or other machine ???!!!
    If u use <b>Fixed Query</b> mode in <b>Query Template Editor</b>, then this query SELECT SUM(COLUMN_NAME) FROM TABLE_NAME will not show any result, since <b>this query does not provide any column name which will be shown with the Value of SUM whereas in Query Template it is recommended to have a column name to be displayed</b>.
    If u use the same Query in other platform which does not need to show Column name with Value returned by any of Aggregate Functions, it will work.
    If it still does not clear ur doubt, ur doubts with details r welcome. [Dont just raise a doubt with limited explanation]
    Waiting
    Som

  • BUP_MEMORY_BUT000_GET not giving results

    Hi,
    i am trying to use the DSAVC event to change the Name4 BP field. I am first trying to use BUP_MEMORY_BUT000_GET to get the current data from memory and then plan on using the BUP_MEMORY_BUT000_FILL to transfer my changes...
    Assuming this is the correct way, BUP_MEMORY_BUT000_GET does not give me back any results. The subrc is always 1 - not found...am i missing something..i used this FM in other events as well but the same problem?? Any ideas?
    Thanks

    Hi paul,
    Here, i wanna give u the alternative way to change name4 field in BP. You're able to use FM BUP_BUPA_UPDATE to update it.
    If you wanna get the record, you can query it into BUT000 table.
    Hopefully, it can solve your problem.
    Best regards,
    Daniel N.
    Reward the point if u feel satisfied.

  • When I highlight a word with the contextual "Search Google for", it opens up the Google home page in a new tab without giving results for the highlighted word. Instead it gives a blank search form.Is there a change in Firefox 6.0.2?

    Mac OS 10.7.1, Firefox 6.0.2

    Tried that. Also tried SUPERAntiSpyware, ccleaner, HitmanPro. Removed anything that was reported. Problem persists.
    Chrome is also affected. But couldn't find any alternative way of not having Ask.com loaded as did in Firefox.
    Internet Explorer was initially affected. After the Ask.com search engine is removed that problem appears to have gone away.
    12/9/2014
    Interestingly, yesterday afternoon the Chrome browner new tab no longer hijacked by Ask.com. The symptom was there in the morning and had gone away in the late afternoon. Nothing was done except a few days ago I blocked everything on that page. The problem with Firefox continue to persist I didn't do the same blocking on it. I am going to try the same and then use anti-spyware to clear away all cookies and see what happens.

  • Two queries against aud$ with different results

    hi guys
    I'm not so good with queries and that is the reason for my question:
    We have audit activated and we want to get the following information (monthly):
    - how many times the user logon to database.
    - every logon of each user in a month.
    For the first (1) requirement we have the following query:
    select USERID "Cuenta", USERHOST, TERMINAL, nombres||' '||PRIMER_APELLIDO||' '||SEGUNDO_APELLIDO "WhiteList"
    , count(*) "TOTAL"
    from aud$, ab.usuarios
    where (ACTION# = 100) and
    (NTIMESTAMP# between (to_date(to_char('01092013 00:00:00'),'ddmmyyyy HH24:MI:SS'))
        and (to_date(to_char('30092013 23:59:00'),'ddmmyyyy HH24:MI:SS'))) and
    USERID = CODIGO_USUARIO(+) and
    USERID not in ('DBSNMP','SYSMAN')
    group by USERID, USERHOST, TERMINAL,  nombres||' '||PRIMER_APELLIDO||' '||SEGUNDO_APELLIDO
    order by USERID, USERHOST, TERMINAL;
    the result of this query shows like this:
    Header 1
    Cuenta               USERHOST                  TERMINAL        WhiteList                                     TOTAL                                                                                     
    ASEGUR               MAQUINADIAB\SSSSS        IUOOO          PEPITO GARCIA Y GARCIA SOCIED                    10                                                                                     
    ASEGUR               POSADASDE\MNNN4550094  MNNN4550094    PEPITO GARCIA Y GARCIA SOCIED                     1                                                                                     
    ASEGUR               POSADASDE\YUMI          YUMI            PEPITO GARCIA Y GARCIA SOCIED                    10                                                                                     
    ASEGUR               YUH                                       PEPITO GARCIA Y GARCIA SOCIED                    20                                                                                     
    ASEGUR               SDFRG                                    PEPITO GARCIA Y GARCIA SOCIED                    13                                                                                     
    ASEGUR               signy                                     PEPITO GARCIA Y GARCIA SOCIED                    29                                                                                     
    ASEGUR               sigurd                                    PEPITO GARCIA Y GARCIA SOCIED                    32                                                                                     
    ASEGUR               valhalla-Legacy                           PEPITO GARCIA Y GARCIA SOCIED                    12                                                                                     
    ADMIN                MAQUINADIAB\SSSSS        IUOOO          USUARIO ADMINISTRADOR NETWORKING                3                                                                                     
    SPRINGUSR            bragi                                                                                      98                                                                                     
    SPRINGUSR            hermod                                                                                     59                                                                                     
    SPRINGUSR            YUH                                                                                        49
    So, is the total logons in a month by user.
    for the second requirement we are using the follow query:
    select USERID "Cuenta", USERHOST, TERMINAL, to_char(NTIMESTAMP#,'YYYYMMDD HH24:MI:SS') "Fec Ing", nombres||' '||PRIMER_APELLIDO||' '||SEGUNDO_APELLIDO "WhiteList"
    --, count(*) "TOTAL"
    from aud$, ab.usuarios
    where (ACTION# = 100) and
    --to_char(NTIMESTAMP#,'dd-mm-yy')=to_char(sysdate-50,'dd-mm-yy') and
    (NTIMESTAMP# between (to_date(to_char('01062013 18:00:00'),'ddmmyyyy HH24:MI:SS'))
        and (to_date(to_char('30062013 23:59:00'),'ddmmyyyy HH24:MI:SS'))) and
    USERID = CODIGO_USUARIO(+) and
    USERID not in ('DBSNMP','SYSMAN')
    group by USERID, USERHOST, TERMINAL,to_char(NTIMESTAMP#,'YYYYMMDD HH24:MI:SS'), nombres||' '||PRIMER_APELLIDO||' '||SEGUNDO_APELLIDO
    order by USERID, USERHOST, TERMINAL;
    Header 1
    Cuenta               USERHOST                  TERMINAL        Fec Ing              WhiteList                                                                                                                                                            
    USER12               DOMINIODDD\IOIPOP        IOIPOP          20130930 12:08:33    ANGEL ROBERTO GARCIA Y GARCIA S                                                                                                                                        
    USER12               DOMINIODDD\IOIPOP        IOIPOP          20130930 14:28:47    ANGEL ROBERTO GARCIA Y GARCIA S                                                                                                                                        
    USER12               DOMINIODDD\IOIPOP        IOIPOP          20130930 16:24:43    ANGEL ROBERTO GARCIA Y GARCIA S 
    so, shows each logon done by user in a month.
    But in the both queries, the results are different. It is not suppose that they have to be the same number of logons?
    I mean, If I sum the numbers in TOTAL column I have less that I get in the second query. Always !!!
    could you help us?
    thank you

    Your timeframes are different:
    (NTIMESTAMP# between (to_date(to_char('01092013 00:00:00'),'ddmmyyyy HH24:MI:SS')) 
    and (to_date(to_char('30092013 23:59:00'),'ddmmyyyy HH24:MI:SS'))) and 
    versus
    (NTIMESTAMP# between (to_date(to_char('01062013 18:00:00'),'ddmmyyyy HH24:MI:SS')) 
        and (to_date(to_char('30062013 23:59:00'),'ddmmyyyy HH24:MI:SS'))) and 

  • To show the result of 2 grids in a single csv file

    Hi,
    i want to show 2 grids(seperately) in a csv file.i created a aggregate query that is giving me result of 2 grid seperately  but when i use a igrid template with aggregate query it is giving me result in a single row.i.e instead of giving 2 grids it is giving result with all the columns in a single row .I am using Applet.saveas CSV File();is there any way to have 2 seperate grid in a single Excel file.
    thanks in advance.

    Karthik
    Aggregate Query is mostly used to combine multiple queries which have at least one common column among those.
    For ur requirement, u can use direct BLS with the help of Action Block <b>WriteFile</b>.
    <b>Scenario :</b> u hv 2 queries - one with 4 columns A, B, C & D; another with 2 columns E & F
    U want to display those tables separately in one single Excel Sheet.
    <b>Solution :</b> Forget AggregateQuery and Take the following steps
    Step 1: Take those two Queries in one sequence
    Step 2: Define two Local variables - Text1 & Text2 with String Data Type
    Step 3: Use Repeater to loop one query's result and Assign the Looping results to the Local.Text1 using action <b>Assignment</b> as following expression in the Link Editor 
    <b>Local.Text1 &
    Repeater_0.Output{/Row/A} & tab &
    Repeater_0.Output{/Row/B} & tab &
    Repeater_0.Output{/Row/C} & tab &
    Repeater_0.Output{/Row/D} & crlf
    </b>
    Step 4: Use another Repeater outside the first Repeater to loop 2nd query's result and Assign the looping results to the Local.Text2 in similarly way as follows in the Link Editor
    <b>
    Local.Text2 &
    Repeater_1.Output{/Row/E} & tab &
    Repeater_1.Output{/Row/F} & crlf
    </b>
    Step 5: Use action <b>WriteFile</b> outside those above Repeaters and take the mode <b>APPEND</b> and FilePath <b>C:
    test
    TwoTables.xls</b> and Text as follows
    <b>
    "A" & tab & "B" & tab & "C" & tab & "D" & crlf & Local.Text1 & crlf & crlf &
    "E" & tab & "F" & crlf & Local.Text2
    </b>
    in the Link Editor
    Step 6: Hit F5/F6 and see the Excel File with two tables showing separately in the mentioned path above.
    Regards
    Som

  • Xml parsing error while selecting whole result set for sql query

    Hi All,
    I am having xml parsing error while selecting whole query result set. The data is coming fine for default result set of 50 rows.
    My exception is below.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00234: namespace prefix "xsi" is not declared
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    *31011. 00000 - "XML parsing failed"*
    **Cause: XML parser returned an error while trying to parse the document.*
    **Action: Check if the document to be parsed is valid.*
    My sql query is below that is giving results for default result set of 50 rows.
    select extract(xmlType(clob_xml_colm_name), '//v2:node1//childnode/text()','xmlns:v2="namespace_url"').getStringVal()  from table_name
    My sql developer version is below.
    Java(TM) Platform     1.7.0_04
    Oracle IDE     3.1.07.42
    Versioning Support     3.1.07.42
    My database version is below.
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
    Please could any one help me urgently as the sql query is supposed to be correct as it is returning query results, but the problem happening when i try to select whole result set.
    Thanks and regards,

    What does the XML look like? It appears that some of the supposed XML stored as a CLOB is not really valid XML. Find the row in the table that is causing your issue and review the "XML" in it.

  • Is rank() really better than rownum for top-n-queries?

    Several sources say that for Oracle databases rank() should be used instead of 'rownum <= n' for top-n-queries. But here we have an application, where we a lot of top-n queries are executed on a big table with several million rows and rank() has a quite bad performance. I get much better results when I use a query with rownum <= n but the programmer of the application doesn't want to change it in the software because of those articles about rank() and rownum. I wonder, whether it is possible, to find a better form of the rank()-query or an additional index, that gives me the same performance.
    To explain my case I created the following example (if you try it, be aware that depending on the size of your dba_objects view you might need up to half a gig free space in your tablespace for this example).
    create table big_objects
    as
    select
    ascii(m.alpha)*100000+o.object_id object_id,
    o.owner owner,
    o.object_type,
    m.alpha||'_'||o.object_name object_name,
    sysdate-400+mod(100*object_id+99*ascii(m.alpha),365)+24/(o.object_id+ascii(m.alpha)) created,
    o.status
    from
    (select distinct
    upper(substr(object_name,1,1)) alpha
    from
    sys.dba_objects
    where
    upper(substr(object_name,1,1)) between 'A' and 'Z') m,
    sys.dba_objects o
    order by
    object_name;
    create index bigindex_1 on big_objects (owner, object_type, created);
    analyze table big_objects compute statistics;
    So my table looks a bit like dba_objects but with much more rows and I made a synthetic "created" date which is more similar to my real case, where top-n means a date selection of the newest records from a certain type.
    Here is the size of the segments on an nearly empty 11gR2 database:
    select segment_name, bytes, blocks from sys.dba_segments where segment_name like 'BIG%'
    SEGMENT_NAME BYTES BLOCKS
    BIGINDEX_1 75497472 9216
    BIG_OBJECTS 142606336 17408
    On my database the example table has approx. 1,9 Mio rows:
    select count(*) from big_objects;
    COUNT(*)
    1884246
    and some 1,4% of those rows have owner = 'SYS' and object_type = 'INDEX'
    select
    count(*)
    from big_objects
    where owner = 'SYS'
    and object_type = 'INDEX';
    COUNT(*)
    25896
    But I want to find only the 10 newest indexes for the owner SYS. I think the typical rank() approach would be:
    select
    owner,
    object_type,
    object_name,
    object_id,
    status,
    created
    from
    ( select
    owner,
    object_type,
    object_name,
    object_id,
    status,
    created,
    rank() over (order by created desc) rnk
    from
    big_objects
    where
    owner = 'SYS'
    and object_type = 'INDEX')
    where rnk <= 10
    order by created asc;
    OWNER OBJECT_TYPE OBJECT_NAME OBJECT_ID STATUS CREATED
    SYS INDEX B_COLLELEMIND 6600515 VALID 15.04.2010 19:05:55
    SYS INDEX V_I_WRI$_OPTSTAT_IND_OBJ#_ST 8600466 VALID 15.04.2010 19:09:03
    SYS INDEX G_I_RLS 7100375 VALID 15.04.2010 19:23:55
    SYS INDEX V_I_DIR$SERVICE_UI 8600320 VALID 15.04.2010 19:31:33
    SYS INDEX L_I_TSM_DST2$ 7600308 VALID 15.04.2010 19:36:26
    SYS INDEX L_I_IDL_UB11 7600235 VALID 15.04.2010 19:57:34
    SYS INDEX V_I_VIEWTRCOL1 8600174 VALID 15.04.2010 20:19:21
    SYS INDEX L_I_TRIGGER2 7600162 VALID 15.04.2010 20:31:39
    SYS INDEX L_I_NTAB1 7600089 VALID 15.04.2010 21:35:53
    SYS INDEX B_I_SYN1 6600077 VALID 15.04.2010 22:08:07
    10 rows selected.
    Elapsed: 00:00:00.22
    Execution Plan
    Plan hash value: 2911012437
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1427 | 188K| 1400 (1)| 00:00:17 |
    | 1 | SORT ORDER BY | | 1427 | 188K| 1400 (1)| 00:00:17 |
    |* 2 | VIEW | | 1427 | 188K| 1399 (1)| 00:00:17 |
    |* 3 | WINDOW SORT PUSHED RANK | | 1427 | 79912 | 1399 (1)| 00:00:17 |
    | 4 | TABLE ACCESS BY INDEX ROWID| BIG_OBJECTS | 1427 | 79912 | 1398 (0)| 00:00:17 |
    |* 5 | INDEX RANGE SCAN | BIGINDEX_1 | 1427 | | 9 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - filter("RNK"<=10)
    3 - filter(RANK() OVER ( ORDER BY INTERNAL_FUNCTION("CREATED") DESC )<=10)
    5 - access("OWNER"='SYS' AND "OBJECT_TYPE"='INDEX')
    Statistics
    1 recursive calls
    0 db block gets
    25870 consistent gets
    0 physical reads
    0 redo size
    1281 bytes sent via SQL*Net to client
    524 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    2 sorts (memory)
    0 sorts (disk)
    10 rows processed
    As from the index only the first two columns are used, all the 25896 records that I found above are read and sorted just to find the ten newest ones. Many unnecessary blocks are read and luckily all needed database blocks were in memory already. In our real case quite often a lot of physical reads are performed, which makes the performance of the application even worse.
    In my following example with a "rownum <= 10" all three columns of the index are used and the number of block gets is much, much smaller than in the rank() example.
    select
    owner,
    object_type,
    object_name,
    object_id,
    status,
    created
    from
    big_objects
    where
    (owner, object_type, created)
    in
    ( select
    owner,
    object_type,
    created
    from
    ( select /*+ first_rows(10) */
    owner,
    object_type,
    created
    from
    big_objects
    where
    owner = 'SYS'
    and object_type = 'INDEX'
    order by
    owner,
    object_type,
    created desc
    where rownum <= 10
    order by created asc;
    OWNER OBJECT_TYPE OBJECT_NAME OBJECT_ID STATUS CREATED
    SYS INDEX B_COLLELEMIND 6600515 VALID 15.04.2010 19:05:55
    SYS INDEX V_I_WRI$_OPTSTAT_IND_OBJ#_ST 8600466 VALID 15.04.2010 19:09:03
    SYS INDEX G_I_RLS 7100375 VALID 15.04.2010 19:23:55
    SYS INDEX V_I_DIR$SERVICE_UI 8600320 VALID 15.04.2010 19:31:33
    SYS INDEX L_I_TSM_DST2$ 7600308 VALID 15.04.2010 19:36:26
    SYS INDEX L_I_IDL_UB11 7600235 VALID 15.04.2010 19:57:34
    SYS INDEX V_I_VIEWTRCOL1 8600174 VALID 15.04.2010 20:19:21
    SYS INDEX L_I_TRIGGER2 7600162 VALID 15.04.2010 20:31:39
    SYS INDEX L_I_NTAB1 7600089 VALID 15.04.2010 21:35:53
    SYS INDEX B_I_SYN1 6600077 VALID 15.04.2010 22:08:07
    10 rows selected.
    Elapsed: 00:00:00.03
    Execution Plan
    Plan hash value: 3360237620
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 10 | 760 | 17 (0)| 00:00:01 |
    | 1 | SORT ORDER BY | | 10 | 760 | 17 (0)| 00:00:01 |
    | 2 | NESTED LOOPS | | | | | |
    | 3 | NESTED LOOPS | | 10 | 760 | 17 (0)| 00:00:01 |
    | 4 | VIEW | VW_NSO_1 | 10 | 200 | 2 (50)| 00:00:01 |
    | 5 | HASH UNIQUE | | 10 | 200 | 4 (25)| 00:00:01 |
    |* 6 | COUNT STOPKEY | | | | | |
    | 7 | VIEW | | 11 | 220 | 3 (0)| 00:00:01 |
    |* 8 | INDEX RANGE SCAN DESCENDING| BIGINDEX_1 | 1427 | 28540 | 3 (0)| 00:00:01 |
    |* 9 | INDEX RANGE SCAN | BIGINDEX_1 | 3 | | 2 (0)| 00:00:01 |
    | 10 | TABLE ACCESS BY INDEX ROWID | BIG_OBJECTS | 3 | 168 | 6 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    6 - filter(ROWNUM<=10)
    8 - access("OWNER"='SYS' AND "OBJECT_TYPE"='INDEX')
    9 - access("OWNER"="OWNER" AND "OBJECT_TYPE"="OBJECT_TYPE" AND "CREATED"="CREATED")
    Statistics
    1 recursive calls
    0 db block gets
    26 consistent gets
    0 physical reads
    0 redo size
    1281 bytes sent via SQL*Net to client
    524 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    1 sorts (memory)
    0 sorts (disk)
    10 rows processed
    I made this comparison with the Oracle versions 10.2 and 11.2 and the result was more or less the same. How can I change the rank() query in a way that only the small number of really needed blocks are read from the database?

    this was exactly the hint, I was looking for. Generally speaking hints are not the preferred way to go to tune queries. They can have nasty side-effects when data changes.
    Now the rank()-query is similar fast and much better to read than my fast one with three nested SELECTs.
    Your rownum query was needlessly complicated, and could be simplified to:
    select owner, object_type, object_name, object_id, status, created
    from (select owner, object_type, created
          from big_objects
          where owner = 'SYS' and
                object_type = 'INDEX'
          order by created desc)
    where rownum <= 10
    order by created ascand very likely get the same speed.
    One more question. How did you format those sql queries and results. When I copy/paste them into the editor of forums.oracle.com the format allways gets lost.To preserve formatting use {noformat}{noformat} before and after the section you want ot keep formatted.  In general, if you want to see how someone generated an effect, reply to the post and hit the quote original icon.  You will see all the formatting codes used in the original.
    John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • CF Report Builder - multiple queries

    I am a CF developer who has worked a fair bit with coding
    reports manually. Have taken the plunge with report builder and
    generally like what I see, BUT am quite disappointed with an
    apparent lack of documentation or tutorials on complex reporting
    techniques.
    I need to do a report which ideally requires two queries, the
    results of which the report's purpose is to compare.
    The problem is, from what I can tell, a .CFR can only have
    ONE query (which I find odd). Can anyone suggest a way of being
    able to have more than one query result set passed into a .CFR.
    I am starting to wonder that CF Report Builder might be great
    for fairly basic, single data set reports, but no good for large
    complex reports. I would be interested in hearing others opinions
    on this.
    Many Thanks in Advance.

    Thanks tmschmitt. You are right in that I am (was) stuck on
    passing in multiple queries. What I have managed to do is use the
    Advanced option of the query builder to write my two seperate
    queries, then combine them into one recordset by doing a Query on
    the Queries. Not sure if this is the best way around it, but it
    seems to be working fine. Problem now is that I need to manually
    craete 500+ "Query Fields" (yuk).
    I haven't really delved into the sub-reports yet, but have a
    feeling they won't meet my current needs. Basically i have 253
    columns of demographic data. I need one recordset (A) with this
    data from one geographic location with a recordset from a different
    location (B). I then need to lay out the data with each field from
    B beside it's corresponding field from A. In short, it is a
    comparitive report whereby the reader can compare a given value
    (e.g. avg income) from one area with that from another. This would
    be fairly straightforward in a scripted report, but with Report
    Builder appears to be quite cumbersome and potentially unmanagable
    as I need to handle each field explicitly (rather than looping over
    recordsets and structures to generate the different sections of the
    report).

  • What is the meaning of the status value in resulted table via power shell command?

    Hello,
    I have queries about result given by powershell command:
    Get-WmiObject -Class Win32_Processor results Status code as
    OK - What does it mean ? what are other status code options  ?
    Get-WmiObject -Class Win32_ComputerSystem results Status code as OK - What does it mean ? what are other status code options  ?
    [System.Net.WebRequest]::Create($site) > GetResponse() results StatusCode as OK - What does it mean ? whats are other status code options  ?
    Would you please clarify ?
    Thanks and Kind Regards,
    Dipti Chhatrapati

    Dipti...Check the msdn site for that particular class for all the info.
    The values will differ from class to class.
    http://msdn.microsoft.com/en-us/library/aa394373(v=vs.85).aspx
    Status
    Data type: string
    Access type: Read-only
    Qualifiers: MaxLen (10)
    Current status of an object. This property is inherited from CIM_ManagedSystemElement.
    The values are:
    "OK"
    "Error"
    "Degraded"
    "Unknown"
    "Pred Fail"
    "Starting"
    "Stopping"
    "Service"
    "Stressed"
    "NonRecover"
    "NoContact"
    "LostComm"
    Thanks Azam When you see answers please Mark as Answer if Helpful..vote as helpful.

  • Query is not returni9ng any results

    Hi guys!
    We have upgraded from 4.6C to ECC 6.0 and now when we are executing queries,  no results are being displayed. If you have any ideas please let me know.
    Regards,
    Ileana

    Hi,
    You have a rule in autogenerated program via SAP Query:
    the following is the naming convention in generated program:
    1-4 : Query area/server
    Next 12 : User Group
    Rest others : Query name
    This is the way the name will be stored...Now you will be the query name and user group that r required in the FM input and try to regenrated it...
    For eg: Assigned report: AQZZ/SAPQUERY/ABAGENCY1======
    Here SAPQUERY is user group
    and ABAGENCY1 is the query
    Reward if useful
    Regards
    Shiva

Maybe you are looking for