I have to run multiple SQL script file in one go.
Like every time i have to write command in SQLPLUS
SQL>@d:\\a.txt SQL>@d:\\a2.txt SQL>@d:\\a3.txt SQL>@d:\\
If you're using gnu linux, you could use process substitution:
sqlplus USERNAME/PASSWORD@DOMAIN < <(cat a.txt a2.txt a3.txt a4.txt)
# ... or a for loop on input files, inside the process substitution
Alternatively, you can create a .pdc
file and list your sql scripts:
-- pdc file
@a.txt;
@a2.txt;
@a3.txt;
@a4.txt;
and call sql plus:
sqlplus USERNAME/PASSWORD@DOMAIN < my_scripts.pdc