Hi ,
I want to read the data from 9 tables in oracle DB into 9 different files in the same connection instance (session). I am able to get data from one table to one file with below code :
X=`sqlplus -s user[EMAIL="user/pwd@c"]/pwd@DB[/EMAIL] <<eof
select col1 from table1;
EXIT;
eof`
echo $X>myfile
Can anyone suggest how the code can be modified to read multiple tables?