Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ORA-00988: missing or invalid password(s)

I'm trying to change an oracle password:

alter user FOO identified by 'BAR';

and I'm getting the following back:

Error starting at line 120 in command:
alter user FOO identified by 'BAR'
Error report:
SQL Error: ORA-00988: missing or invalid password(s)
00988. 00000 -  "missing or invalid password(s)"

What's going on?

like image 261
inanutshellus Avatar asked Jun 03 '15 16:06

inanutshellus


2 Answers

Turns out one doesn't put the password in single quotes. Double quotes are required if the password contains some special characters.

alter user FOO identified by 'BAR'; -- Broken
alter user FOO identified by BAR;   -- Works
alter user FOO identified by "BAR"; -- Works
like image 167
inanutshellus Avatar answered Oct 14 '22 20:10

inanutshellus


alter user davidl identified by "newpassword" replace "oldpassword";

like image 35
David Lipschitz Avatar answered Oct 14 '22 18:10

David Lipschitz