ORA-1000 Cursor Leak During dbms_cdc_subscribe.extend_window (Doc ID 1564000.1)

Last updated on JUNE 24, 2013

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms

When executing the following code several times within the same session, the cursor count for the session continues to grow until hitting the limit and then get the ORA-01000 error.

DECLARE
 SUBSCRIPTION_NAME_IN VARCHAR2(32767);

BEGIN
 SUBSCRIPTION_NAME_IN := 'LSW_TASK_BW_SUB';

  dbms_cdc_subscribe.extend_window(
  subscription_name=> SUBSCRIPTION_NAME_IN);
  COMMIT;
 
  dbms_lock.sleep(1);
 
  dbms_cdc_subscribe.purge_window(
  subscription_name=> SUBSCRIPTION_NAME_IN);
  COMMIT;
 
END;
/

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms