Dev/Database
[Oracle] ORA-65096: invalid common user or role name
여뭐준
2021. 11. 4. 14:55
오류메세지
명령의 1 행에서 시작하는 중 오류 발생 -
create user crud identified by crud
오류 보고 -
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 was not valid for common users or roles. In addition to the
usual rules for user and role names, common user and role names
must consist only of ASCII characters, and must contain the prefix
specified in common_user_prefix parameter.
*Action: Specify a valid common user or role name.
오라클 12c 이상에서 사용가능한 Container DB에서는
cdb, pdb를 사용하기 때문에
유저명 앞에 c##을 붙여줘서 생성해주면 생성이 된다.
근데 그러면 원하는 이름으로 생성할 수 없으니
c##없이 계정을 생성하는 방법은
system계정에서 다음 명령어를 실행해준 뒤에 계정생성을 해주면 c##없이 생성이 된다.
alter session set "_ORACLE_SCRIPT"=true;
반응형