create a batch file(open notepad, save as "runme.bat"), put command below:-
set username=%1
set password=%2
set sid=%3
for %%X in (*.sql) do (
echo exit | sqlplus %username%/%password%@%sid% @%%X
)
serve the parameter to run it in windows command prompt, for example:-
runme.bat mydatabase mypassword mysid
0 comments:
Post a Comment