Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
221 vnguyen 1
CREATE PROCEDURE "RELEASE_MANAGER"."UPDATE_PROCESSES" 
2
IS
3
 
4
proc_id NUMBER;
5
/******************************************************************************
6
   NAME:       DELETE_DO_NOT_RIPPLE
7
   PURPOSE:    TO DELETE ENTRIES FROM THE DO_NOT_RIPPLE TABLE WHEN A PACKAGE
8
               IS RELEASED
9
 
10
   REVISIONS:
11
   Ver        Date        Author           Description
12
   ---------  ----------  ---------------  ------------------------------------
13
   1.0        21/04/2006  Rupesh Solanki     1. Created this procedure.
14
 
15
   NOTES:
16
 
17
   Automatically available Auto Replace Keywords:
18
      Object Name:     DELETE_DO_NOT_RIPPLE
19
      Sysdate:         21/04/2006
20
      Date and Time:   21/04/2006, 3:21:55 PM, and 21/04/2006 3:21:55 PM
21
      Username:         (set in TOAD Options, Procedure Editor)
22
      Table Name:       (set in the "New PL/SQL Object" dialog)
23
 
24
******************************************************************************/
25
   CURSOR ripple_cur
26
   IS
27
      select proc_id,  proc_name, run_as, pkg_owner, is_interface from processes;
28
 
29
   ripple_rec   ripple_cur%ROWTYPE;
30
BEGIN
31
   OPEN ripple_cur;
32
 
33
   FETCH ripple_cur
34
    INTO ripple_rec;
35
 
36
   WHILE ripple_cur%FOUND
37
   LOOP
38
 
39
 
40
update deployment_manager.processes_config 
41
set proc_id = ripple_rec.proc_id
42
where pkg_health_tag = ripple_rec.proc_name
43
and cmd_interface IS NULL
44
and pkg_owner IS NULL
45
and is_interface IS NULL; 
46
 
47
 
48
      FETCH ripple_cur
49
       INTO ripple_rec;
50
   END LOOP;
51
END UPDATE_PROCESSES;
52
/