Drop the old Job/Drop the old subscription


--------------------------
-- Drop the old Job
--------------------------
BEGIN   
                DBMS_SCHEDULER.drop_job('CDC_POPULATE',TRUE);
END;
/

----------------------------
-- Drop the old subscription
----------------------------

DECLARE
       v_subscription_name VARCHAR2(100);
CURSOR c_drop_subscription IS SELECT SUBSCRIPTION_NAME FROM user_subscriptions;
BEGIN

FOR v_drop_subscription IN c_drop_subscription
LOOP
DBMS_CDC_SUBSCRIBE.drop_subscription
(v_drop_subscription.SUBSCRIPTION_NAME);
END LOOP;
END;
/
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: