set serveroutput on; declare v_statpipe1 integer; v_statpipe2 integer; v_pubchar varchar2(100):='This is a text string'; v_pubdate date := sysdate; v_pubnum number :=109;
begin v_statpipe1 := dbms_pipe.create_pipe('myprivatepipe');
if v_statpipe1=0then dbms_pipe.pack_message('privateline1'); dbms_pipe.pack_message('privateline2'); v_statpipe1 :=dbms_pipe.send_message('myprivatepipe'); endif;
dbms_pipe.pack_message(v_pubchar); dbms_pipe.pack_message(v_pubdate); dbms_pipe.pack_message(v_pubnum); --pub pipe v_statpipe2 := dbms_pipe.send_message('mypublicpipe'); dbms_output.put_line('the status of your private pipe is '||v_statpipe1); dbms_output.put_line('the status of your public pipe is '||v_statpipe2); end; /