Hi All,
In my script i am using data from oracle table for validation.
#!/bin/sh
export UID=dun_ind
export PWD=`getID dun_ind`
fed_ctrl=`sqlplus -s $UID/$PWD@lms <<END
set feedback off;
set heading off;
select sta from controls where sta = 'ABC';
EXIT;
END`
echo $fed_ctrl
initially i have written username & pwd hard-coded. But now i need to export it & has to use it.
I have used export command. But not able to get it. Can someone help me where i am making mistake.
the error is UID=dun_ind: is not an identifier