Invalid common user or role name

匿名 (未验证) 提交于 2019-12-03 01:57:01

问题:

why is this showing error..

SQL> create user nisar identified by kk ; create user nisar identified by kk             * 

ERROR at line 1:

ORA-65096: invalid common user or role name

回答1:

You're trying to create a common user, not a container user, with an invalid name:

ORA-65096: invalid common user or role name
Cause: An attempt was made to create a common user or role with a name that wass not valid for common users or roles. In addition to the usual rules for user and role names, common user and role names must start with C## or c## and consist only of ASCII characters.
Action: Specify a valid common user or role name.

If you want to create a user in a particular container then you can use the alter session set container first, so your create is applied within that container. If you really do want a common user, follow the naming rules above.

Read more in the documentation.



回答2:

I had used below command. It's very useful. So, I would like to recommend to you.

alter session set "_ORACLE_SCRIPT"=true; 

For more information, see: http://www.dba-oracle.com/t_ora_65096_create_user_12c_without_c_prefix.htm



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!