DMS CDC with Oracle - "Cannot retrieve Oracle archived Redo log destination ids"

3

I believe I have solved my own problem, but given the hours of hair pulling I went through, I'm posting here for the benefit of others.

I was setting up an Oracle to Aurora migration for a demo and I wanted to get Change Data Capture working. The DMS task continuously failed with the following error visible in the console:

"Cannot retrieve Oracle archived Redo log destination ids; Failed to set stream position on context"

Interestingly nothing useful logged in CloudWatch despite log level set to the max.

I went through a lot of different theories, but the one that seems to fit is that given this is a static demo environment, Oracle has never actually got round to archiving any log files since it was configured for ARCHIVELOG mode. Perhaps DMS requires at least one archived log??

Finally I discovered this Oracle command: "alter system switch logfile;" I believe this forces an archive. After this the CDC task just started working.

2개 답변
2
수락된 답변

Thank you for sharing to others. Yes, anytime DBA set up in archivelog mode on the DB, first thing to do is run multiple times "alter system switch logfile" and validate "archive log list" by ensuring the archive log number prior to confirming that DB is on archivelog mode. Additional good practices, ensure archive log directory has sufficient space to generate log files, log file retention period is set by a shell script or other processes.

AWS
중재자
답변함 4년 전
0

Thanks! Helped me to get replication task working properly.

AWS
danv006
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠