RE: @ command does not work in SQL PLUS (OS HP-unix)
- From: <Dominic.Brooks@xxxxxxxxxxxxxxxxxxx>
- To: <cbbakshi@xxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
- Date: Tue, 8 Feb 2011 14:03:02 +0000
Take out the blank line(s).
Add an ';' or a '/'.
SQL> ed abc.sql
SQL> get abc.sql
1* select 1 from dual
2
SQL> run abc.sql
1* select 1 from dual
1
----------
1
SQL> @abc.sql
SQL>
SQL> ed abc.sql
SQL> get abc.sql
1* select 1 from dual;
SQL> @abc.sql
1
----------
1
SQL> run abc.sql
1* select 1 from dual
1
----------
1
SQL>
________________________________
From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On
Behalf Of cbbakshi@xxxxxxx
Sent: 08 February 2011 13:45
To: oracle-l@xxxxxxxxxxxxx
Subject: @ command does not work in SQL PLUS (OS HP-unix)
Hi,
I have a sql file (abc.sql) which contains some code. I am able to run this
using "run" command as
SQL> run abc.sql
1* select 1 from dual
1
SQL>
But not able to execute using "@" command. If i execute using @ it just return
to the SQL prompt without executing this file.
SQL> @abc.sql
SQL>
SQL>
Could you please help me in resolving this issue?
FYI, I m using Oracle 8.1.7.4.0 on HP-unix (Tru64 UNIX V5.1B (Rev. 2650)
Content of abc.sql is
select 1 from dual
/
Thanks and Regards,
Chandra
_______________________________________________
This e-mail may contain information that is confidential, privileged or
otherwise protected from disclosure. If you are not an intended recipient of
this e-mail, do not duplicate or redistribute it by any means. Please delete it
and any attachments and notify the sender that you have received it in error.
Unless specifically indicated, this e-mail is not an offer to buy or sell or a
solicitation to buy or sell any securities, investment products or other
financial product or service, an official confirmation of any transaction, or
an official statement of Barclays. Any views or opinions presented are solely
those of the author and do not necessarily represent those of Barclays. This
e-mail is subject to terms available at the following link:
www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the
foregoing. Barclays Capital is the investment banking division of Barclays
Bank PLC, a company registered in England (number 1026167) with its registered
office at 1 Churchill Place, London, E14 5HP. This email may relate to or be
sent from other members of the Barclays Group.
_______________________________________________
Other related posts: