ORA-65096: invalid common user or role name During Create User in Oracle

You can get ” ORA-65096: invalid common user or role name ” error while creating new user in Oracle 12c.


ORA-65096: invalid common user or role name

When i create new user in Oracle 12c , i got following error.


[oracle@MehmetSalih ]$ sqlplus / as sysdba

SQL*Plus: Release Production on Thu Mar 21 10:01:05 2019

Copyright (c) 1982, 2014, Oracle. All rights reserved.

Connected to:
Oracle Database 12c Enterprise Edition Release - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> create user mehmet identified by mehmet;
create user mehmet identified by mehmet
ERROR at line 1:
ORA-65096: invalid common user or role name



invalid common user or role name


To solve this problem, execute following query and try to create new user again.

alter session set "_ORACLE_SCRIPT"=true;



If you got this error on Container database, then it is related with the user creation on pluggable and container database.

If you use Container and Pluggable database, you can create only common users which start with c## in root container.


SQL> show con_name


SQL> create user c##MSDBA identified by MSDBA123;

User created.


If you created any common user on both root container and pluggable database, then this user can log in to any container. You need to give the priviliges separately within each pluggable database.



Do you want to learn Oracle Database for Beginners, then Click and read the following articles.

Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.


  1. Bharathkumar Achari

    Super bro…..Thank you very much for resolving my error

Leave a Reply

Your email address will not be published. Required fields are marked *