Objects Not Instantiated When Using DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN ORA-26687 (Doc ID 272731.1)

Last updated on SEPTEMBER 06, 2015

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.4 to 11.2.0.3 [Release 10.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 15-Dec-2009***



Symptoms

DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN is used to instantiate
schema objects.

DECLARE
iscn NUMBER; -- Variable to hold instantiation SCN value
BEGIN
iscn := DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER();
DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN@HRDB2.NET(
source_schema_name => 'oe',
source_database_name => 'hrdb1.net',
instantiation_scn => iscn,
recursive => true);
END;
/



The procedure executes without any errors

At the destination site, the apply process throws the error, ORA-26687: no instantiation
SCN provided for tablename.

SET_SCHEMA_INSTANTIATION_SCN not working as expected. Same is the case with
SET_GLOBAL_INSTANTIATION_SCN

Querying DBA_APPLY_INSTANTIATED_OBJECTS will not return any objects in the
schema instantiated

But using DBMS_APPLY_ADM.SET_TABLE_INSTANTIATION_SCN procedure instantiates
individual tables properly.

Those tables will be listed in DBA_APPLY_INSTANTIATED_OBJECTS.

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