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!

PLSQL - ORA-904 "OUTPUT" invalid identifier on SQL Developer while trying to see the "JOB_SCRIPT_OUT

mohammeddbaJul 10 2015 — edited Jul 14 2015

Hi All,

I am trying to run a simple PLSQL block to print 100 output. When I run it executes successully on a normal session when connected
to database.

I tried submitting the same plsql query through scheduler job to run every min through SQL DEvELOPER .I can see the job
status as successful but when I select the job and in below section of SQL Developer I try to see the JOB_SCRIPT_OUTPUT
it shows an error : ORA-904 "OUTPUT" 'invalid identifier'

I am not sure why i am getting the error. Please guide me if I am doing anything wrong in here.

SET SERVEROUTPUT ON
DECLARE
X NUMBER := 100;
BEGIN
DBMS_OUTPUT.PUT_LINE(X);
END;
/

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2015
Added on Jul 10 2015
11 comments
1,808 views