Passing back a simple value from sqlplus to shell script returns blank?
Anyone know why this simple script returns a blank value when run from a shell script?
VALUE=`sqlplus -s /nolog <<END
connect xxx/xxx@xxxx
set pagesize 0 feedback off verify off heading off echo off time off timing off
SELECT COUNT(*) FROM v$session
exit;
END`
echo $VALUE