1sqlplus username/password@service -- OR sqlplus / as sysdba
2 SQL> SELECT sysdate FROM dual;
3 SQL> @C:\Users\folder\script.sql
4-- OR
5 SQL> START C:\Users\folder\script.sql
1C:\upwork\stackoverflow\bat_sql>echo exit | sqlplus -s scott/tiger@esmd @C:\upwork\stackoverflow\bat_sql\sqltest.sql
2
3SYSDATE
4--------
524.01.19
6
7Elapsed: 00:00:00.00
8
9C:\upwork\stackoverflow\bat_sql>pause