FLUSH SEQUENCE
Use FLUSH SEQUENCE to generate the initial redo log information for
sequence in the source database. The Extract retrieves this information when the
sequence is updated or in the case of a failover. A record is written to the trail
file and this record is then used by Replicat to synchronize the source and target
sequences properly.
-
The following Oracle procedures are used by
FLUSH SEQUENCE:Database Procedure User and Privileges Source
updateSequenceGrants
EXECUTEto the owner of the Oracle GoldenGate DDL objects, or other selected user if not using DDL support.Target
replicateSequenceGrants
EXECUTEto the Oracle GoldenGate Replicat user.The
sequence.sqlscript installs these procedures. Normally, this script is run as part of the Oracle GoldenGate installation process, but make certain that was done before usingFLUSH SEQUENCE. Ifsequence.sqlwas not run, the flush fails and an error message similar to the following is generated:Cannot flush sequence {0}. Refer to the Oracle GoldenGate for Oracle documentation for instructions on how to set up and run the sequence.sql script. Error {1}. -
The
GLOBALSfile must contain aGGSCHEMAparameter that specifies the schema in which the procedures are installed. This user must haveCONNECT,RESOURCE, andDBAprivileges. -
Before using
FLUSH SEQUENCE, issue theDBLOGINcommand as the database user that hasEXECUTEprivilege on theupdateSequenceprocedure. If logging into a multitenant container database, log into the pluggable database that contains the sequence that is to be flushed.
Syntax
FLUSH SEQUENCE owner.sequence
Example
FLUSH SEQUENCE scott.seq