Scheduled Job Does not work in oracle SQL*PLUS I am just a beginner in Oracle and can't seem to get this job running :- 

I want to delete old rows from my database. And created a job as follows :-

CREATE OR REPLACE PROCEDURE delete_trips
AS
    BEGIN
        DBMS_OUTPUT.PUT_LINE('Here');
        DELETE FROM trip y where sysdate &gt; y.arrival_date;
    END;
/
BEGIN
    DBMS_SCHEDULER.CREATE_JOB(
        job_name        =&gt; 'delete_old_rows',
        job_type        =&gt; 'PLSQL_BLOCK',
        job_action      =&gt; 'EXECUTE delete_trips;',
        start_date      =&gt; sysdate,
        repeat_interval =&gt; 'FREQ=SECONDLY',
        end_date        =&gt; add_months(sysdate,12),
        auto_drop       =&gt; FALSE,
        enabled         =&gt; TRUE
    );
END;
/


After executing the above code I can see that the job 'delete_old_rows' is scheduled in DBA_SCHEDULER_JOBS, but neither the rows get deleted, nor output is produced in the terminal. I tried logging out and logging in again, and yet no row was deleted and no output was produced. And rows satisfying the condition for delete do exist. Please help. What am I missing ?
Try this:

BEGIN
    DBMS_SCHEDULER.CREATE_JOB(
        job_name        =&gt; 'delete_old_rows',
        job_type        =&gt; 'PLSQL_BLOCK',
        job_action      =&gt; 'delete_trips;',
        start_date      =&gt; SYSTIMESTAMP,
        repeat_interval =&gt; 'FREQ=SECONDLY',
        end_date        =&gt; add_months(sysdate,12),
        auto_drop       =&gt; FALSE,
        enabled         =&gt; TRUE
    );
END;
/


You don't need the EXECUTE part in job_action.

You can check DBA_SCHEDULER_JOBS.NEXT_RUN_DATE to check when it's next due to be executed. Obviously you can also check the other relevant columns to see if it's actually executed and/or failed (LAST_START_DATE,FAILURE_COUNT etc). Table doc link.