Running a job repetitively

Hi,
We need to run a script (SCRIPT_A) every hour, every workday from 14:00 to 20:00. This script is in a job chain (GLOBAL_JOBCHAIN) which is executed every workday too.
We use "schedule parameters" and "timewidows" to schedule scripts between 14h and 16h, then 15h and 16h, etc.
Global_Jobchain
  Step 1
     <some task(s) that need to run first>
  Step 2
     SCRIPT_A
         schedule parameter time window = PARTITION.FROM_1400
  Step 3
     SCRIPT_A
         schedule parameter time window = PARTITION.FROM_1500
  Step 4
     SCRIPT_A
         schedule parameter time window = PARTITION.FROM_1600
  Step X
     <some task(s) that need to run afterwards>
We have have a problem when the SCRIPT_A (launched in the step 2) running from 14h to 16h30.
We have 2 cases :
1) With a precondition on the jobchain step, steps 3 and 4 are "skipped"
2) With no precondition on the jobchain steps, step 3 is "scheduled" (wait 15h at the next day), and step 4 stay in "chained".
The process we want to obtain is step 3 "skipped" (step 3 is executed only between 15h et 16h), but step 4 is executed at 16h30(because his timewindows is between 16h and 17h)
Thank you for your help,

Hi,
The reason the step 3 is waiting until the next day is that step 2 runs so long that the time window for step 3 is closed, and the next allowed execution is for the next day.
So you could combine the calls to SCRIPT_A in one step, each still with their own time window just as they have now.
Then, if the first call runs too long, the second call will start in parallel with it at 15:00, so in this setup it is assumed that that is OK.
If that is not OK, so the jobs should not run in parallel, then the situation with the preconditions seems the correct behaviour: step 2 runs so long that step 3 can not be executed => skipped, maybe even also step 4 depending on how long step 2 runs.
Regards,
Anton.

Similar Messages

  • Need to run the JOB without Ineractive Screen

    Dear All,
    We have written a new ABAP program for executing the Macro background Job and used JOB_OPEN,JOB_SUBMIT and JOB_CLOSE Function Modules to run the JOB from ABAP Program.  We are able to run the JOB successfully for Any other ABAP Programs through the custom program, but when I tried with the same approach to run the Macro job through my new ABAP Program the JOB is throwing an error.
    Error Message is like below
    Job started
    Step 001 started (program /SAPAPO/TS_BATCH_JOB, variant TEST, user ID GKMN3511
    Specify a start time
    Job cancelled after system exception ERROR_MESSAGE
    Point of doubts:
    -- Can we really execute the Macro job through the ABAP program with out any dialogue screen (because when I use the "/SAPAPO/MC8G - Schedule Demand Planning in the Backgroundu201D program in my custom program it pop-ups a interactive screen which I don't want in my ABAP program while scheduling the macro job)
    Regards,
    Raju

    In transaction /sapapo/mc8t --> define the activity that looks at the macro in question
    In transaction /sapapo/ mc8d --> define the job that looks at that activity and a selection iD/aggregation level
    In transaction /sapapo/ts_batch_run --> save a variant pointing to the job defined in mc8d
    you can then run the /sapapo/ts_batch_run job with that variant

  • Error while running a job in background

    Hi,
      I got the following error message while running the job in background.
    "Step 001 started .
    Control Framework: Fatal error - GUI cannot be reached.
    ABAP/4 processor: RAISE_EXCEPTION
    Job cancelled"
    What is the reason for this error and how to correct it?

    ALV Grid control is based on the custom controls on the screen. When the program is scheduled in background, it tries to create GUI related front-end objects and hence the error u201CFatal Error u2013 GUI cannot be reachedu201D. This type of problem is common with all the programs that use the ALV grid control to display the output.
    Solution:
    Whenever we execute this type of programs in background, we should be passing a blank docking container instead of the custom container as parent to our grid control. 
    The docking container doesnu2019t need any of the custom controls on the screen; instead it attaches an area to any or all of the four edges of the screen (top, left, right or bottom). The behavior of the areas in the container is determined by the sequence in which they are initialized. Docking Containers are attached to the screen from the inside out. This means that when you create a second container, it is attached to the edge of the screen, and the container that was already there is pushed outwards. 
    Let us modify the standard program (by taking a copy of it) to enable it to execute it in background.
    Following modifications have to be made:
    ·        Define a docking container in the program
    data: or_doc  type ref to cl_gui_docking_container .
    ·        At the time of creating a custom container, check if the program is being executed in background or foreground. If the program is scheduled in background, then create a docking container instead of custom container.
    if cl_gui_alv_grid=>offline( ) is initial.
        create object or_custom_container
               exporting container_name = c_container.
      create object or_grid
             exporting i_parent = or_custom_container.
    else .
    create object or_grid
             exporting i_parent = or_doc .
    endif . 
    Now test executing the program in background. The report would be generated.

  • Alv show in report but when see in spool (after run background job) there i

    my program have some error when i run result alv show in report but when see in spool (after run background job) there is no data, (other program can see result in spool)
    Please help
    here is some example of my program
    ********************************declare internal table*****************************
    internal table output for BDC
    data : begin of t_output occurs 0,
    bukrs type anla-bukrs,
    anln1 type anla-anln1,
    anln2 type anla-anln2,
    zugdt type anla-zugdt,
    result(70) type c,
    end of t_output.
    *****get data from loop********************************
      loop at t_anla.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_anla-anln1
             IMPORTING
                  OUTPUT = t_anla-anln1.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_anla-anln2
             IMPORTING
                  OUTPUT = t_anla-anln2.
    check record is correct or not
        select single bukrs anln1 anln2 zugdt
        into w_output
        from anla
        where bukrs = t_anla-bukrs and
        anln1 = t_anla-anln1 and
        anln2 = t_anla-anln2
       zugdt = '00000000'
    if record is correct
        if sy-subrc = 0 and w_output-zugdt = '00000000'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Yes : this asset can delete'.
          append w_output to t_output.
    if record is not correct
        elseif sy-subrc = 0 and w_output-zugdt <> '00000000'.
    there is error record  this asset have value already
          v_have_error = 'X'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Error : this asset have value already'.
          append w_output to t_output.
        else.
    there is error record this asset donot exist in table anla
          v_have_error = 'X'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Error : this asset doest not exist'.
          append w_output to t_output.
        endif.
    *end of check record is correct or not
        clear w_output.
      endloop.
    ******************************show data in ALV***************************************************
    show data from file in ALV
      perform display_report_ALV.
    *&      Form  display_report_ALV
    form display_report_ALV.
      DATA: LT_FIELD_CAT TYPE SLIS_T_FIELDCAT_ALV,
          LT_EVENTS TYPE SLIS_T_EVENT,
          LV_REPID LIKE SY-REPID.
      PERFORM ALV_DEFINE_FIELD_CAT USING LT_FIELD_CAT.
      PERFORM ALV_HEADER_BUILD USING T_LIST_TOP_OF_PAGE[].
      PERFORM ALV_EVENTTAB_BUILD USING LT_EVENTS[].
      LV_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM = LV_REPID
                IT_FIELDCAT        = LT_FIELD_CAT
                I_SAVE             = 'A'
                IT_EVENTS          = LT_EVENTS[]
           TABLES
                T_OUTTAB           = t_output
           EXCEPTIONS
                PROGRAM_ERROR      = 1
                OTHERS             = 2.
      IF SY-SUBRC NE 0.
        WRITE: / 'Return Code : ', SY-SUBRC,
          'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
      ENDIF.
    endform.
    *&      Form  alv_define_field_cat
          text
         -->P_LT_FIELD_CAT  text
    FORM ALV_DEFINE_FIELD_CAT USING  TB_FCAT TYPE SLIS_T_FIELDCAT_ALV.
      DATA: WA_FIELDCAT LIKE LINE OF TB_FCAT,
        LV_COL_POS TYPE I.
      DEFINE FIELD_CAT.
        CLEAR WA_FIELDCAT.
        ADD 1 TO LV_COL_POS.
        WA_FIELDCAT-FIELDNAME = &1.
        WA_FIELDCAT-REF_TABNAME = &2.
        WA_FIELDCAT-COL_POS = LV_COL_POS.
        WA_FIELDCAT-KEY = &3.
        WA_FIELDCAT-NO_OUT = &4.
        WA_FIELDCAT-REF_FIELDNAME = &5.
        WA_FIELDCAT-DDICTXT = 'M'.
        IF NOT &6 IS INITIAL.
          WA_FIELDCAT-SELTEXT_L = &6.
          WA_FIELDCAT-SELTEXT_M = &6.
          WA_FIELDCAT-SELTEXT_S = &6.
        ENDIF.
        WA_FIELDCAT-DO_SUM = &7.
        WA_FIELDCAT-OUTPUTLEN = &8.
        APPEND WA_FIELDCAT TO TB_FCAT.
      END-OF-DEFINITION.
      FIELD_CAT  'BUKRS'  'ANLA'     'X' '' 'BUKRS' 'Company Code' '' ''.
      FIELD_CAT  'ANLN1'  'ANLA'     'X' '' 'ANLN1' 'Asset Number' '' ''.
      FIELD_CAT  'ANLN2'  'ANLA'     'X' '' 'ANLN2' 'Asset Sub Number' '' ''.
    FIELD_CAT  'ATEXT'   'T5EAE'     'X' '' 'ATEXT' 'Result' '' ''.
      FIELD_CAT  'RESULT'  ''     'X' '' 'RESULT' 'RESULT' '' ''.
    ENDFORM.                    " alv_define_field_cat

    Hi,
    Check this code..
    FORM display_report_alv.
      DATA: lt_field_cat TYPE slis_t_fieldcat_alv,
      lt_events TYPE slis_t_event,
      lv_repid LIKE sy-repid.
      PERFORM alv_define_field_cat USING lt_field_cat.
      PERFORM alv_header_build USING t_list_top_of_page[].
      PERFORM alv_eventtab_build USING lt_events[].
      lv_repid = sy-repid.
      IF sy-batch EQ 'X'.  ----> " System Field for Backgroud..if Background use list display
        CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            i_callback_program = lv_repid
            it_fieldcat        = lt_field_cat
            i_save             = 'A'
            it_events          = lt_events[]
          TABLES
            t_outtab           = t_output
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
      ELSE.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program = lv_repid
            it_fieldcat        = lt_field_cat
            i_save             = 'A'
            it_events          = lt_events[]
          TABLES
            t_outtab           = t_output
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
      ENDIF.
      IF sy-subrc NE 0.
        WRITE: / 'Return Code : ', sy-subrc,
        'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
      ENDIF.
    ENDFORM.                    "display_report_ALV

  • Run a job via job schedular, got the error message Connection to Agentlost"

    Hi,
    I have created a job with 60 scripts and trried to run a job via job schedular after executed some scripts i got error message as " Connection to Agent lost". what is the problem here. how to slove the probelm. please help me.
    Thanks in Advance.
    ra
    Edited by: user4502901 on Nov 9, 2009 6:02 AM

    Hi,
    Try increasing your machines Virtual Memory and then run the scripts.
    Thanks
    Edited by: Openscript User 100 on Nov 10, 2009 9:31 PM

  • To identify the user running the job at runtime

    Hi All,
    My requirement is to develop a program which need to send mail only if a particular user runs the job.
    I need to read the user who runs the job at runtime, i tried with SY-UNAME but it holds the user name of the person who created the job at runtime.
    Please suggest me the possible ways of identifying the user running the job at runtime.
    Thanks in advance!!!
    Regards,
    Dinesh.

    "I need to read the user who runs the job at runtime, i tried with SY-UNAME but it holds the user name of the person who created the job at runtime."
    This is not true if your program/form/method is called inside the ABAP report which is executing in the batch job step. There, the active SY-UNAME is the user entered in SM36 as the job step user. It is not the user who planned/scheduled the job.
    It is unclear from your description where your program is actually running. Is it another (ABAP) step belonging to the same job or is it actually some routine called within the same job step that you are checking or is it a program totally unrelated to the batch job in question (in that case, check out the other answers about TBTCO/TBTCP)
    - Alex

  • Not able to run the job with user id - is

    Hello experts,
    We have problem.
    Every day we run the job.
    ( the job contians two programs called  ZTIBCOPRG  and J_5HJSTP  )).
    I would like to know why the above job is running with the user ID TIBCOADM.  Because this user has German settings for the size conversion in program ZTIBCOPRG and we are having some issues.
    We changed the user to TIBCOUSA and the job would not run. 
    We have changed the user back to TIBCOADM.  It is running.
    KINDLY HELP ME WITH YOUR VALUABLE inputs.   YOUR HELP WILL BE HIGHLY APPRECIATED.
    I have checked for both users in AGR_USERS  table.
    The AGR_USERS is the old user and have many roles compared to userid TIBCOUSA.
    WHERE WE NEED TO SEE . IS it authorisation problem or the other user with whom unable to run the job ?
    or is this the error in the program ZTIBCOPRG which is not able to do size conversion and causing some issues.
    Thanks and Regards,

    Hi,
         after running the job with user id TIBCOUSA, it should be in cancelled state as per your comments.
    you just select the cancelled job and type JDBG in command box and enter it takes you to Debug mode.
    There you may get some information where it is failing.
    Sudheer. A

  • How to run the job under sys id

    Hello ,
    I wanted to run a job under sys id ( Batch user ) , as my authorisation is not sufficiant to run the repoting agent - Precalculation. Where as Batch user have all the roles for the same .
    I am in my login screen , and i wanted to run the job under batch user id ...could you please let me know how can i do it ?
    Regards,
    Manoj

    Hi,
    Try to schedule the job in background and see.
    Thanks,
    JituK

  • How to run a job in background programatically after 10 sec

    Hi Forum,
    Can anyone tell me How to run a job in background programatically after 10 sec..
    Thanks in advance

    Hi,
    Here is the example code
    *Submit report as job(i.e. in background) 
    data: jobname like tbtcjob-jobname value
                                 ' TRANSFER TRANSLATION'.
    data: jobcount like tbtcjob-jobcount,
          host like msxxlist-host.
    data: begin of starttime.
            include structure tbtcstrt.
    data: end of starttime.
    data: starttimeimmediate like btch0000-char1.
    * Job open
      call function 'JOB_OPEN'
           exporting
                delanfrep        = ' '
                jobgroup         = ' '
                jobname          = jobname
                sdlstrtdt        = sy-datum    " You need to give the Date for execution the Job
                sdlstrttm        = sy-uzeit    " You need to give the Time for execution the Job
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 01
                invalid_job_data = 02
                jobname_missing  = 03.
      if sy-subrc ne 0.
                                           "error processing
      endif.
    * Insert process into job
    SUBMIT zreport and return
                    with p_param1 = 'value'
                    with p_param2 = 'value'
                    user sy-uname
                    via job jobname
                    number jobcount.
      if sy-subrc > 0.
                                           "error processing
      endif.
    * Close job
      starttime-sdlstrtdt = sy-datum + 1.
      starttime-sdlstrttm = '220000'.
      call function 'JOB_CLOSE'
           exporting
                event_id             = starttime-eventid
                event_param          = starttime-eventparm
                event_periodic       = starttime-periodic
                jobcount             = jobcount
                jobname              = jobname
                laststrtdt           = starttime-laststrtdt
                laststrttm           = starttime-laststrttm
                prddays              = 1
                prdhours             = 0
                prdmins              = 0
                prdmonths            = 0
                prdweeks             = 0
                sdlstrtdt            = starttime-sdlstrtdt
                sdlstrttm            = starttime-sdlstrttm
                strtimmed            = starttimeimmediate
                targetsystem         = host
           exceptions
                cant_start_immediate = 01
                invalid_startdate    = 02
                jobname_missing      = 03
                job_close_failed     = 04
                job_nosteps          = 05
                job_notex            = 06
                lock_failed          = 07
                others               = 99.
      if sy-subrc eq 0.
                                           "error processing
      endif.
    Regards
    Sudheer

  • EPMCSS-00000 error when running a job at Workspace

    Hi Gurus,
          I am facing an error at workspace when trying to run a job with my username as following :
    [2015-03-31T15:31:14.866-03:00] [EPMRAF] [ERROR] [] [oracle.EPMRAF.com.sqribe.transformer.SAConfig] [host: bihost.petrobras.com.br]
    [nwaddr: 10.30.52.26] [tid: 59] [userId: sapandes] [ecid: 0000Kll6WmaAxGw_wD5EiW1Kytos0009cx,0:5]
    [SRC_CLASS: com.sqribe.transformer.SAConfig] [session_id: g85V33u7-0000014c71175b4b-0000-ea1e-0a1e341a]
    [subject: userJohnDoe] [SRC_METHOD: log:?] [originator_name: JF1] AUTHEN_CSSLoginFailed[[
    Mar 31 15:31:14.866
    Login failed for . Error Code: EPMCSS-00000. Message: EPMCSS-00000: Failed to process request. Internal server error. Refer EPM Shared Services Security log file for related errors.[RESTORE_TOKEN] com.brio.one.services.authentication.CSSAuthenticationException: Login failed for . Error Code: EPMCSS-00000. Message: EPMCSS-00000: Failed to process request. Internal server error. Refer EPM Shared Services Security log file for related errors.[RESTORE_TOKEN]
            at com.brio.one.common.utils.CommonIdlUtility.convert(Unknown Source)
            at com.brio.one.common.utils.CommonIdlUtility.convertCorbaException(Unknown Source)
            at com.brio.one.common.utils.CommonIdlUtility.convertCorbaException(Unknown Source)
            at com.brio.one.services.proxy.BusinessServiceProxy.convertCorbaException(Unknown Source)
            at com.brio.one.services.sessionmanager.proxy.SessionManagerProxy.createSession(Unknown Source)
            at com.brio.one.client.impl.ServerClient.createClient(Unknown Source)
            at com.brio.one.client.impl.ServerClient.createSubjectClient(Unknown Source)
            at com.sqribe.transformer.utils.ConversionRoutines.getUserContext(Unknown Source)
            at com.sqribe.transformer.RunAsyncJobFactoryCommand.execute(Unknown Source)
            at com.sqribe.transformer.SessionCommand.execute(Unknown Source)
            at com.sqribe.transformer.ClientThread.run(Unknown Source)
    [AUTHEN_CSSLoginFailed]: EPMCSS-00000, , EPMCSS-00000: Failed to process request. Internal server error. Refer EPM Shared Services Security log file for related errors.[RESTORE_TOKEN]]]
          However I've got to run this same job when I log as admin user, but my username (userJohnDoe)  belongs a group with admin provision in all environment.
          I've already checked out the permission to my group at all folders in Workspace and set it to "Full Control", but the error still persists....
         Does anyone could help me on that ?
          My environment is at 11.1.2.0 version in  a linux box.
    Regards
    Thanks

    Are you having issues only with a particular job or all the job? Also checking shared services security client log would give you more details.
    Thx
    Vivek

  • Error authenticating proxy while running agent job

    I am trying to schedule a SSIS2014 package via SQL Server Agent job. Both SSIS and SSMS are running on my local machine in the same domain. I am running SSMS with the same user
    Domain\Admin which is the creator of the SSIS package. SSMS 32-Bit and SSIS 32-Bit are running on Windows 7 64-Bit machine. I can run the package within SSIS without problems.
    When I use a proxy account to run the job step, the following message occurs:
    Unable to start execution of step 1 (reason: Error authenticating proxy `Domain\Admin`, system error: Logon failure: unknown user name or bad password.). The step failed.
    The proxy account uses the credentials identity Domain\Admin. Since the password fields for credential properties in SSMS cannot be left blank, I typed any password although my corresponding windows account has no password. So as mentioned above
    it's the same user account that created the SSIS package since Domain\Admin is stated in the CreatorName property of the SSIS package.
    With this proxy, I tried to run SSIS jobs using the package ProtectionLevel's
    EncryptSensitiveWithUserKey and EncryptSensitiveWithPassword. Running the package manually within SSDT without problems, but from SSMS agent job the same error message appears. I tried the package sources "File System" and, after
    importing the package to MSDB, "SQL Server" and "SSIS Package Store". But exactly the same error message appears with each method.
    Task manager shows that SSMS is running in administrator mode. Using Windows Component Services I added DCOM permissions for
    Domain\Admin to start and activate "Microsoft SQL Server Integration Services 12.0" from local. But the same error message appears. So in my opinion it's a problem with SSMS user account permissions (???) but unfortunately I don't know
    what exactly to do here. I tried the following:
    In the system database MSDB (full path: Databases / System Databases / MSDB / Security / Logins) I assigned all available role memberships (Including db_ssisoperator, db_ssisltduser, db_ssisadmin) to
    Domain\Admin.
    In server security (full path: Security / Logins) I assigned all available server roles. In the tab User Mapping, I assigned the MSDB database.
    Still the same error message appears when I try to run the job. Does anybody have some ideas what I can try?

    If you use the Agent then set the package protection to "Rely on server".
    Then Domain/Admin is probably not an actual proxy but the account the Agent is running under, in this or even any case follow http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/ to create the
    proper proxy for the packages.
    Arthur My Blog

  • Error ORA-01017 happened when dbms_scheduler run a job.

    Hi All,
    I got a problem when I use dbms_scheduler to run a job. I got Error code 1017 when the job is run by scheduler. Please find my steps below:
    Oracle version is : Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    1. Created a job successfully by using the code below:
    begin
    dbms_scheduler.create_job(
    job_name => 'monthly_refresh_elec_splits',
    job_type => 'PLSQL_BLOCK',
    job_action => 'BEGIN TRADINGANALYSIS.PKG_IM_REPORTING_ERM.REFRESH_ELEC_SPLITS_TEST; commit; END;',
    start_date => SYSTIMESTAMP,
    repeat_interval => 'freq=monthly;bymonthday=25;byhour=10;byminute=35;bysecond=0;',
    end_date => NULL,
    enabled => TRUE,
    comments => 'monthly_refresh_elec_splits.',
    auto_drop => FALSE
    end;
    2. Got the job run details from talbe user_scheduler_job_run_details after the job is finished:
    select * from user_scheduler_job_run_details where job_name = 'MONTHLY_REFRESH_ELEC_SPLITS' order by log_id desc;
    LOG_ID     LOG_DATE     OWNER     JOB_NAME     JOB_SUBNAME     STATUS     ERROR#     REQ_START_DATE     ACTUAL_START_DATE     RUN_DURATION     INSTANCE_ID     SESSION_ID     SLAVE_PID     CPU_USED     DESTINATION     ADDITIONAL_INFO
    2054804     25/06/2012 10:35:01.086000 AM +10:00     TRADINGANALYSIS     MONTHLY_REFRESH_ELEC_SPLITS          FAILED     1017     25/06/2012 10:35:00.300000 AM +10:00     25/06/2012 10:35:00.400000 AM +10:00     +00 00:00:01.000000     1     1025,37017     129396     +00 00:00:00.030000          ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from NETS
    ORA-06512: at "TRADINGANALYSIS.PKG_IM_REPORTING_ERM", line 574
    ORA-06512: at line 1
    3. If I run the job directly the job will be finished successfully.
    begin
    dbms_scheduler.run_job('monthly_refresh_elec_splits',TRUE);
    end;
    LOG_ID     LOG_DATE     OWNER     JOB_NAME     JOB_SUBNAME     STATUS     ERROR#     REQ_START_DATE     ACTUAL_START_DATE     RUN_DURATION     INSTANCE_ID     SESSION_ID     SLAVE_PID     CPU_USED     DESTINATION     ADDITIONAL_INFO
    2054835     25/06/2012 11:05:38.515000 AM +10:00     TRADINGANALYSIS     MONTHLY_REFRESH_ELEC_SPLITS          SUCCEEDED     0     25/06/2012 11:04:35.787000 AM +10:00     25/06/2012 11:04:35.787000 AM +10:00     +00 00:01:03.000000     1     1047,700          +00 00:00:00.030000
    Additional Info:
    PL/SQL Code in procedure
    PROCEDURE Refresh_Elec_Splits_Test IS
    BEGIN
    --Refresh im_fact_nets_genvol from v_im_facts_nets_genvol in NETS
    DELETE FROM IM_FACT_NETS_GENVOL;
    --the local NETS_GENVOL table has an additional column providing volume splits by generator and month.
    --INSERT INTO IM_FACT_NETS_GENVOL values ('test',sysdate,'test',1,2,3,4,5,6,7);
    INSERT INTO IM_FACT_NETS_GENVOL
    select ngv.*,
    ratio_to_report (net_mwh) OVER (PARTITION BY settlementmonth, state)
    gen_percent
    from [email protected] ngv;
    commit;
    END;
    Does anyone can advice where should I check and how can I solve the problem?
    Thanks in advance
    Edited by: user13244529 on 24/06/2012 18:33
    Edited by: user13244529 on 24/06/2012 18:43

    I apologize if you already solved this.. but see Metalink ID 790221.1
    +*<Moderator Edit - deleted contents of MOS Doc - pl do NOT post such content - it is a violation of your Support agreement>*+                                                                                                                                                                                                                                                                                                                                                                                                               

  • While running synchronization jobs I am getting an error with program terminated

    Dear All,
    While running the synchronization jobs I am getting an ABAP dump error in GRC system SAPMSSY1 and CL_GRAC_USER_REP.
    Do somebody had any of such problem?
    Regards,
    Abhisshek

    Dear Colleen,
    That was correct! I was running multiple jobs at the same time and they might were trying to accesss the same table.
    I am surprise SAP ST22 dumps also stating that I must send SAP message.
    Regards,
    Abhishek

  • How do you register an agent of on 11.2 DB to run remote jobs on another ?

    There are examples available showing how to install a remote agent on a host that doesnt have an Oracle database (using the gateway CD in 11.1 or the Oracle Client in 11.2) and from reading the documentation, it suggests you only need to install the remote agent if there is not an Oracle database on the host. If I have two Oracle databases and want to run remote jobs from DBMS_SCHEDULER on host A against data on host B, how can i register the agent as i cant find any examples that do this.
    With the remote agent installed, there are schagent either in unix or windows but i cant find this in the $ORACLE_HOME/bin of an 11.2 Enterprise install. I've run the prvtrsch.sql script as SYS and it's created the REMOTE_SCHEDULER_AGENT user and objects (which i think might be the equivalent of running schagent on the remote client) but then when i want to register the agent on the calling Oracle database, i dont know what the agent name is to specify in the CREATE_SCHEDULER_DESTINATION call.
    I've added the TNS entries for both directions but just dont have enough information to find the missing bit that lets me connect them.
    Any help appreciated, or just some pointer to know if I am in the right direction would be great
    Thanks

    Hi Ronald
    I have your book which has been very useful in other areas I have been investigating on DBMS_SCHEDULER ( I certainly recommend it to anyone doing any serious work on DBMS_SCHEDULER) but it's not in there either - I've read the chapter ''Getting out of the database' several times and whilst it goes into great detail on how to install the remote agent on a machine without a database, I could only find a brief mention of running an agent in the database starting on page 113 where it talks about 'preparing the database for remote agent usage'.
    I've done these things on the second database but the later part of the chapter is back to running jobs on a machine without Oracle installed and use of schagent which doesn't exist in in the $ORACLE_HOME/bin on a machine that has Oracle installed so I am stuck on how to proceed.
    You also mention the enhancement request so would be interested to know what happened with this ?
    The first thing that comes to my mind when a registration has been done is: "How
    can I check this?" Unfortunately, there appears to be no way to check the status of the
    agent's registration—not even in the database. It would be very convenient to have
    an Oracle view that gives an oversight of which agents are talking with the database.
    I filed an enhancement request (7462577) for this. So with a little luck, we can check
    the status of remote agents in the near future.
    I figure if I have the name of the agent, I can use it in the CREATE_DATABASE_DESTINATION call on my calling database but I cant find the name anywhere. In SQL Developer on the SQL table of create destination, it shows this as being SYS."" and inserts whatever you select from a dropdown list but I don't know how to get any values into the dropdown so possibly the registration wasn't complete but it has created the database objects in the schema and I got no errors when running it.
    Any advise on how to proceed welcome and perhaps it can be added as an addition to the next version of the book.
    Regards
    Trevor

  • Errors while running Sync Jobs in GRC 10

    Dear Experts,
    I am trying to configure RAR in GRC 10. I have all required config steps and now I am trying to run Sync Jobs and I am getting below errors.
    Authorization Synch
    Program for Authorization data Synchronization
    Starting authorization sync for connector RC1 and language EN
    Error in RC1; Reason Error in RFC; 'Function module "/GRCPI/GRIA_AUTH_G
    PFCG authorization sync failed with errors
    Repository Object Synch
    Program for Repository Profile Syncronization
    Processing for connector RC1
    Error in RFC; 'Function module "/GRCPI/GRIA_PROF_GET_RANGES" not'
    Profile sync failed with errors
    Program for Repository Role Synchronization
    Processing for connector RC1
    Error in RFC; 'Function module "/GRCPI/GRIA_ROLE_GET_RANGES" not'
    Role sync failed with errors
    Program for Repository User Synchronization
    Processing for connector RC1
    Error in RFC; 'Function module "/GRCPI/GRIA_USR_GET_RANGES" not f'
    User sync failed with errors
    Repository Object sync job failed with errors
    Please check SLG1 for further details
    I appreciate your help.
    Thanks,
    Raj

    Hi Raj,
    I have a similar error for which I have put up a separate post, your input would be highly valuable.
    My RFC connection works via the test in SM59 but when executing GRAC_AUTH_SYNC I get a simiar error to your above.
    Please let me know what steps you took.
    Best regards,
    Paul

Maybe you are looking for

  • New iMac G5 but no classic support in Tiger?

    I have just bought a new iMac G5 20" with the latest Tiger 10.4x. When I want to install a peripheral or Quark from my old Os 9.2.2 it say "I do not have a version of Mac Os9 installed that supports classic or later." in the pop up window. I hit the

  • Double buffering && repaint

    Hi there, I have a frame F that contains two panels P1 and P2. P1 uses double buffering for drawing circles and lines. P2 has buttons and a JList. When i click on a JList to have popup menu or when i move the frame F on the screen the panel P2 lost s

  • Can't find Javadoc for ADF Faces components

    I have tried to locate javadoc documentation for ADF Faces Java classes, but am not able to find anything. For example, the ADF Faces tag documentation for af:convertNumber has the following comment: "Further more information see javadoc for oracle.a

  • Purchasing and need last price of an item

    Hi , i need an help to find the last price or previous rate of an item for which we are going to create a PO how to get this information from table (ie we are going to create a report to get this previous rate of an item) thanks in advance, userg

  • Firefox crashes when i try to print AOL emails

    firefox crashes and turns printer off when i try to print AOL emails