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?