XS Scheduled Job stuck in state "RUNNING"

Hello guys,
I am running HANA Dev Edition on AWS (Rev. 70). There is a .xsjs file which is called every 5 minutes by the xs job scheduler.
However after shutdown on Tuesday and startup on Friday the job did not start correctly (?)
I am pretty sure the job isn't running any more - the instance has been stopped another time in the meantime and the HANA Database was restarted, too.
The question is: How can I reset the job? While the last run is in state RUNNING, the next one won't be scheduled. I tried removing the "active" flag in XS-Admin and setting it again but without success.
Should I try an update on "_SYS_XS"."JOB_LOG" and set STATUS to 'SCHEDULED'?
Any hints are appreciated,
Fabian

Hi Fabian,
I'm experiencing a similar problem with stuck job.  Did you ever get this resolved?  What did you do?
Thanks,
-Patrick

Similar Messages

  • Scheduled Job to gather stats for multiple tables - Oracle 11.2.0.1.0

    Hi,
    My Oracle DB Version is:
    BANNER Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    In our application, we have users uploading files resulting in insert of records into a table. file could contain records ranging from 10000 to 1 million records.
    I have written a procedure to bulk insert these records into this table using limit clause. After the insert, i noticed my queries run slow against these tables if huge files are uploaded simultaneously. After gathering stats, the cost reduces and the queries executed faster.
    We have 2 such tables which grow based on user file uploads. I would like to schedule a job to gather stats during a non peak hour apart from the nightly automated oracle job for these two tables.
    Is there a better way to do this?
    I plan to execute the below procedure as a scheduled job using DBMS_SCHEDULER.
    --Procedure
    create or replace
    PROCEDURE p_manual_gather_table_stats AS
    TYPE ttab
    IS
        TABLE OF VARCHAR2(30) INDEX BY PLS_INTEGER;
        ltab ttab;
    BEGIN
        ltab(1) := 'TAB1';
        ltab(2) := 'TAB2';
        FOR i IN ltab.first .. ltab.last
        LOOP
            dbms_stats.gather_table_stats(ownname => USER, tabname => ltab(i) , estimate_percent => dbms_stats.auto_sample_size,
            method_opt => 'for all indexed columns size auto', degree =>
            dbms_stats.auto_degree ,CASCADE => TRUE );
        END LOOP;
    END p_manual_gather_table_stats;
    --Scheduled Job
    BEGIN
        -- Job defined entirely by the CREATE JOB procedure.
        DBMS_SCHEDULER.create_job ( job_name => 'MANUAL_GATHER_TABLE_STATS',
        job_type => 'PLSQL_BLOCK',
        job_action => 'BEGIN p_manual_gather_table_stats; END;',
        start_date => SYSTIMESTAMP,
        repeat_interval => 'FREQ=DAILY; BYHOUR=12;BYMINUTE=45;BYSECOND=0',
        end_date => NULL,
        enabled => TRUE,
        comments => 'Job to manually gather stats for tables: TAB1,TAB2. Runs at 12:45 Daily.');
    END;Thanks,
    Somiya

    The question was, is there a better way, and you partly answered it.
    Somiya, you have to be sure the queries have appropriate statistics when the queries are being run. In addition, if the queries are being run while data is being loaded, that is going to slow things down regardless, for several possible reasons, such as resource contention, inappropriate statistics, and having to maintain a read consistent view for each query.
    The default collection job decides for each table based on changes it perceives in the data. You probably don't want the default collection job to deal with those tables. You probably do want to do what Dan suggested with the statistics. But it's hard to tell from your description. Is the data volume and distribution volatile? You surely want representative statistics available when each query is started. You may want to use all the plan stability features available to tell the optimizer to do the right thing (see for example http://jonathanlewis.wordpress.com/2011/01/12/fake-baselines/ ). You may want to just give up and use dynamic sampling, I don't know, entire books, blogs and papers have been written on the subject. It's sufficiently advanced technology to appear as magic.

  • DPM 2010 Scheduled Jobs Disappear rather than Run

    I have a situation where I have a DPM server that appears to be functioning fine, but none of the scheduled jobs run.  No errors are given, there are no Alerts, and there is nothing in the Event log (Application and System) which indicates a failure. 
    All my Protection Groups show a green tick to indicate that they are fine, but the last successful backup for all of them is Friday the 8th of February.
    If I go to Monitoring and Jobs I see the jobs scheduled, but when the time comes for the job to run, it does not go into the "All jobs in progress", it just merely disappears, like thus:
    And a few minutes later,
    As you can see, the jobs disappear from the queue, and the total number of jobs decreases accordingly.  These jobs do not go into any of the other 3 Statusses (Completed, Failed or In Progress), they just disappear without a trace.
    There is some unallocated space, albeit not much (Used space: 21 155,05 GB Unallocated space: 469,16 GB). If space was an issue I would expect to see errors to indicate this.
    DPM 2010 running version 3.0.8193.0 (hotfix rollup package 6) using remote instance of SQL 2008 which is functioning fine.  I have tried stopping/starting the services, and even rebooted the server twice.  The remote instance of SQL server is using
    a domain account as its service account.  There are no pending Windows updates, i.e. it is fully up-to-date.
    The System Center Data Protection Manager 2010 Troubleshooting Guide (July 2010) does not show how to troubleshoot this particular probelm.
    Does anybody know how to resolve this issue or which logs might help me troubleshoot it?

    OK,
    Did you change the SQL Agent user account ?
    If so, DPM enters the SQL Agent account name into the registry and later we check that account each time the DPM engine launches.  The internal interfaces to DPM are secured using this account so the account name needs to match the account the SQL Agent
    is using. 
    Step 1
    In the registry HKLM\Software\Microsoft\Microsoft Data Protection Manager\Setup alter  both
    SqlAgentAccountName and SchedulerJobOwnerName keys to reflect the SQL Agent user account being used.
    Step 2
    Update DCOM launch and access permissions to match what was granted to the Microsoft$DPM$Acct account.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Backup job stuck in running state

    Hi
    I am using 11gR2 RAC on Windows 2008 R2. I have several different database jobs stuck in a running state. However if I check the view v$session_longops I can not see anything in there relating to RMAN. If I drill down to the job and the step that is running, in the Error Log it states:
    error writing input to command
    Could someone point me in the right direction as to how to investigate this?
    Thanks

    if you know that the execution finished or is hung,use this query:
    SELECT p.SPID, s.sid, s.serial#, sw.EVENT, sw.SECONDS_IN_WAIT AS
    SEC_WAIT, sw.STATE, CLIENT_INFO
    FROM V$SESSION_WAIT sw, V$SESSION s, V$PROCESS p
    WHERE s.client_info LIKE 'rman%'
    AND s.SID=sw.SID
    AND s.PADDR=p.ADDR;
    and kill them.

  • Run-after: handy command to schedule jobs easily

    Hi All
    I've created a declarative command to schedule jobs easily, like below;
    $ run git push origin master after 5 minutes, 30 seconds
    Here it is: https://github.com/azer/run-after
    To install:
    $ npm install -g run-after
    Ideas and recommendations welcome!
    Azer

    60 % of characters, same result:
    sleep 5.5m; git push origin master

  • Scheduled job keeps hanging after sveral days

    MII experts,
    We are using MII 12.0.8.  I have several scheduled jobs.  Those that run once every day never have any problem.  However, I have one that runs every 10 minutes keeps hanging after running for 3-4 days.  I have to stop and start to kick it off again if that happens.  When it hangs, it appears it is still in running state but it never finish.
    Have anyone seen this problem before?
    Thanks.

    We are running MII Version 12.1.5 Build(91) and have noticed jobs in the schedule that are running but are obviously not doing anything.  These jobs are user to trnsfer files around our site via ftp.
    MII gives no error or indication that the job has failed so we know nothing about these problems untill an end user complains about their file transfers not working.  As we are a 24 by 7 site this involves calls to aur support people at all hours.
    We have asked SAP for help but they require a Step by Step method to duplicate the error.  As this is a very intermitant problem that we have not been able to reproduce on demand this request has been ignored by SAP.
    We have many schedule jobs that run once per minute.  Slowing them down more would have a bad impact on the usefullnes of the transfers.
    If anyone gets an answer to this issue we would love to hear it.

  • How to schedule job?

    Hello All,
    i have a few questions about jobs (scheduling jobs)
    I want to run one procedure at 7:00 A.M and I want to stop this procedure at 12:30 PM on Daily basis.Is it possible with DBMS_JOB? I don't know how to stop running job at specified time.
    I m using Oracle 9i on Linux

    Hi,
    Your best bet is probably to schedule a second job to run at 12:30pm every day and execute the stop. To do the stop you will probably need to figure out the session and terminate the session (google for stopping dbms_job).
    In 10gR2 and up dbms_scheduler (the replacement for dbms_job) can handle this scenario in a much more striahgtforward way (generate an event if the job exceeds a max_run_duration and have the event trigger a second job to snipe the first using a stop_job call).
    -Ravi

  • Material Document schedule job printing.

    Dear All ,
      I had configured all configuration to print the material document details in a smartofrm . All details are copied in the material document from output determination.
    if i set printing preference  4.send immediately (when saving the application) i am getting the output in the printer. Here the status is green .
    Here my user want to set the preference as 1.send with periodically scheduled job , so that all the material documents will be printed at the same time.
    How to schedule this in back ground job . I had tried in MB90 its not working there.
    Thanks in advance.
    Regards
    Srihari.P

    Hi,
    You can schedule the Job for the Despatch time  3. Send with application own transaction  also, for this you have to select the program to run for the Job, as you said you can schedule the JOB on the program of MB90
    for Using the Despatch time 1. 1. Send with periodically scheduled job, you have to run or setup job for the Program RSNAST00
    Manually you can also run the program RSNAST00 in SE38 to chcek whether the OUTPUT was processed or not
    Goto SE38 and with the RSNAST00 ,, execute and enter the Details of Application area ME and OUTPUT type and the Document number.
    Then  in the Menu click on Program--Exdcute in Back ground. It will run and in SM37 you can find the Processed outputs or Logs if any in case if they are not processed. you can then trace the error
    In the foreground you cant identify the eror or reason of why it was not processed.
    regards,
    santosh

  • Issue with scheduled jobs

    Hello Team,
    After creating a new protection group, the jobs were frozen and was never kicked off.
    What could be the reason?
    Regards,
    Suman Rout

    Hi,
    Please see the below blog which may assist with troubleshooting scheduled jobs.
    Blog:
    http://blogs.technet.com/b/dpm/archive/2014/10/08/how-to-troubleshoot-scheduled-backup-job-failures-in-dpm-2012.aspx
    Pervious fourm post:
    https://social.technet.microsoft.com/Forums/en-US/ed65d3e0-c7d7-488b-ba34-4a2083522bae/dpm-2010-scheduled-jobs-disappear-rather-than-run?forum=dataprotectionmanager
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually
    answer your question. This can be beneficial to other community members reading the thread. Regards, Dwayne Jackson II. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights."

  • How to cancell all scheduled jobs

    Is there a Command line (or) any other option to kill all scheduled jobs, because when cloning of data happens from Production to other testing instance, scheduled jobs will still be running and are consuming space.
    We could use admin screen , killing one by one is taking lot of time.
    Appreciate your input
    Thanks

    Hi user10596151,
    you can try the following:
    To disable all of the scheduled workbooks immediately, use the following PL/SQL block. The PL/SQL block should be run as a privileged user (such as 'system').
    Declare
    cursor c1 is
    select job from all_jobs where what like '%EUL5%';
    begin
    for i in c1 loop
    dbms_job.broken(i.job,true);
    end loop;
    end;
    Note: For Discoverer 4 replace EUL5 with EUL4

  • Schedule jobs

    Hi,
    i scheduled the job like below.
    BEGIN
      dbms_scheduler.create_job(
          job_name => 'SUMAARY_REPORT'
         ,job_type => 'PLSQL_BLOCK'
         ,job_action => 'BEGIN  END;'
         ,start_date => trunc(sysdate)+4/24
         ,repeat_interval => 'FREQ=DAILY'
         ,enabled => TRUE
         ,comments => 'Demo for job schedule.');
    end;But i need to run job for below scenarios.
    1)i need to change job schedule time
    2)i need to stop particular job for one day
    3)manually need to whenever i want run
    can some help on this?

    DBMS_SCHEDULER.SET_ATTRIBUTE to change an attribute (for example to change the execution time)
    DBMS_SCHEDULER.STOP_JOB to stop a scheduled job
    DBMS_SCHEDULER.RUN_JOB to run a job immediatly
    Link:http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_sched.htm#CIHEHDHA
    Max

  • How to find what sql statement is currently running by scheduler job?

    Hi
    I scheduled a stored procedure to run every 5 minutes using dbms_scheduler.
    The stored procedure internally call serveral other stored procedures.
    The scheduled job is in running state and right now I want to find out what is the sql statement the job executing.
    Is there any sql query to find out what is sql query the schedular job is running?? Please help me.
    Thanks in Advance.

    The previous sql id is null in this case.
    I already quoted as I am running a pl/sql block in my scheduler job.
    begin
    usp_test('praram');
    end;
    I am using the pl/sql block as above in my scheduler job. The USP_TEST inturn calls some other stored procedures and each stored procedure has several inserts and update statements.
    The scheduler job is still running. I know the sid of the running scheduler job.
    I want to know the job is at which stored procedure and at which insert/update statement.
    Please let me know is there any query to fulfil my requirement?
    I greatly appreciate your help
    Thanks

  • Troubled to get scheduler job to run?

    Hi all friends:
    I'm having trouble getting any scheduler jobs (here, troubled job name is CUSTMASTER_CHANGES_01) to actually run.
    when
    sql>select job_name,state,enabled,retry_count,failure_count,run_count,restartable,start_date,repeat_interval,job_class
    from all_scheduler_jobs;
    JOB_NAME STATE ENABL RETRY_COUNT FAILURE_COUNT RUN_COUNT RESTA START_DATE REPEAT_INTERVAL JOB_CLASS
    CUSTMASTER_CHANGES_01 SCHEDULED TRUE 0 0 0 FALSE 14-JAN-08 09.46.14.6 FREQ=SECONDLY;I SCANNER_JO
    72965 AM AMERICA/NEW NTERVAL=5 B_CLASS
    _YORK
    for job 'CUSTMASTER_CHANGES_01'
    we can see RUN_COUNT 0 and restartable false.
    I upped slave processes to 5. dbms_scheduler.run_job('CUSTMASTER_CHANGES_01') works, but it's still not executing on the schedule
    when run as sysdba
    SQL> exec dbms_scheduler.run_job('CUSTMASTER_CHANGES_01');
    ERROR at line 1:
    ORA-27475: "SYS.CUSTMASTER_CHANGES_01" must be a job
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at line 1
    to resolve that,
    we found
    When you create your job by using dbsm_scheduler, it has a parameter called ‘auto_drop’, is by default, =’true’, like, auto_drop => TRUE
    see below;
    dbms_scheduler.create_job(
    job_name IN VARCHAR2,
    job_type IN VARCHAR2,
    job_action IN VARCHAR2,
    number_of_arguments IN PLS_INTEGER DEFAULT 0,
    start_date IN TIMESTAMP WITH TIME ZONE DEFAULT NULL,
    repeat_interval IN VARCHAR2 DEFAULT NULL,
    end_date IN TIMESTAMP WITH TIME ZONE DEFAULT NULL,
    job_class IN VARCHAR2 DEFAULT 'DEFAULT_JOB_CLASS',
    enabled IN BOOLEAN DEFAULT FALSE,
    auto_drop IN BOOLEAN DEFAULT TRUE,
    comments IN VARCHAR2 DEFAULT NULL);
    The job you manually run once and then it drops itself when you test.
    so I am specifiying auto_drop to be false, but it is showing it has true as the attribute.
    DBMS_SCHEDULER.CREATE_JOB(
    job_name => scanner.scanner_name,
    job_type => 'PLSQL_BLOCK',
    job_action => 'BEGIN IF EEG_SCAN.GET_RUNNING_JOBS_COUNT('
    ||''''||UPPER(scanner.scanner_name)||''''
    ||') < 2 THEN '||scanner.scanner_proc_name||'; END IF; END;',
    repeat_interval => 'FREQ=SECONDLY;INTERVAL=5',
    job_class => c_job_class_name,
    auto_drop => FALSE,
    enabled => true
    scheduler job is still not working as expected.....?
    Can you help me for this??
    thanks a lot in advance.
    Message was edited by:
    jerrygreat
    Message was edited by:
    jerrygreat

    Hi,
    There are a few other limits you could check .
    Make sure that you have not exceeded the maximum number of sessions or the maximum number of processes or the maximum number of scheduler jobs
    select * from dba_scheduler_global_attribute;
    and
    select name,value from v$parameter where name like '%process%';
    select name,value from v$parameter where name like '%session%';
    Also check how many jobs are currently running
    select count(*) from dba_scheduler_running_jobs;
    select count(*) from dba_jobs_running ;
    select count(*) from v$session ;
    One of these limits may need to be increased.
    The run_job succeeds because it runs in the current session by default, if you use use_current_session=>false, does it still work ?
    Also auto_drop only drops the job when it has completed e.g. past its end_date or exceeded its max_runs.
    Finally note that there is a dedicated forum for dbms_scheduler located here
    Scheduler
    Hope this helps,
    Ravi.

  • Some Schedule jobs are not running in Oracle 10g

    i have total of 8 Schedules jobs in Oracle 10g test database which were not in sync with prod database . So i re-created all of them again and then enbled them . but some 4 of them didnt ran on their NEXT_RUN_DATE . Showing NULL on LAST_START_DATE and LAST_RUN_DURATION . How to make them Run
    select OWNER,JOB_NAME,START_DATE,STATE,SCHEDULE_NAME,LAST_START_DATE,LAST_RUN_DURATION,NEXT_RUN_DATE from ALL_SCHEDULER_JOBS
    where OWNER='MESH_FOR' and last_start_date is NULL;
    OWNER     JOB_NAME     START_DATE     STATE     SCHEDULE_NAME     LAST_START_DATE     LAST_RUN_DURATION     NEXT_RUN_DATE
    MESH_FOR     REFRESH_TERMINALS_J     27.07.2010 11:00:00,000000000 +02:00     SCHEDULED     DAILY_EVERY_30_MINUTES     NULL     NULL     27.07.2010 11:00:00,000000000 +02:00
    MESH_FOR     REFRESH_MN_SERVERS_J     27.07.2010 11:00:00,000000000 +02:00     SCHEDULED     DAILY_EVERY_30_MINUTES     NULL     NULL     27.07.2010 11:00:00,000000000 +02:00
    MESH_FOR     REFRESH_EVENT_INFO_J     27.07.2010 11:00:00,000000000 +02:00     SCHEDULED     DAILY_EVERY_30_MINUTES     NULL     NULL     27.07.2010 11:00:00,000000000 +02:00
    MESH_FOR     UPDATE_MV_CHANGES_J     27.07.2010 11:00:00,000000000 +02:00     SCHEDULED     DAILY_EVERY_30_MINUTES     NULL     NULL     27.07.2010 11:00:00,000000000 +02:00

    Hi,
    Could you please explain, what is OS authentication?
    I created a new user for creating and runing jobs.
    I have given following priveleges to the new User.'
    1)Connect
    2)SELECT_CATALOG_ROLE
    3)Create Job
    Then, I created the job as follows.
    BEGIN
    sys.dbms_scheduler.create_job(
    job_name => 'SMPL_TST_JB',
    job_type => 'PLSQL_BLOCK',
    job_action => 'Declare
    Result Integer;
    begin
    Result:=1;
    /* Other statments */
    Exception
    when others then
    Result:=3;
    end;',
    repeat_interval => 'freq=daily;byhour=10;byminute=00;bysecond=00',
    start_date => systimestamp,
    job_class => 'DEFAULT_JOB_CLASS',
    auto_drop => FALSE,
    enabled => TRUE);
    sys.dbms_scheduler.set_attribute( name => 'SMPL_TST_JB', attribute => 'logging_level', value => DBMS_SCHEDULER.LOGGING_FULL);
    sys.dbms_scheduler.set_attribute( name => 'SMPL_TST_JB', attribute => 'restartable', value => TRUE);
    END;
    Then, I run the job as following.
    SQL> begin sys.dbms_scheduler.run_job ('SMPL_TST_JB'); end;
    2 /
    begin sys.dbms_scheduler.run_job ('SMPL_TST_JB'); end;
    ORA-03113: end-of-file on communication channel
    Thank you,
    Regards
    Gowtham Sen.

  • Identify Jobs that are not running on their Scheduled date time

    I have 29 scheduled jobs that run at different intervals of time. Some run once a day. few others run on hourly basis while others run on Sundays.
    I was working on a query that would let me know if a particular job did not run on its scheduled date and time.
    SELECT * from all_scheduler_jobs WHERE state <>'DISABLED'; will give me a list of all jobs that I have to monitor and that are not in the disabled state. But how can I verify that the jobs are running at their scheduled date time?
    Any help please? I need to create a view of all such jobs and then plan to send an alert so that appropriate action can be taken and it is assured that all important jobs run as per schedule.
    Thanks.

    Hi,
    I can see 2 approaches.
    - for jobs that have run but ran very late you should query dba_scheduler_job_run_details and filter by the difference between req_start_date and actual_start_date
    - for jobs that should have run but shouldn't, query for DBA_SCHEDULER_JOBS jobs that are SCHEDULED where next_run_date is in the past
    Hope this helps,
    Ravi.

Maybe you are looking for

  • Garble and periodic audio buzzing HP dv7 ???

    I havebuzzing issue with my laptop. I just bought it yesterday and as soon as i started listening to music and watchiing vids on youtube it started occasionally making like a stuck glitching sound. I am so confused, WHY is it doing this? it is brand

  • A bug in the ResultSet.getString method?

    Hi, I am using a 8.1.6 database with UTF8 character set on a Win2000 machine. I've inserted some Hebrew characters into a table, and have been able to read them back properly using SQL+. However, when I try to retrieve these values from a simple Java

  • Disable adopting vendor master 's salesperson in RFQ

    Dear Sir/Madam, Now SAP has the function to adopt the sales person's telehpone field in vendor master purchasing data into RFQ document. Any config to disable the adopt function? That is, I don't want the telephone automatically update when I change

  • Network Mode Switch No Longer Possible After Upgrade

    Hello. I can't switch from 3G/H+ to 2G any longer. I could do this when I still had the OS 7.0 running on my Torch 9810 (AT&T). This changed after I upgraded to the OS 7.1. Now, when I go to the "Networks and Connections" option, all I see is "Manual

  • WCF-SAP Unreleased Segments

    The adapter "WCF-SAP" raised an error message. Details "Microsoft.ServiceModel.Channels.Common.XmlReaderGenerationException: The segment or group definition E2IDB02003 was not found in the IDoc metadata. The UniqueId of the IDoc type is: IDOCTYP/3/PE