| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Can not execute a Statspack Report (spreport.sql)
Greetings,
I am getting errors when running the script from Sql*Plus in Windows as PERFSTAT user:
D:\Oracle\Ora81\rdbms\admin\spreport.sql
on a Oracle 8.1.7.3.0 database
I have searched at Metalink, but cant find anything relevant for this.
clear break compute;
repfooter off;
ttitle off;
btitle off;
set timing off veri off space 1 flush on pause off termout on numwidth
10;
set echo off feedback off pagesize 60 linesize 80 newpage 2 recsep
off;
set trimspool on trimout on;
define top_n_events = 5; define top_n_sql = 65; define num_rows_per_hash=5; --
column inst_num heading "Inst Num" new_value inst_num format 99999;
column inst_name heading "Instance" new_value inst_name format a12;
column db_name heading "DB Name" new_value db_name format a12;
column dbid heading "DB Id" new_value dbid format
9999999999 just c;
select d.dbid dbid
, d.name db_name
, i.instance_number inst_num
, i.instance_name inst_name
from v$database d,
v$instance i;
variable dbid number;
:dbid := &dbid; :inst_num := &inst_num; :inst_name := &'inst_name'; :db_name := &'db_name';
Then I get these errors:
FEJL i linie 2:
ORA-06550: line 2, column 17: PLS-00103: Encountered the symbol "&" when expecting one of the following:
ORA-06550: line 3, column 17: PLS-00103: Encountered the symbol "&" when expecting one of the following:
ORA-06550: line 4, column 17: PLS-00103: Encountered the symbol "&" when expecting one of the following:
Thanks for any comment on this.
Regards
/Christian Received on Tue Aug 27 2002 - 02:38:08 CDT
![]() |
![]() |