【Oracle错误码】创建用户时遭遇 ora-65096 公用用户名或角色名无效

【数据库版本】

Oracle 19c 服务器版

【出错记录】

SQL> create user hy identified by 1234;
create user hy identified by 1234
            *1 行出现错误:
ORA-65096: 公用用户名或角色名无效

【出错原因】

oracle19c在cdb中创建公共用户名必须要以c##或者C##开头.

【解决方案】

让用户以c##开头

create user c##luna identified by 1234;
grant create session to c##luna ;
grant create tablespace to c##luna ;
grant create table to c##luna ;
grant drop any table to c##luna ;
grant insert any table to c##luna ;
grant update any table to c##luna ;
grant all privileges to c##luna ;
grant dba to c##luna ;

【参考资料】

https://blog.51cto.com/u_12991611/4869590 

END

posted @ 2022-08-12 03:45  逆火狂飙  阅读(5281)  评论(0)    收藏  举报
生当作人杰 死亦为鬼雄 至今思项羽 不肯过江东