create or replace procedure insert_emp ( v_emp_id in char, v_emp_name in varchar2) as pragma autonomous_transaction; begin insert into emp values(v_emp_id,v_emp_name); commit; exception when others then rollback; end insert_emp;