You can't issue DDL inside PL/SQL try the following

Code
procedure my_proc
is
begin
  execute immediate 'SET CONSTRAINT MY_UNIQUE_CONSTRAINT DEFERRED';
  ..
  <dml code goes here>
end;


Been there, done that, Got the T-Shirt