【数据库版本】
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