Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ash report failing

Posted on 2014-04-03
2
Medium Priority
?
662 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 2000 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

660 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