create or replace procedure recur_constraint(v_owner in varchar2, v_table_name varchar2, v_fk_constraint_name varchar2 default NULL, v_r_constraint_name varchar2 default NULL, v_r_status varchar2 default NULL, level number default 0) is i integer; v_constraint_name dba_constraints.constraint_name%type; v_status dba_constraints.status%type; cursor c_constraint is select owner, table_name, constraint_name, r_constraint_name, status from dba_constraints where dba_constraints.r_owner = v_owner and dba_constraints.r_constraint_name = v_constraint_name and dba_constraints.constraint_type = 'R'; begin select constraint_name, status into v_constraint_n...
Blog com dicas, scripts, How-to para DBA´s e Desenvolvedores ORACLE.