Solved

ash report failing

Posted on 2014-04-03
2
644 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Oracle DB Slows After Datapump Until Next Reboot 27 173
inserting value in table in oracle form 2 30
Oracle Join issue. 3 48
Convert summed columns to Rows 6 25
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

751 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