网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > 数据库 > Oracle教程
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
数据库:数据库教程,数据库技巧,Oracle教程,MySQL教程,Sybase教程,Access教程,DB2教程,数据库安全,数据库文摘
本月文章推荐
.Oracle XML Publisher与JDevelop.
.影响Oracle汉字显示的字符集问题.
.如何在SQL *Plus中把数据库栏以变.
.Oracle常见错误代码的分析与解决.
.Linux ADSL Multipath Routing S.
.建立数据库认证的FTP.
.使用MD5编码实现数据库用户密码字.
.Oracle9i初始化参数中文说明(一.
.什么时候oracle使用绑定变量性能.
.诊断性能问题.
.数据文件internal分析.
.找到无用的索引.
.双机热备实战完全手册.
.[转载]关于SGA设置的一点总结.
.ORACLE在HP-UX下的系列问题处理(.
.双机容错环境下Oracle数据库应用.
.OEM联机自动热备份全攻略(2).
.为何我的导出文件只有500K,导入时.
.ORACLE学习笔记--性能优化一.
.Oracle AS 10g 下部署 ColdFusio.

关于怎样产生statpack

发表日期:2008-2-9



<<关于怎样产生statpack>>
  下面以Oracle816为例:
A)  To install the package, using SQL*Plus and based on the correct platform and RDBMS version, do the following:
        Oracle 8.1.6:
            on Unix:
            SQL>  connect / as sysdba
            SQL>  @?/rdbms/admin/statscre
B)The simplest interactive way to take a snapshot is to login to SQL*Plus as the PERFSTAT user, and execute the procedure statspack.snap:
     e.g.
       SQL>connect perfstat/perfstat
       SQL>execute statspack.snap;
  wait 10-30 minutes  then execute this again
C)Running the report
  To examine the change in statistics between two time periods, the statsrep.sql file is executed while being connected to the PERFSTAT user.  The statsrep.sql command file is located in the rdbms/admin Directory of the Oracle Home.

 Note:  In an OPS environment you must connect to the instance you wish to report on - this restriction may be removed in future releases.
  You will be prompted for:
    1. The beginning snapshot Id
    2. The ending snapshot Id
    3. The name of the report text file to be created

    Oracle 8.1.6:
        on Unix:
           SQL>  connect perfstat/perfstat
           SQL>  @?/rdbms/admin/statsrep
        on NT:
           SQL>  connect perfstat/perfstat
           SQL>  @%ORACLE_HOME%\rdbms\admin\statsrep
 这样就可以你把握的Oracle知识来分析问题的所在,这能够给你指出问题的大致所在,至于能否最终分析清楚问题是什么以及怎么解决就要看你的功底了。

上一篇:参数文件 人气:552
下一篇:oracle中的经常用到的包 人气:552
浏览全部Oracle教程的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐