楼主: eygle

[精华] Statspack安装配置使用说明!

[复制链接]
论坛徽章:
5
授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34ITPUB元老
日期:2006-09-15 08:40:23ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:442010广州亚运会纪念徽章:马术
日期:2010-11-22 15:29:06
61#
发表于 2004-4-2 18:38 | 只看该作者

这个有什么问题么?

[YOU HAVE NEW MAIL]
$ svrmgrl

Oracle Server Manager Release 3.1.7.0.0 - Production

Copyright (c) 1997, 1999, Oracle Corporation.  All Rights Reserved.

Oracle8i Enterprise Edition Release 8.1.7.4.0 - 64bit Production
JServer Release 8.1.7.4.0 - 64bit Production

SVRMGR> exit
Server Manager complete.
$ sqlplus sys/***password

SQL*Plus: Release 8.1.7.0.0 - Production on Fri Apr 2 18:32:06 2004

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to:
Oracle8i Enterprise Edition Release 8.1.7.4.0 - 64bit Production
JServer Release 8.1.7.4.0 - 64bit Production

SQL> @$ORACLE_HOME/rdbms/admin/spcreate.sql
... Installing Required Packages

Package created.


Grant succeeded.


View created.


Package body created.


Package created.


Synonym created.


Grant succeeded.


View created.


Synonym created.


View created.


Synonym created.


View created.


Synonym created.


View created.


Synonym created.


View created.


Synonym created.


View created.


Synonym created.


View created.


Synonym created.

... Creating PERFSTAT user

User created.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Below are the list of online tablespaces in this database.
Decide which tablespace you wish to create the STATSPACK tables
and indexes.  This will also be the PERFSTAT user's default tablespace.
Using the SYSTEM tablespace to store statistical data is
NOT recommended.

TABLESPACE_NAME
------------------------------
TOOLS
RBS
INDX
JIANGUAN
CONSTRUCTOR
PERFSTAT
COCS
COCS_JBQKB
COCS_TEMP
CEIN
CEIN_TEMP

11 rows selected.


Specify PERFSTAT user's default   tablespace
Enter value for default_tablespace: perfstat
Using perfstat for the default tablespace

User altered.


User altered.

Specify PERFSTAT user's temporary tablespace
Enter value for temporary_tablespace: temp
Using temp for the temporary tablespace
alter user PERFSTAT temporary tablespace temp
*
ERROR at line 1:
ORA-00959: tablespace 'TEMP' does not exist


Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.0 - 64bit Producti
on
JServer Release 8.1.7.4.0 - 64bit Production
$ sqlplus system/***password

SQL*Plus: Release 8.1.7.0.0 - Production on Fri Apr 2 18:32:47 2004

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to:
Oracle8i Enterprise Edition Release 8.1.7.4.0 - 64bit Production
JServer Release 8.1.7.4.0 - 64bit Production

SQL> alter user perfstat identified by ***password;

User altered.

SQL> connect perfstat/***password
Connected.
SQL> execute statspack.snap;
BEGIN statspack.snap; END;

      *
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'STATSPACK.SNAP' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored


SQL> execute statspack.snap
BEGIN statspack.snap; END;

      *
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'STATSPACK.SNAP' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored


SQL>

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
62#
发表于 2004-4-2 19:15 | 只看该作者

Re: 这个有什么问题么?

你操作里面有两个问题:

1、 你没有temp的表空间,你为什么要输入临时表空间为temp???
TABLESPACE_NAME
------------------------------
TOOLS
RBS
INDX
JIANGUAN
CONSTRUCTOR
PERFSTAT
COCS
COCS_JBQKB
COCS_TEMP
CEIN
CEIN_TEMP

你应该输入你自己的temp表空间名,应该是COCS_TEMP或者CEIN_TEMP!

2、你建立statpack失败后,重新运行前,必须现运行脚本把statpack建立脚本刚刚建立的表和权限删掉才行,817下我记不得是什么sql了,反正也是stat...什么开头的,可能是statdrop.sql,你自己找一下,执行完drop后再执行create

使用道具 举报

回复
论坛徽章:
5
授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34ITPUB元老
日期:2006-09-15 08:40:23ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:442010广州亚运会纪念徽章:马术
日期:2010-11-22 15:29:06
63#
发表于 2004-4-5 10:20 | 只看该作者

好了~,谢谢了~

多谢沙行者!!

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
64#
发表于 2004-4-5 10:50 | 只看该作者

Re: 好了~,谢谢了~

最初由 strongliq 发布
[B]多谢沙行者!! [/B]




  welcome

使用道具 举报

回复
论坛徽章:
2
行业板块每日发贴之星
日期:2005-03-22 01:02:26授权会员
日期:2005-10-30 17:05:33
65#
发表于 2004-12-1 11:39 | 只看该作者
谢谢

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表