ALTER USER [user명] IDENTIFIED BY "[변경하려는 패스워드]" REPLACE "[이전 패스워드]"
-- 예시 쿼리 ALTER USER TEST_USER IDENTIFIED BY "123test" REPLACE "password"
REPLACE구문이 없어도 되는 case
일부 case에서는 아래와 같이 replace 되는 경우도 있다.
1
ALTER USER [user명] IDENTIFIED BY "[변경하려는 패스워드]"
ORA-28221: REPLACE가 지정되지 않음
아래와 같은 “ORA-28221: REPLACE가 지정되지 않음” 에러메시지가 발생하면, REPLACE가 들어간 구문(이 글의 맨처음 한줄요약 부분)을 사용하여 패스워드를 변경할 수 있도록 합니다.
1 2 3 4 5 6 7 8 9 10
명령의 1 행에서 시작하는 중 오류 발생 - ALTER USER [user명] IDENTIFIED BY "password"
오류 보고 - ORA-28221: REPLACE가 지정되지 않음 28221. 00000 - "REPLACE not specified" *Cause: User is changing password but password verification function is turned on and the original password is not specified and the user does not have the alter user system privilege. *Action: Supply the original password.