Questions about Scheduler

What I'm trying to do is to create and execute a External Job under a custom schema, CSSM.
I also asked my DBA to grant system privileges "Create External Jobs" and "Create Job" to CSSM so I can create and exec Job under CSSM.
dbms_scheduler.create_job (
  job_name =>'CSSM.LIST_FILES',
  job_type =>'EXECUTABLE',
  job_action =>'ls /disk2/app/applmgr/appltop/cssm/11.5.0/ftp/*',
  enabled => TRUE
  );The above code was executed with NO ERROR and the following statement is executed for a test drive.
begin
  dbms_scheduler.run_job('CSSM.LIST_FILES');
end;I get error message "ORA-27475: "CSSM.LIST_FILES" must be a job".
and no result from the following query.
SELECT owner, job_name, enabled FROM all_scheduler_jobs;What did I do wrong? and What am I missing here?
I'm using 11.1.0.7.
Thanks.

The following works for me with 11.2.0.1 on Oracle Entreprise Linux 5.2:
[oracle@lx01 ~]$ cat /tmp/lsjob.ksh
#!/bin/ksh
ls -al /tmp/?.ksh > /tmp/lsjob.log 2>&1
[oracle@lx01 ~]$ ls -al /tmp/lsjob.ksh
-rwxr-xr-x 1 oracle oinstall 51 May 15 09:15 /tmp/lsjob.ksh
[oracle@lx01 ~]$ sqlplus / as sysdba  @tj
SQL*Plus: Release 11.2.0.1.0 Production on Sat May 15 09:17:51 2010
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> drop user u cascade;
User dropped.
SQL> whenever sqlerror exit failure;
SQL> create user u identified by u;
User created.
SQL> grant create session, create job, create external job to u;
Grant succeeded.
SQL> connect u/u
Connected.
SQL> begin
  2  dbms_scheduler.create_job (
  3    job_name =>'U.LIST_FILES',
  4    job_type =>'EXECUTABLE',
  5    job_action =>'/tmp/lsjob.ksh',
  6    enabled => TRUE
  7    );
  8  end;
  9  /
PL/SQL procedure successfully completed.
SQL> show errors
No errors.
SQL> begin
  2    dbms_scheduler.run_job('U.LIST_FILES');
  3  end;
  4  /
PL/SQL procedure successfully completed.
SQL> show errors
No errors.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@lx01 ~]$Make sure :
1. to run dbms_scheduler.run_job as job owner (CSSM) or with SYSDBA privs.
2. to call a script instead of a Unix command
3. to redirect output in executed script
See also Guide to External Jobs on 10g with dbms_scheduler e.g. scripts,batch files Guide to External Jobs on 10g with dbms_scheduler e.g. scripts,batch files

Similar Messages

  • Question about Scheduled Task

    Question about Scheduled Task
    RequestCenter 2008.3
    Oracle 10g
    Websphere 6.1.27
    IE 7
    Hi:
    I have tried to get a scheduled task to work without any luck.  I am referencing a date/time field on the form and the task goes to "Scheduled", but never moves to "Ongoing".
    I've opened a case with support, but was wondering if anyone has gotten this to work.
    Thank you
    Daniel
    Safeway Inc.

    We just went through this too. If the plan is fairly complex, and has allot of conditional tasks you will have difficulty.
    The explanation I got from Shweta is that the calculation that determines the OLAs before my scheduled task was to start looks at ALL the potential tasks and combines them, essentially saying the duration is much longer than what you think it should be, ie the sum of all potential task OLAs, not just the tasks that became active.
    Bottom line if your scheduled date is with

  • General question about scheduler capabilities

    Hello
    Is it possible with the scheduler to define an event to be fired if a particular job doesn't complete within a specified amount of time?
    David

    Hi David,
    The order of execution for each stored procedure is
    critical.
    Can I use job chains for this?Job chains can certainly be used to specify ordering of several tasks. However, every step in a job chain is in its own session and executed asynchronously. However, I believe you can achieve the same effect by starting several tasks in parallel for asynchronous execution, and in series for synchronous execution. A job chain uses decision-based branching and parallel execution instead of asynchronous vs synchronous.
    Can I specify that each job within a chain fires
    events when it starts, finishes, results in an error
    or overruns?Yes, basically you would set the raise_events attribute for the master job. The events raised would include the job name and the step name (each unit in a chain is called a step).
    Can I specify that a whole job chain is to be run
    asynchronously but in a single session?A chain is always run in the background so it never really runs synchronously (but if you mean to run all of the tasks in parallel, that is certainly possible). Steps in a chain always run in different sessions, there is no way to run an entire chain in a single session.
    Can I specify that one job chain is dependant on
    another, and if the first fails, the second won't
    run?A job chain consists of steps. A step can be a program or another chain. So to do this you would have a top-level parent chain, which has two steps , each of which is a subchain. You would setup the master chain rules to say to run the second step (subchain) only on success of the first step (subchain). There would have to be another rule that if the first subchain fails, the parent chain also fails with the same error code.
    Sorry for the barrage of questions, I've been looking
    through the docs and I can see that it is very
    powerful but I've found many of the examples a little
    overwhelming.No problem, if you have any further questions or want any examples, let me know.
    There should be a few chain examples in the Using the Scheduler chapter of the Admin guide
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14231/scheduse.htm
    Hope this helps,
    Ravi.

  • Question about Scheduling WOL

    I have been testing the WOL stuff in Zenworks. I am trying to confirm something. When configuring the schedule for the wake on lan service object, is this just for when this object will check for any policies for waking up the machines. I have found that the only way that I can get the machines to wake up with the shedule is to set the schedule in the policy then stop and restart the WOL service on the Netware server. (I have only been testing this for one afternoon) If I change the WOL policy schedule to wake up the machines, will these changes be automatically recognized without unloading and reloading the WOL service on the workstations.
    Thanks in advance for any information or direction.
    Brian

    On Fri, 22 Oct 2004 11:28:38 GMT, Brian wrote:
    > I am trying to confirm something. When configuring the schedule for the wake on lan service object, is this just for when this object will check for any policies for waking up the machines.
    yes..
    the wake up itself is configured in the server package ADD wol policy
    Marcus Breiden
    Please change -- to - to mail me.
    The content of this mail is my private and personal opinion.
    http://www.edu-magic.net

  • I have a question about Schedule Ship Date

    Q1:How is this date calculated?
    In some cases, when I booked the order, Schedule ship date is defaulted to 23:59:00 of that day.But in another case there are several days between the request date and schedule ship date.
    Q2:So now we work out the schedule ship date, where can we use it? In another word, what's it usage?
    Can anyone help me?

    Sheduled Ship Date :
    In business terms : This is basically for shippable item's lead time defined in the system. ie. transit time from invoiing unit to customer location with a particular shiiping method.
    if this is not defined that meand lead time = 0 so sheduled shipment dat will be system date by default.
    this is used to auto compute the available planning dates in planning so that producton priortiy can be defined to arrive at sheduled date.
    i hope this information will help you in your understanding for same.
    regards, ravi Malhotra

  • Questions about your new HP Products? HP Expert Day: January 14th, 2015

    Thank you for coming to Expert Day! The event has now concluded.
    To find out about future events, please visit this page.
    On behalf of the Experts, I would like to thank you for coming to the Forum to connect with us.  We hope you will return to the boards to share your experiences, both good and bad.
     We will be holding more of these Expert Days on different topics in the months to come.  We hope to see you then!
     If you still have questions to ask, feel free to post them on the Forum – we always have experts online to help you out.
    So, what is HP Expert Day?
    Expert Day is an online event when HP employees join our Support Forums to answer questions about your HP products. And it’s FREE.
    Ok, how do I get started?
    It’s easy. Come out to the HP Support Forums, post your question, and wait for a response! We’ll have experts online covering our Notebook boards, Desktop boards, Tablet boards, and Printer and all-in-one boards.
    We’ll also be covering the commercial products on the HP Enterprise Business Community. We’ll have experts online covering select boards on the Printing and Digital Imaging and Desktops and Workstations categories.
    What if I need more information?
    For more information and a complete schedule of previous events, check out this post on the forums.
    Is Expert Day an English-only event?
    No. This time we’ll have experts and volunteers online across the globe, answering questions on the English, Simplified Chinese, and Korean forums. Here’s the information:
    Enterprise Business Forum: January 14th 7:00am to 12:00pm and 6:00pm to 11:00pm Pacific Time
    Korean Forum: January 15th 10am to 6pm Korea Time
    Simplified Chinese Forum: January 15th 10am to 6pm China Time
    Looking forward to seeing you on January 14th!
    I am an HP employee.

    My HP, purchased in June 2012, died on Saturday.  I was working in recently installed Photoshop, walked away from my computer to answer the phone and when I came back the screen was blank.  When I turned it on, I got a Windows Error Recovery message.  The computer was locked and wouldn't let me move the arrow keys up or down and hitting f8 didn't do anything. 
    I'm not happy with HP.  Any suggestions?

  • Question about Rescheduling Start Date of a Task

    Question about Rescheduling Start Date of a Task
    I'm trying to determine whether the 'Reschedule' action is appropriate to my situation...
    I have a service that consists of 4 tasks.  The first 3 tasks will be completed immediately and then the request's 4th task will sit in a queue for about a month so that all of these requests can be grouped together and fulfilled during a few overnight work sessions.
    While the 4th task is waiting to be fulfilled, the technician will be contacting the requestor to schedule the work to be done sometime during a 3 day window.  The technician needs to specify which of the 3 days each request will be worked on.  I'm not sure if I should store the date in a service form field or have the technician reschedule the task so that the start date of the task is set to one of the 3 days.  If I use the reschedule feature, are there any downsides?
    The advantage of using the reschedule feature is that the scheduled start date can be displayed in ServiceManager's task list and can therefore be sorted on and queried.  This wouldn't be possible if I stored the date in a dictionary field on the service form.  In that case, I'd have to use custom reports to group the tasks by start date.
    Please let me know your thoughts...
    Thanks,
    Scott

    This strikes me as a very good use of this feature, since your need to to have the date for this task rescheduled/reflected in ServiceManager. This is the specific effect of using this feature.
    For the benefit of others reading this post, remember: this rescheduled date will not change the due date for the service.

  • A question about Job schdueling in cluster

    hi all
    I have a weblogic cluster and want to use the build-in commonj support to do some scheduling work.the pdf version document "Timer and Work Manager API (CommonJ) Programmer's Guide" has something like this on page 7,"The Timer Listener class must be pesent in the server system classpath" .does it mean that I should not put it in web-inf/classes?instead, I should jar it and put the jar somewhere inside wls_home/server/lib or ext ?
    thanks a lot :-]

    hi mchellap
    here is another question about timers in the cluster,
    1) I implemented a serializable timerlistener which I want to make it cluster aware
    2) put the JNDI items "timer/MyTimer" in web.xml which is to commonj.timers.TimerManager
    3) I created a datasource on cluster in console with the tables created in db
    after the cluster is started,the job is to print out the "new Date()" in console every 40 second,and it worked very well
    I am expecting something in the db table,but there is nothing,not even a exception ,anything wrong here?
    thanks a lot

  • Question about swapping SIM cards on a Z10

    Hi, everyone, I am a non-Blackberry user who works in IT support.  One of my clients uses a Blackberry and has often asked me very complicated questions about how to do various unusual things with his device.  At the present time, he is considering switching to a Z10, which would be set up using ActiveSync.  He wants to know if he could swap the SIM card without having to go through the setup process again.   My client travels a lot, and wants to use a local SIM card on an upcoming trip to a very remote area.  
    I've not been able to find an answer to this anywhere. 
    This is his exact question: "I just got it from a friend (ATT version) and I am trying to see if I like it enough to switch to it as my primary phone.  Blackberry z10 asks you to sign in with your blackberry world ID when you first set up the phone.  Question: Would you have to do it again if you put a different simm into it?  With iPhone, it makes no difference so long as the device is unlocked—you can then exchange simm cards as often as you want.  Would it be the same with an unlocked blackberry z10 (I know it's not possible with the bold 9900 as System 7 ties your ID to the simm card).  In short, in blackberry z10, could you exchange the US simm for another country's simm without having to wipe the phone,  etc.  "
    If anyone can shed some light on this for me, I'd be very grateful.,  Thanks!

    Hi and Welcome to the Community!
    The key issues are thus:
    Ensuring that the device is truly carrier unlocked
    Ensuring that the specific device model is compatible with the radio frequencies/technologies that the desired carrier uses. There are 4 different Z10 models:
    http://www.bbin.in/en/2013/03/03/4-types-blackberry-z10-models-fits-better/?utm_campaign=4-types-of-...
    If both of those are OK (separate research of the desired carriers would of course be necessary), then it is indeed a simple matter to change carriers. For example, I changed from ATT to TMO by simply changing the SIM...no need to WIPE or anything, and my same BBID came along just fine. You should, however, always obtain a properly-sized SIM card from the carrier -- there are plenty of reports of folks trying to use "cut" SIM cards and experiencing errors.
    With BB10, it's actually simpler than with legacy BBs. Legacy BBs used the BIS service, which required receipt onto the device (from the carrier data network) of Service Books so as to activate the various services that the user subscribed to. When changing carriers, it often could be that a latent Service Book from the prior carrier causes issues when shifting to a different carrier...and that's where WIPING and such came into play, so as to cleanse the device so that the new carrier could deliver all of the proper Service Books to the device. With BB10, there is no BIS, and there are no Service Books...so all of that complication is eliminated.
    But, as always, YMMV.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Questions about OLE containers

    Hello,
    I try to use an OLE container for save any type of documents, the majority are Microsoft Word (*.doc), Acrobat Reader (*.pdf) and images (*.jpeg, *.jpg, *.bmp, ...)
    I prove to insert a document an save it in the database and all works fine. The document is saved in a BLOB column, and if I try to activate the OLE container I view the document correctly, but I have questions about OLE container:
    1.- Once I saved the document into the database (the icon of the document is shown into the OLE container), if I query the database to retrieve the documents, the OLE container not shown the icon of the document, and if I try to activate the OLE container, making double-click, it doesn't make anything.
    I think that the query to the database don't retrieve correctly the documents into the OLE container.
    2.- Once I saved the document into the database (the icon of the document is shown into the OLE container), if I try to activate the OLE container, depend the document I need to do twice double-click to open the document.
    If I try to open a Word document (*.doc) it need one double-click to activate, but if I try to open an Acrobat document (*.pdf) it need twice double-click to activate.
    Why? How can I open any type of documents with one double-click?
    3.- The form that I develop will work in client-server and in web mode.
    The problem is that if I try to run the form into web mode with OLE container, I have an error:
    "FRM-92100: Se ha interrumpido la conexión con el Servidor. Puede ser el resultado de un error de red o fallo en el Servidor. Debe reestablecer la conexión", and if I click in Details I have "Java Exception: java.lang.ArrayIndexOutOfBoundsException ...".
    If I delete the OLE item, it works fine, and I don't have any errors.
    I know that OLE container doesn't works in web mode, because this I will develop this functionality with JavaBean, but I would like that in client-server mode works with OLE container.
    There are any way to do this, that in web mode doesn't has this error, and in client-server mode works with OLE container?
    Thank you very much
    Jordi

    2. If you use Time Machine you can't browse those pictures on the Movable DIsk. It's not designed to work like that.
    3. Don't use copy and paste, try drag and drop instead.
    You don't tell us how you are managing these photos. I suggest that you use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the everything. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store

  • Newbie question - general question about e-mail sync

    Hi,
    I have a general question about email sync and BlackBerry smartphones.  Are there any devices that allow email syncing with a Microsoft Exchange 2007 system that do not require the BlackBerry Enterprise server?
    Thanks; sorry if this has been asked before but I was unable to find it in the forums, documentation, etc.  Everything I found assumes that for this kind of environment you will be using a BlackBerry Enterprise solution, but I can't assume.
    Thanks again.
    Solved!
    Go to Solution.

    Hi and Welcome to the Forums!
    If the Exchange server has anything that faces the internet (OWA, POP, IMAP), then BIS can be used to handle email (only email...calendar and contacts require BES to sync OTA).
    Or, a PC, inside the network (but with an internet path) and logged into the email server (using Outlook), can be left running, using the RIM Desktop Software's Desktop Redirector capability to forward  messages to the BB.
    Those are basically the options.
    Hope that helps! Let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HT5463 Questions about the "Do Not Disturb" feature not addressed in documentation

    Hello,
    I have some questions about the "Do Not Disturb" feature which are not quite addressed by the documentation.
    When DND is enabled, will badge app icons still be displayed?
    When DND is turned off, either manually or automatically, will Notification Center banners be available for alerts which occurred while DND was on, or are they lost forever? 
    I guess the main questions is, is DND like an answering machine, which stores up your notifications until you are ready to deal with them?  Or is it a return of the "turn off all notifications" feature that existed in iOS 4, albeit in a more evolved form?
    Thanks,
    - Steve

    If you have a schedule set, but activate it manually, it will de-activate at the scheduled time anyway. It behaves perfectly on my 4S, my wife's 4, and both of our iPads.
    If you have an iPhone 5, it could be tied to the known issue with automatic time set going Wonky on LTE networks. If that's the case, try disabling the automatic time set and see if it behaves itself.

  • SUP - 2 questions about the CDB (cache database)

    Hi,
    I have 2 questions about the cache database and the cache groups:
    1 - How does the "On demand" cache group policy exactly works? I know that online cache group is without storing any data on the CDB making direct requests to de backend from the device, the DCN is based on updating from the backend, the scheduled is based on a time period, but I don't understand how the "on demand" exactly works, and why it has a time period too.
    2 - Is it possible to query the cache database table to check the data that SUP has stored? How can I do this?
    Thank you!

    I posted a similar question in SUP Apps project not too long ago and  Paul Horan provided this useful reply:
    Create a "Sybase ASA v12.x for Unwired Server" connection profile in the Enterprise Explorer.  I named mine CDB.
    : Host = localhost (or whatever the machine name is)
    : Port = 5200
    : Database name = "default"
    : User Name = "dba"
    : Password = "sql"
    Obviously, change the userid/password to match, if you changed them during install time.
    Connect, and you'll see the "default" database displayed.
    Navigate down through the Tables folder, and the first subfolder is labeled something like [#should_delete_sk ...]  Start there.
    You'll see a bunch of tables with the naming convention "D1" + package name + package version + MBO name.  These are the cache tables for the MBOs.

  • A question about backup

    hello chris:
    I have a question about backup, last time I had done a incremental backup, after a long time, i found the system record the log LSN, and the log can't remove.
    Command> CALL ttLogHolds();
    < 306, 12446304, Backup , /timesten/TimesTen/backup/data >
    < 1082, 7749304, Checkpoint , data.ds0 >
    < 1082, 21337776, Checkpoint , data.ds1 >
    < 1082, 22546632, Replication , DATA >
    how to resolve this problem?? Can TimesTen not record the backup lsn??
    thank you

    Hi,
    In TimesTen, incremental backup is driven off the transaction log files, just like replication and XLA, So, once you have initialised an incremental backup set, logs must be retained until they have been copied away to the incremental backup set. So, to ensure that logs can be purged you need to run an incremental backup frequently, either manually or by scheduling using something like cron. If you do not run an incremental backup then logs will be 'held' and cannot be purged by checkpointing (which is what you are seeing).
    If you no longer require the incremental backup set then you can disable the incremental backup tracking using ttBackup -type incrementalStop and then logs can be purged normally.
    Chris

  • Have questions about your Creative Cloud or Subscription Membership?

    You can find answers to several questions regarding membership to our subscription services.  Please see Membership troubleshooting | Creative Cloud - http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html for additional information.  You can find information on such topics as:
    I need help completeing my new purchase or upgrade.
    I want to change the credit card on my account.
    I have a question about my membership price or statement charges.
    I want to change my membership: upgrade, renew, or restart.
    I want to cancel my membership.
    How do I access my account information or change update notifications?

    Branching to new discussion.
    Christym16625842 you are welcome to utilize the process listed in Creative Cloud Help | Install, update, or uninstall apps to install and evaluate the applications included with a Creative Cloud Membership.  The software is fully supported on recent Mac computers.  You can find the system requirements for the Creative Cloud at System requirements | Creative Cloud.

Maybe you are looking for

  • Video Component not working in CQ5 5.5

    Hi All , I have done the installation of the ffmpeg for trans-coding video,changed the environment variable . i have also test the video in the First profile "Firefox HQ ogg" it is successfully transcoding and running successfully in FF through http:

  • Microfon not recognized at E540

    Hello There is a combined audio out/microfon jack (headset out) at the Edge540. I have a seperate microfon and seperate speaker. I bought a adapter to split the combined jack to a speacker and a microfon jack. While the speakers are recognized and wo

  • Create Multiple dynamic Node in Web Dynpro Abap

    Hi Friends,       I need your help.My object is to create Multiple dynamic dropdown UI element.I am able to create this dynamic Dropdown element. But i need to assign default different values to this dropdown elements.So i created dynamic nodes for e

  • Resize question...

    Ok... I have been using java for a few months self taught... I have a Swing project that I have done that works completely. What I want to implement now is a resize code for it that basicly reads the screensize resizes the frame to it then resizes al

  • Multiple imaging storage server

    Hello We have 2 Netware server. The first with Netware 6.5 SP7 and ZEN 6.5 (Imaging, PXE, .....). In this server, we have all of ours zmg files. The second with Netware 6.5 SP7. We want to put some images on the second server, and can use them when w