Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
221 vnguyen 1
CREATE PROCEDURE "RELEASE_MANAGER"."TEST" 
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 distinct pkg_health_tag, cmd_interface, pkg_owner, is_interface from deployment_manager.processes_config;
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
   select deployment_manager.seq_proc_id.nextval into proc_id from dual;
40
 
41
insert into processes (PROC_ID, PROC_NAME, RUN_AS, PKG_OWNER, IS_INTERFACE) 
42
values(proc_id, ripple_rec.pkg_health_tag, ripple_rec.cmd_interface, ripple_rec.pkg_owner, ripple_rec.is_interface);
43
 
44
      FETCH ripple_cur
45
       INTO ripple_rec;
46
   END LOOP;
47
END test;
48
/