Using SQL Plus, you can run a script with the "@" operator from the command line, as in:
c:>sqlplus username/password@databasename @"c:my_script.sql"
But is it possible to just run a single command with a similar syntax, without a whole separate script file? As in:
c:>sqlplus username/password@databasename @execute some_procedure
I am interested in this because I want to write a batch file that simply executes a command, without generating a bunch of two-line ".sql" files.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…