Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

DBMS_PIPE , 8 of 11


REMOVE_PIPE Function

This function removes explicitly-created pipes.

Pipes created implicitly by SEND_MESSAGE are automatically removed when empty. However, pipes created explicitly by CREATE_PIPE are removed only by calling REMOVE_PIPE, or by shutting down the instance. All unconsumed records in the pipe are removed before the pipe is deleted.

This is similar to calling PURGE on an implicitly-created pipe.

Syntax

DBMS_PIPE.REMOVE_PIPE (
   pipename  IN  VARCHAR2)
  RETURN INTEGER;

Pragmas

pragma restrict_references(remove_pipe,WNDS,RNDS); 

Parameters

Table 41-15 REMOVE_PIPE Function Parameters
Parameter  Description 
pipename
 

Name of pipe that you want to remove. 

Returns

Table 41-16 REMOVE_PIPE Function Returns
Return  Description 
0
 

Success

If the pipe does not exist, or if the pipe already exists and the user attempting to remove it is authorized to do so, then Oracle returns 0, indicating success, and any data remaining in the pipe is removed. 

ORA-23322
 

Insufficient privileges.

If the pipe exists, but the user is not authorized to access the pipe, then Oracle signals error ORA-23322, indicating insufficient privileges. 

Exceptions

Table 41-17 REMOVE_PIPE Function Exception
Exception  Description 

Null pipe name 

Permission error: Insufficient privilege to remove pipe. The pipe was created and is owned by someone else. 


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback