Reputation: 4369
I have some files with some sql inside (mostly DDL) and I need just run them and see if there were any errors.
What would be the best way to do this ?
I'm using oracle 11.
Upvotes: 1
Views: 1802
Reputation: 14253
start sqlplus and run
@<path>/<filename>
You could also use something like sql developer, just open the files in that, select the server you want to run it on and hit F5 or press the "run script" button
Upvotes: 4