why is anything 'risky', if you understand what things do, they are not 'risky'
all DDL in Oracle is processed like this:
begin
COMMIT;
do_the_ddl;
COMMIT;
exception
when others
then
rollback;
raise;
end;
I see nothing risky here - doing DDL in an application should be basically forbidden anyway so this would never in real life be applicable. The only DDL going on would be DBA work.