My Oracle Support Banner

Export ORACLE_PID_SID=PDBSID Connects To CBD$ROOT instead of PDB (Doc ID 2826170.1)

Last updated on JULY 25, 2022

Applies to:

Oracle Database - Enterprise Edition - Version 19.11.0.0.0 and later
Information in this document applies to any platform.

Symptoms

After export ORACLE_PID_SID variable, it's connecting to CDB$ROOT instead of specified PDB.

export ORACLE_PID_SID=PDB1
$ sqlplus "/ as sysdba"

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 1 21:12:46 2021
SQL> show con_name

CON_NAME
------------------------------
CDB$ROOT

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.