How To Fix - PDB in Restricted - Database Blog
How To Fix - PDB in Restricted - Database Blog
This is a weird case we had for a Customer where DB/PDB’s were running fine and after a restart,
To search, type and hit en
one of the PDB’s went to restricted YES.
We don’t know why it went to restricted mode because there hasn’t been a patching activity for a
while and DB had few restarts in the past with no issues. Recent Posts
We did not manage to know how this happened, but this is how we fixed. DBCA create DB fails with: ORA-15001:
diskgroup “DATA” does not exist or is not
INST HOST INST_NAME STATUS DB_ROLE OPEN_MODE STARTUP_TIME mounted / ORA-01017: invalid
---- ------------------ ---------- ---------- ----------------- --------------------- -------------------------
*1 DB_NODE PROD_DB_1 OPEN PRIMARY READ WRITE 11-FEVR.-2021 23:47:01
username/password; logon denied
RMAN – PL/SQL package
INST_ID NAME OPEN_MODE RES OPEN_TIME SYS.DBMS_RCVMAN version xxxxxx in
----------
1
--------------------
PDB$SEED
---------------------
READ ONLY
---
NO
------------------------------
11-FEVR.-2021 23:47:48
TARGET database is not current
1 PDB_1 READ WRITE NO 11-FEVR.-2021 23:47:49 How to Install Windows 2012R2 Standard
1 PDB_2 READ WRITE YES 11-FEVR.-2021 23:47:49 <<-------------
Edition in VirtualBox
How to Upgrade Oracle 12c to 19c on a
Window Failover Cluster Manager
SQL> select name, cause, type, message, status, action from PDB_PLUG_IN_VIOLATIONS where type like 'ERROR%' and status like
'PENDING' ; environment
PDB_2 SQL Patch ERROR SQL patch ID/UID 30133625/23095898 (OJVM RELEASE UPDATE: 12.2.0.1.1910 PENDING Call Recent Comments
datapatch to install in t
15 (30133625)): Installed in the PDB but not in the CDB. he PDB or Alex on How To fix: PDB in restricted
the CDB
Alex on Autoupgrade fails with: Execution
PDB_2 SQL Patch ERROR DBRU bundle patch 200714 (DATABASE JUL 2020 RELEASE UPDATE 12.2.0.1.20 PENDING Call of Oracle Base utility,
datapatch to install in t
0714): Installed in the CDB but not in the PDB. he PDB or /u01/app/oracle/product/19c/dbhome_1/bin/orab
the CDB
failed for entry upg1.
PDB_2 SQL Patch ERROR SQL patch ID/UID 30133625/23095898 (OJVM RELEASE UPDATE: 12.2.0.1.1910 PENDING Call Alex on Oracle GoldenGate 19c: How to
datapatch to install in t
15 (30133625)): Installed in the CDB but not in the PDB. configure EXTRACT / REPLICAT
he PDB or the CDB
Alex on Oracle GoldenGate 19c: How to
configure EXTRACT / REPLICAT
SQL> alter session set container=PDB_2;
Session modifiee. Ho Tran on Oracle GoldenGate 19c: How to
SQL> show con_name
configure EXTRACT / REPLICAT
CON_NAME
------------------------------
PDB_2
SQL>
select BUNDLE_SERIES,PATCH_UID,PATCH_ID,VERSION,ACTION,STATUS,ACTION_TIME ,DESCRIPTION from dba_registry_sqlpatch;
13 lignes selectionnees.
SQL>
https://www.alex-sanz.com/2021/08/11/how-to-fix-pdb-in-restricted/ 1/5
5/9/23, 3:04 PM How To fix: PDB in restricted – Database Blog
Connecting to database...OK
Note: Datapatch will only apply or rollback SQL fixes for PDBs
that are in an open state, no patches will be applied to closed PDBs.
Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation
(Doc ID 1585822.1)
Bootstrapping registry and package to current versions...done
Determining current state...done
https://www.alex-sanz.com/2021/08/11/how-to-fix-pdb-in-restricted/ 2/5
5/9/23, 3:04 PM How To fix: PDB in restricted – Database Blog
Connecting to database...OK
Note: Datapatch will only apply or rollback SQL fixes for PDBs
that are in an open state, no patches will be applied to closed PDBs.
Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation
(Doc ID 1585822.1)
Bootstrapping registry and package to current versions...done
Determining current state...done
Installing patches...
Validating logfiles...
Patch 31312468 apply (pdb PDB_2): SUCCESS
logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/31312468/23691705/31312468_apply_PROD_DB_PDB_2_2021Feb12_11_39_41.log (no errors)
SQL Patching tool complete on Fri Feb 12 11:47:55 2021
oracle@DB_NODE:~$
Session modifiee.
14 lignes selectionnees.
SQL>
PDB restricted
https://www.alex-sanz.com/2021/08/11/how-to-fix-pdb-in-restricted/ 3/5
5/9/23, 3:04 PM How To fix: PDB in restricted – Database Blog
Author
Alex
Comments
Name Email
Website
Send
https://www.alex-sanz.com/2021/08/11/how-to-fix-pdb-in-restricted/ 4/5
5/9/23, 3:04 PM How To fix: PDB in restricted – Database Blog
https://www.alex-sanz.com/2021/08/11/how-to-fix-pdb-in-restricted/ 5/5