oracle的perfstat用户,在oracle中创建perfstat表空间

http://www.praetoriate.com/t_ault1_68_installation_statspack_perfstat.htm

Installation and Use of STATSPACKThis procedure is for a Windows 2000 install; however, installations on UNIX or other platforms should be nearly identical.

Create the STATSPACK tablespace (note, you cannot use the SYSTEM tablespace for STATSPACK results).

: sqlplus /nolog

SQL*Plus: Release 9.0.1.0.1 - Production on Wed Nov 7 11:11:21 2001

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

SQL> connect sys as sysdba

Password:

Connected.

SQL> CREATE TABLESPACE perfstat

DATAFILE ‘c:/oracle/ora9i/oradata/perfstat01.dbf’ SIZE 500m

EXTENT MANAGEMENT LOCAL UNIFORM SIZE 500k;

Tablespace created.

Run the spcreate.sql script for Oracle9i; it is located in the $ORACLE_HOME/rdbms/admin directory. (Note: This was called statscre.sql in previous releases.) In Oracle9i, it also automatically runs dbmspool.sql and dbmsjob.sql as a part of the spcusr.sql script. If you have already installed dbmspool.sql (dbms_shared_pool) and dbmsjob.sql (dbms_job), then you may wish to comment-out the calls to these packages in the spcusr.sql script. All STATSPACK scripts are located in the same directory as the spcreate.sql script, so you may wish to move them to a STATSPACK or reporting-specific directory. I have removed all of the creating-this and creating-that messages for the sake of brevity; however, you should know this script creates numerous views, tables, and packages.

SQL> @spcreate

... Installing Required Packages

... Creating PERFSTAT user

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.

Specifying the SYSTEM tablespace will result in the installation

FAILING, as using SYSTEM for performance data is not supported.

TABLESPACE_NAME CONTENTS

------------------------------ ---------

DRSYS PERMANENT

INDX PERMANENT

PERFSTAT PERMANENT

RBS PERMANENT

TEMP TEMPORARY

TOOLS PERMANENT

USERS PERMANENT

7 rows selected.

Specify PERFSTAT user's default tablespace

Enter value for default_tablespace: perfstat

Using perfstat for the default tablespace

Choose the PERFSTAT user's temporary tablespace.

Specifying the SYSTEM tablespace will result in the installation

FAILING, as using SYSTEM for the temporary tablespace is not recommended.

Specify PERFSTAT user's temporary tablespace.

Enter value for temporary_tablespace: temp

Using temp for the temporary tablespace

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值