How to get dbms_scheduler to run jobs on different RAC nodes

lets say I have 3 jobs and I want to run each on different RAC nodes. How do I do this?

Hi,
Pierre's response shows the easiest way to do this on 10g (create a service for each instance, then a job class for each service, then assign jobs to specific job classes).
In 11g there is a more direct method, you can just set the INSTANCE_ID attribute of a job using dbms_scheduler.set_attribute.
Note that for PL/SQL jobs Oracle recommends using services instead of instance ids because they provide better availability if one instance goes down or has to be taken down.
Hope this helps,
Ravi.

Similar Messages

  • Re:How to determine the long running jobs in a patch

    Hi ,
    How to determine the long running jobs in a patch .
    Regards

    Hi,
    Check the below MY ORACLE SUPPORT note:
    Note.252422.1 .... Check Completed Long Running Jobs In Oracle Apps.
    Best regards,
    Rafi

  • How to research a long running job from 3 days ago

    Re: How to research a long running job from 3 days ago
    Client called to say that a job that normally runs for 6 hours ran for 18 hours on 11/01. 11/01 was a Saturday, and end of month. The long running job writes to a log and I can from the log that that the problem started right around 10:43am. Every step
    before 10:43 was taking the normal amount of time. Then at 10:43 a step that takes seconds hung for 12 hours. After 12 hours the step finished and the job completed successfully.
    I looked at the SQL Log, Event Log, Job History (for all jobs). What else can I look at to try and resolve an issue that happened on 11/01/2014?

    It does execute an SSIS package.
    Personally I feel this as kind of bug in SSIS package but I am not expert in SSIS so I would move it to SSIS forum. Please update your question giving complete information what SSIS package does.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • How 2 get units like paise, cents for different currencies

    hi
    how 2 get units like paise, cents for different currencies
    eg...
    if i give EURO
    i should get CENTS
    Regards,
    Naveen
    Message was edited by:
            Naveen Natarajan

    Hi Naveen Plz used This Function Module and let me known whether this is ur requirment or not : Plz look this function module ..........................
    CALL FUNCTION 'SPELL_AMOUNT'
        EXPORTING
          amount    = amount
          currency  = currency
          language  = sy-langu
        IMPORTING
          in_words  = amt_in_words
        EXCEPTIONS
          not_found = 1
          too_large = 2
          OTHERS    = 3.
      IF sy-subrc <> 0.
        MESSAGE ' AMOUNT NOT CONVERTED TO WORDS : ' TYPE 'E' .
      ENDIF.

  • How to cancel an active/running job in BW?

    Hi All,
    I have a job running in the system for 2 hrs now. I want to cancel it, please suggest, how to do the same.
    Thanks,
    Raj

    Hi ,
    Please follow the steps as metioned below: go to T-code SM37, enter the below details
    Job name = * or BI*
    User name = *
    Job status = Active ( uncheck rest all )
    Execute ( here you will find all the active running jobs ).Click on the job--> Go to Job -->Cancel active job. It should cancel the job.
    Or you can also get the PID of the job and cancel the job by following the steps below
    Goto sm50 ---> locate the process with the PID ---> select the Process -
    > menu bar ---> cancel without core.

  • Need step by step instructions on how to get Lightroom to run in Windows

    First I downloaded Lightroom successfully using newest version of Creative Cloud. It would not run. Literally, nothing happens.
    Then I found some info online that says when Lightroom CC doesn't run, you must uninstall it and download it from the Adobe website instead of using Creative Cloud.
    When I try to download it in either Firefox or Chrome, I get this error message "Firefox/Chrome doesn't know how to open this address, because one of the following protocols (aam) isn't associated with any program or is not allowed in this context."
    After a lot of searching around, I discovered that I needed to download the Adobe Application Manger. I did so but it calls itself the Adobe Update Management Tool. Very confusing.
    Then I went back to the Adobe website and tried to download Lightroom again and got the same error message.
    Next, I ran the Adobe Update Management Tool and clicked on Get and Install Online Updates which seemed to be the only relevant choice. In the dropdown box under Select Product Type, there are many Adobe programs listed but Lightroom isn't one of them. I gave up on trying to download Lightroom directly from the Adobe website.
    I then re-downloaded Lightroom successfully using Creative Cloud. It still would not run.
    Next I found some info online that says you have to go into Appdata > Adobe > Local and rename the OOBE file to OOBE.old, so I did that. Lightroom still would not run. I rebooted. This time when I tried to run Lightroom, I got the screen where you have to accept Adobe's terms and conditions. I did so. Lightroom but still would not run.
    Is there anyone who has been through this and knows exactly what steps in what order I need to take to get Lightroom to run? I have Photoshop CC and it runs without any problems.

    You might reboot and try the other Solution #1/2 items, again.  Since you did so much hacking which may not have been related to the issue, there may be something else not right because of it. 
    You also might try uninstalling and reinstalling LR 5.5 from the cloud, again, or installing the LR 5.5 standalone update from the Adobe updates page:  http://www.adobe.com/downloads/updates/
    You also might try uninstalling your all Adobe software, running the CS Cleaner and installing, again:
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    You haven't said what other Adobe software you're running.
    Is this the very first time you've tried to run LR on this computer or have you upgraded from previous versions that worked ok?

  • How To Get Oracle fresher Dba jobs in a company

    How to get oracle dba job in a company . Not a single company consider the fresher for dba. Then how can they get experience without start.

    877854 wrote:
    How to get oracle dba job in a company . Not a single company consider the fresher for dba. Then how can they get experience without start.There're a lot of companies who searchs for Junior DBA who knows the essentials of database administration. It's not easy to find them, but you need to submit your CV with recruitment companies
    Kamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.com/oracle-video-tutorials/
    My ebook - http://kamranagayev.com/2011/10/19/step-by-step-oracle-installation-all-in-one-e-book/

  • How to get the initdefault run level in Solaris 10

    Hi All,
    In Solaris 9 and below
    I will get the init run-level by checking the /etc/inittab entry
    is:3:initdefault:
    But in Solaris 10 we are using the smf functionality.
    Here how I can get the init default run level.
    Please help me in this problem.
    Regards,
    Kalai

    Init levels no longer form a 1:1 mapping with how SMF will run things.
    The default milestone is 'all'. You can override this on the boot line. I'm not sure how you might change it within the filesystem.
    Darren

  • How to get Adobe programs running?

    I am running Adobe CC on a Windows 7 machine, 64bit. The machine has registry software (PC Mechanic) and McAfee antivirus. I have 8 gigs of RAM and a dual core CPU. When I run Adobe, I tend to also have a web browser like Opera running in the background. Windows is used exclusively for Adobe software. I have frequent issues with Adobe programs, like Dreamweaver or Photoshop not being able to launch. Or getting errors like "internal signature error". I have called Adobe technical support, who logged onto my computer several times, but their technicians are consistently stumped. Collegues suggested I simply uninstall and reinstall the software. That worked at first, now the programs will no longer launch---even if reinstalled.
    Adobe seems unable (or perhaps just unwilling to help). It is suggested that Adobe simply cannot work on the Windows operating system. Rather, the programs are made for MAC computers, not Windows.
    Does anyone have suggestions on how to get Adobe CC to run on Windows 7?

    Hi Ikhider,
    I am running Adobe CC products on a Windows 7 64-bit system too. I also use McAfee anti-virus software as well.
    For troubleshooting I would try first shutting down everything running in the background not required by right-clicking on the icons in the system tray and choosing quit or exit.
    When launching the Adobe apps try right clicking on the icons and choosing Run As Administrator and see if that makes any difference
    The Resolve product launch freezes or problems section of this document might help:
    http://helpx.adobe.com/creative-suite/kb/troubleshoot-launch-issues-problems-cs5.html
    -Dave

  • How to get 'clover.cmd' running as Windows service?

    Right now I have the InDesign instances all running great as services so on a server reboot they start up fine. The clover/lbq part is  just the .cmd script and it's not running as a service. I looked in the documentation but haven't found any info on getting clover to run as a Windows service.
    Anyone know how to set it to do this? I'm on InDesign CS6 (server).
    thanks.

    This information is in the Install Guide that comes with EAS.Running EAS as a Windows service is an option you can select when you install it. If you did not do that, you can set it up to run as service by doing the following: (From the EAS Install Guide)----------------------------------------Adding Administration Server as a Windows ServiceYou can add Administration Server as a Windows service, even if it was not installed as a Windows service.?To add Administration Server to the list of Windows services:1. From a command prompt, navigate to the following directory: EASPATH\eas\server\bin2. Run the following command: install_service.batAdministration Services installs the Windows service as Hyperion-Essbase_Administration_Server Windows service. A message displayed in the command prompt window indicates that the service is installed.3. Start the Hyperion-Essbase_Administration_Server Windows service. See ?Starting the Administration Server Windows Service? on page 49.The Hyperion-Essbase_Administration_Server Windows service is set to start automatically each time you reboot.

  • How to find the current running jobs.

    Hi All,
    Can u please tell me how can i find the current running jobs in oracle.
    OS : windows
    DB VERSION: 10.2.0.1
    Thanks,
    srini...

    Don't think so..
    For the running jobs ( the ones in flight right now..)
    if you used the scheduler
    select owner , job_name , running_instance, session_id from all_scheduler_running_jobs
    order by owner , job_name
    If you used dbms_job ( you really should the scheduler ...)
    select job, instance, sid from dba_jobs_running
    order by instance, job
    /

  • How to get value by running  in code behind?

    Hi all,
    i am running one stored procedure which return value.
    i am calling that stored procedure like this.
    Dim retvalue As Integer
    dtformat.ShortDatePattern = "MM/dd/yyyy"
    Dim YourDate As DateTime = Convert.ToDateTime(dt, dtformat).ToString("MMM/dd/yyyy")
    Dim hsh As New Hashtable
    objDataTier.OpenDbConnection()
    con1.Open()
    Dim oc As New OracleCommand("spSelectStartDay")
    oc.CommandType = CommandType.StoredProcedure
    oc.Parameters.Add("v_pidate", OracleType.DateTime).Value = dt
    retvalue = oc.Parameters("v_poRetval").Value.ToString()
    but not getting value in retvalue variable?
    how to get the value in that.
    my stored procedure is here.
    create or replace
    Procedure spSelectStartDay
    v_pidate IN DATE DEFAULT NULL ,
    v_poRetVal OUT NUMBER
    AS
    v_dpart NUMBER(10,0);
    v_date DATE;
    v_startweek NUMBER(10,0);
    BEGIN
    v_dpart := TO_Char(v_pidate,'DD') ;
    v_dpart := v_dpart - 1 ;
    v_date := Trunc(Trunc(v_pidate, 'MM')+1,'MM');
    v_startweek := TO_CHAR(to_date(v_date, 'dd-MM-yy'), 'd');
    v_poRetVal := v_startweek ;
    RETURN;
    END;
    thanks

    You need to add both parameters. You should create the parameter, then specify a direction. In C# (taken from a script that executes an anonymous block, but will work for your purposes)
                    using (OracleConnection oCon = new OracleConnection(_connectionString))
                        oCon.Open();
                        using (OracleCommand oCmd = new OracleCommand())
                            oCmd.Connection = oCon;
                            oCmd.CommandType = CommandType.Text;
                            oCmd.CommandText = sql;
                            oCmd.BindByName = true;
                            OracleParameter opS = new OracleParameter("p_s", OracleDbType.Varchar2, 100, s, ParameterDirection.Input);
                            OracleParameter opC = new OracleParameter("p_c", OracleDbType.Int32, c, ParameterDirection.Input);
                            OracleParameter opA = new OracleParameter("v_a", OracleDbType.BinaryDouble, ParameterDirection.InputOutput);
                            oCmd.Parameters.Add(opS);
                            oCmd.Parameters.Add(opC);
                            oCmd.Parameters.Add(opA);
                            oCmd.ExecuteNonQuery();
                            a = double.Parse(oCmd.Parameters["v_a"].Value.ToString()); // note there are better ways to do this... it's quick and dirty to parse the string value.

  • How to get a loop run for 1 instance every time a button is pressed

    I need to get a loop run only once everytime a button is pressed.
    Please help me.

    Read the help built into LabVIEW
    Here's online version of the help: http://zone.ni.com/reference/en-XX/help/371361L-01/glang/event_structure/
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to get an Applet running in IE??

    Dear All,
    Can I know the way to get my applet runs in Internet Explorer?
    I heard about Java Plug-In and Java HTML Converter. Pls advise.
    I am using JDK1.3.1 and Win98.
    Which version of Java Plug-In and HTML Converter should I use?
    Thanks,
    Daniel

    Which Mac OS version is the applet going to run on? Java in Mac OS X will support jre1.3, but earlier versions of the Mac OS only support jre1.1.2. You need to go to www.apple.com and do a search for Java. There you will find all the information about Java on the Mac platform.

  • How to stop the manually running job

    Hi,
    I have to stop a job that is run by user manually. I checked on net but did not find the way to stop the existing running job.
    Please suggest.
    Thanks,
    Gulshan

    Hi;
    What kind of job this, its running manualy or from crontab?
    Let us say you are taking rman backup wiht crontab entery. So login your server than
    ps -ef|grep rman
    This will bring you OS PID than issue is
    kill -9 PID
    Regard
    Helios

Maybe you are looking for