-
Notifications
You must be signed in to change notification settings - Fork 24
/
blue.sql
47 lines (29 loc) · 778 Bytes
/
blue.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
prompt going to write two messages
declare -- {
procedure send_msg(m in varchar2) is -- {
v number;
begin
dbms_pipe.pack_message(m);
v := dbms_pipe.send_message('tq84-purge-pipe');
end send_msg; -- }
begin
-- Write two messages into a pipe
send_msg('First message');
send_msg('Second message');
end; -- }
/
prompt sleeping six seconds, before writing another message
exec dbms_lock.sleep (6)
declare -- {
procedure send_msg(m in varchar2) is -- {
v number;
begin
dbms_pipe.pack_message(m);
v := dbms_pipe.send_message('tq84-purge-pipe');
end send_msg; -- }
begin
-- Write two messages into a pipe
send_msg('Third message');
end; -- }
/
exit