Solved

ash report failing

Posted on 2014-04-03
2
639 Views
Last Modified: 2014-04-06
I was trying to run the ash report it is failing..

This is the script

SYS@EWGEN5P SQL> RETURN awrrpt_html_type_table PIPELINED;
SP2-0734: unknown command beginning "RETURN awr..." - rest of line ignored.
SYS@EWGEN5P SQL>select name from v$database;

NAME
---------
EWGEN5P

SYS@EWGEN5P SQL>exitoracle@puchdsclgen5001:/appl/oracle/EWGEN5P/exp01/exp[EWGEN5P]:
===> sqlplus / as sysdba
SP2-0734: unknown command beginning "exitoracle..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0734: unknown command beginning "===> sqlpl..." - rest of line ignored.
SYS@EWGEN5P SQL>
SYS@EWGEN5P SQL>SQL*Plus: Release 11.2.0.2.0 Production on Thu Apr 3 08:51:30 2014
SP2-0734: unknown command beginning "SQL*Plus: ..." - rest of line ignored.
SYS@EWGEN5P SQL>
SYS@EWGEN5P SQL>Copyright (c) 1982, 2010, Oracle.  All rights reserved.
SP2-0734: unknown command beginning "Copyright ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SYS@EWGEN5P SQL>
SYS@EWGEN5P SQL>
SYS@EWGEN5P SQL>Connected to:
SP2-0734: unknown command beginning "Connected ..." - rest of line ignored.
SYS@EWGEN5P SQL>Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
SP2-0734: unknown command beginning "Oracle Dat..." - rest of line ignored.
SYS@EWGEN5P SQL>With the Partitioning, OLAP, Data Mining and Real Application Testing options
  2
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL>DBMS_WORKLOAD_REPOSITORY.ASH_REPORT_HTML(
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>   l_dbid          IN NUMBER,
SP2-0734: unknown command beginning "DBMS_WORKL..." - rest of line ignored.
SP2-0224: invalid starting line number
SYS@EWGEN5P SQL>SP2-0734: unknown command beginning "SP2-0734: ..." - rest of line ignored.
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL>SP2-0223: No lines in SQL buffer.
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL>   l_inst_num      IN NUMBER,
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0223: No lines in SQL buffer.
SYS@EWGEN5P SQL>   l_btime         IN DATE,
SP2-0734: unknown command beginning "SP2-0223: ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SYS@EWGEN5P SQL>SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0223: No lines in SQL buffer.
SP2-0734: unknown command beginning "SP2-0223: ..." - rest of line ignored.
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL>   l_etime         IN DATE,
   l_options       IN NUMBER    DEFAULT 0,
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0224: invalid starting line number
SYS@EWGEN5P SQL>SP2-0223: No lines in SQL buffer.
SP2-0734: unknown command beginning "SP2-0223: ..." - rest of line ignored.
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL>SP2-0223: No lines in SQL buffer.
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL>   l_slot_width    IN NUMBER    DEFAULT 0,
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0223: No lines in SQL buffer.
SP2-0734: unknown command beginning "SP2-0223: ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL>   l_sid           IN NUMBER    DEFAULT NULL,
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>   l_sql_id        IN VARCHAR2  DEFAULT NULL,
SP2-0223: No lines in SQL buffer.
SP2-0224: invalid starting line number
SYS@EWGEN5P SQL>SP2-0734: unknown command beginning "SP2-0223: ..." - rest of line ignored.
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL>SP2-0223: No lines in SQL buffer.
SYS@EWGEN5P SQL>   l_wait_class    IN VARCHAR2  DEFAULT NULL,
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0223: No lines in SQL buffer.
SP2-0734: unknown command beginning "SP2-0223: ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL>   l_service_hash  IN NUMBER    DEFAULT NULL,
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0223: No lines in SQL buffer.
SYS@EWGEN5P SQL>   l_module        IN VARCHAR2  DEFAULT NULL,
SP2-0734: unknown command beginning "SP2-0223: ..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0223: No lines in SQL buffer.
SP2-0734: unknown command beginning "SP2-0223: ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL>   l_action        IN VARCHAR2  DEFAULT NULL,
SP2-0223: No lines in SQL buffer.
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0734: unknown command beginning "SP2-0223: ..." - rest of line ignored.
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL>   l_client_id     IN VARCHAR2  DEFAULT NULL,
SP2-0223: No lines in SQL buffer.
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0734: unknown command beginning "SP2-0223: ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL>   l_plsql_entry   IN VARCHAR2  DEFAULT NULL)
SP2-0223: No lines in SQL buffer.
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0734: unknown command beginning "SP2-0223: ..." - rest of line ignored.
SYS@EWGEN5P SQL>SYS@EWGEN5P SQL> RETURN awrrpt_html_type_table PIPELINED;
SP2-0734: unknown command beginning "RETURN awr..." - rest of line ignored.
SYS@EWGEN5P SQL>select name from v$database;
SP2-0734: unknown command beginning "SYS@EWGEN5..." - rest of line ignored.
SYS@EWGEN5P SQL>SP2-0734: unknown command beginning "SP2-0734: ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
0
Comment
Question by:tonydba
2 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 39976169
It looks like you have copied some commands and pasted them into sqlplus.

It looks like it might have been a shell script not a SQL script.

If it is a shell script, it needs to be executed from the Unix prompt not a sqlplus prompt.

If you can show what it is you are trying to run or where you got it from, we can offer additional advice.
0
 

Author Closing Comment

by:tonydba
ID: 39981594
I am wrong from my side ...I realize the mistake
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
1 FROM DUAL wont work with additional columns ?? 4 55
Use of Exception to end a Loop 3 54
PL SQL Developer 7 67
Oracle performance tuning 2 18
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question