GoldenGate - PLW-06009: procedure "XXX" OTHERS handler does not end in RAISE or RAISE_APPLICATION_ERROR
I was in the middle of configuring OGG for a client and came across an issue when getting to the portion of installing support for sequences. This script creates some procedures to be used by OGG processes.
I hope this helps someone as it took me some digging around to figure this one out. Enjoy!
I hope this helps someone as it took me some digging around to figure this one out. Enjoy!
SQL> @sequence
Please enter the name of a schema for the GoldenGate database objects:
GGADMIN
Setting schema name to GGADMIN
SP2-0804: Procedure created with compilation warnings
SP2-0804: Procedure created with compilation warnings
UPDATE_SEQUENCE STATUS:
Line/pos Error
---------- -----------------------------------------------------------------
58/14 PLW-06009: procedure "UPDATESEQUENCE" OTHERS handler does not end
in RAISE or RAISE_APPLICATION_ERROR
GETSEQFLUSH
Line/pos Error
---------- -----------------------------------------------------------------
No errors No errors
SEQTRACE
Line/pos Error
---------- -----------------------------------------------------------------
No errors No errors
REPLICATE_SEQUENCE STATUS:
Line/pos Error
---------- -----------------------------------------------------------------
261/16 PLW-06009: procedure "REPLICATESEQUENCE" OTHERS handler does not
end in RAISE or RAISE_APPLICATION_ERROR
395/29 PLW-06009: procedure "REPLICATESEQUENCE" OTHERS handler does not
end in RAISE or RAISE_APPLICATION_ERROR
65/14 PLW-06009: procedure "REPLICATESEQUENCE" OTHERS handler does not
end in RAISE or RAISE_APPLICATION_ERROR
STATUS OF SEQUENCE SUPPORT
--------------------------------------------------------------
ERRORS in Oracle Sequence Replication Support
Problem was due to plsql_warnings being enabled. To workaround the issue, I disabled the plsql_warnings at the session level as to not interfere with client's specific parameter settings at the system level.
FIX:
SQL> alter session set plsql_warnings='DISABLE:ALL';
SQL> @sequence.sql
SQL> @sequence
Please enter the name of a schema for the GoldenGate database objects:
GGADMIN
Setting schema name to GGADMIN
UPDATE_SEQUENCE STATUS:
Line/pos Error
---------- -----------------------------------------------------------------
No errors No errors
GETSEQFLUSH
Line/pos Error
---------- -----------------------------------------------------------------
No errors No errors
SEQTRACE
Line/pos Error
---------- -----------------------------------------------------------------
No errors No errors
REPLICATE_SEQUENCE STATUS:
Line/pos Error
---------- -----------------------------------------------------------------
No errors No errors
STATUS OF SEQUENCE SUPPORT
--------------------------------------------------------------
SUCCESSFUL installation of Oracle Sequence Replication support
Comments