Database tuning with Time Model Statistics

How can we use V$SESS_TIME_MODEL and V$SYS_TIME_MODEL or DB_TIME to daignose/tune the database

Tnx Jaffar,
I know the description of each column for dynamic performance views.
My question is how can we get any meaningful information which can help interpreting problem or possible solution in the DB.
For instance look at the output from V$SYS_TIME_MODEL from one of the production Database.How can I use that information to good use.
3649082374 DB time                                                             855657150735
2748282437 DB CPU                                                              270642990896
4157170894 background elapsed time                                             511263826646
2451517896 background cpu time                                                 128007010158
4127043053 sequence load elapsed time                                             102151062
1431595225 parse time elapsed                                                  105369068246
372226525 hard parse elapsed time                                              91457461637
2821698184 sql execute elapsed time                                            694544980733
1990024365 connection management call elapsed time                                933285066
1824284809 failed parse elapsed time                                             3890881196
4125607023 failed parse (out of shared memory) elapsed time                               0
3138706091 hard parse (sharing criteria) elapsed time                             113740639
268357648 hard parse (bind mismatch) elapsed time                                  8999669
2643905994 PL/SQL execution elapsed time                                        32792584918
290749718 inbound PL/SQL rpc elapsed time                                        122796155
1311180441 PL/SQL compilation elapsed time                                        103310315
751169994 Java execution elapsed time                                                    0
1159091985 repeated bind elapsed time                                              45211144
2411117902 RMAN cpu time (backup/restore)                                      100789016188

Similar Messages

  • Is Oracle database Compatible with Times Ten database?

    Hello All,
    I need to use a temporary database in Oracle for some months.
    Later on, I will need to migrate all data to a Times Ten database.
    1. My doubt is if Oracle and Times Ten databases are compatible with
    each other (specially when having this kind of cases) ?
    2. In case the answer is YES to question 1, I would like to know if there are some
    restrictions in that compatibility (type of data, any other issue, etc)
    Best Regards
    Rubén

    Ruben,
    There are two areas you shoul look into regarding your project: SQL functionality and data types. TimesTen 6.0 supports a subset of the SQL features and data types currently available in the Oracle DB; also, TimesTen supports some native numberic data types that are not available in the Oracle DB.
    If your end-game is to use the TimesTen database, then I would start with the TimesTen API and SQL Reference Guide (http://www.oracle.com/technology/documentation/timesten_doc.html)
    Use the SQL functionality documented for TimesTen and pay attention to the common data types. For example, VARCHAR is handled differently from VARCHAR2 (where trailing spaces exist), DATE and Timestamp are handled differently, etc. Additionally, keep in mind most numeric values are declared using NUMBER in the Oracle DB, but not in TimesTen.
    If you are an existing TimesTen licensed customer, please let us know your support ID(CSI) and we can contact you with more information on our future release plan to address SQL and data types compatibility.
    By the way, what's the timeline for your project?
    -scheung

  • Time Model

    Hi,
    I have a question about "time model" statistics.
    Assume that the instance is open for 138 days and "db time" in v$sys_time_model view is 36 days. By only comparing these days can we understand instance doesn't need hardware changes?
    SQL> select round((sysdate-t.STARTUP_TIME)) as days_open from v$instance t;
    DAYS_OPEN
    138
    SQL> select t.STAT_NAME, round(t.VALUE/1000000/60/60/24) days_db_time from v$sys_time_model t where lower(t.STAT_NAME)= 'db time' ;
    STAT_NAME DAYS_DB_TIME
    DB time 36
    Thank You..

    It would be wrong to arrive at a conclusion regarding hardware changes with this information. It could be that these 138 days have been normal days for your database and the days to follow may need some higher levels of processing power.

  • How to install the Oracle Enterprise Manager Database Tuning ?

    Hi,
    How to install the Oracle Enterprise Manager Database Tuning with the Oracle Tuning Pack
    Release 9.0.1
    And where to get download this.
    Thank u..!

    The only way you can get 9iR1 release software is by asking it to your Oracle representative. The oldest 9i release available for public download is 9iR2.
    You could try the administrative 9iR2 client, it can work with 9iR1 releases.
    ~ Madrid.

  • Time model/event

    Hi,
    what is time model stats in AWR and time event in 10g?
    What is the difference between two?
    Thanks

    Hi,
    Below is a description for Time model statistics in AWR. I do not understand what you mean by time waits in AWR - Pls clarify!
    Note: Below text is a blatant copy of what Don has to sya on this in his website. This is the simplest description I have got. To look for further info, kindly look into the good old Oracle documentation.
    Time Model Statistics
    The time model statistics give insight about where the processing time is actually spent during the snapshot interval.
    Time Model Statistics  DB/Inst: LSQ/lsq  Snaps: 1355-1356
    -> ordered by Time (seconds) desc
                                                           Time      % Total
    Statistic Name                                     (seconds)     DB Time
    DB time                                         7,274.60      100.00
    sql execute elapsed time                        7,249.77       99.66
    background elapsed time                           778.48       10.70
    DB CPU                                            150.62        2.07
    parse time elapsed                                 45.52         .63
    hard parse elapsed time                            44.65         .61
    PL/SQL execution elapsed time                      13.73         .19
    background cpu time                                 8.90         .12
    PL/SQL compilation elapsed time                     3.80         .05
    connection management call elapsed time              .15         .00
    Java execution elapsed time                          .05         .00
    hard parse (bind mismatch) elapsed time              .00         .00
    hard parse (sharing criteria) elapsed time           .00         .00
    sequence load elapsed time                           .00         .00
    failed parse (out of shared memory) elapsed          .00         .00
    inbound PL/SQL rpc elapsed time                      .00         .00
    failed parse elapsed time                            .00         .00
    In the sample output of the AWR Time Model Statistics Report shown above, it can be seen that the system spends the most processing time on actual SQL execution but not on parsing.Thanks,
    Suddhasatwa

  • Inserting Current Date with time stamp in oracle database

    Hi Experts,
                     I want to insert the current Date and time stamp in a field in the Oracle Database Table.
    I am able to insert date but i am not able to insert the date with time stamp. Any Suggestions??
    Thanks
    Naveen

    Naveen,
    Do you want to get current date (from sysdate) with a specific format or transform a value containing a date/time value to insert it in ORACLE ?
    Usually, you insert current datetimestamp in a date field using this :
    TO_DATE(sysdate,'dd/mm/yyyy hh:mi:ss')
    you may have to tweak the format pattern ('dd/mm....') according to your needs
    if you want to transform a date, use something like this:
    TO_DATE(your_date,your_format)
    but make sure your format is compliant with your date, ie
    TO_DATE('31/12/2008','MM/DD/YYYY') could raise error (litteral does not match) cuz ORACLE can't recognize 31 as a month pattern
    Chris

  • Will Mountain Lion work with old models of Time Capsule?

    I was using an online backup service but it slowed down my machine so I want to go to an external drive backup. I have upgraded to Mountain Lion and I am thinking of purchasing an older version of Time capsule for my backups. My question is will mountain lion work with older models of Time Capsule? thanks so much.....

    Yes. I have a first generation Time Capsule and it works fine.
    Just make sure you buy at least 3 times the GB you are trying to backup. More is better.

  • How to deal with  time zone while upgrading the database?

    Hi,
    How to deal with time zone while upgrading the database?
    Thanks
    Edited by: user12135020 on Jul 4, 2011 3:06 AM

    Hello,
    I answered to a Wrong post.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Jul 4, 2011 12:15 PM

  • Where to learn about database tuning from?

    Hello,
    I need to learn more about database tuning - practical aspect. Are there any sites/services that could help me? I can't use production environment of course, I need to prepare my own ones (Oracle DBs on linux and windows too) and workload too. How to simulate workload from many users?
    Thanks in advance for help
    Aliq

    How do you learn to paint? You can read every book on the subject, attend lectures by famous artists on paints and brushes and styles and what not..
    None of this will turn you into an artist that can paint. Theory only goes that far.
    And this is as true in performance tuning as in painting. You need to run into that brick wall called experience over and over again - and each time learn hard lessons that no theory can ever teach.
    If performance tuning was that easy, we would have had fully automated tuning software in operating systems and database systems that could detect and fix all our performance woes on the fly.
    Does not work like that.
    Also, performance tuning is many times seen as an "after the fact" thing. Design the system. Code the software. Implement it. Then tune it.
    Wrong. Also does not work like that.
    Performance tuning begins at the very first workshop when brainstorming the basic design of the system. If performance and scalability are not part of that process, they cannot easily (if at all) be made to be part of the final system as a tuning exercise.
    If I need to pass a single fundamental "uber-alles" principle for performance tuning - when dealing with it after the fact (as many of us do), then it is:
    Identify The Problem
    Do not confuse symptoms as the actual problem.
    PS. Performance tuning is also many time (IMO) a situation where you have lost. Why? Because of if the code was designed and coded correctly, then there would not have been a performance issue. If the Oracle architecture was understood correctly, there would not be a problem. Which makes the advice by the other 2 posters so important. Understand Oracle. Understand how to design and code in Oracle. If done well, what is there left to performance tune?

  • Database table with potentially millions of records

    Hello,
    We want to keep track of user's transaction history from the performance database.  The workload statistics contain the user transaction history information, however since the workload performance statistics are intended for temporary purposes and data from these tables are deleted every few months, we loose all the user's historical records.
    We want to keep track of the following in a table that we can query later:
    User ID      - Length 12
    Transaction  - Length 20
    Date         - Length 8
    With over 20,000 end users in production this can translate into thousands of records to be inserted into this table daily.
    What is the best way to store this type of information?  Is there a specific table type that is designed for storing massive data quantity?  Also, over time (few years) this table can grow into millions or hundreds of millions of records.  How can we manage that in terms of performance and storage space?
    If anyone has worked with database tables with very large amounts of records, and would like to share your experiences, please let us know how we could/should structure this function in our environment.
    Best Regards.

    Hi SS
    Alternatively, you can use a <u>cluster table</u>. For more help refer to F1 help on <b>"IMPORT TO / EXPORT FROM DATABASE"</b> statements.
    Or you can store data as a <u>file</u> on the application server using <b>"OPEN DATASET, TRANSFER, CLOSE DATASET"</b> statements.
    You can also select to archieve data of older than some definite date.
    You can also mix your alternatives for the recent and archieve data.
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Database selection with invalid cursor !

    hi experts,
        When  execute SAP BW processchar, it occur some system error: (sm21)
    Database selection with invalid cursor
    The database interface was called by a cursor (in a FETCH or CLOSE
    cursor operation) that is not flagged as opened. This can occur if a
    COMMIT or ROLLBACK was executed within a SELECT loop (which closes all
    opened cursors), followed by another attempt to access the cursor (for
    example, the next time the loop is executed).
    this error occur when apply bw support package 19.
    sap notes 1118584 Solution is: Import Support Package 17 . but my support package is 19.
    how can i solve this error?
    thanks,
    xwu.

    I am only assuming things, but it might be worth to look closely if you were experiencing an ORA- error during the execution. This could have caused a rollback and thus closed the cursor. Please check the job log, the workprocess trace (dev_wX file) and the system log SM21 and ST22 as well.
    Besides that check the oracle alertlog and the usertrace destination.
    Best regards, Michael

  • Database selection with invalid cursor with MaxDB database

    Hi Experts,
    I encountered the this error:
    "Database selection with invalid cursor
    The database interface was called by a cursor (in a FETCH or CLOSE
    cursor operation) that is not flagged as opened. This can occur if a
    COMMIT or ROLLBACK was executed within a SELECT loop (which closes all
    opened cursors), followed by another attempt to access the cursor (for
    example, the next time the loop is executed)."
    We are using bw support package 19 early this month. Previously is working fine but this problem occured from the last 2 days.
    We are using MaxDB database.
    Really appreciate any speedy responds.

    Hi,
    We finally resolved the issue.
    The solution:
    We check the RFC connection test in SM59. There are connection error.
    There is an error that related J2EE_ADMIN user.
    SO we reset the J2EE_ADMIN id in SU01.
    The problem goes away.
    Many thanks

  • Load data error: Database selection with invalid cursor (sm21)

    hi experts,
    when I execute processchar, it occur some system error:
    "Database selection with invalid cursor ",
    "Documentation for system log message BY 7 :
    The database interface was called by a cursor (in a FETCH or CLOSE
    cursor operation) that is not flagged as opened. This can occur if a
    COMMIT or ROLLBACK was executed within a SELECT loop (which closes all
    opened cursors), followed by another attempt to access the cursor (for
    example, the next time the loop is executed). "
    the error msg occur when apply bw support package19.
    data from DSO to CUBE, Transferred Recodes is not zero, but Added Recodes is zero.
    Request status always yellow, process is running.
    current sys info: BI7 and BW19, BASIS17,PI_BASIS17, the database is oracle10g R2.
    thanks for your help.

    I have solved this issue, The Oracle checkpoint not complete.
    thanks,
    xwu.

  • Processchar occur error:  Database selection with invalid cursor (sm21)

    hi,
       when I execute processchar, it occur some system error:
    "Database selection with invalid cursor ",
    "Documentation for system log message BY 7 :
    The database interface was called by a cursor (in a FETCH or CLOSE
    cursor operation) that is not flagged as opened. This can occur if a
    COMMIT or ROLLBACK was executed within a SELECT loop (which closes all
    opened cursors), followed by another attempt to access the cursor (for
    example, the next time the loop is executed). "
    the error msg occur when apply bw support package19.
    data from DSO to CUBE, Transferred Recodes is not zero, but Added Recodes is zero.
    Request status always yellow, process is running.
    current sys info: BI7 and BW19, BASIS17,PI_BASIS17, the database is oracle10g R2.
    thanks for your help.

    I have solved this issue , The Oracle checkpoint is not complete.
    thanks,
    xwu.

  • Using database link  with a dynamic SQL in Forms 5

    I have a Form 5 application where a database link is specified in a client version of dynamic SQL. The function that the application is designed to perform is to access data in a table in a remote database and use it to populate another table in a local database with the same structure as the source table. Dynamic SQL is used because the name of the table can only be resolved during run time.
    The problem is that it gives error with code 'ORA-03113' and text 'End-of-file on communication channel' when you try to run it.
    Is it not possible to use a database link with a dynamic SQL? What can I do to overcome the problem ?

    Try to create a local view based ao the remote table and use the view.

Maybe you are looking for