Unix Technical Forum

How can I run a sql script in toad or sql plus

This is a discussion on How can I run a sql script in toad or sql plus within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hello all, I have a sql file ( worksshop_plsql.sql) wich contains those files: ------ the content of the file------------ ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 05:28 AM
ing_ora
 
Posts: n/a
Default How can I run a sql script in toad or sql plus

Hello all,

I have a sql file ( worksshop_plsql.sql) wich contains those files:
------ the content of the file------------
SPOOL workshop_plsql.lst

@@ workshop_plsql.drp
@@ workshop_plsql.tab
@@ workshop_plsql.con
@@ workshop_plsql.sqs
@@ workshop_plsql.trg
@@ workshop_plsql.dat

SPOOL OFF
-------------------------------------------
when I load this file into the sql window of toad and tried to run it
as script. i get as script output this below:

SPOOL workshop_plsql.lst
^----------------
Statement Ignored
^----------------
Statement Ignored
^----------------
Statement Ignored
^----------------
Statement Ignored
^----------------
Statement Ignored
^----------------
Statement Ignored
SPOOL OFF

So can you tell me how you can run such file correctly. I appreciate
your help .Thank you

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 05:28 AM
Dave
 
Posts: n/a
Default Re: How can I run a sql script in toad or sql plus


"ing_ora" <zana_f@hotmail.com> wrote in message
news:1103900237.743572.229610@f14g2000cwb.googlegr oups.com...
> Hello all,
>
> I have a sql file ( worksshop_plsql.sql) wich contains those files:
> ------ the content of the file------------
> SPOOL workshop_plsql.lst
>
> @@ workshop_plsql.drp
> @@ workshop_plsql.tab
> @@ workshop_plsql.con
> @@ workshop_plsql.sqs
> @@ workshop_plsql.trg
> @@ workshop_plsql.dat
>
> SPOOL OFF
> -------------------------------------------
> when I load this file into the sql window of toad and tried to run it
> as script. i get as script output this below:
>
> SPOOL workshop_plsql.lst
> ^----------------
> Statement Ignored
> ^----------------
> Statement Ignored
> ^----------------
> Statement Ignored
> ^----------------
> Statement Ignored
> ^----------------
> Statement Ignored
> ^----------------
> Statement Ignored
> SPOOL OFF
>
> So can you tell me how you can run such file correctly. I appreciate
> your help .Thank you
>


run it in sqlplus


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 05:28 AM
Randy Harris
 
Posts: n/a
Default Re: How can I run a sql script in toad or sql plus

This message was multi posted. It was answered in another newsgroup.

"Dave" <x@x.com> wrote in message
news:JxXyd.6408$Ar5.1631@text.news.blueyonder.co.u k...
>
> "ing_ora" <zana_f@hotmail.com> wrote in message
> news:1103900237.743572.229610@f14g2000cwb.googlegr oups.com...
> > Hello all,
> >
> > I have a sql file ( worksshop_plsql.sql) wich contains those files:
> > ------ the content of the file------------
> > SPOOL workshop_plsql.lst
> >
> > @@ workshop_plsql.drp
> > @@ workshop_plsql.tab
> > @@ workshop_plsql.con
> > @@ workshop_plsql.sqs
> > @@ workshop_plsql.trg
> > @@ workshop_plsql.dat
> >
> > SPOOL OFF
> > -------------------------------------------
> > when I load this file into the sql window of toad and tried to run it
> > as script. i get as script output this below:
> >
> > SPOOL workshop_plsql.lst
> > ^----------------
> > Statement Ignored
> > ^----------------
> > Statement Ignored
> > ^----------------
> > Statement Ignored
> > ^----------------
> > Statement Ignored
> > ^----------------
> > Statement Ignored
> > ^----------------
> > Statement Ignored
> > SPOOL OFF
> >
> > So can you tell me how you can run such file correctly. I appreciate
> > your help .Thank you
> >

>
> run it in sqlplus
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:30 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com