Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connecting to a PDB using ALTER SESSION SET CONTAINER

Steve_74Jun 3 2021

DB version: 12c till 19c
OS : Oracle Linux, RHEL 7.x
I am new to working in multitenant architecture.
As a DBA, when I want to do some admin tasks in a PDB, I connect to the root container as SYS first and then I issue the following command to 'connect' to the PDB.
alter session set container=pdb3;
I have done basic stuff like user management, adding datafile, etc after connecting to the PDB using the above mentioned ALTER SESSION SET CONTAINER method. It seems to be working fine. But, then again, I am new to working in a multi-tenant architecture.
Hence, I would like to know if there are any risks in following the above method, in any special circumstances.

Comments
Post Details
Added on Jun 3 2021
2 comments
23,910 views