惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
D
Docker
F
Fortinet All Blogs
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
罗磊的独立博客
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
博客园 - 司徒正美
T
Tailwind CSS Blog
C
Check Point Blog
V
V2EX
Microsoft Azure Blog
Microsoft Azure Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Proofpoint News Feed
L
LangChain Blog
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
腾讯CDC
Last Week in AI
Last Week in AI
Jina AI
Jina AI
博客园 - Franky
量子位

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Troubleshooting oracle database replication issues.
DoreenNangira · 2026-05-28 · via DEV Community
Cover image for Troubleshooting oracle database replication issues.

DoreenNangira

What is database replication?
Database replication is like having a backup generator in your home. The equipment that will ensure you continue getting your electricity supply even when the whole country is in blackout. In the world of databases, we always want to ensure that our databases run 24/7 without any issues or without downtime. To achieve this, some people ensure they come up with a backup plan. A replica of the main database is created and this replica stores up to date data of the original database. This replica is mostly hosted in a separate environment from the primary database so that in case the primary database goes down, the replica database takes over. Whenever the primary database and replica or secondary database are up to date with each other, we say these two are synchronized. Replication is achieved when these two are synchronized.

What is a replication issue?
Replication issue occurs when both the primary and secondary database fall out of sync. In this case the secondary database falls behind, and it no longer has the up to date data that is the same as the primary database. A real world example of this is the different time zones between continents or countries. We can say Chicago, USA and Nairobi, Kenya are out of sync with each other since these two are not in the same time zone.

How do we solve the replication issues?
The best way to solve any issue is always to find the root cause of the issue. One needs to dig deep and find out what led to the disaster. In this article, we will focus on the oracle database although some of these methods apply in other database management systems too.

1. Managed Recovery Process (MRP) not running
This is the process that ensures consistency between the primary and secondary database. It is the one that applies the changes made in primary to the secondary database. Whenever this process is down, changes made in primary database will not be seen in the secondary database. If you realize the MRP process, is down, you can always start it by running below command:

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;

Sometimes the MRP might be running but still replication fails. A restart of the database can also help solve this.
Log into your standby database and run below commands:

SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION

2. Full archivelogs in the secondary database
Too many archivelogs in the secondary database can lead to replication issues making the secondary database to lag behind. To solve this issue, navigate to the RMAN in the secondary database and delete the old archivelogs. After doing this, your primary and secondary database will be in a synchronized state.
Caution: Avoid deleting archivelogs directly from the disk.

3. Check for network issues
In order for the secondary database to get the updated data from the primary database, there should be communication between the two. A real life example is communication between two people over the phone. Whenever there is a network challenge, the two people on the phone will find it difficult to talk or communicate. The same applies to databases. Ensure you can successfully ping or you can easily reach the secondary database from the primary database and vice versa. You can do this by pinging the ip address of the secondary database from the primary server. When the ping is successful ie it does not fail, that shows primary database can reach the secondary database host. Do the same in the secondary database server by pinging the primary database host ip address. In case one server fails to reach the other, that shows there is connectivity issue. Fix the network issue and monitor the primary and secondary database until they are synchronized.

4. Listener issues
Listener problems in the secondary database may lead to replication issues. A listener in this case is like your middle-man or your transport personnel. The information from the primary database goes through the listener then to the secondary database. Whenever the listener is down or is not well configured, the secondary database will not receive updates from the primary database.
How do you troubleshoot listener issues?
a. ensure the listener is up and running in the secondary database.
b. Check the listener host and port configuration and ensure it matches the ones registered in the tnsnames.ora file
c. Ensure the listener is registered with the right database or the right service. you can do this by restarting the oracle database instance and run the below in the secondary database.

ALTER SYSTEM REGISTER;

Conclusion
Replication issues can sometimes cause you sleepless nights but with the right troubleshooting strategies, we can always overcome them. Have you encountered replication issues before? How did you overcome them? Feel free to share in the comments section how you solved them. In case you would like me to write about other database related topics, let me know too.