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!

receiving error ORA-00984: Column not allowed here during an insert into

User468755-OCDec 20 2011 — edited Dec 20 2011
Hello,

I am new to oracle (converting from sybase/ms sql server) and am running into this error from what seems to be a simple command. Seems to be failing on the JOBID_SEQ.NEXTVALUE.

insert into HC_JOB_LIST values (JOBID_SEQ.NEXTVALUE,'Production',1,sysdate,sysdate,'a311300','a311300')

I am logged in as a311300
sequence is owned by A311300

the table definition is:

create table HC_JOB_LIST
(
JOB_ID NUMBER not null,
JOB_NAME VARCHAR2(30) not null,
IS_ACTIVE CHAR(1) default 1 not null,
DATE_ENTERED DATE not null,
DATE_EDITED DATE not null,
EDIT_USERID VARCHAR2(20),
CREATE_USERID VARCHAR2(20)
)
tablespace EXAMPLE
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);

I am sure I am doing somethinig very simple wrong....

thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2012
Added on Dec 20 2011
2 comments
250 views