CREATE USER "2sjin";
이 명령어로 사용자를 생성하려고 하면 아래와 같이 ORA-65096 오류가 발생한다.
![]() |
오류 보고 -
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 부터는 계정 이름이 c## 키워드로 시작해야한다는 규칙이 생겼기 때문이다. 예시는 아래와 같다.
CREATE USER "c##2sjin";
c## 키워드 없이 계정 이름을 사용하려면, 계정을 생성하기 전에 아래 명령어를 실행해주면 된다.
ALTER SESSION SET "_ORACLE_SCRIPT" = true;
※ 실행 결과(Oracle SQL Developer)