Cannot remove a job

Oracle 10G R2
Log in as sysdba
SQL> select job,schema_user from dba_jobs;
JOB SCHEMA_USER
22 PERFSTAT
1 SYS
21 REPADMIN
SQL>
SQL> execute dbms_job.remove(22);
BEGIN dbms_job.remove(22); END;
ERROR at line 1:
ORA-23421: job number 22 is not a job in the job queue
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_IJOB", line 529
ORA-06512: at "SYS.DBMS_JOB", line 171
ORA-06512: at line 1
What am I doing wrong?

You have to be logged in as the owner of a job to remove it. No other user can do it even dba/sysbda.
Harry

Similar Messages

  • SQL maintenance plan job problem - cannot remove a job

    Hi,
    I have a SQL 2008 R2 server running SP2. I changed the start time  to hour A on a maintenance job under maintenance plan, a few weeks later I changed it back (hour B). The maintenance job still runs at the changed start time (hour A). I even completly
    deleted the job, and I do not see that job under SQL maintenance plan and agent job anymore.  But somehow SQL still tries to start the job at the changed time (hour A), and sends out error messages saying the job fails. 
    I have restarted the entire server also. Same issue.
    The job is not a special one. Just a db index optimize script that ran fine within the maintenance job before I changed the time. Actually, now I just set it up as a SQL agent job, not a maintenance job, and it runs fine. 
    Any advice?
    Thanks in advance.

    Martians!  That is the sign of computer invasion by martians!
    Did you try to delete the maintenance plan (not the job!) and recreate it?
    The following query may be helpful:
    select * from msdb.dbo.sysjobschedules ORDER BY job_id;
    schedule_id job_id next_run_date next_run_time
    1 1016 28EC0B2D-6BA2-4CC7-B99C-03DF945A3763 20140121 124000
    2 1013 ED3E89DF-0ED6-4D1B-9A6E-100E04412E2B 20140120 32700
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • EPrint job printed fine but cannot remove it from my print que

     I used my computer @ work to print a document to eprint. It printed just fine, but I cannot remove the print job in the que in my laptop (not the computer I used @ work). Because I cannot remove it, I cannot print anything. Help

    Hi Msdelta,
    I have a couple of questions for you.  When you sent the document to the printer did you use the ePrint email address?  When you refer to que are you logging into your ePrint account and checking your ePrint history?  Are you speaking of your print que on your computer?

  • DBMS_JOB.RUN: cannot run a job from a job

    I'm trying to set up a job to automatically run every October 1st. The "submit" part of this job is pretty simple, but I am getting some errors on the "run" part:
    declare
    job_nbr binary_integer;
    BEGIN
    dbms_job.submit(job => job_nbr,
              what => 'RESET_ORDER_NBR_SEQ;',
              next_date => to_date('10/1/2008', 'mm/dd/yyyy'),
              interval => 'add_months(sysdate,12)');
    dbms_job.run(job_nbr);
    COMMIT;
    END;
    When I run this script, I get the following error: "ORA-32317: cannot run a job from a job". I know this is due to the dbms_job.run because I don't get the error when I comment this line out. Also, even when I moved the dbms_job.run into its own script (and even hard-coded the job_nbr, so the dbms_job.run was the only line in the script), it still gave me the same error. This is working in SQL Developer when but not in Application Express. It seems to be something specific to the "run", since "submit" and "remove" work fine. Has anyone had any problems like this?

    MBETTIS,
    Rather than including dbms_job.run in your PL/SQL block, why don't you just schedule the job to run via next_date?
    Also, the interval will be computed after the job successfully executes. So if your job takes 5 minutes to run, the value of SYSDATE in your interval may "slide" after each execution. Consider using some form of TRUNC against the SYSDATE in your interval if you want to achieve a consistent execution time.
    Joel

  • Cannot remove warning message from screen

    I work remotely and use Outlook Web App to access my emails.
    Everything works fine other than I always get this warning message:
    which I cannot remove as the 'Continue' option is unresponsive to clicks.
    Anyone have any ideas how to cure this??
    Many thanks.

    The server has a self-signed certificate, which means that the people in charge of it don't know how to do their job. That's not a problem I can help you with. However, the warning dialog should not be unresponsive.
    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Downloaded Firefox 4--computer asks over and over to restart, Firefox will not load, cannot remove it!!

    I received an update message after my system had installed the newest Firefox 3. something, approximately 4 days ago. (Today is 3/22, so about 3/17--18) The newest update , when started, took me to the Mozilla homepage, where It was suggested I download and comment on the new Firefox 4---I do not normally do this, but am so impressed with Firefox versus most others, that I did, now, I cannot open Firefox at all, the older version, 3. something, is not in my system, only 4, but my system/PC upon trying to open the new Firefox, prompts me over and over to restart the system, (which I have done 3 times) I figured I would then simply remove it, (Firefox 4) and either try it again, or re-install the newest 3. something---I cannot remove it, even using my anti-virus program to do so, it simply prompts over and over to restart, wether I try to open, remove, or access it in any way---I do not wish to use system restore, but that seems my only option, please help!!!

    I had the same problem and the solution is quite simple:
    - delete all data that has to do with Firefox and Mozilla
    - Reinstall the new version Firefox 4
    You have to make sure that everything is deleted and well yes you will lose your profile data but at least it works again without any problem.

  • How do I remove an old phone number from my macbook imessage. My apple ID does not show the number anymore but I cannot remove it from the imessage accounts. Its driving me mad !

    Can someone please help me to remove an iphone telephone number from my imessage application. I no longer have a phone which I registered on my apple ID as a second phone. I have been on my apple ID and it does not seem to be there but cannot remove it from imessage, which still has it as an option to connect to. I am concerned that someone else who inherite this old phone will see my messages if I accidentally enable it again. I have read and re-read various postings and tried all options given but no luck, the **** thing stays there.....

    Hey Chappers64!
    Here is an article that will help you with this issue:
    iOS: Deactivating iMessage
    http://support.apple.com/kb/ts5185
    If you have already tried these steps, you will want to utilize the information at the end of the article:
    If you can't deactivate iMessage after you perform the steps above or you can't access the iPhone, please contact Apple Support.
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • ORA-20211: Active job does not exist, cannot link to job record.

    Getting the above error while executing OWB mapping in production environment.
    Details of the error :
    ORA-20211: Active job does not exist, cannot link to job record.
    ORA-06512: at "RADRUN.WB_RT_MAPAUDIT", line 1278
    ORA-06512: at "RADRUN.WB_RT_MAPAUDIT", line 2110
    ORA-06512: at "RADSTG.MAP_STG_AIRCRAFT", line 2384
    ORA-06512: at "RADSTG.MAP_STG_AIRCRAFT", line 2513
    RADRUN -- runtime schema
    RADSTG -- Target schema where mappings deployed.
    source database is accessed through a DB link.
    OWB version - 10.1.0.4.0
    Oracle - 9.2.0.6.0
    Here mappings are getting executed by calling a pl/sql procedure. This pl/sql procedure is executed every day by scheduling a dbms_job. After the error, the job is in hanging.
    Last week also the same error happened, on that occasion , restarted the database and re submitted the job. Mapping executed without any error.
    Looking for the expert comments

    Hi.
    See Note:125860.1 in metalink (and please, lol to solution #3). It applies to older OWB versions though... Are you using DBMS_JOB or OEM to run these mappings? If so, then the metalink note might be useful help.
    Karesz, I believe if the source database was down, it would fail with an ORA-12XXX Error.
    Regards,
    Marcos

  • ITunes on my phone is no longer playing some songs, even those I have purchased with my phone.  They will play fine on my pc itunes.  I also cannot remove the audio books that are on my phone and add others and the audio books on my phone will not play.

    I am unable to play new songs purchased on my phone and some old songs on my ipod/iphone.  They all work fine in iTunes on my computer.  I also cannot remove the audiobooks from my phone when I sync even though I have unchecked said books, and I cannot play them either.

    C Mawle wrote:
    Thanks.  I have followed all the instructions as recommended and nothing has worked so it looks like the restore/update may have been interrupted - would loss of internet connection do this?
    Yes it would, possibly even brick it.
    Have successfully connected my ipod nano with iTunes so looks like the device driver is working.
    Can I use my ipod nano USB connector to check?
    It is not much help to you, since the device that you need still not recognized.
    Anyway looks like I may have to swallow the loss of data.  Have set-up a call for tomorrow with Apple support so will wait until after this before doing the factory restore!
    Good luck, but if you expect miracle from that call good luck again.

  • Error message: cannot remove older versions of apple software update

    I recently got a 30 gb ipod, and i cant install itunes 7. I originally tried installing it at first, and it said cannot remove older applications of Apple Software Update. So i installed itunes 4 to put music on my ipod. Then i tried again to install itunes 7 and i keep getting the same error message. Anyone else having this problem? Can anyone give me some suggestions please?

    I would first try and remove both iTunes and Quicktime prior to doing the install of iTunes. The following link will show you how to remove both programs. Make sure you do Step 16 as it is usually Quicktime that causes problems with the upgrade.
    http://docs.info.apple.com/article.html?artnum=93698
    If it will not let you remove the programs, you can try using the Windows Installer Cleanup Utility. The download is about 1/4 of the way down the page. Good luck.
    http://support.microsoft.com/default.aspx?scid=kb;en-us;290301

  • When I plug my ipod in I am able to add song to it but the tab that says "on this ipod" no longer shows up so I cannot remove things from my ipod or anything like that. How do I change this weird setting?

    When I plug my ipod in I am able to add song to it but the tab that says "on this ipod" no longer shows up so I cannot remove things from my ipod or anything like that. How do I change this weird setting? On other computers this shows up fine so it is clearly a problem with itunes and not my ipod.

  • ITunes will not install because it cannot remove an earlier version of Bonjour...HELP!!!!

    When I try to install iTunes 10 it cuts in about 3/4 of the way saying that "Cannot remove and earlier version of Bonjour"....PLEASE HELP!!!!!

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another install. Does it go through properly this time?

  • Error Happened at RFC Server Cannot Open the Job Batch File.

    We have BW 7.0  and Data services 12.1. We are scheduling a Infopackage in BW that triggers a job in Dataservices server.
    We had checked the connection between Dataservices source system in BW and RFC server on Dataservices side and these connections are good. on the 3rd party sellections tab in infopackage we specify the batch file name that we exported in Dataservices server. When we execute the infopackage we get the following error.
    Error Happened at RFC Server Cannot Open the Job Batch File.
    This error started occuring from yesterday and prior to that it was working fine. We are not understanding what changed in the system to cause this error.
    Can anyone suggest any solutions for the above issue.
    Thanks,
    Naveen.

    I'm not sure what the root cause would be here. Is the file still available ? Did file permissions change ? ...
    But I wanted to point your attention to the fact that in Data Services/Data Integrator XI 3.2 (=12.2) we significantly enhanced the integration with BW. In XI 3.2, the RFC server is now integrated into the Data Services Management Console (so no need to start as a seperate executable) and you can start jobs from BW by just specifting the job's name in the repo (no need anymore to export execution commands to .bat files). So if upgrading to XI 3.2 is an option, things should go much smoother.
    More details on the wiki  : http://wiki.sdn.sap.com/wiki/display/BOBJ/Loading+BW
    Thanks,
    Ben.

  • I have an Iphone 5s with an account icloud that isn't an iCloud id, why? I cannot remove and the mail that names id doesn't exist anymore; what can I do?

    I have an Iphone 5s with an account icloud that isn't an iCloud id, why? I cannot remove and the mail that names id doesn't exist anymore; what can I do?

    Welcome to the Apple community.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact Apple ID Support, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    You will need to show patience with the procedure and be prepared to demonstrate without question that the account belongs to you. Don’t expect access to be restored immediately and if you aren’t the owner of the Apple ID registered to the device the account won’t be reset.
    This is answer is provided from my own database of boilerplate responses and the content was last reviewed and/or tested on: 2014/12/18

  • How do I remove the Certified Toolbar Search toolar??-- MALWARE -- tried everything I know -- cannot remove UIGGHH!!!

    I have tried ALL the malware removal tools I know of and still cannot remove this!

    hello, please install the search reset addon - it will revert the most common customziations those adware programs do in firefox back to the default: https://addons.mozilla.org/firefox/addon/searchreset/
    if your settings don't stick after a restart of the browser also go to firefox > help > troubleshooting information > profile folder - "show folder", then a new window will open up. in this window look out for a file named '''user.js''' (it might be used to overwrite your custom settings). in case it is present , delete or rename this file and restart firefox afterwards.
    [[Remove a toolbar that has taken over your Firefox search or home page]]
    [[How to fix preferences that won't save]]

Maybe you are looking for