I need to query table using sqlplus and assign the value to a shell variable.Currently while doing i am getting issues.Code which i am trying currently is 

```
columnValue=`sqlplus -s username/muk\$mh@hostname:port/servicename  <<EOF $value1
set heading off;
set scan on;
select column1 from table where ID='$id';
EXIT;
EOF`
echo $columnValue

```

where muk$mh is my db password .I am trying to skip the $ sign with escape character but still its failing.
Any way by which i can resolve this.
Thanks