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!

ORA-00984: column not allowed here : error

816392May 22 2012 — edited May 22 2012
Hi all,

I'm using oracle 10g.

i have a procedure
CREATE OR REPLACE PROCEDURE NEW.SP_ADDUSER (GETFNAME IN VARCHAR2,GETLNAME IN VARCHAR2,GETLOGINID IN VARCHAR2) IS 

BEGIN

EXECUTE IMMEDIATE  'INSERT INTO NEW.USERS (USERID,FNAME, LNAME,LOGINID) VALUES (RULE_SEQ.NEXTVAL, GETFNAME,GETLNAME,GETLOGINID)';


END SP_ADDUSER; 
this compiles with out any errors and warnings.

but when i try to execute the procedure i get the following errors

ORA-00984: column not allowed here
ORA-06512: at "URS.SP_ADDUSER", line 5
ORA-06512: at line 11

can you please let me know what i'm doing wrong. for userid i need an auto increment. so i created a sequence.

thanks all in advance

Edited by: Bob on May 22, 2012 7:19 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2012
Added on May 22 2012
7 comments
907 views