Skip to Main Content

APEX

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!

ORA-01008 : Not all variables bound when running fuction returning boolean

Christian PitetAug 4 2016 — edited Aug 5 2016

Hi

I get this error

ORA-01008 : Not all variables bound

when I try to run this simple validation function :

declare

y number;

x varchar2 (512) ;  

begin

x := 'select count(*) from acl_employees where  UPPER(userid) = upper (:P17_MAIL)

and    APPLICATION_ID = :APP_ID ' ;

execute immediate X into Y ;

return Y > 0 ;

end ;

P17-EMAIL is an item of the current page. table structure  is as follow :

CREATE TABLE "ACL_EMPLOYEES"

   ( "ID" NUMBER,

  "FIRST_NAME" VARCHAR2(30 BYTE) NOT NULL ENABLE,

  "LAST_NAME" VARCHAR2(30 BYTE) NOT NULL ENABLE,

  "USERID" VARCHAR2(50 BYTE) NOT NULL ENABLE,

  "MOT_DE_PASSE" VARCHAR2(40 BYTE) NOT NULL ENABLE,

  "APPLICATION_ID" NUMBER NOT NULL ENABLE,

  "EMAIL" VARCHAR2(50 BYTE) NOT NULL ENABLE,

  "TOKEN" VARCHAR2(25 BYTE),

   )

I don't know how to debug this function under SQL Developer.

Regards.

This post has been answered by fac586 on Aug 4 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2016
Added on Aug 4 2016
4 comments
5,813 views