D:\oracle\ora92\rdbms\admin>sqlplus "/ as sysdba" SQL*Plus: Release 9.2.0.3.0 - Production on 星期四 7 月 10 19:18:54 2003 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
连接到: Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options JServer Release 9.2.0.3.0 - Production SQL> 检查数据文件路径及磁盘空间,以决定创建数据文件的位置:
Choose the PERFSTAT user's password. Not specifying a password will result in the installation FAILING Specify PERFSTAT password 输入 pe rfstat_password 的值: 123 123 PL/SQL 过程已成功完成。
create user perfstat identified by 123 * ERROR 位于第 1 行: ORA-00988: 缺少或无效口令
如果安装成功,你可以看到如下的输出信息:
…. Creating Package STATSPACK...
程序包已创建。
没有错误。 Creating Package Body STATSPACK...
程序包主体已创建。
没有错误。
NOTE: SPCPKG complete. Please check spcpkg.lis for any errors.
你可以查看.lis 文件查看安装时的错误信息。
SQL> host dir *.lis 驱动器 D 中的卷没有标签。 卷的序列号是 5070-5982 D: \oracle\ora81\RDBMS\ADMIN 的目录
$ ls *.lis spauto.lis spcpkg.lis sp ctab.lis s pcusr.lis spdtab .lis spdusr.lis $ grep ORA- *.lis $ grep err *.lis spcpkg.lis:SPCPKG complete. Please check spcpkg.lis for any errors. spctab.lis:SPCTAB complete. Please check spctab.lis for any errors. spcusr.lis:SPCUSR complete. Please check spcusr.lis for any errors. spdtab.lis:SPDTAB complete. Please check spdtab.lis for any errors. spdusr.lis:SPDUSR complete. Please check spdusr.lis for any errors.
SQL> exec statspack.snap; BEGIN statspack.snap; END; * ERROR at line 1: ORA-01401: inserted value too large for column ORA-06512: at "PERFSTAT.STATSPACK", line 978 ORA-06512: at "PERFSTAT.STATSPACK", line 1612 ORA-06512: at "PERFSTAT.STATSPACK", line 71 ORA-06512: at line 1
Job number for automated statistics collection for this instance ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Note that this job number is needed when modifying or removing the job:
JOBNO ---------- 28
Job queue process ~~~~~~~~~~~~~~~~~ Below is the current setting of the job_queue_processes init.ora parameter - the value for this parameter must be greater than 0 to use automatic statistics gathering: NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ job_queue_processes integer 5
Next scheduled run ~~~~~~~~~~~~~~~~~~ The next scheduled run for this job is:
DB Id DB Name Inst Num Instance ----------- ------------ -------- ------------ 1277 924236 EYGLE 1 eygle Completed Snapshots
Snap Snap Instance DB Name Id Snap Started Level Comment ------------ ------------ ----- ----------------- ----- ---------------------- eygle EYGLE 1 04 12 月 2002 14:4 5 8 2 04 12 月 2002 15:0 5 0 ………………..
98 05 12 月 2002 04:1 5 3 eygle EYGLE 99 05 12 月 2002 04:2 5 3 100 05 12 月 2002 04:3 5 3 Specify the Begin and End Snapshot Ids ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 输入 be gin_snap 的值: 1 (select * from perfstat.stats$snapshot t)查看snap_id的值 Begin Snapshot Id specified: 1
输入 e nd_snap 的值: 100 End Snapshot Id specified: 100 Specify the Report Name ~~~~~~~~~~~~~~~~~~~~~~~ The default report file name is sp_1_100. To use this name, press to continue, otherwise enter an alternative. 输入 report_n ame 的值: rep1205.txt