I tried
select * from users
save D:\\test.sql create;
But SQL plus gives me \"no proper ended\" How to specify path in oracle sql in windo
Having the same chore on windows 10, and windows server 2012. I found the following solution:
echo quit |sqlplus schemaName/schemaPassword@sid @plsqlScript.sql > outputFile.log
echo quit | send the quit command to exit sqlplus after the script completes
sqlplus schemaName/schemaPassword@sid @plsqlScript.sql execute plssql script plsqlScript.sql in schema schemaName with password schemaPassword connecting to SID sid
> outputFile.log redirect sqlplus output to log file outputFile.log