ORA-65096: invalid common user or role name

Cause:

I had a database with container configured and i was not able to create a common user because of name validity of container

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

Workaround:

Easy workaround would be to set the hidden parameter “_ORACLE_SCRIPT” to true

SQL> alter session set "_ORACLE_SCRIPT"=true;

Session altered.

Now user got created successfully

SQL> create user rcat identified by password;

User created.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s