how connect db from execute oracle sql script code example
Example: how to create script to connect to oracle database and run query
C:\upwork\stackoverflow\bat_sql>echo exit | sqlplus -s scott/tiger@esmd @C:\upwork\stackoverflow\bat_sql\sqltest.sql
SYSDATE
--------
24.01.19
Elapsed: 00:00:00.00
C:\upwork\stackoverflow\bat_sql>pause