Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: sqlplus using Here document does not recognize v$ view ?
On 17 May 2004 17:40:28 -0700, ilaletin_at_usa.net (Igor Laletin) wrote:
...
>Shell (whichever one you use) substitutes '$database' with the value
>of its variable 'database'.
>
>> my question : How to rectify case 1 to ensure unix here document works ?
>
>Insert backslash before $.
...
And if you would have a lot of backslashing to do: you can prevent the
shell from interpreting the $ sign by putting single quotes around the
eof, thusly:
sqlplus -s /nolog <<'eof'
In that case no backslashing is needed.
Jaap. Received on Tue May 18 2004 - 15:01:30 CDT