-
Hi. I'm trying to set up STATSPACK on one of our 8.1.6 db (OS is NT4.0), and keep getting the following error:
begin
*
ERROR at line 1:
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "SYS.STANDARD", line 1014
ORA_06512: at line 3
I had a look thru statsauto.sql but there is nothing to specify or request the number of rows.
I know I have to change the number of rows requested to rectify this error - could anyone tell me the syntax for that?
Cheers in advance
Fiona
-
Hi,
Is the problem actaully occuring in the statsauto.sql script?
If so the offending link will most likely be:
select instance_number into :instno from v$instance;
Is you v$instance view returning more than 1 row?
regards
Jim
Oracle Certified Professional
"Build your reputation by helping other people build theirs."
"Sarcasm may be the lowest form of wit but its still funny"
Click HERE to vist my website!
-
v$instance returns only 1 row - what could be the problem?!
-
Sorry didn't read your first post correctly, the actual error results from an extra row in the DUAL table.
connect as sys
select count(*) from dual;
if this returns 2 then you need to remove the extra row
delete from daul where dummy is null or trim (dummy) is null;
Regards
Jim
Oracle Certified Professional
"Build your reputation by helping other people build theirs."
"Sarcasm may be the lowest form of wit but its still funny"
Click HERE to vist my website!
-
Count for the table dual come back as 1 as well.
-
Jim
Oracle Certified Professional
"Build your reputation by helping other people build theirs."
"Sarcasm may be the lowest form of wit but its still funny"
Click HERE to vist my website!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|