Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQLPlus command line parameters

608591Nov 20 2007 — edited Nov 21 2007
I would like to pass parameters to a sqlscript with the &&
so that one variable is defined for the entire script
sqlplus scott/tiger @script foo
I tried everything and read and still it prompts me for the foo
variable... sometimes it does work ( set verify off ) and just
gives me the results... in others how do I pass variables
to a sql script through sqlplus without having sqlplus prompt
me for what the variable is, especially since I pass it.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2007
Added on Nov 20 2007
4 comments
44,379 views