| Oracle DBMS_PIPE Version 26ai |
|---|
| General Information | ||||||||||||||||
| Library Note |
|
|||||||||||||||
| Purpose | Allow sessions to pass information between them through named SGA memory "pipes" | |||||||||||||||
| AUTHID | DEFINER | |||||||||||||||
| Constants |
|
|||||||||||||||
| Dependencies |
|
|||||||||||||||
| Documented | Yes: Packages and Types Reference | |||||||||||||||
| Exceptions |
|
|||||||||||||||
| First Available | 7.3.4 | |||||||||||||||
| Security Model | Owned by SYS with EXECUTE granted to CTXSYS and GSMADMIN_INTERNAL users, and the EXECUTE_CATALOG_ROLE, and SYSBACKUP roles. | |||||||||||||||
| Source | {ORACLE_HOME}/rdbms/admin/dbmspipe.sql | |||||||||||||||
| Subprograms | ||||||||||||||||
| CREATE_PIPE | ||||||||||||||||
| Create a pipe | dbms_pipe.create_pipe( |
|||||||||||||||
desc v$db_pipes |
||||||||||||||||
| GET_CREDENTIAL_NAME (new 23ai) |
||||||||||||||||
| Returns the default credential name set the Cloud backend | dbms_pipe.get_credential_name RETURN VARCHAR2; |
|||||||||||||||
| TBD | ||||||||||||||||
| GET_LOCATION_URI (new 23ai) |
||||||||||||||||
| Returns the default location URI set for the Cloud backend | dbms_pipe.get_location_uri RETURN VARCHAR2; |
|||||||||||||||
| TBD | ||||||||||||||||
| NEXT_ITEM_TYPE | ||||||||||||||||
Returns the data type of the next item in the local message buffer
|
dbms_pipe.next_item_type RETURN INTEGER; |
|||||||||||||||
set serveroutput on |
||||||||||||||||
| PACK_MESSAGE | ||||||||||||||||
| Pack a message of a string data type Overload 1 |
dbms_pipe.pack_message(item IN VARCHAR2 CHARACTER SET ANY_CS); |
|||||||||||||||
See DBMS_PIPE at page bottom |
||||||||||||||||
| Pack a message of numeric data type Overload 2 |
dbms_pipe.pack_message(item IN NUMBER); |
|||||||||||||||
See DBMS_PIPE at page bottom |
||||||||||||||||
| Pack a message of DATE data type Overload 3 |
dbms_pipe.pack_message(item IN DATE); |
|||||||||||||||
See DBMS_PIPE at page bottom |
||||||||||||||||
| PACK_MESSAGE_RAW | ||||||||||||||||
| Pack a message of RAW data type | dbms_pipe.pack_message_raw(item IN RAW); |
|||||||||||||||
See DBMS_PIPE at page bottom |
||||||||||||||||
| PACK_MESSAGE_ROWID | ||||||||||||||||
| Pack a message of ROWID data type | dbms_pipe.pack_message_raw(item IN ROWID); |
|||||||||||||||
See DBMS_PIPE at page bottom |
||||||||||||||||
| PURGE (2 new 23ai overloads) |
||||||||||||||||
| Empty the named pipe of all messages Overload 1 |
dbms_pipe.purge(pipename IN VARCHAR2); |
|||||||||||||||
exec dbms_pipe.purge('UWPIPE'); |
||||||||||||||||
| Overload 2 | dbms_pipe.purge( |
|||||||||||||||
| TBD | ||||||||||||||||
| Overload 3 | dbms_pipe.purge( |
|||||||||||||||
| TBD | ||||||||||||||||
| RECEIVE_MESSAGE (2 new 23ai overloads) |
||||||||||||||||
| Receive a message from the named pipe and copy the message into the local message buffer Overload 1 |
dbms_pipe.receive_message( |
|||||||||||||||
See DBMS_PIPE at page bottom |
||||||||||||||||
| Overload 2 | dbms_pipe.receive_message( |
|||||||||||||||
| TBD | ||||||||||||||||
| Overload 3 | dbms_pipe.receive_message( |
|||||||||||||||
| TBD | ||||||||||||||||
| REMOVE_PIPE | ||||||||||||||||
| Remove a pipe | dbms_pipe.remove_pipe(pipename IN VARCHAR2) RETURN INTEGER; |
|||||||||||||||
See DBMS_PIPE at page above |
||||||||||||||||
| RESET_BUFFER | ||||||||||||||||
| Resets pack and unpack positioning indicators to 0. Generally this routine is not needed | dbms_pipe.reset_buffer; |
|||||||||||||||
exec dbms_pipe.reset_buffer; |
||||||||||||||||
| SEND_MESSAGE (2 new 23ai overloads) |
||||||||||||||||
| Send a message on the named pipe. The message is contained in the local message buffer which was filled with calls to 'pack_message'. Overload 1 |
dbms_pipe.send_message( |
|||||||||||||||
See demo below |
||||||||||||||||
| Overload 2 | dbms_pipe.send_message( |
|||||||||||||||
| TBD | ||||||||||||||||
| Overload 3 | dbms_pipe.send_message( |
|||||||||||||||
| TBD | ||||||||||||||||
| SET_CREDENTIAL_NAME (new 23ai) |
||||||||||||||||
| Sets the credential name that will be used for a Cloud backend | dbms_pipe.set_credential_name(credential_name IN VARCHAR2); |
|||||||||||||||
| TBD | ||||||||||||||||
| SET_LOCATION_URI (new 23ai) |
||||||||||||||||
| Sets the location URI that will be used by default for a Cloud backend | dbms_pipe.set_location_uri(location_uri IN VARCHAR2); |
|||||||||||||||
| TBD | ||||||||||||||||
| UNIQUE_SESSION_NAME | ||||||||||||||||
| Creates a name that is unique among all sessions currently connected to the database. Multiple calls to this routine from the same session will always return the same value. | dbms_pipe.unique_session_name RETURN VARCHAR2; |
|||||||||||||||
DECLARE |
||||||||||||||||
| UNPACK_MESSAGE | ||||||||||||||||
| Unpack a message of a string data type Overload 1 |
dbms_pipe.unpack_message((item OUT VARCHAR2 CHARACTER SET ANY_CS); |
|||||||||||||||
See demo below |
||||||||||||||||
| Unpack a message of a numeric data type Overload 2 |
dbms_pipe.unpack_message((item OUT NUMBER); |
|||||||||||||||
See demo below |
||||||||||||||||
| Unpack a message of a DATE data type Overload 3 |
dbms_pipe.unpack_message((item OUT DATE); |
|||||||||||||||
See demo below |
||||||||||||||||
| UNPACK_MESSAGE_RAW | ||||||||||||||||
| Unpack a message of RAW data type | dbms_pipe.unpack_message_raw(item OUT RAW); |
|||||||||||||||
See DBMS_PIPE at page bottom |
||||||||||||||||
| UNPACK_MESSAGE_ROWID | ||||||||||||||||
| Unpack a message of ROWID data type | dbms_pipe.unpack_message_rowid(item OUT ROWID); |
|||||||||||||||
See DBMS_PIPE at page bottom |
||||||||||||||||
| DBMS_PIPE Demo | ||||||||||||||||
| Demo Package posted to the OTN forums by Velu | CREATE OR REPLACE PACKAGE message_api AUTHID DEFINER AS |
|||||||||||||||
| Related Topics |
| Built-in Functions |
| Built-in Packages |
| DBMS_ALERT |
| DBMS_AQ |
| DBMS_AQADM |
| DBMS_STOCK_SERVER |
| What's New In 21c |
| What's New In 26ai |
| This site is maintained by Daniel Morgan. Last Updated: | This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2026 Daniel A. Morgan All Rights Reserved | ||||||||
|
|
|||||||||