<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    How to Generating an Oracle Trace File --MRO software..wmc

    Overview : You can generate a log of Oracle statements being executed on the server. This trace file is very useful in diagnosing performance problems. Oracle's utility, tkprof, can be used to sort commands. You can also request the execution plan of the statements.
    Procedure

    1. Enable timed statistics
    Modify the initxxx.ora file for your database instance to include timed_statistics with the following parameter. You must shutdown and restart the database for this parameter to take effect.
    timed_statistics=true
    2. Trace all sessions
    To trace all sessions, set SQL_TRACE in the initxxx.ora file to TRUE. If you are trying to diagnose a specific error then open the .trc file with a text editor and search for err='Oracle error number without the leading zeros'
    3. Trace a specific session
    MAXIMO 4.x

    Start the MAXIMO application you wish to trace.

    Determine the process id of the workstation you want to trace.

    select sid, serial# from v$session where username='maximoschema' and machine='hostname';

    Start the trace:

    exec dbms_system.set_sql_trace_in_session (sid, serial#, TRUE);
    note: the procedure can be run as sys. You may need to grant execute to system on dbms_system.

    Run the MAXIMO process you wish to trace.

    Stop the trace:

    exec dbms_system.set_sql_trace_in_session (sid, serial#, FALSE);


    MAXIMO 5.x

    You cannot trace a specific session in MAXIMO 5.x.



    4. Generate the results using tkprof

    Format the results of the trace file with ORACLE's TKPROF utility. You will want to sort either by total CPU time SORT=(PRSCPU,EXECPU,FCHCPU) or by total elapsed time SORT=(PRSELA,EXEELA,FCHELA)

    By turning on tracing within MAXIMO and running TKPROF, you will be able to see exactly which SQL statements generated by MAXIMO are the long-running statements. You can run the TKPROF utility using the EXPLAIN PLAN option which will show you the path that the optimizer uses for each particular SQL statement. The goal is to discover why particular SQL statements are taking so long to run.


    Example:

    tkprof ora_213999.trc ora_213999.out sys=no sort=execpu explain=maximo/maximo@tns:maxdb

    Performance issues to consider (1) optimization mode (cost vs rule) (2) missing indexes (3) database table and index fragmentation (4) other processes running on the database server (5) server resource limitations reached: memory, file throughput, CPU speed.


    Note: Increasing the size of Oracle trace files

    You may need to increase the size of the trace file.

    To determine the current setting:

    SELECT NAME,VALUE FROM V$PARAMETER WHERE NAME = 'max_dump_file_size';

    To increase it:

    ALTER SYSTEM SET MAX_DUMP_FILE_SIZE = nnM SCOPE = MEMORY;

    where size can be nnK nnM or UNLIMITED

    and SCOPE can be:

    MEMORY - For dynamic parameters. Change is immediate but does not persist across shutdown.
    SPFILE - For static or dynamic parms. Change goes into affect after a shutdown/restart. Static parms can only use this one.
    BOTH - For dynamic parms. Put into affect immediately and make it permanent.

    posted on 2006-02-09 15:51 大樹 閱讀(499) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導(dǎo)航:
     
    <2006年2月>
    2930311234
    567891011
    12131415161718
    19202122232425
    2627281234
    567891011

    導(dǎo)航

    統(tǒng)計(jì)

    公告

    本期話題
    能源行業(yè)資產(chǎn)管理咨詢
    資產(chǎn)管理信息化方案提供
    資產(chǎn)管理相關(guān)行業(yè)培訓(xùn)
    大型企業(yè)軟件體系架構(gòu)整合
    資產(chǎn)管理信息系統(tǒng)實(shí)施
    信息集成
    信息孤島

    常用鏈接

    留言簿(6)

    隨筆檔案(45)

    文章檔案(7)

    新聞檔案(1)

    相冊

    wallgate management consulting

    最新隨筆

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲国产精品va在线播放| 久久99精品国产免费观看| 亚洲精品成人在线| 免费看a级黄色片| av永久免费网站在线观看| 国产免费小视频在线观看| 免费污视频在线观看| 亚洲乱码卡三乱码新区| 亚洲午夜久久久久久久久电影网| 大地资源网高清在线观看免费| 77777亚洲午夜久久多喷| 久久精品国产亚洲Aⅴ蜜臀色欲| eeuss影院免费直达入口| 亚洲中字慕日产2020| 一区国严二区亚洲三区| 日韩国产免费一区二区三区| 一级做a爰黑人又硬又粗免费看51社区国产精品视 | 日本免费人成黄页网观看视频| 91av视频免费在线观看| 野花香在线视频免费观看大全| 四虎一区二区成人免费影院网址 | 最近免费中文字幕mv在线电影| va天堂va亚洲va影视中文字幕| 亚洲美免无码中文字幕在线| 亚洲国产精品VA在线观看麻豆| 亚洲精品在线视频| 精品国产日韩亚洲一区| 亚洲国产精品专区在线观看| 国产zzjjzzjj视频全免费 | 亚洲VA中文字幕无码一二三区| 一本久久a久久精品亚洲| 亚洲乱码中文字幕综合234| 国产亚洲精品久久久久秋霞| 亚洲精品乱码久久久久久自慰| 不卡精品国产_亚洲人成在线| 国产A在亚洲线播放| 亚洲第一二三四区| 日日狠狠久久偷偷色综合免费 | 国产精品网站在线观看免费传媒| www在线观看免费视频| 一本久久A久久免费精品不卡|