0
echo exit | sqlplus username/password@host_ip:port/Service_name @SQLFILENAME

I want to execute set sqlbl on before executing The SQLFILENAME and also want that after executing SQLFILENAME it should exit sqlplus

0
$SQLPLUS -S username/password@ip:port/servicename<< EOF
SQL-STATEMENTS
set sqlbl on 
commit
EOF
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.