user256034
user256034

Reputation: 4369

Run some DDL sql stored in couple of files

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

Answers (2)

Paul W
Paul W

Reputation: 1049

sqlplus -- http://www.orafaq.com/wiki/SQL*Plus_FAQ

Upvotes: 1

Matthew Watson
Matthew Watson

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

Related Questions