By Gowthami | apps-dba.com | Oracle Administration Series A common issue after Oracle Database 19c patching is a Pluggable Database (PDB) opening in RESTRICTED mode due to a datapatch failure. This occurs when datapatch — the tool that applies SQL-based patch changes — fails or is not run after the binary patch is applied. This post explains root causes and step-by-step resolution. Key Insight: After applying Oracle patches (OPatch), you MUST run datapatch to apply the SQL-based portions of the patch to each database. If datapatch fails mid-way, PDBs may open in RESTRICTED mode until the SQL patches are successfully applied. Symptoms -- PDB shows RESTRICTED in open mode SELECT con_id, name, open_mode, restricted FROM v$pdbs; -- Output: -- CON_ID NAME OPEN_MODE RESTRICTED -- 3 PROD READ WRITE YES <-- Problem! -- Alert log shows: -- "PDB PROD is restricted because datapatch has not been run" -- or errors in /oracle/diag/rdbms/db/trace/ datapatch...
A technical blog for Oracle Apps DBAs covering Oracle E-Business Suite, Oracle Cloud (OCI), Database Administration, Performance Tuning, AWR, RAT, Data Safe, Autonomous Database, and real-world DBA tips and best practices.