Microsoft Sql Server has a command line tool called sqlcmd.exe.
You can use it to deploy .sql scripts.
I have googled and binged and found many Oracle command line tools, but I have yet to find one that will deploy a sql package.
Here is a simple example:
sqlcmd.exe -i .\MySqlScript.sql -S "MySqlServerMachine\MyInstancenName" -E -o ".\MyOutputLogFileName.txt"
The command line will run the file "MySqlScript.sql" against a Sql Server (Instance) named "MySqlServerMachine\MyInstancenName" using integrated security ("-E") and output the results to a file named "MyOutputLogFileName.txt".
Is there a Oracle version of this tool?
I found oradim, but it is unclea if it runs a .sql script.
Based on parado’s response, I found the below URL:
http://docs.oracle.com/cd/B25329_01/doc/appdev.102/b25108/xedev_sqlplus.htm#CJAGIECA
Yes, there is a Sql*Plus:
If you want output file, add to your script: