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!

Hi trying to write a plsql statement using dbms assert statements for alter profile ,but getting err

Sab-OracleMar 25 2015 — edited Apr 9 2015

Hi

Tried to write a plsql statement as follows using dbms assert statements for alter profile, but getting errors.We want to prevent sql injections, so trying this approach.

DECLARE

BEGIN

  EXECUTE IMMEDIATE 'ALTER profile sys.dbms_assert.enquote_name(sys.dbms_assert.simple_sql_name(DEFAULT)) limit failed_login_attempts || sys.dbms_assert.simple_sql_name(20)';

END;

Above statement gives the error as :

Error report:

ORA-02000: missing LIMIT keyword

ORA-06512: at line 3

It will be great if somebody can help.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2015
Added on Mar 25 2015
1 comment
642 views