oracle 12c创建用户错误67
发布网友
发布时间:2023-10-19 09:02
我来回答
共3个回答
热心网友
时间:2024-12-04 21:38
创建用户错误一般是语法错误造成,可通过如下方法创建。
如:要创建一个shopping的用户,密码为123456,可用如下语句:
create user shopping identified by 123456;
创建后,需要对用户进行赋予相应的权限,如,给shopping赋予connect,resource,dba的权限,可用如下语句:
grant connect,resource,dba to shopping;
热心网友
时间:2024-12-04 21:38
12c都用上了,真牛
看看这段:
当我们在CDB中使用传统方式创建用户会遇到错误
sys@LUOCS12C> create user luocs identified by oracle default tablespace luocs;
create user luocs identified by oracle default tablespace luocs
*
ERROR at line 1:
ORA-65096: invalid common user or role name
sys@LUOCS12C> !oerr ora 65096
65096, 00000, "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.
//
根据错误提示了解,在CDB中用户得以C##开头,如下:
sys@LUOCS12C> create user c##luocs identified by oracle default tablespace luocs;
User created.
热心网友
时间:2024-12-04 21:39
数据库安装时,在典型安装步骤中,勾选了‘创建为容器数据库(I)’导致创建用户的时候必须在前面加是C##,比如你要创建用户123,那么用户名只能位‘C##123’