Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Passing a parameter containing a space to sqlplus
Barry
Make sure that your substitution variable is in single quotes '&1' and then
pass the parameter in single quotes, (or in single quotes surrounded by
double quotes)
hth
chaim
Barry Deevey <Barry.Deevey_at_sefas.co.uk>@fatcity.com on 09/10/2001 11:15:25 AM
Please respond to ORACLE-L_at_fatcity.com
Sent by: root_at_fatcity.com
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc:
Hi gurus,
I'm trying to pass a parameter from unix into a sqlplus script. The
parameter contains a space, i.e. "JOB SERVER" I have tried passing it with
both single and double quotations, but the sql script only accepts the
first
word in the string. It works fine if the parameter does not contain a
space.
Can anybody tell me what I'm not doing wrong??
TIA - Your replies are much appreciated.
Best Regards,
Barry
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Barry Deevey INET: Barry.Deevey_at_sefas.co.uk Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Mon Sep 10 2001 - 10:39:22 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Chaim.Katz_at_Completions.Bombardier.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
![]() |
![]() |