SQL*Plus - interactive mode on windows How can I issue commands through SQL*Plus on Windows?

In Linux is like this:

sqlplus -s /nolog&lt;&lt;EOF
conn username/password@database
EXECUTE some_proc;
EXIT;
EOF


And Windows?
That is a matter of Windows/batch, it is not specific to SQL*Plus.

You can do this:

(echo connect bp/bp@192.168.1.71/min19_o71
echo select * from dual;
echo exit
) | sqlplus -S /nolog


Result:

C:\Users\balaz&gt;(echo connect bp/bp@192.168.1.71/min19_o71
More? echo select * from dual;
More? echo exit
More? ) | sqlplus -S /nolog

D
-
X


C:\Users\balaz&gt;


Or just use a script, that method is specific to SQL*Plus:

C:\Users\balaz&gt;type script.sql
connect bp/bp@192.168.1.71/min19_o71
select * from dual;
exit

C:\Users\balaz&gt;sqlplus -S /nolog @script.sql

D
-
X


C:\Users\balaz&gt;