Creating new Oracle user, new instance

Running Oracle 19c in Docker, I connected with sqlplus and attempted to create a new user:

create user example identified by password;

and got this cryptic error:

ORA-65096: invalid common user or role name

Per answers on this post, this is usually because you connected to the root container database (CDB) instead of a pluggable container database (PDB).

You can cofirm what you are connected to with:

show con_name

and sure enough, I’m connected to CDB$ROOT:

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

List available PDBs with:

show pdbs

shows:

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 ORCLPDB1 READ WRITE NO

Updating my connection properties to connect to SERVICE=ORCLPDB1 and now I’m good.

To grant all privs to a new user:

grant all privileges to username

Perception is everything (when defects are not defects)

I worked on a project in the early 2000s where the client didn’t like to be told that we had x hundred defects in our backlog. To address the negative connotation of the tickets being called “defects” we renamed them System Investigation Requests or as we called them day to day “SIRs” (a quick Google will tell you that this is not not a unique name for defect tickets, but in 25+ years something I’ve only come across a couple of times, and only for projects with this same client).

The truth was was the majority of tickets were actually genuine defects but there were also some requests for refactoring, TODO follow-ups, potential issues that should be investigated that could lead to identifying a defect, or just areas for improvement.

it’s interesting how we perceive things either positively or negatively just based on name, The client was more comfortable knowing these issues were vaguely called SIRs, but if I was the client I would have thought “I know these are defects, you’ve just renamed them” but in this case they were happy calling them something else.

Oracle Container Registry logon failing with correct Oracle account credentials

docker login container-registry.oracle.com with your Oracle SSO logon no longer works after 30/6/2025, you need to create an Auth Token and use that as your password. See this banner across the top of the Container Registry site:

  • Go to container-registry.oracle.com and logon
  • Click your user account top right
  • From the dropdown menu, select Auth Token

Use this auth token value in place of your SSO password when logging on with docker login and this should work as expected.

This is described in the Oracle docs here.