Schedule task files

To Create a scheduled task
The zip file (plugin and jar file) has to be place in
<middlware>Oracle_IDM1/server/ScheduleTask
OR?
<middlware>Oracle_IDM1/server/plugin
I imported the xml file for the file and it is in MDS /db/scheduledtask.xml
But I cannot see this job in Scheduled task

http://docs.oracle.com/cd/E21764_01/doc.1111/e14309/refsched.htm#CIHBFCJG
http://docs.oracle.com/cd/E21764_01/doc.1111/e14309/refsched.htm#BEIDIFHB
-Bikash

Similar Messages

  • Scheduler task to save file to KM.

    Dear all
    I have seen the following blog for scheduler task.
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1515">Link to blog</a>
    But my scenario is a little bit different. I want to create a sceduler task which creates and save a file in a particular destination in KM.
    Can anybody help me in doing this?
    Regards
    Aparnna

    hi prasad,
    I am also tried the same blog  <b>"Did you know you can schedule jobs in portal using KM's Scheduler Task "</b>..
    After deploy my Par I am getting my schedular task under Knowledge Management>content Management>Globel Service-->schedular task..... But i didnt get <b>yahoofeed.xml</b> file..
    then i have checked..System Configuration >Monitoring>Knowledge Management>Component Monitor>Services-->Schedulers.. my Schedular task status is <b>startup failed</b>...
    did u get the result for ur schedular task.. if yes,, plz guide me where I did error..
    thanks and regards,
    Chinnadurai.R

  • Call Multiple Files From Single ColdFusion Scheduled Task

    Our host only allows us to have 5 scheduled tasks per account but we need to run cfml applications to import data for multiple sites (at least 15 processes).  What I'd like to do is combine all the 'sample requests' for all sites into ONE scheduled task that will run them one after another thus cutting back on the number of scheduled tasks needed.
    We're using ColdFusion to connect to a MySQL DB to gather all sample requests. First the app retrieves all the unflagged records from a remote db then begins looping through all the returned records. On the each loop, the app 'scrubs' the data by properly formatting phone numbers, fixing address abbreviations, etc. Next the app saves the scrubbed data to a local MS SQL table then starts the loop over on the next row. Lastly the app sends out an email saying it has completed successfully.
    What I'm trying to do is Create a New Parent App that will run as a scheduled task to do the following:
    - New Parent App Runs as Scheduled Task and calls/includes first of X sample request app files
    - New Parent App runs first sample request app as described above (which can take up to a minute to process)
    - Parent app waits until after first sample request app completes, then Parent App goes on to second sample request app, etc.
    - After all sample requests are complete New App sends completion email with date and time
    The problem I'm having is getting the scheduled task to wait for apppage1.cfm to finish before loading apppage2.cfm and so on. Can you give me a simple codeset that accomplishes this?
    I've attached a sample of the include page the needs to complete before moving on!

    Our approach is a bit more comprehensive.
    First, we (meaning my co-workers) wrote a custom tag that does something like this:
    <cftry>
    <cfinclude the template>
    <cfcatch>
    log any errors
    Then our actual scheduled job go like this:
    set a really long timeout (and none of the actual jobs can have their own timeout)
    set some variables
    use the custom tag for each job we want to run
    send mail if any errors occurred.

  • Batch File Won't Run as a Scheduled Task

    I have two batch files that won't run as scheduled tasks but run perfectly fine when I double-click them.
    I've already set them to run with highest privileges, the account running them is an administrator account, that account has full permissions to the folder and file. I've checked every thread I could find but they simply won't run. No error, no log, nothing...
    If I right click the scheduled task and select Run, nothing happens.
    Any ideas?

    Hi,
    As far as I know, you have to enter the script folder in the "Start in" field. Else it just won't work - and won't really give you any meaningful error messages. So, please check your setting.
    Roger Lu
    TechNet Community Support

  • Scheduled task won't run .bat file

    Hi. On Windows Server 2008 I have a scheduled task that calls a .bat file. The fist step in the .bat file is write to a log file to the same directory in which the .bat file exists. This allows me to find out if it is ever run. When the .bat file is run from a command prompt it runs as expected writing to the log file and completing its actions. My problem is that when I run the scheduled task manually or allow it to run when scheduled it appears to run but the .bat file is never run. No log file is ever created. The History tab in the properties of the scheduled tasks shows the task being started and running then completing with an operation code of 2. I've disabled the UAC for the user account. I've set the task to run as the Administrator user and verified the permissions for that user. I know the password is correct for the task because I can make changes to the properties and save those changes with the username/password. I'm at a loss for further troubleshooting steps. Can anyone point me in the right direction to figure out why these .bat files are not being run? 

    So I had this problem, I double clicked on the .bat and notepad opened the .bat.  I ran through this whole long and very absorbing thread of this forum.   I wanted to save the entries that were most helpful, so I copied and pasted into
    a notepad document (.txt)  I could not find a way to attach it here, so I copied and pasted that below. I called it a synopsis....  Did I spell that right?
    As you can see, I added my experience at the top (A and B).  The stuff I copied is noted with the original author. This is the first time I posted anything to these here microsoft forums, although I have been telling computers what to do for 40+ years. 
    So hope I did not break any social protocols here.
    ==================================== Begin ====================================
         Running A Dot Bat File in Windows Server 2008 Vista 7 etc and beyond V01
    ============================================================================
    This was created as a synopsis of the entries at the following forum location:
    http://social.technet.microsoft.com/Forums/en/winservermanager/thread/d47d116e-10b9-44f0-9a30-7406c86c2fbe
    A) manually
         This is an opinion added by Thomas Rock
        1) Open a command window (that would be cmd.exe)
        2) In the command window navigate to the directory containing the .bat file and it's dependents
               ex...  C:\Program Files (x86)\Bobs\Your\Uncle
        3) Run the .bat file by typing the name including the .bat extension (in the command window of course)
                 TheBatFile.bat
           Note: Using this method, the .bat file will run in the current command window directory (the directory where the .bat file is located)
                             (this is the key for getting it to run in the task scheduler... Start in folder option)
    B) The double click
                This is an opinion added by Thomas Rock
         1) Using Windows exlporer, find the .bat file
         2) use the mouse or other device to double click on the .bat file
         3) if it does not run (in my case the wordpad application opened the .bat file)
              a) make sure that the .bat file extension is associated with the program c:\windows\system32\cmd.exe
              b) make sure the profile you are using has rights to run the cmd.exe
              c) make sure the profile has the rights to the directories, the .bat and any other objects used or affected by the .bat file processing.
    C) As a task using task scheduler
         Proposed As Answer by Brian Vandemark Wednesday, September 02, 2009 9:36 PM
    1) Make sure that the task is set to "configure for Windows Vista or Windows 2008" on the first page of the task properties (under the "general" tab)
    2) Make sure that the task is set to "start in" the folder that contains the batch file:
          a) open the task properties
          b) click on the "actions" tab
          c) click on the action and then the "edit" button at the bottom. 
          d) In the "Edit Action" Window there is a field for "start in (optional)" that you set to the path to the batch file.
          e) be sure to include an end backslash for the start in path "C:\dir1\dir2\"    (the last backslash is not optional)
    3) Make sure that the task is running as an account that has explicit "Full access" permissions to all these things:
          a) the .bat file itself
          b) the folder containing the .bat file
          c) the target files/folders that are affected by the .bat script. 
               Note:  Inherited permissions did not seem to work.
    4) Make sure that the account running the task is a member of the local "administrators" group for this machine
    5) Make sure that the task is set to "run whether logged on or not"
    6) Tick the box "Run with highest privileges".    
           Note: Point 6 here was from Edson F. Lima Wednesday June 30 2010 1:35 PM
                      The original point 6 was moved to point 7.
    7) The Task should run successfully with expected output when you right-click on the task and select "run" 
            If it does that then it will run successfully when you are logged off.
    D) Still another way as a task using task scheduler
          Proposed As Answer byDarren Wallace Thursday, July 15, 2010 1:41 AM
    This has been bugging me for 6 or 7 months.
    I don't have admin rights to the box and the guy who does is very busy...
    so I've felt the range of emotions mentioned above.
    I tried most everything above as well. But what seemed to get my processes processing, was ...
       • on the General tab, I clicked the Change User or Group button
       • in Select User or Group (first smaller dialog box)  I clicked the Advanced... button
       • in the next Select User or Group (second bigger dialog box) I clicked the Find Now button
       • in the Search results I selected the Administrators (a group) and it returned SERVERname\Administrators into the "Enter the object name to select" entry in the previous dialog box
       • then I clicked OK and returned to the General tab above
       • the options to Run only when user is logged on and Run whether user is logged on or not are no longer available
       • then I made sure that the Run with highest privileges was checked
       • then I clicked OK and during the next scheduled time to run ... it ran
       Note: See note in A) Manually above.
    E) Task scheduler recommendation
         Proposed As Answer byTamusJRoyceThursday, December 01, 2011 3:42 PM
    I have found .bat and .cmd files do not run correctly either.
        My solution:  Don't run the batch file directly. 
           Have TaskScheduler run:  cmd.exe
              with parameter:  /C YourBatchFile.bat
             and start in: C:\SomePath\ (without quotes!) where C:\SomePath\YourBatchFile.bat exists. 
            And then select the radio button for it to run regardless if you are logged in or not.
    Exit errors may not be logged to the Event Log (they weren't when the .bat ran directly from Task Scheduler when I was logged in), so I find it best to manually log your own Event in case a error occurs and you want to send an email.
     REM Logs an event which causes eventlog to send an email when it fails.  Also, "/l application" needs to be lowercase.
    eventcreate /t error /id 203 /l application /d "your logged description."
    And then make a completely separate task with a trigger:  On an event.  Basic Selected.  Log: Application.  Source: EventCreate. Event ID: 203.  And have the action on this task send an email (attaching any generated log files, if needed).
    Hopefully helpful (took me 3 days to figure all this out...gar)
    ===================================== End ===================================
         Running A Dot Bat File in Windows Server 2008 Vista 7 etc and beyond V01
    ============================================================================
     

  • Scheduled task powershell script cant write file

    Hello experts
    I have scheduled task with powershell but cant write CSV file. Below my PS script:
    $ExemptGroup = Get-ADGroup app_users
    Get-ADUser -Filter { -not (memberOf -RecursiveMatch $ExemptGroup.DistinguishedName) } -Properties * |
     Select-Object -Property DisplayName,SamAccountName,WhenCreated,@{Name='Last Logon';Expression={[System.DateTime]::FromFileTime($_.LastLogon).ToString('g')}},LogonCount,@{N='Status';E={
    If ( $_.useraccountControl -match '^(?:514|546|66050|66082)$' ) { 'Disabled' } Else { 'Enabled' } }} |
     Sort-Object -Property DisplayName | Export-Csv C:\Users\22041912\Documents\User_statis_list.csv
    In Powershell my script working normally and writing CSV file but in scheduled task cant write CSV file. Task history told me succesfully finished.
    Anyone suggest? What wrong?

    copy this on a batch file and point the task scheduler to the batch file.
    PowerShell.exe -WindowStyle Hidden  -File
    E:\Shell\OdmaaGet-Aduser.ps1 
    check if it works..
    Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    IT Stuff Quick Bytes

  • Create script\schedules task to clear local app temp files every 1 hour (PS last modified 2 hrs) ? WINDOWS 2008 R2

    create script\schedules task to clear local app temp files every 1 hour (PS last modified > 2 hrs) ? WINDOWS 2008 R2
     can i have the steps to this...how to do?

    This forum is for scripting questions, not script requests.
    You can search the
    Repository for pre-written scripts, and you can also request scripts at the
    script request page.
    -- Bill Stewart [Bill_Stewart]

  • Scheduler Tasks in KM

    Hi,
    I created a task by following this blog:
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1515
    It doesn't seem that my job is starting up.  Where do I go to look at a log of an execution?  Do I need to stop and restart the J2EE engine in order for the scheduler jobs to start up?  (I am on NW2004)
    My steps were:
    1. Create portal application project
    2. Create the Respository Framework 7.1.5 Schduler Task wizard
    3. Put my java code in the "run" method - I did execute the same code in a standalone project to be sure it doesn't contain bugs.
    4. Created PAR file and uploaded to portal server
    5. Configured the Scheduler task as shown in the BLOG- I was not sure if I should check off a CM System- I have tried both ways and it doesn't seem to run either way.
    Any help would be appreciated.
    Thanks.

    Hi Dana,
    You can use the standalone log-viewer to view the log files. See the documentation on sap help. http://help.sap.com/saphelp_nw04/helpdata/en/47/209779bbe64a318454b64148a0c76d/frameset.htm
    The best way would be to include some tracing and logging statements in your scheduler code.
    Create a new location in your code
    private static Location logger = Location.getLocation("mylocation");
    and put some trace statements in your code
    logger.intoT("start of method");
    But you will have to create a new location in Log Configurator in the VA and set the severity level to INFO. Then in the default.trc you can filter on your location name to get the relevant traces.
    Akhilesh

  • Deletion of KM scheduler Task

    Hello All,
    I have a a scheduled task in SA>SC>KM>CM>Global services -->Scheduler Task --> <My custom scheduler>.
    Now I want to delete the scheduler .
    I went through the following forum links
    http://forums.sdn.sap.com/thread.jspa?threadID=486614&tstart=7950
    And
    https://forums.sdn.sap.com/thread.jspa?threadID=57900
    When I select my <custom scheduler task> and  click on "delete" . It say "No <No custom scheduler task > available yet in configuration" .
    Where exactly is the scheduler task configuration ?
    Kind inputs please.
    Regards,
    Ronniee.

    Hi Ronniee,
    To remove the scheduler task completly use the ConfigUninstaller component and remove the config file of your project.
    http://<host>:<port>/irj/servlet/prt/portal/prtroot/com.sap.portal.runtime.config.component.ConfigUninstaller
    Thanks
    Prashant

  • Deployed KM Scheduler Task Does Not Appear in Global Services / Scheduler T

    Hi All,
    I've deployed a portal service and a KM scheduler task in the same DC but cannot see the scheduler task listed under System Admin -> System Config -> Knowledge Management -> Content Management -> Global Services -> Scheduler Tasks.
    The service works correctly and performs its periodic processing once on initialisation of the service, and I can see the resulting log statements to make sure it has worked.
    Both the service and the scheduler task are packed inside the same DC, which builds and deploys without any errors.
    There are no errors in the log regarding the deployment of the DC, or the scheduler task.
    There is a log statement about registering the classloader for the DC, which I assume is the statement in the IRFServiceWrapper init() that goes:
    CrtClassLoaderRegistry.addClassLoader(this.getKey(), this.getClass().getClassLoader());
    But I still dont see the task listed in Global Services -> Scheduler Tasks.
    Does anyone know what might be causing this or how to diagnose the problem further?
    Cheers,
    Steve

    Hi Srini,
    No it doesn't it just has the run method which is generated automatically.
    I have created a local Portal Application project, which is not in a DC, and this also does not have a default constructor ether but appears in the Scheduler Tasks list as soon as it is deployed.
    I also tried to create a Portal Applicaiton DC and Portal Applicaiton (Packaged as SDA) DC and despite the scheduler task being the same, both the DC tasks do not appear in the Scheduler Tasks.
    The only one I can get to work is the local Portal Application project. This is no use as we cant store this in DTR (unless someone can explain how to do this???).
    The Portal Application project packages up the RF Framework JARS inside its PAR file, but the DC and SDA projects dont, so I tried including them via an Assembly Public Part to an External Library DC, which does include the JARs in the deployment files but they still dont appear in the Scheduler Tasks.
    Has anyone out there got a working Scheduler Task in a Portal Application DC?
    Cheers,
    Steve

  • KM Scheduler Task not running

    Hello All,
    I have created a scheduler task for the , for the same I have created a PAR file , have successfully Build the project and deployed , Have configured the time in the Global services . But for some reason I could not see the task being running in the "Component Monitor" (when I select the Services-->scheduler >select one of the CM systems (have two currently)>click on on the CM system ) I could not see my custom task .
    As well as When I go to "Service configuration" --> Portal Application , there also I could not see my custome application .
    Initially whenever there use to be any error (for example -- CM systems not assigned etc etc ).
    Is it something I am missing while deployement , Or has it being deployed properly?
    Regards,
    Ronniee

    Hello Detlev,
    Any Inputs on this please.
    I have opened a new thread but a different Query
    http://forums.sdn.sap.com/thread.jspa?threadID=2155357
    Regards,
    Ronniee.

  • KM Scheduler Task is not running...

    Dear All,
    I have created a KM Scheduler Task using the NDWS Wizard. I followed prakash's blog (http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1515). My doubt is where exactly the attributes are created? and can any one guide how to create the attributes in .cc.xml file. And how does public void run( String id, Properties properties ) it works?
    The application was successfully deployed. I am able to see my task under System Administration->System Configuration->Knowledge Management->Configuration->Content Management->Global Services->Scheduler Tasks.  but I think it is not running. Can any one give some clue on this. As i'm not finding any thing uder Kmcontent>Documents.
    Do i need to configure anything to run KM scheduler Task?
    Thanks and Regards,
    JAGAN.
    Edited by: Jagan456533 on Jan 19, 2011 11:10 AM

    Hi Jagan,
    The status "0" for your task in "Component Monitor" is fine.
    Navigate to System Administration> System Configuration>Service Configuration. You can see here Applications and Portal runtime.
    Open Applications--> and you Task. Right click on your task folder and say Administrate. Here you check whether your task has been stopped, running. Make sure its running. ( Try refresh, if its already running ).
    In you task folder, you will see "Service Folder"  under this, you will see "RFServiceWrapper", right click on it and say configure, make sure the values are like shown below:
    Name : http://sapportals.com/xmlns/cm/sch
    Value: Value1
    Also make sure in your portalapp.xml, the values are same:
    RFServiceWrapper
    service-config
    className= com.sap.netweaver.rf.wrapper.RFServiceWrapper
    startup= true
    service-profile
    Name= = http://sapportals.com/xmlns/sch
    Prof= Value1
    You see tha the same name is used "Value1" in RFServiceWrapper both in portalapp.xml and in Service Configuration.
    You can use any other name but the it should be same in both the places.
    Make all these changes, and then restart your task in Service configuration again. Any changes in portalappl.xml, restart is necessary.
    Kind Regards,
    Poornima

  • KM Scheduler Tasks Missing!!

    We have been experiencing KM Scheduler Tasks issues. The installed custom KM Schedulers disappear for some days and shows up again. There are four schedulers currently missing which we have installed with the last transport. We were able to see those schedulers after the transport migration. We have experienced the same issue last month and then the scheduler tasks started acting normal after multiple server restarts. However this time the server has been restarted four times since last one week but we still couldn't get to the missing four scheduler tasks.
    We have checked the deployment log and the transport installed successfully
    SAP NetWeaver 7.0 SP14
    Please Help!!

    Hi Dana,
    You can use the standalone log-viewer to view the log files. See the documentation on sap help. http://help.sap.com/saphelp_nw04/helpdata/en/47/209779bbe64a318454b64148a0c76d/frameset.htm
    The best way would be to include some tracing and logging statements in your scheduler code.
    Create a new location in your code
    private static Location logger = Location.getLocation("mylocation");
    and put some trace statements in your code
    logger.intoT("start of method");
    But you will have to create a new location in Log Configurator in the VA and set the severity level to INFO. Then in the default.trc you can filter on your location name to get the relevant traces.
    Akhilesh

  • KM Scheduler task not listed

    Hello Experts.
    I've made a simple custom KM Scheduler task, but am unable to see it under System Configuration -> cm -> global services -> Scheduler Tasks. I've trawled the forum for leads, read blogs but have been unable to resolve what should be a straightfoward issue.
    I've used NWDS Wizard to create the project. Renamed the wrapper interface and class to avoid a conflict. Updated portalapp.xml to reflect this. Restarted portal twice, no luck.
    Here's my portalapp.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <application>
         <application-config>
              <property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal"/>
         </application-config>
           <components/>
           <services>
                <service name="ArchiverService">
                     <service-config>
                          <property name="className" value="com.sap.netweaver.rf.wrapper.RFServiceWrapperArchiver"/>
                          <property name="startup" value="true"/>
                     </service-config>
                </service>
           </services>
    </application>
    RFServiceWrapperArchiver is the name of the wrapper class. In it, I set a key, expert.no.services.Archiver which corresponds to the class I have that implements ISchedulerTask. Nothing fancy in this class.
    package expert.no.services;
    import java.util.Properties;
    import com.sap.netweaver.rf.wrapper.IRFServiceWrapperArchiver;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    import com.sapportals.portal.prt.service.IServiceProfile;
    import com.sapportals.wcm.service.scheduler.ISchedulerTask;
    public class Archiver implements ISchedulerTask {
         private String  Channel_Root = "";
         private com.sapportals.portal.prt.logger.ILogger logger = com.sapportals.portal.prt.runtime.PortalRuntime.getLogger();
         //public Archiver(){}
         public Archiver() {
         super();
         public void run(String id, Properties properties) {
              // implement the tasks to be scheduled
              logger.severe("expert.no.services.Archiver","Archiver has been started");
         private void getServiceProperties() {
              IServiceProfile serviceProfile = PortalRuntime.getRuntimeResources().getService(IRFServiceWrapperArchiver.KEY).getContext().getServiceProfile();
              Channel_Root = serviceProfile.getProperty("Channel_Root");
              logger.severe("expert.no.services.Archiver","Channel root is: "+Channel_Root);
              //serviceProfile.setProperty(key, value);
              //serviceProfile.store();
    I have checked for the presence of the co.xml and cc.xml and everything is fine there as well
    Edited by: Claus Lisberg on Aug 12, 2009 9:31 AM

    Problem solved. For some reason the configarchive.properties file was not added to the NWDI project. Did an Export and this prompted me to add it.
    I now get an message that this has an invalid name, but at least I have something to work with.

  • KM Scheduler Task in a Portal Dc

    Hi Experts,
    Is it possible to use KM Scheduler task in a Portal Development Component .Please detail me how to deploy the .sda and schedule it.
    I am trying with a Portal Project and uploading the par file from NWDS,its working fine but with DC ,when I am deploying the .sda,I can't locate the task in global services -> scheduler tasks
    Please help...

    Hi,
      Could you please check [this thread|https://forums.sdn.sap.com/message.jspa?messageID=7691849].
      Also go with this [Help Doc|http://help.sap.com/saphelp_nw04/helpdata/en/dd/65530e74fac342adf2f2a193188c2a/frameset.htm].
    Regards,
    S.Manu.

Maybe you are looking for