Error in SQL*Plus when Using Shell Script
Last updated on JUNE 02, 2017
Applies to:SQL*Plus - Version 10.1.0.2 to 188.8.131.52 [Release Oracle10g to 11.2]
When using bash profile to execute SQL commands, it errors out when it encounters some special characters.
For example, consider the following script:
The select count(*) from v_$session will work absolutely fine when issued directly using sqlplus, whereas when issued through shell script it errors out.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms