Hi,
Sometimes you can get ” OGG-08221 Cannot register or unregister EXTRACT ” error during register or unregister extract process.
Details of error are as follows.
GGSCI> register extract EXTMSD database 2020-04-09 04:54:09 ERROR OGG-08221 Cannot register or unregister EXTRACT EXTMSD because of the following SQL error: OCI Error 44,004.
To solve this problem, Run the following commands.
SQL> exec DBMS_XSTREAM_GG_ADM.STOP_OUTBOUND('OGG$EXTRACT_NAME',true); SQL> exec DBMS_XSTREAM_ADM.DROP_OUTBOUND('OGG$EXTRACT_NAME'); SQL> exec DBMS_STREAMS_ADM.REMOVE_QUEUE(queue_name => 'GGMINING.OGG$Q_EXTRACT_NAME', cascade => true, drop_unused_queue_table => true);
Check if extract exists or not with the following queries.
SQL> select * from DBA_XSTREAM_OUTBOUND; SQL> select * from SYS.XSTREAM$_SERVER;
If you use the Container Database and Pluggable database then Rename the GLOBAL_NAME of the PDB so it’s different from the CDB GLOBAL_NAME.
It will allow then the REGISTER to successfully complete.
Or
Increase the processes file size limit (ulimit) and then retry.
Or If Supplemental log isn’t enable at the database level, then enable it as follows.
SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
Do you want to learn Oracle Goldengate from scratch, then read the following Goldengate Tutorial articles.
https://ittutorial.org/goldengate-tutorials-oracle-for-beginners/
2,062 views last month, 1 views today