Dropping User In Root While PDB Is Closed Is not Synchronized to PDB when it is opened (Doc ID 1619287.1)

Last updated on NOVEMBER 25, 2016

Applies to:

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

Symptoms

On : 12.1.0.1 version, Database Security

ACTUAL BEHAVIOR
---------------
select USERNAME,USER_ID,CON_ID from cdb_users where username like 'C##%';
USERNAME USER_ID CON_ID
-------------------------------------------------------------------------------------------------------------------------------- ---------- ----------
C##MARC 104 1
C##SAM1 105 1
C##MARC 105 3
C##SAM1 108 3

ALTER PLUGGABLE DATABASE PROD1 close immediate;


drop user C##SAM1;


SQL> select USERNAME,USER_ID,CON_ID from cdb_users where username like 'C##%';

USERNAME USER_ID CON_ID
-------------------------------------------------------------------------------------------------------------------------------- ---------- ----------
C##MARC 104 1

SQL> ALTER PLUGGABLE DATABASE PROD1 open read write;

Pluggable database altered.

SQL> select USERNAME,USER_ID,CON_ID from cdb_users where username like 'C##%';

USERNAME USER_ID CON_ID
-------------------------------------------------------------------------------------------------------------------------------- ---------- ----------
C##MARC 104 1
C##MARC 105 3
C##SAM1 108 3


EXPECTED BEHAVIOR
-----------------------
select USERNAME,USER_ID,CON_ID from cdb_users where username like 'C##%';
USERNAME USER_ID CON_ID
-------------------------------------------------------------------------------------------------------------------------------- ---------- ----------
C##MARC 104 1
C##SAM1 105 1
C##MARC 105 3
C##SAM1 108 3

ALTER PLUGGABLE DATABASE PROD1 close immediate;


drop user C##SAM1;


SQL> select USERNAME,USER_ID,CON_ID from cdb_users where username like 'C##%';

USERNAME USER_ID CON_ID
-------------------------------------------------------------------------------------------------------------------------------- ---------- ----------
C##MARC 104 1

SQL> ALTER PLUGGABLE DATABASE PROD1 open read write;

Pluggable database altered.

SQL> select USERNAME,USER_ID,CON_ID from cdb_users where username like 'C##%';

USERNAME USER_ID CON_ID
-------------------------------------------------------------------------------------------------------------------------------- ---------- ----------
C##MARC 104 1
C##MARC 105 3



STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Stop PDB
2. drop common user
3. open PDB

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms