Using dbms_job but it can't start automatically

I want to use dbms_job for job scheduling in Oracle 8i but got some serious problem.
[Question 1]
If I execute dbms_job like following, I've error :
[Execute]
dbms_job.submit(jobno,
'my_proc',
sysdate,
'sysdate + 1/86400');
[Error]
declare
ERROR at line 1:
ORA-06550: line 1, column 149:
PLS-00103: Encountered the symbol "END" when expecting one of the following:
:= . ( % ;
The symbol ";" was substituted for "END" to continue.
ORA-06512: at "SYS.DBMS_JOB", line 72
ORA-06512: at "SYS.DBMS_JOB", line 140
ORA-06512: at line 18
If I execute dbms_job like following, I've n o error message.
[Execute]
----------------------------------dbms_job.submit(jobno,
'my_proc',
sysdate,
'sysdate + 1/86400',
true,
123,
true);
How come it is required to input such default parameter.
[Question 2]
Even I can submit the job successfully, it can't run automatically.
If I try to force it to run by executing dbms_job.run(jobno, true), I've the following error :
[Error]
ERROR at line 1:
ORA-12011: execution of 1 jobs failed
ORA-06512: at "SYS.DBMS_IJOB", line 394
ORA-06512: at line 1
My config for my server is like this :
job_queue_processes = 2
job_queue_interval = 1
By checking the value from user_jobs, I found that next_date, next_sec are not refreshed and with broken = 'N' and failures = 0.
Sometimes if I restart the server or compile the what "my_proc", the job run automatically.
Can anyone help me to solve it ?
Rgds,
Edward
null

I've found syntax error in your code.
You forgot to put ';' after the call(my_proc) to the procedure. It should look like as mentioned
below.
dbms_job.submit(jobno,
'my_proc;',
sysdate,
'sysdate + 1/86400');
It should work now.
null

Similar Messages

  • I am using iphone4 but sometime before it started loosing signal it automatically start searching signal., I am using iphone4 but sometime before it started loosing signal it automatically start searching signal.

    I am using iphone4 but sometime before it started loosing signal it automatically start searching signal, and give no service in 2G mode whereas under 3G mode it recognise signals for some time and sometime it start searching. where other mobiles work properly under both 2G and 3G mode.

    timing VI
    Attachments:
    Time_with_Counters.vi ‏112 KB

  • The kde can't start automatically

    I had been using GNOME and initscripts.
    and transit to systemd and KDE recently.
    after "systemctl enable kde.service" and reoot, I got the console shell, but not kde, of cause, I can login with console, and "systemctl start kde" to start KDE,
    but why the KDE can't start automatically?
    I have checked the log, but got nothing.

    you should have got an error somewhere when enabling "kde.service," because that service doesn't exist. KDE's login manager is kdm. you should do
    systemctl enable kdm.service
    instead. to start the service immediately, type (after the above):
    systemctl start kdm.service
    and you should get KDE's login manager.

  • I want to play video on my computer to make some analysis to frames,the problem that I face ,I can't change video frame rate using labview,but I can change frame rate to the video out of labview using some program

    HI All
    I want to play video on my computer to make some analysis to it's frames,the problem that I face ,I can't change video frame rate using labview,but I can change frame rate to the video out of labview using some program .
    I used IMAQ AVI Read Frame VI
    for example I have avi video It's frame rate is 25 fbs ,my image processing code is very fast that can process more 25 fbs,so I want to accelerate video acquisition

    Hi abdelhady,
    I looked into this further, and reading an AVI file into LabVIEW faster than its frames per second won't be possible. LabVIEW could read in frames faster than 25fps, but because it will be pulling the available frame at that point in time this would just give you duplicate frames. If you want to be able to read in frames at faster than 25fps, you would need to speed up your AVI file before reading into LabVIEW.
    There's a good shipping example to show how to read in from an AVI file, "Read AVI File.vi". You'll notice that they add timing to make sure that the while loop runs at the right speed to match up with the frames per second of the file being read. This is to make sure you're not reading duplicate frames.
    Thank you,
    Emily C
    Applications Engineer
    National Instruments

  • HT1152 All this help info tells me to use idvd, but I can't get it to open.  I asked the applecare guy and he says the new macs don't include idvd any more, so why do all the menu and help items say to use it?  I know there's other dvd burner software, wh

    I want to burn my imovie to a dvd.  All the help info says to use idvd but I can't get it to open.  The applecare guy said idvd is no longer included in new macs, so why are all the instructions still saying to use it?  Is one of the other software offerings, like dvd Cfreator for Mac, ok to use for this?  What's the best one?

    Please clarify what you mean by "you can't get it to open". Is iDVD on your system or not? If this is a new iMac, iDVD is no longer bundled with new Macs, so the application just isn't there and hence of course can't be opened. You can still purchase it as part of the retail iLife '11 box, though, if you want it, and it would be less expensive than DVD Creator (which I have no experience with), even though you'll get some redundant applications.
    Regards.

  • HT2101 I can't find the keyboard by using iMessage, but I can by using email or whatsapp? How I reset the keyboard on iMessage?

    I can't find the keyboard by using iMessage, but I can by using email or whatsapp? How I reset the keyboard on iMessage?

    Did you tap in the box at the bottom of iMessage?
    If you did and no keyboard is showing: Do a reset
    Reset: Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Note: You will not lose any data
    If that didn't helped, double tap Home button, delete the Message app and reset again.

  • IOS 8 - using Siri but she can't find contacts that I clearly have in my address book. Why? I can find them manually.

    IOS 8 - using Siri but she can't find contacts that I clearly have in my address book. Why? I can find them manually.

    I have this issue also.  I ask Siri to call a contact, it repeats and spells the contact exactly as it is in my contacts, then says it cannot find it.  This happens for multiple contacts...

  • HT1657 I can't see the movie I rented, it doesent start. I have the rented , or "hyresobjekt" in my case, but I can't start the movie. What to do?

    Iv'e tried to rent a movie, but it dosen't start. I can select and press play but theres where the fun stops, the movie dosent start. I cant figure out the problem. Please help!
    /Sissow

    Welcome to the Apple Community.
    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.

  • I can't seem to copy & paste while I am using Firefox; but I can with Internet Explorer. What am I doing wrong? I guess I just don't understand how to do it.

    I am working in Ancestry.com. If I am in Internet Explorer, I can copy a picture & then paste it in my pictures, on my computer. If I am using Firefox, I don't understand which things to do to copy & then paste a picture, like I can in Internet Explorer. I prefer to use Firefox, but need to be able to use this copy & paste feature, often. I just downloaded Firefox, & started using it, again, yesterday. I just got a new computer in June.

    When you run out of keyboard short cuts, enter the addtional names in the name field in the keyword editor. That will start a new Keyword Collection. You can apply the addtional keywords to multiple cllips on the event browser. Or you can drag the clips into the Collection in the Event Library.
    Russ

  • I can't see the other person when using facetime but they can see me just fine, how can i fix this?

    When I use facetime with my fiance on my brand new macbook air she can see me but I can't see her. Please help me remedy this problem, I have verified that I am logged into facetime and connected it with both my ipone5 and my email but haven't seen any changes.  It is a 1 week old macbook air and I'm assuming it has the latest iOS installed but don't know how to check as this is my first Macbook.  Thank you for your help

    Frogmanian wrote:
    It is a 1 week old macbook air and I'm assuming it has the latest iOS installed but don't know how to check as this is my first Macbook.
    MacBook Air does not run iOS.  It runs OS X (pronounced as in OS - ten).  You can check which version you have by clicking the Apple logo in the upper left of the menu bar, then "About This Mac".  The current version is OS X 10.8.4.  If you do not have that version, you can click "Software Update" just below the "About This Mac" entry under the Apple logo.
    Anyway, typically, the reason for the FaceTime behavior you're describing is a less-than-robust internet WiFi connection.

  • I know Apple will buy back a used iPad but I can't find the site.

    when I bought my new iPad, the salesman showed me a site on the Apple website where I could find out how much Apple would give me (in credit, I think), but I can't find it again.  Anyone know?

    Your only option is to sell the iPad and buy a new one.
    Apple Reuse and Recycle Program
    http://store.apple.com/us/browse/reuse_and_recycle
    How to Sell Your Old iPad  http://tinyurl.com/85d69lk
    Other sources to sell.
    eBay Instant Sell http://instantsale.ebay.com/?search=ipad
    Sell and Recycle Used Electronics - Gazelle http://www.gazelle.com/
    For instant gratification in selling a used iPhone or iPad, Gazelle’s Gadget Trader, an iOS app, is tough to beat. In seconds it detects the device and reveals how much it is worth in good condition. Tap the Sell This Phone to Gazelle button and the deed is done.
    Sell Electronics for Cash - Next Worth  http://www.nextworth.com/
    Buy My Tronics  http://www.buymytronics.com/
    Sell Your iPad http://www.sellyourmac.com/mac-product-guides/ipad.html
    Totem http://www.hellototem.com/
    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT5661
     Cheers, Tom

  • I have a new iPhone. I want to transfer Notes from an iPod Touch 3 to my iPhone using iCloud but I can't get anywhere. Help.

    I have a new iPhone and I want to transfer my Notes from an iPod Touch 3. I've tried using iCloud but can't get anywhere. Help.

    Since you have purchased a new Mac (which, BTW, is not typed in all capitals) why not buy a Time Capsule <http://www.apple.com/airport-time-capsule/> which is designed specifically to work with OS X and Time Machine?
    You don't say what part of your Sony "crashed." If it was not the HDD it is possible to take the computer apart, put the HDD in an external case, then recover the data off of it (including the music) simply drag-n-drop. If it was the HDD that "crashed" that makes it more difficult.
    If you are able to recover the music from the Sony you can then add it to the iTunes library on the Mac and iTunes Match will then scan, match and upload the tracks to be mirrored in the cloud.

  • I can sign into and use iTunes but I can't sign into icloud.

    I can sign into and use iTunes with no trouble but I can't sign into icloud. It makes me think I must have a different password. I go to the reset password area and choose via email but the email never comes. It's not in junk. I don't know what to do

    Hi Adam ...
    Make sure you have logged out of the iTunes Store then try logging in to the App Store.
    And try deleting the cache associated with the App Store.
    Quit the App Store if it's open.
    Go to ~/Library/Caches/com.apple.appstore/Cache.db
    Move the Cache.db file from the com.apple.appstore folder to the Trash.
    Relaunch the App Store. Click Account right side of the App Store window and see if you can login.

  • Procedure successful when using dbms_job, but fails in a shell script

    I have a procedure which is throwing the following error when run from a shell script. This procedure completes successfully when run using dbms_job
    ORA-00164 distributed autonomous transaction disallowed within migratable distributed transaction

    Mohan et al,
    When I get an ORA error that I don't understand I plug it into Google; use the whole error code, ie 'ORA-00164'.
    The second link in this case gives a reasonable explanation of what is happening.
    http://www.dbasupport.com/oracle/ora9i/autonomoustrans.shtml
    Cheers,
    Colin

  • I downloaded the latest iOS7 to my iPad and then the screen went blank and would not respond.   I have tried pressing the two buttons together and briefly get the Apple logo but still can not start up, the logo disappears.   I have tried connecting the iP

    I downloaded the latest iOS7 to my iPad and then the screen went blank and would not respond.   I have tried pressing the two buttons together and briefly get the Apple logo but still can not restart, the logo disappears.   I have tried connecting to my iMac to restore the iPad but the device does not show up (I have an old iMac).   What else can I do?

    You need to be running Snow Leopard 10.6.8 at the very least in order to sync your iPad with iTunes so you could update your Mac, if it can be updated, and if you care to do so.
    If that's not an option, you will have to find someone that can restore the device for you with their computer running iTunes or make an appointment at an Apple Store and ask them to restore the device for you.
    I hope that you have an iCloud backup, because you will lose everything on the device when it is restored.
    Snow Leopard can still be purchased in the U.S. Apple Online Store.
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    Also, I would not give up on the reset technique....holding down on the sleep and home buttons at the same time until the Apple logo appears. It takes about 10-15 seconds and sometimes just a little longer to get the logo to appear.

Maybe you are looking for

  • Regional Settings differences between 2008 and 2012

    Hi There, Can anyone explain why some of the regional setting details have changed with Win 2012? Example: Dutch (Belgium) - nl-BE The 'Digital Grouping Symbol' has changed from a DOT to a WHITESPACE. 2008 - €1.000,00 whereas 2012 - €1 000,00 If the

  • Can i use other credit card for my id and purchase

    Can i use other credit card for my id and purchase

  • Accounts Receivable- Processing NSF/ Return Items

    Good Morning SAP Guru's I need some direction on best practices. What is the best way to handle NSF checks in SAP?  I would assume we would use FBRA to reverse the original document clearing to put the receivables back on account but we really don't

  • Report with both read-only and uploadable features

    Client would like to use one report as both an uploadable report and as a read-only report, depending on user. Is there any way to have a report which gets security based on the user making the request, say, by hiding the upload button for the user w

  • Re-downloading deleted songs? (with a twist)

    Hey all, So I got a new iPhone and downloaded the new iTunes (haven't used either in many years) and I figured 'what the heck ill figure it out.' So in my haste I started clicking the "cloud" icon next to most of my albums thinking I had to download