SQLPLUS command line with Windows batch file

前端 未结 3 1801
我在风中等你
我在风中等你 2020-12-19 05:26

I want to create a batch file which will open the SQLPLUS [CLI] and will execute some stored sql file and will also store the output to text file.

So I\'ve created t

3条回答
  •  感情败类
    2020-12-19 06:23

    SET ORACLE_SID=
    
    sqlplus scott/tiger@DB < sql1.sql > data1.txt
    sqlplus scott/tiger@DB < sql2.sql > data2.txt
    

提交回复
热议问题