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_LOGMNR_CDC_SUBSCRIBE, 2 of 9


GET_SUBSCRIPTION_HANDLE Procedure

This procedure creates a subscription handle that associates the subscription with one change set. Creating a subscription handle is the first step in obtaining a subscription.

Syntax

DBMS_LOGMNR_CDC_SUBSCRIBE.GET_SUBSCRIPTION_HANDLE( 

    change_set

IN VARCHAR2,

    description

IN VARCHAR2 := NULL,

    subscription_handle

OUT NUMBER)

Parameters

Table 26-2 GET_SUBSCRIPTION_HANDLE Procedure Parameters  
Parameter  Description 

change_set 

Name of an existing change set to which the application subscribes. You must set the value to SYNC_SET

description 

Describes the subscription handle and the purpose for which it is used. 

subscription_handle 

Unique number of the subscription handle for this subscription. 

Exception

Table 26-3 GET_SUBSCRIPTION_HANDLE Procedure Exceptions  
Exception  Description 

ORA-31415 

Could not find an existing change set with this name. 

ORA-31457 

The maximum number of characters permitted in the description field was exceeded. 

ORA-31458 

This is an internal error. Contact Oracle Support Services and report the error. 

Usage Notes

Example

EXECUTE sys.DBMS_CDC_SUBSCRIBE.GET_SUBSCRIPTION_HANDLE(\

CHANGE_SET=>'SYNC_SET', \
DESCRIPTION=>'Change data for emp',\
SUBSCRIPTION_HANDLE=>:subhandle);

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