Scheduled job not getting executed on a logical standby

Hello,
We have created a job(through dbms_scheduler API). The job is enabled and shows up in the SCHEDULERJOBS view also.
However the job does not get executed. I looked into the following tables there was no relevant entry found for the aforesaid job:
select * from all_scheduler_job_log
select * from dba_scheduler_running_jobs
select * from DBA_SCHEDULER_JOB_RUN_DETAILS order by log_date desc
Is there any limitation that we cannot execute scheduled jobs on a logical standby database. If i execute the relevant program (that is configured to be run as job in this scenario) as an individual procedure from SQL plus, it gets executed successfully implying there is no errors/problem in the subprogram that the job is going to invoke.
Appreciate your thoughts in this regard.
Thanks.

Hi Justin,
Thanks for your response.
As per the app design, the job invokes a stored program(that maps to a stored procedure present in standby db itself) that reads the data from standby and populates the relevant tables/entities in another database(third db, not primary or standby) which acts as a repository. No write operations are to be performed on standby.
So, i have two doubts:
-- Can scheduled jobs execute on logical standby db[Oracle release 10g(R2)]
I was going through few of the oracle docs and it is mentioned that this is a known limitation in 10g
R2 release and has been corrected in 11g. Now we have something called database_role
attribute that needs to be set to 'LOGICAL STANDBY' if you need to execute a job on
standby. However it is available in 11g onwards.
-- If there is no workaround for the above mentioned problem in 10g-R2 release.
Then we may have to schedule a job from third db instance that shall invoke the program(residing on the standby db). Can we have a scheduled job which executes a program that maps to a remote stored procedure instead of local stored procedure?
Appreciate your thoughts.
Thanks

Similar Messages

  • Job not getting invoked on a logical standby instance

    Hello,
    We have created a job(through dbms_scheduler API). The job is enabled and shows up in the SCHEDULERJOBS view also.
    However the job does not get executed. I looked into the following tables there was no relevant entry found for the aforesaid job:
    select * from all_scheduler_job_log
    select * from dba_scheduler_running_jobs
    select * from DBA_SCHEDULER_JOB_RUN_DETAILS order by log_date desc
    Is there any limitation that we cannot execute scheduled jobs on a logical standby database. If i execute the relevant program (that is configured to be run as job in this scenario) as an individual procedure from SQL plus, it gets executed successfully implying there is no errors/problem in the subprogram that the job is going to invoke.
    Appreciate your thoughts in this regard.
    Thanks.

    I think then we need to think about an alternate way to tackle the problem.
    Anyways thanks for your timely help Ravi.
    Just one query, can we invoke remote stored procedures(i.e. using datalinks) from dbms_scheduler jobs on another db.
    i.e. something like this:
    DB0(primary db instance); DB1(is a logical standby db); DB2(centralized repository db)
    DB1 contains certain packaged application procedures that need to be invoked as a scheduled activity.
    Previously we had the scheduled jobs residing on the logical standby db itself but because of this known issue we cannot proceed with that design.
    So can we have jobs,programs(mapping to DB1s stored procedure) scheduled on DB2?
    Thanks.

  • Oracle Jobs not getting executed

    Hi all,
    I am using oracle release 10.2.0.4.0. I have two similar databases and I am trying to run same jobs in two different databases. one is running successfully however when i m trying to submit the same jobs in another database the jobs are getting stuck in DBA_JOBS with below values:
    next_date next_sec total_time broken interval failures
    15-07-2009 00:00:00 0 N NULL NULL
    and jobs are not giving desired result. in fact they are not doing any thing which i am expecting.
    there is no change in program level. same program unit is able to submit the job in another database. I have checked the job_queue_processes and value is 10.
    I don't have any clue were to check at oracle level. i am pl/sql dev so i don't have much hand on oracle.
    here is the program block which is submitting jobs:
    Job := 'batch_run.Pr_Process_dup
                        (     ' || chr(39) || CurBranch || chr(39) || '
                             ,' || chr(39) || CurUser || chr(39) || '
    sys.dbms_job.submit(jno, job, StartTime, Interval);
    commit;
    This is the part of function were job is getting submitted.
    I don't think there is any issue at program level as it was working fine before and there is no change aswell. also same functions are being used in other database. in fact we are using these objects in front end which is working fine in rest of databases.
    We have two databases at same server.I compared all parameters in both instances.
    Please help me.

    hi
    here are the steps which I did.
    1. I submitted job using below code.
    declare
    job1 integer :=0;
    begin
    sys.dbms_job.submit(job1,'Begin null; end;',sysdate,'');
    commit;
    end;
    here are the values i was getting in DBA_jobs:
    next_date 16-07-2009 15:35:20
    next_sec 15:35:20
    total_time 0
    broken N
    interval null
    failures (no value)
    what Begin null; end;
    I don't think it was running.
    2. After running ur statement:
    set serveroutput on;
    exec dbms_job.run(9623);
    output: PL/SQL procedure successfully completed.
    Job was not present in DBA_JOBS so i think Job got executed.
    I am clueless what is happening.What should be the cause?why is it not getting executingwhile running inside the pl/sql block?
    Thanks
    Edited by: sameer wani on Jul 16, 2009 8:52 AM

  • MV Logs not getting purged in a Logical Standby Database

    We are trying to replicate a few tables in a logical standby database to another database. Both the source ( The Logical Standby) and the target database are in Oracle 11g R1.
    The materialized views are refreshed using FAST REFRESH.
    The Materialized View Logs created on the source ( the Logical Standby Database) are not getting purged when the MV in the target database is refreshed.
    We checked the entries in the following Tables: SYS.SNAP$, SYS.SLOG$, SYS.MLOG$
    When a materialized view is created on the target database, a record is not inserted into the SYS.SLOG$ table and it seems like that's why the MV Logs are not getting purged.
    Why are we using a Logical Standby Database instead of the Primary ? Because, the load on the Primary Database is too much and the machine doesn't have enough resources to support MV based replication. The CPU usage is 95% all the time. The appplication owner won't allow us to go against the Primary database.
    Do we have to do anything different in terms of Configuration/Privileges etc. because we are using a Logical Standby Database as a source ?
    Thanks in Advance.

    We have a 11g RAC database in solaris OS where there is huge gap in archive log apply.
    Thread Last Sequence Received Last Sequence Applied Difference
    1 132581 129916 2665
    2 108253 106229 2024
    3 107452 104975 2477
    The MRP0 process seems not to be working also.Almost 7000+ archives lag in standby if compared with primary database.
    i suggest you to go with Incremental rollforward backups to make it SYNC, use this below link for step by step procedure.
    http://www.oracle-ckpt.com/rman-incremental-backups-to-roll-forward-a-physical-standby-database-2/
    Here questions.
    1) Whether those archives are transported & just not applied?
    2) Is in production do you have archives or backup of archives?
    3) What you have found errors in alert log file?
    post
    SQL> select severity,message,error_code,timestamp from v$dataguard_status where dest_id=2;
    4) What errors in primary database alert log file?
    Also post
    select     ds.dest_id id
    ,     ad.status
    ,     ds.database_mode db_mode
    ,     ad.archiver type
    ,     ds.recovery_mode
    ,     ds.protection_mode
    ,     ds.standby_logfile_count "SRLs"
    ,     ds.standby_logfile_active active
    ,     ds.archived_seq#
    from     v$archive_dest_status     ds
    ,     v$archive_dest          ad
    where     ds.dest_id = ad.dest_id
    and     ad.status != 'INACTIVE'
    order by
         ds.dest_id
    /Also check errors from standby database.

  • Jobs not getting Scheduled when it is called from RFC

    Hi Everyone,
    I have Functional module in system1 which in turn creates a background Job, but when i call this Function module from System2 using RFC then the background job is not created. THought i debugged and the Function module on system1 is called successfully with right input parameters. M i missing anything ? Please advice
    Regards,
    Nikesh Kumar

    Hi Chen,
    Thanks for the reply. Actually the main problem is not with how the Background job is getting executed. Actually my function module schedules are job in system1 , but if the same func module is called via RFC from other system, it gets called successfully with same inputs (checked in debugging), but the background job does not get created.
    Regards,
    Nikesh Kumar

  • Tasks not getting executed as per schedule

    Hello Gurus,
    my query is with respect to tuxedo 7.1 / singleview 4.02.17.01.
    I am facing some new issues these days with singleview.
    Whenever we submit any task in singleview, it is not getting executed on its scheduled time.
    this has been happening from past few days.
    worstly,nothing has been found in logs.
    Interestingly, twice it happened that i took down the application & after the app was brought up,these "NOT" executed tasks started automatically.
    Why this could be happening?
    unix file " stdout" <standard output> is getting written heavily & reaching its MAX size ( 2 GB) in less than 24 hrs.
    i have changed its schedule as of now,but has it got anything with above problem?
    Finally,i have generated a new "ubbconfig" for tuxedo which will help in maximising billing performance.
    reason for this is in recent times i have observed that memory usage has increased .so this "ubb" contains maximum billing servers & rest minimum.if you have any idea on this,pls let me know.
    your suggestions & corrections are welcome.
    Thanks & Regards
    Abhijeet K

    Some follow up questions:
    - How did you migrate (dsmig ldif or binary import)
    - Did the accounts in .x have any custom password policies set?
    For a "new" and a migrated entry, can you check if a passwordpolicysubentry is configured?
    (search as directory manager and fetch the attribute)

  • Automated Monitoring Scheduled Job not completing - PC

    Hello Experts,
    When we have scheduled a automated monitoring job, it is not getting executed completely and the status is shown as "In Progress". Also when we open the "Job Step Log" tab of the scheduled job in Automated Monitoring it is blank
    What could be the reason for it?
    Regards,
    Ramakrishna Chaitanya

    Hi
    Try with Sox export role. Asynchronous mode?

  • AOP JoinPoint not getting executed

    The spring configuration that I have is
    <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
      xsi:schemaLocation="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
      http://www.springframework.org/schema/aop
      http://www.springframework.org/schema/aop/spring-aop-3.1.xsd ">
      <aop:aspectj-autoproxy />
      <bean id="addCarrierService" class="com.service.AddCarrierService" />
      <!-- Aspect -->
      <bean id="authorizeBeforeAspect" class="com.custom.AuthorizeBeforeAspect" />
      <aop:config>
      <aop:aspect id="aspectLoggging" ref="authorizeBeforeAspect">
      <!-- @Before -->
      <aop:pointcut id="pointCutBefore" expression="execution(* com.service.*.*(..))" />
      <aop:before method="secureBefore" pointcut-ref="pointCutBefore" />
      </aop:aspect>
      </aop:config>
    </beans>
    And the join point class is
    package com.custom;
    import org.aspectj.lang.JoinPoint;
    import org.aspectj.lang.annotation.Aspect;
    import org.springframework.security.core.context.SecurityContextHolder;
    import org.springframework.stereotype.Component;
    @Component
    @Aspect
    public class AuthorizeBeforeAspect {
      public void secureBefore(JoinPoint joinPoint) {
      System.out.println("Inside AuthorizeBeforeAspect.secureBefore() method");
      if (SecurityContextHolder.getContext().getAuthentication().getPrincipal() != null)
      DEPUser user = (DEPUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    AuthorizeBeforeAspect .java class does not get executed at all. Not sure where am I going wrong?

    Hi,
    Was the chain created and activated properly, try activating the chain once again, if there is an issue with any of the variants the process chian will not get activated and throw and error.
    If this is not the case and if you are able to activate the process chain successfully, open the start variant and change the settings.
    Right click on the start variant -> Select direct scheduling option.-> press Change selection button
    Select immediate button and press enter. Now come back save the start variant and activate the chain once again.
    Schedule the chain and it should run right away. Monitor the logs.
    Regards,
    Sudheer

  • Process chain infopackage not getting executed.

    Hi,
    We have a process chain in which one of the element for infopackage is yellow for more than last 5 hrs. On checking batch jobs i can see that job is ready but not getting executed.
    I had gone into infopackage and pressed start but still it is showing old status.
    I need to understand what is the problem and how it can be resolved ?
    Please reply fast.

    Hi Babu,
    If the data has arrived into BW sysstem and the process chain has stuck. Then you can push the chain ahead of that step. Run the function module RSPC_PROCESS_FINISH in transaction SE38 The field entries required to run this function module can be collected in the table RSPCPROCESSLOG in traction SE16. Just provide the entries "Process Variants" and "Instance ID" and run execute the table and you will get all the required field entries to run the function module. usually give Log id, type, varient, instance id and status in function module and run. this will push ur chain ahead. The entries "Process Variants" and "Instance ID" in the process chain can be collected by right clicking the failed load and click on Chain tab.
    Note; The status you have to set to G.
    Hope this will help
    Regards
    Koushik

  • Queries are not getting executed in the EJB

    Hi,
    I am using Stateless EJB for database transactions. I have one getConnection() method in it which I am calling in every method for connection. I have created one more method in that I am executing one simple query for count(*) from one table and returning the count in the Web dynpro application. But I am not getting the count. It seems the query is not getting executed. I have added classes12 jar externally to the EJB and also to the WebDynpro application. Is there anything I am missing????
    Thanks,
    Swati Gaur

    Hi Swati Gaur,
    Did you print any logs in the your code to print the count after executing the query?
    For debugging purpose you can try
    System.err.println("Count after executing the query "+count);
    count is the variable which contains the count after executing the sql query.
    Check for the above statement in default trace. If count is printing in default trace then the problem is in your webdynpro code.
    Hope this helps!
    Regards,
    Jaya.

  • Maintenance schedule is not getting generated

    Hi....
    Past one year, maintenance schedule is not getting generated.
    Could you please let me know to where i have to look out for this problem in Equipment & Functional Locations?
    What are all the fields will be mandatory and triggering the maintenance schedule / Notification in Equipment / Functional Locations?
    Need your response at the earliest.
    Regards,
    Mohd Ali.

    Hi
    There May be several resons...
    Check Whether Maintenace for perticualr maintenance plan is not scheduled... their could completion requirement tick might selected previous maint. not done for the equipment.
    Check any scheduling for inactive equips/fl
    check any long offset has been set....
    check while scheduling any sortfield key is set or genral...if pertiucalr sort key is belong to Eq/fl which will not help
    regards
    krish

  • Deadline branch not getting executed

    Hi
    In my BPM i have an infinite loop and also the deadline branch with inerval as 1 minute (for testing purpose) but when i send the message my deadline branch does not get executed after 1 minute and it keeps on waiting.
    in the bpm monitoring it shows wait step created.
    i have verified my design with the standard pattern available, and it is almost similar.
    i am not able to find out the reason behind this strange behavior.
    Regards
    Dheeraj

    Hi Saravana
    i did exactly the same, i have my deadline branch, in it i have my control step which trows exception, which is catched by my exception branch and does nothing, so ideally it should continue the processing after that.
    but the problem is the exception is never thrown.
    my deadline has been configured as
    Reference Date/Time: Creating the step
    Duration: 1
    Unit: Minutes
    control step in deadline branch
    Action: Throw Exception
    Exception: Time_out
    Exception branch
    Exception Handler: Time_Out
    and outside this block i have transformation and other steps... which shoul get excuted after 1 minute deadline.
    Regards
    Dheeraj

  • In PO Release "PO release effected" is not getting executed

    Hi All,
               I am working on PO Release WorkFlow.
    when I execute the WF of PO release, its executing the first task "please release PO" but when I relase the PO from my work place the second step "PO release effected" is not getting executed. I could not found why this is happening.
    Please help me in this issue.
    Thanks.
    Ranganadh.

    Thank You Adithya,
                                     I have copied the standard one i.e. WS20000075. I am executing the workflow directly from the Workflow builde by giving the PO number and release code.
    with this in my business workplace I can able to find the workitem.
             I am releaseing the PO from the Workplace. After releasing the PO also I am getting the status of the workitem as "Inprocess".
             In workflow log I found that only first task (PO Released) has been executed the subsequent steps are not getting executed.
             Would be there any settings are missed out??
    Thanks.
    Ranganadh.

  • Fault policies not getting executed for called BPEL process

    Hi,
    I am facing one issue in execution of fault policy for a called BPEL Process.
    I have two BPEL Processes - BPELProcess1 and BPELProcess2.
    We have fault-policies and fault-bindings file.
    Case1 - BPELProcess2 is synchronous :-
    BPELProcess2 throws a fault of selectionFailure.
    Now this fault is defined in fault-policies and fault policy is bound to BPELProcess2 component in fault-bindings.xml file.
    But this fault policy is NOT getting executed.
    This selectionFailure fault from BPELProcess2 goes unhandled and in BPELProcess1, invoke activity gets this unhandled fault and raises a fault "remoteFault".
    This remotefault is also defined in fault-bindings and bound to BPELProcess1 component. Here fault policy bound to BPELProcess1 is working fine.
    So problem is that for called process, fault policies are not getting executed while for calling process, they are getting executed.
    Case1 - BPELProcess2 is Asynchronous
    BPELProcess2 is asynchronous. So same situation happening here. Fault policy for BPELProcess2 is not getting executed on throwing selectionFailure.
    But now here, since BPELProcess2 is async in nature, BPELProcess1 is not getting response and it is always waiting for response which is wrong.
    So how can we use fault policies in this case?
    Please suggest.
    Thanks & Regards,
    Parshant

    So that means - only fault originating from invoke activity in BPEL can be associated with a fault policy. No other fault can be associated. Even if I throw a selectionFault from throw activity, that will not be captured. Only fault from invoke activity can be associated with a fault policy.
    Please confirm.
    Thanks,
    Edited by: 833944 on Feb 24, 2011 9:36 PM

  • BADI is not getting executed in Portal (Front end)

    Hello Portal Gurus
    We have developed a new enhancement recently and it is not getting executed in Portal...what will be reason...?
    Can someone please help me out in this...

    Hi Vijay,
    It'll be a bit easier to point out some probable solutions if you can give some details regarding the error that you are getting... Also if you can mention the EP version it'll be great..
    Thanks,
    Pinac

Maybe you are looking for

  • PS Report Characteritics for reports created in CJE2

    Hi All, I would like to add BUSINESS AREA as a PS DRILLDOWN type report characteritic. I am using transaction CJE2 to create my own reports. I have already added my enhancement designed user fields by adding them to table TKAF. Business area is alrea

  • Mini DV decks to use with Premiere Pro?

    I have a few questions regarding mini DV decks and Premiere Pro. First, is there any Mini DV deck on the market right now that will actually NOT be useful with Premiere Pro? Does anyone have a personal favorite? Is there anything I should look out fo

  • How big can a word document be before Pages (iPad1) crashes?

    I have an iPad1 and was thinking of using it for some quick edits. Since my MacBook struggles a bit with some of my larger word documents, I wondered how the iPad would fare. I don't want to waste the $10 on Pages if it isn't going to work for me. My

  • Passing dynamic query to DB adapter

    Hi, I am using jdeveloper 10.1.3.4 for configuring a BPEL flow. As per the requirements, I am supposed to have only one DB adapter which will handle all the operations on the database tables. The SQL is created at the runtime depending on the input.

  • IWeb External page Hyperlink within MobileMe/iDisk

    For the last few years I have had my iWeb site set up on my MobileMe Home/iDisk, I note that iWeb files are kept at Home > Web > Sites which contains _gallery, Sites.rss and my home pages. I have created a genealogical web site using Reunion v9.0b wh