Define an interval in st04 / SQL-Cache

Hi,
one of our customers runs their systems with DB2 under solaris. The others work with DB2 z/OS or Oracle.
In these both platforms there is a functionality to define an interval in the Statement Cache / Cursor Cache. With a 'reset' button i can reset all data to zero. And with the 'since reset' button i get new data only for the time since pushing the 'reset' button.
I wonder if there is nothing familiar in the DB6 SQL-Cache.
In the st04 transaction there are some buttons to define such an interval, but it seems they work only on the database snapshot screen for bufferpools, cache etc.
The SAP status shows a DB2 9.5.4 and ECC 6.0 SP 18.
Is there something that i have overlooked ?
regards
Kay

Hello Kay,
The behaviour in recent support pack and db2 release levels is that the sql chace is refreshed once you check the sql cache in dbacockpit/st04.
The new behaviour whereby the SQL cache data is refreshed upon entering ST04 -> SQL chache is         
the preferred behaviour. The main reason for the old behaviour where the previously stored SQL cache data was initially displayed until a refresh was requested, was due to very slow SQL cahce retrieval in previous releases.                                                                               
With newer releases, especially db2 v9, it has become faster to retrieve and so, reached an acceptable speed that the behaviour has been changed to trigger a refresh of the data immediately once ST04-> sql cache is       
selected.                                 
With this you can be sure that the sql cache you are seeing is current, whenever you check it via dbacockpit.
Hope this helps,
Paul

Similar Messages

  • ST04-SQL Request

    Hi Friends,
    In my production system, I've executed the ST04 transaction, Detailed Analysis Menu....SQL Request....Sorted by Buffer gets... and I checked the SQL statement....and then clicked on display execution plan for SQL statement...
    There it shows the following information
    SELECT STATEMENT ( Estimated Costs = 17,039 , Estimated #Rows = 0 )
            1 TABLE ACCESS FULL LIPS
              ( Estim. Costs = 17,038 , Estim. #Rows = 1 )
              Estim. CPU-Costs = 885,646,245 Estim. IO-Costs = 16,963
              Filter Predicates
    What are the parameters that will indicate that there is an issue with the SQL statement
    Regards
    Aliila

    Hello Aliila,
    As indicated below, the statement is expensive as the explain plan goes for full table scan. As LIPS table is one of the line item table, it has to read all the blocks of this table to satisfy the user query. So if there is no WHERE clause in the corresponding ABAP code, then you have to discuss with your ABAP developer to input the selective fields in the WHERE clasue so that appropriate indexes will be choosen in the explain plan. From this i can easily conclude that this statment is expensive because of either of these reasons.
    1. Missing Where clause in the ABAP code ( I believe this is coming from Z* program/transaction) or
    2. User is not inputting any criteria for selecting this ( Here you to need to train the user).
    Back to your question: if you are doing sql cache analysis through ST04 normally you have to find out the statement based on the following criteria.
    1. Greater than 5% of  the total buffer gets ( This will cause memory load)
    and/or
    2. Greater than 2% of the physcial reads ( This cause I/O Load).
    you can find that total buffers gets and physical read from ST04 initial screen.
    Hope above information will help you.
    Yours Sincerely
    Dileep

  • How can I calculate the waveform integral in a defined time interval?

    Hi:
    I need your help. How can I calculate the waveform integral in a defined time interval? For example: from "0" to "2pi"?!
    Thanks.

    Hello Clecio,
    You might want to try the Integral x(t) VI.  The documentation for this VI notes:
    Performs the discrete integration of the sampled signal X. Integral x(t) calculates a definite integral. The value of the output array at any value x is the area under the curve of the input array between 0 and x.
    You would pass the samples of the waveform that fall between your particular window, then pass 1/number of samples for the d(t) parameter.
    Hope that helps.
    Wendy L
    LabWindows/CVI Developer Newsletter - ni.com/cvinews

  • How do I/Can I define the interval Mail checks for new email?

    How do I/Can I define the interval Mail checks for new email?
    Thanks
    Glyaflya
    iPad 16G/3G ios 4.2.1

    Settings > Mail, Contacts, Calendars > Fetch New Data

  • [OT] User-Defined string Functions  Oracle PL/SQL

    Ladies and Gentlemen,
    I am pleased to offer the following string functions Oracle PL/SQL:
    GETALLWORDS(): Inserts the words from a string into the table.
    GETWORDCOUNT(): Counts the words in a string.
    GETWORDNUM(): Returns a specified word from a string.
    OCCURS(): Returns the number of times a character expression occurs within another character expression (including overlaps).
    OCCURS2(): Returns the number of times a character expression occurs within another character expression (excluding overlaps).
    PADC(): Returns a string from an expression, padded with spaces or characters to a specified length on the both sides.
    STRTRAN(): Searches a character expression for occurrences of a second character expression, and then replaces each occurrence with a third character expression. Unlike a built-in function Replace, STRTRAN has three additional parameters.
    STRFILTER(): Removes all characters from a string except those specified.
    RAT(): Returns the numeric position of the last (rightmost) occurrence of a character string within another character string (including overlaps). The search performed by RAT() is case-sensitive. RAT similar to the PL/SQL function INSTR.
    ATC(): Returns the beginning numeric position of the first occurrence of a character expression within another character expression, counting from the leftmost character (including overlaps). The search performed by ATC() is case-insensitive. ATC similar to the PL/SQL function INSTR.
    RATC(): Returns the numeric position of the last (rightmost) occurrence of a character string within another character string (including overlaps). The search performed by RATC() is case-insensitive. RATC similar to the PL/SQL function INSTR.
    AT2(): Returns the beginning numeric position of the first occurrence of a character expression within another character expression, counting from the leftmost character (excluding overlaps). The search performed by AT2() is case-sensitive. AT2 similar to the PL/SQL function INSTR.
    REPLICATE(): Returns a character string that contains a specified character expression repeated a specified number of times.
    ROMANTOARAB(): Returns the number equivalent of a specified character Roman numeral expression (from I to MMMCMXCIX).
    Plus, there are versions for MS SQL SERVER, SYBASE ASA, DB2, MS SQL SERVER 2005 SQLCLR.
    More than 8000 people have already downloaded my functions. I hope you will find them useful as well.
    For more information about string UDFs Oracle PL/SQL please visit the
    http://www.universalthread.com/wconnect/wc.dll?LevelExtreme~2,54,33,29233
    Please, download the file
    http://www.universalthread.com/wconnect/wc.dll?LevelExtreme~2,2,29233
    With the best regards.

    >
    I am using the Oracle Data Provider in vs2012. I am having trouble calling a function that returns an object type defined.
    >
    Returning a collection like that is a bad idea to begin with. That isn't scaleable and wastes memory.
    Either return a REF CURSOR and let the client FETCH the rows or use a PIPELINED function and let the client query it like they would a table.
    Here is an example similar to yours that uses a PIPELINED function.
    create or replace
        package pkg2
          as
            CURSOR emp_cur is (SELECT empno, ename, job, mgr, deptno FROM emp);
            type pkg_emp_table_type is table of emp_cur%rowtype;
            function get_emp(
                             p_deptno number
              return pkg_emp_table_type
              pipelined;
      end;
    create or replace
        package body pkg2
          as
            function get_emp(
                             p_deptno number
              return pkg_emp_table_type
              pipelined
              is
              begin
                  for v_emp_rec in (SELECT empno, ename, job, mgr, deptno
                                    FROM emp where deptno = p_deptno) loop
                    pipe row(v_emp_rec);
                  end loop;
              end;
      end;
    select * from table(pkg2.get_emp(20));
           EMPNO ENAME      JOB              MGR     DEPTNO
            7369 DALLAS     CLERK2          7902         20
            7566 DALLAS     MANAGER         7839         20
            7788 DALLAS     ANALYST         7566         20
            7876 DALLAS     CLERK           7788         20
            7902 DALLAS     ANALYST         7566         20

  • Defining polling interval on customization file

    Hello everyone,
    I have a requirement: define a polling interval (in this specific case for a email polling proxy, however it would be useful for a file polling proxy as well) in a customization file.
    It seems a simple task, however i could not find a way to perform...
    I've searched here in the forums and have found nothing (if someone finds a thread about this please provide the link).
    I've googled a bit as well, and the result was the same...
    In this blog post http://wesselj.blogspot.pt/2012/01/oracle-service-bus-good-bad-and-ugly.html we can read:
    "+(...) Customization files. Inflexible, verbous and complex to maintain. Not everything can be customized with the customization files, some like passwords are reasonable, *but things like polling interval for file integration would be nice to be able to change between environments*.+"
    And in this document http://docs.oracle.com/cd/E11036_01/alsb30/pdf/consolehelp.pdf , in the customization topic (page 29-1), there is nothing mentioning polling interval...
    The environment installed is OSB 11gR1.
    Any suggestions on how to perform this task?

    Any ideas?

  • How to define a parallel, deterministic pl/sql function in OWB 11.2?

    Hi,
    at my customer site, we are starting with the new development work after upgrading from OWB 10.2 to 11.2 and we can't find the configuration parameter to define a parallel and deterministic function within a new package. The "old" function dialog in 10.2 had some checkboxes for those two features ...
    Thanks in advance
    Michael

    Thanks for the advice, the Cut & Copy idea from MccM is working fine, however is not really a solution for the problem. But we are using it as a workaround for the moment.
    Just for documentation: There already exists a bugfix, addressing the issue of lost parrallel and deterministic information during an upgrade from OWB10.2 to 11.2 (see bug 14673399 and patch 16082939)
    And for at least some of us with access to Oracle Support: Our onsite Oracle consultant opened a service request for this issue: 3-6773545351 (You will not be able to see the request unless You are an Oracle employee, but maybe the reference is helpful for You.)

  • SQL Cache/Procedure Cache Limit

    Does anyone know if there is a memory limit for cache memory of a table? The reason for me asking is that I have an stored procedure that returns a ORA-22813. It appears that the in cache table memory has reached its full capacity (30K). Is there a way to increase cache table size?

    Does anyone know if there is a memory limit for cache memory of a table? The reason for me asking is that I have an stored procedure that returns a ORA-22813. It appears that the in cache table memory has reached its full capacity (30K). Is there a way to increase cache table size?

  • Performance problem PRD environment

    Hi Everybody,
    Some moments during the day we are having a performance problem in our PRD environment. The system get slow.
    The CPU get 100% of his usage.
    The most used process are:
    oracle.exe - 35%
    disp+work - 30%
    disp+work - 11%
    disp+work - 05%
    disp+work - 05%
    In SM50 we have the programs running.
    In ST03N we can see the most sequential reads and DB time problems.
    If we do a performance tunning of the programs identified we can reduce the performance problem?
    Anybody know another solution or where can i get more information to see where exactly the problem is?More transactions
    maybe?
    Best Regards,
    Fábio Karnik Tchobnian

    Hi,
    In SM50 we have the programs running.
    At what staus they are like commit , read etc; you also need to check for active JOBs get the details.
    In ST03N we can see the most sequential reads and DB time problems.
    Check for poorest SQL statement from ST04 => SQL cache => remove * => check for total execution time (descending order) => check for latest 3-4 SQL statement with your'e developer to fine tune the programe
    This is just for analysis if this is happening every time then above solution for upgrading CPU is worth than tuning
    Regards;

  • Scheule a job that runs on first day of every month

    Hi i want to schedul a job (run a procedure ) on first day of every month . I have done something lije this
    declare
    nextdate date;
    begin
    SELECT trunc(add_months(sysdate,1),'MM') into nextdate FROM DUAL ;
    dbms_output.put_line(nextdate);
    dbms_job.submit(
    what=>'someprocedure',
    next_date=>nextdate,
    interval=>'30');
    end;
    is interval mandatory ? how can i define that interval ??

    Hi,
    You can define an interval as follows:
    SQL> alter session set nls_date_format='dd-mm-yyyy hh24:mi:ss';
    Session altered.
    SQL> select add_months(trunc(sysdate, 'mm'), 1) from dual;
    ADD_MONTHS(TRUNC(SY
    01-09-2009 00:00:00
    1 row selected.
    SQL> select add_months(trunc(sysdate, 'mm'), 1) + 7/24 from dual;
    ADD_MONTHS(TRUNC(SY
    01-09-2009 07:00:00So, if you want your job to start at 07.00 every month you submit:
    declare
    nextdate date;
    begin
    SELECT trunc(add_months(sysdate,1),'MM') into nextdate FROM DUAL ;
    dbms_output.put_line(nextdate);
    dbms_job.submit(
    what=>'begin someprocedure; end;',
    next_date=>sysdate,
    interval=>'add_months(trunc(sysdate, ''mm''), 1) + 7/24');
    end; untested
    Check the docs: http://tahiti.oracle.com
    and/or http://asktom.oracle.com
    and/or this forum as well.
    Do some searches and you'll find lots of examples.

  • Jdbc bad performances on Unix

    Hi
    we have a problem with performances for Java application on Weblogic using THIN JDBC DRIVER.
    On Windows Platform we have no performance problems; the database resides on another Sun Server, release 8.1.6.2.0.
    On Unix Platform (sun SPARC ) the same application, on Weblogic, has a very high response time. The database is the same as above.
    Now we try to use the Oracle Native JDBC connection driver.
    Any Idea ?? maybe a bug or configuration issue?

    Hi,
    >
    roberto mariani wrote:
    > Someone has some suggestion ?
    > regards
    for your inserts,
    from ST05 what is the time per record?
    from ST04 (SQL Cache) what is the buffer gets and physical reads per record?
    the buffergets per record should be close to sum (  Levels of B-Tree + 1)  for all your indexes + 1 for your table block. (You can see Levels of B-Tree in ST5 in the index statistics in ST05).
    If this figure is considerably higher you have to get more details e.g. with extended sql trace (event 10046 level 8) on DB level, in order to find out where the time is spent... . Ask your database administrator for help then.
    Generally Speaking: Archiving is a good idea for constantly growing tables. In case of fragmentation reorganization is a good idea as well. However, regarding INSERTS i haven't seen problems so far in respect to big (non archived) or fragmented tables, I only remember problems with SELECTS and UPDATES.
    Kind regards,
    Hermann

  • Document number not within defined interval

    I am trying to assign my own po number with idoc pordcr101
    i am using the next po in our system 4500016058.
    when i look in we02 after sending the idoc i see
    document 4500016058 not within defined interval.
    can i assign my own po?  do i need to define my interval somewhere?
    any help would be greatly appreciated.
    thank you

    Hi Janice,
                  You are trying to create a PO with your specified Number, but in R/3 document numbers can exist only in the interval specified, hence check the number range in your R/3 config. and accordingly pad your number with 0's.
    Or you will have to change the interval ( Basis Job ).
    P.S. Also check if your R/3 allows External Number generation.
    Regards.

  • Define variable in SQL Loader Control File

    Hi,
    I have an input file where the first line is the header record, followed by the detail records. For the processing, I do not need to store the fields of the header record but I need a date field from this header record and store in as part of the detail record in an oracle record row.
    Is it possible to define a variable within the sql loader control file to store the value that I need in memory then use it when I do the sql insert by the sql loader?
    Thanks for any advice.

    Not sure that you can. But if your on unix/linux/mac its easy enough to write a shell script to populates the variables in a template file that you can then use as the ctl file. The perl template toolkit could be an option for that as well

  • Dose oracle.sql.ArrayDescriptor support the user defined type in package?

    Hi folks:
    I get a obstacle in calling stored procedure by using JDBC driver (ojdbc14.jar).
    I have the following code:
    create or replace package xxx AS
    type var_table is table of varchar2(50);
    procedure(parameter in var_table);
    end xxx;
    When I use the jdbc driver try to create a type for
    oracle.sql.ArrayDescriptor arrayDes = oracle.sql.ArrayDescriptor.createDescriptor( "var_table ",connection);
    The SQLException is thrown out like those:
    Invalid name pattern:user_schema. var_table
    So, my question is : Dose oracle.sql.ArrayDescriptor not support the user defined type in package? And I also tried to define such type by using sql "create xxxx" outside of package, then there is no SQLException.
    Hopefully for your response and suggestion.Thanks...

    To my knowledge, the Oracle JDBC driver does not support using the ArrayDescriptor for array data types (varray or nested table) that are defined inside of a package. The same is true for StructDescriptor as well. If you want to use array and object data types, you must define them outside of a package. Then you'll be able to use the descriptors in your JDBC programs.

  • MS-SQL 2005 Defined Views Not Showing Up In CR 10

    Post Author: fgriffin
    CA Forum: Data Connectivity and SQL
    I have two SQL servers one is a MS-SQL 2005 and I have several defined Views on both servers. In CR 10 I can see the Views I have defined on the older version of SQL  but I can't see the defined views on the MS-SQL 2005 server. Any ideas? Is this a known issue? Much Thanks! Frank

    Hello Paul,
    perhaps you might want to ask this question in the http://scn.sap.com/community/crystal-reports Space too, as the Crystal Reports experts usually watch that Space - so you might get an answer there sooner.
    Best regards,
    Laszlo

Maybe you are looking for

  • How to find out, that sales invoice is paid

    Hi, does anybody some hint, how to easy find out, that sales invoice is paid already (2007). I need to do this check for list of invoices (thousands) - so Im looking for some query. I know, how to find it through oinvoice object, from bank payment, i

  • Set Timeout in TopLink JPA

    Hi I am using a standalone JPA application with Toplink I need to implement a timeout feature But I do not find any options for setting the timeout in any of javax.persistence.EntityManager; javax.persistence.Query etc nor do i find any property that

  • How to remove "Delegate" option from Reassign Popup page in task details

    Hi I'm using SOA 11g and Jdev 11.1.1.3 for the development. I created a Human task and using the Reassign functionality. From the BPM Worklist, When I click the Reassign in the Actions menu, a popup for Reassign task is displayed. In this popup, I ha

  • Which is better for complex reporting, Oracle Reports or Discoverer?

    And what are the differences between the two? I cannot seem to find any info on this. Thanks, Susan

  • G5 ethernet died

    Hi everyone, I had a system crash on my G5 at work (the kind where lines of code appear over the desktop), but this time when i rebooted my ethernet connection doesn't work at all. I tried plugging it in to other ethernet outlets but still nothing wo