[Solved] Container Database Set Up Incorrectly With Error ORA-65101 For Hybrid DR

Oracle

Share Post Now :

HOW TO GET HIGH PAYING JOBS IN AWS CLOUD

Even as a beginner with NO Experience Coding Language

Explore Free course Now

Table of Contents

Loading

In this post, we’ll be looking at how to troubleshoot error ORA-65101: Container database set up incorrectly while restoring standby control file using RMAN  from On-Premise to Oracle Cloud to configure hybrid data guard.

Note: To read about what is hybrid data guard and hybrid data guard deployment process key points click here

Background

First to give you some context, With the launch of database 12c in 2013, Oracle introduced a new architectural concept, called “Multitenant Databases”, where you have one super database (=container; CDB) and one or more sub-databases (= pluggable; PDB). When you migrate the databases from On-Prem to Oracle Cloud using the DB version like 12c or higher, you can have a Multi-Tenant Architecture (CDB/PDB), or you can have a non-container (non-pluggable) database.

Note: In database 20c the multi-tenant architecture is mandatory.

Multi-Tenant Architecture

Note: To read more about Multi-Tenant Architecture click here

The majority of databases that are running On-Premise are still non-container databases. The database I was using to migrate via hybrid data guard was also a non-container database.

Architecture On Cloud

When you create database 12c or higher on Cloud you get multi-tenant architecture (CDB/PDB) by default where you have a container database and inside it, you get a pluggable database and you can add more pluggable database as well.

Note: We cover all this including how to add additional pluggable database in my DBA to Cloud Training…to know more about training program join our FREE masterclass click here

Problem Statement

We encountered the error ORA-65101: container database set up incorrectly while configuring the standby database on Oracle Cloud (OCI) using RMAN when we tried to restore the standby control file.

Error 

RMAN> restore standby controlfile from service ‘PRIMARY’
Mounting database using this standby control file failed with error “ORA-65101: container database set up incorrectly”
Error Reported
—————
RMAN> alter database mount;
using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of sql statement command at 12/30/2019 06:50:38
ORA-65101: container database set up incorrectly

Root Cause

Primary database on On-premise is non-container database where as all databases on Oracle cloud (OCI) are pluggable database inside container databases. Therefore, while restoring the standby file it was expecting a non container(non pluggable) database whereas it was set up as pluggable database.

Fix

In order to fix it, we change the database from CDB/PDB to Non-CDB in PFILE/SPFILE
In startup Pfile or SpFile set
Change from
*.enable_pluggable_database=true
TO
*.enable_pluggable_database=false
SQL> show parameter plugg
NAME                                 TYPE        VALUE
———————————— ———– ——————————
enable_pluggable_database            boolean     FALSE

Reference

Related Post

Next Task For You

If you want to upgrade your career from an Oracle DBA to Oracle Cloud DBA, and wants to clear Oracle Cloud Database Service Specialist[1Z0-1093-21] & Oracle Cloud Autonomous Database Certification[1Z0-931-21] with 18 Hands-On labs, then register for a FREE class, and don’t miss an opportunity to gain a plethora of insights on becoming a certified Oracle Cloud DBA.

content upgrade

Picture of mike

mike

I started my IT career in 2000 as an Oracle DBA/Apps DBA. The first few years were tough (<$100/month), with very little growth. In 2004, I moved to the UK. After working really hard, I landed a job that paid me £2700 per month. In February 2005, I saw a job that was £450 per day, which was nearly 4 times of my then salary.