[Hint] Compiling dependent objects

Dúvidas, dicas e truques de PL/SQL. Aqui também vão assuntos relacionados a pacotes, triggers, funções, Java-Stored Procedures, etc
  

Poston Mon, 05 Dec 2005 2:33 pm

This script builds the dependetes objects of a certain object:
Code: Select all
DECLARE
  v_referenciado varchar2(20):='FUNCIONARIO';
BEGIN
  FOR c IN (
  SELECT name,type,owner
  FROM all_dependencies
  WHERE referenced_name = v_referenciado
  ORDER BY NAME
  )
  LOOP
    dbms_output.put_line( c.name );
    dbms_ddl.alter_compile(c.type,c.owner,c.name);
  END LOOP;
END ;
dr_gori
Location: Portland, OR USA

Thomas F. G

Você já respondeu a dúvida de alguém hoje?
http://glufke.net/oracle/search.php?search_id=unanswered


Return to PL/SQL

Who is online

Users browsing this forum: No registered users and 15 guests

cron