I have created a PL/SQL stored procedure which is used to insert row into related table, then in another PL/SQL Anonymous block, I can call and drop it separatly. But when put these two statements togegher, Sql developer was just continuously running there forever. Below are three code snippets:
-- Below code works well
BEGIN
MyProcedure1 (1,70,'Tommy');
END;
-- Below code works well
BEGIN
EXECUTE IMMEDIATE 'drop procedure MyProcedure1';
END;
-- Below code was stuck there forever
BEGIN
MyProcedure1 (1,70,'Tommy');
EXECUTE IMMEDIATE 'drop procedure MyProcedure1';
END;