Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Change password hash value

happy10319May 13 2019 — edited May 13 2019

Hi,

On  12.1.0.2.0 on Linux

I want to change password hash value for USER1:

SQL>alter user USER1 identified by values "nxcjhjuruink#{[";

ORA-00972: identifier is too long

I run (using single quotes):

SQL>alter user USER1 identified by values 'nxcjhjuruink#{[';

User altered.

Then with single quote in SQLPLUS it is ok.

Now I want to use execute immediate:

SQL> declare

  2  begin

  3   EXECUTE immediate 'ALTER USER XDB identified by values '''nxcjhjuruink#{[''';

  4  end;

  5  /

Again I have:

ORA-00972: identifier is too long

How can I do using execute immediate?

Thanks to help me resolve this problem.

This post has been answered by L. Fernigrini on May 13 2019
Jump to Answer
Comments
Post Details
Added on May 13 2019
10 comments
805 views