I have a file with the folowing script:
BEGIN
...
a bunch of inserts
...
COMMIT;
EXCEPTION
WHEN OTHERS THEN ROLLBACK;
END;
When I execute this in sqlplus I get the following:
SQL> @file.sql
382
It’s as if he’s not ending the block. I’m new to using pl/sql and sqlplus, so I don’t know if I’m doing something wrong.
Any ideas?
You need to add one more line after the final END; like this:
Just a slash as the first character on the line, and then a new line.