Error while submitting job under another user account

Hi,
Im logging with my userid (ie: prem). I have dba privilege. Im trying to submit a job under scott user account.
Im getting the below error.
prem@db1>BEGIN
2 DECLARE
3 wk_job NUMBER;
4 BEGIN
5 sys.DBMS_iJOB.SUBMIT(wk_job,LUSER=>'SCOTT', PUSER=>'SCOTT', CUSER=>'SCOTT','INSERT_JOB;',
6 TO_DATE(TO_CHAR(TRUNC(SYSDATE),'dd/mm/yyyy') || '23:55','dd/mm/yyyy hh24:mi'),'SYSDATE+1');
7 COMMIT;
8 END;
9 END;
10 /
sys.DBMS_iJOB.SUBMIT(wk_job,LUSER=>'SCOTT', PUSER=>'SCOTT', CUSER=>'SCOTT','INSERT_JOB;',
ERROR at line 5:
ORA-06550: line 5, column 3:
PLS-00306: wrong number or types of arguments in call to 'SUBMIT'
ORA-06550: line 5, column 3:
PL/SQL: Statement ignored
Please help me in this regard.
Thanks,
Prem

Hi,
As you may know, in versions 10gR1 and higher, Oracle recommends the use of dbms_scheduler instead of dbms_job.
You can easily create jobs in other user's schemas using dbms_scheduler, but this is not supported in dbms_job.
dbms_ijob is an Oracle internal package which should never be called directly (it is neither supported or recommended by Oracle and doing any updates may break this usage). What you should be doing is connecting as that user and then using dbms_job.submit (or better yet using dbms_scheduler.create_job).
The error message you are getting is because you are not calling the internal procedure correctly. This procedure is not officially documented by Oracle and your use of it will not be supported by Oracle.
Hope this helps,
Ravi.

Similar Messages

  • Error while updating Sales Order : Another user Modified Table (RDR1 )

    Hi All,
    I am getting an error message while running the following steps.
    Steps
    1)     Pull an entry from sales order.
    2)     Add new data to line.
    3)     Update the sales order.
    a)     Sap updated the data.
    b)     Through code using DI API we updated some UDF.
    4)     With out closing / Pressing OK button…
    5)     We added new data to line.
    6)     Then Press update.
    An Error will through by B1 as “Another user modified the table(RDR1 ).” Before going to the code where we are handling the update of UDF.
    But after the 3rd step above when we do
    4) Close the window or pressed ok
    5)  take the sales order window again pull the data
    6) Add new Data to line.
    7) Update sales order then it will go smoothly.(Updating by B1 and from code )
    Can anybody tell me why this happens?And any workarounds to solve this?
    Deepesh

    are u adding a matrix row thru the code? I get this error when I am adding rows and I get the rownumber out of sync.
    if so get the max (lineid) from rdr1 and then check against the matrix.rowcount before adding a row. if lineid is greater that matrix.rowcount take lineid + 1 and assign it to the matrix.row, else take the rowcount + 1
    if not, and as a workaround, then you can try using the SBO_SP_transactionnotification stored procedure.

  • Not able to download  10.5 file corrupted ja.lprog - file is empty error code 2330. Not able to unistall itunes to reinstall-same info given. Not able to dowloag on another drive or under another user account.  same info given,  Using windows vista 32bit.

    Not able to download itunes 10.5..says file ja.lprog is corrupted (its empty) and error code 2330. Not able to download/install on another drive...even external drive-same reason given.  Not able to uninstall itunes to reinstall...same reason given.  Using windows vista 32 bit.  Please help.  Difficult to upgrade apps.

    Yeah...I think I found that one out the hard way already. I'll cross that bridge when I get to it. I want to get this issue fixed before I start thinking about the license issue.
    ciscoasa#
    ciscoasa#
    ciscoasa#
    ciscoasa# sh flash
    --#--  --length--  -----date/time------  path
    2403  0           Apr 30 2008 02:00:56  test
    2285  196         Apr 30 2008 01:28:20  upgrade_startup_errors_200804300128.log
    2283  0           Apr 30 2008 01:28:20  coredumpinfo
    2284  59          Apr 30 2008 01:28:20  coredumpinfo/coredump.cfg
    2280  0           Apr 30 2008 01:27:56  crypto_archive
    2267  0           Apr 30 2008 01:27:38  log
    0 bytes total (0 bytes free)
    ciscoasa#
    ciscoasa#
    ciscoasa#
    ciscoasa# sh disk0
    --#--  --length--  -----date/time------  path
    2403  0           Apr 30 2008 02:00:56  test
    2285  196         Apr 30 2008 01:28:20  upgrade_startup_errors_200804300128.log
    2283  0           Apr 30 2008 01:28:20  coredumpinfo
    2284  59          Apr 30 2008 01:28:20  coredumpinfo/coredump.cfg
    2280  0           Apr 30 2008 01:27:56  crypto_archive
    2267  0           Apr 30 2008 01:27:38  log
    0 bytes total (0 bytes free)
    ciscoasa#

  • ITunes will not open on win7 machine. It does under another user account, but not this specific one, although it is adminstrator and has access to everything. Please help.

    User has all rights that I can see, set up as administrator.
    O/S is Win7 and complete removal of iTunes and re-install of 64bit version.
    Can not see the service running in task manager and no error message is given.
    Have tried to run from .exe file and still nothing.
    Quicktime runs fine.
    Have also deleted AVG on a temp basis in case that was stopping it.
    Please, any advise would be greatly appreciated as the young lad I am looking at this for has not been able to use
    is Christmas present (iPod) to date.
    Thanks in advance

    Try this:
    Start iTunes in iTunes Safe Mode:
    1.  hold down the Shift and Control key together and click to start iTunes.
    2.  when you see the iTunes icon in the task bar, click on it.
    3.  you will get a box that says "iTunes is running in safe mode.  Visual plug-ins you have installed have been termporarily disabled."   [I don't know what plug-ins I installed but you should clearly see that these so-called visual plug-ins are likely the cause of your issues];
    4. click Continue to open iTunes.
    Now press your sync button and everything should work fine.

  • Failing to create an email with outlook interop when outlook has been opened by another user account

    Hello
    I have an addin that customizes the excel ribbon. I added a button so that when the user clicks it, a new outlook message windows pops up with some default information on the email body, CCs, etc.
    The problem is that if outlook is already running and it's running under another user account different from the one that was used to open excel (e.g. after opening excel i open outlook with shift + right click and then "Run As..."); i get an exception upon
    instantiating the outlook interop object:
    Microsoft.Office.Interop.Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application();
    The exception message reads:
    Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
    What can i do to prevent this issue from happening?
    Thanks

    In that situation I would test first for an existing Outlook process running and hook into it if it is running. If it's not running then I'd use new to create an Outlook session. There can only be one Outlook session running
    at a time.
    This sort of code will do the trick for you I think:
    System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcessesByName("OUTLOOK");
    int collCount = processes.Length;
    if (collCount != 0)
    // Outlook already running, hook into the Outlook instance
    outlookApp = Marshal.GetActiveObject("Outlook.Application")
    as Outlook.Application;
    An else there would create a new Outlook.Application object.
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "wildarmss" <=?utf-8?B?d2lsZGFybXNz?=> wrote in message
    news:870d6093-a7fb-4431-a38f-1896ce4cf963...
    Hello
    I have an addin that customizes the excel ribbon. I added a button so that when the user clicks it, a new outlook message windows pops up with some default information on the email body, CCs, etc.
    The problem is that if outlook is already running and it's running under another user account different from the one that was used to open excel (e.g. after opening excel i open outlook with shift + right click and then "Run As..."); i get an exception upon
    instantiating the outlook interop object:
    Microsoft.Office.Interop.Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application();
    The exception message reads:
    Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
    What can i do to prevent this issue from happening?
    Thanks
    Ken Slovak MVP - Outlook

  • I am not able to access Firefox under one user account on my computer so I created another account. How can I transfer the bookmarks from the old account?

    I use windows Vista and I cannot open Firefox under one user account (I keep receiving the "firefox profile cannot be loaded . . ." error message) on my computer so I created another account. How can I transfer the bookmarks from the old account?

    NOTE: you can skip this 1st step.
    Step 1
    I'm on Win7 so the paths might be slightly different... C:\Users\(YOUR PC ACCOUNT)\AppData\Roaming\Mozilla\Firefox\Profiles\bnelgkol.default\bookmarkbackups ... Find the "bookmarks-[DATE].json" you want and copy it to the profile you want. You may want to change the date to a name you will recognize.
    Step 2
    Then on your browser "Bookmarks>Show All Bookmarks or Ctrl+Shift+B ". This will bring up the Bookmark Organizer, I think they call it Library now. From there click "Import & Back up>Restore" this will bring up a drop down with your back ups. If you followed step 1, find the json you added and select it. If you skipped step 1, from "Import & Back up>Restore" select "Choose File..." Then browser for the json you want to import. Which should be in a similar location as mentioned in step 1.
    NOTE: "AppData" is a hidden folder, will have to set show hidden folders to be able to see it.

  • PowerPoint file won't open under one user account, but does under another account

    Hello,
    I have a 10.9.5 macbook pro here that will not open a Powerpoint file under one user account. It is up-to-date with Software updates and Office 2008 is up-to-date as well. When I try to open the PowerPoint file, I get the message, "PowerPoint closed unexpectedly" and I can choose to Reopen (which opens a blank presentation) or OK (which closes PowrPoint). I have tried double-clicking the file from the Desktop where is resides, File --> Open from within PowerPoint and also saved it to a flash drive and tried opening from there. It does open under the admin account on the same machine and it will also open on other machines. Other PowerPoint files are opening fine...it's just a problem with the one file. The user has Read & Write privilege to the file. I tried Repairing Disk Permissions, I have tried deleting microsoft plist files, and lastly, have re-installed Office 2008. At this point, I can only think to try deleting the user account and re-adding it, but wanted to see if anyone had any ideas before I go that route.
    Thanks in advance for any suggestions!

    Back up all data before proceeding.
    This procedure will unlock all your user files (not system files) and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
               ▹ Restart
    from the menu bar.

  • Multiple Schemas under one user account with XE 10g

    Hi,
    I am using (learning) XE 10g. I would like to know if it is possible to have multiple schemas under one user account and have the schemas logically separated. As of right now, I have three schemas that I am working with, each one under a different user account. This is inconvenient, because I have to logout of one user account and login to another user account simply to be able to work with another schema.
    Thanks

    It isn't possible to have multiple schemas under one database user account. It is of course possible to grant rights to other database users, and or roles, in order to allow access to the tables/data from other accounts. In Oracle there is a one-one mapping between schema and user.
    Niall Litchfield
    http://www.orawin.info/

  • ITunes settings reset with every new version, and I get: "...the information on the iphone is synced with another user account"

    Windows 7 64-bit with MS Outlook 2010. I've seen this now probably 10 times. When I first installed iTunes, I selected:
    Preferences -> Devices -> "Prevent iPhonse, iPhones and iPads from syncing automatically".
    and on my iPhone, I selected:
    Info -> Sync Contacts with: Outlook.
    Info -> Sync Calendars with: Outlook
    Info -> Other -> Sync notes with: Outlook
    This works great, and the settings stick.  As soon as apple releases any new version (even minor) of iTunes and I install, I immediately receive: "...the information on the iphone is synced with another user account", and have to merge my calendar and contacts, but then once I get into iTunes, I find that ALL of the above settings (prevent syncing, sync calendar, contacts, notes) get reset and are turned off! I am running as a user account with Admin privaleges, but I don't right-click -> "Run as administrator" when I perform the iTunes update.
    To reiterate, once I change the settings back, things work normally until the next iTunes update at which it gives me that sync error, and resets my sync options.
    Any idea? Thanks!
    -Brian

    Is someone else using the PC and iTunes?
    Create another user for the PC with your name, and try syncing that way.
    This way it wont conflic with the other user.

  • Synced to another user account??

    After updating iTunes I get an error message when trying to sync my iPod Touch to my PC (Outlook).   It says I'm synced to another user account and asks if I want to merge or replace info.  I'm afraid to do either - not sure if I will lose all my info or duplicate all of it!
    After searching the forums, I can't find any official response from Apple to many similar questions over the years.

    I can't find any official response from Apple to many similar questions over the years.
    Not sure what you are expecting.  Apple already gave you the official response.  Here it is again:
    It says I'm synced to another user account and asks if I want to merge or replace info. 

  • 5 error while checking job status

    Hi,
    We are getting the following error when we are trying to check the status of the process chain through FM 'RSPC_API_CHAIN_GET_STATUS':
    5 error while checking job status.
    The real scenario is we are using an abap screen with a button on it. when the user clicks on the button we call the FM 'BP_EVENT_RAISE' to trigger the process chain. once the chain is triggered we are having an endless loop to monitor the status of the chain with FM 'RSPC_API_CHAIN_GET_STATUS' untill the chain status turns green ie G.
    Now while monitoring the status it randomly throws me the above error. it seems to work sometimes and other times it gives the popup with the said error.
    Can anybody help why we get the error.
    Regards,
    Shashank

    Hi Shanshank,
    Try to Debug the FM.
    Rgds,
    Ravi

  • Aperture 3 - share library with another user account?

    Hi,
    I'm trying to share the aperture library with my wife (another user account on the same computer).
    I started to give her permissions to the file in <My User>/Pictures/Aperture Library. but it kept having permissions issues. So i changed the library to /Users/Shared and gave both of our users full read write permissions... but i keep having the same permissions error.
    I know that we can't both access the lib at the same time but even though, accessing the same library would be a major breakthrough for us.
    What am i doing wrong??
    Please help

    This is what I did, and I did not get permission errors.
    1. Use Aperture 3.02 to create a new aperture library in the Shared Folder. I called it *Aperture Share.aplibrary*.
    2. I added a few pictures just for fun.
    3. Quit Aperture.
    4. Go to the Finder and set File Privileges to Everyone Read/Write on the *Aperture Share.aplibrary* file.
    5. Using Fast User Switching, switch to another user.
    6. Open Aperture 3.02.
    7. Switch to Library... >>Other/New...>>Other Library...>> . Navigate and select the *Aperture Share.aplibrary*.
    That worked for me without permission problems.
    Another question. Are all your pictures stored in an Aperture Library? If you have any pictures that are just referenced in the Aperture Library, this would most likely lead to permission errors.

  • How to copy information from a user account's Security tab of Active Directory User and Computer Security tab to another user account?

    Hi, I'm using vs2012
    Grammatically, by C# code, I need to copy a user account's Security (from ADUC Security tab) and apply it to a new user account I created by code.  My application creates new AD accounts when needed.  I need to duplicate/copy attribute from another
    user account that we use as a base template.  I can copy most other attributes through property["xxxxx"] but how do I copy all that permission access information under the ADUC Security tab?
    How can I do that?  Thank you.
    Thank you

    I would recommend asking them in C# forums: https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral&filter=alltypes&sort=lastpostdesc
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • On Safari, How do I switch to another user account?

    But the hiccup is that I can't launch Safari. I wanna try and test another user account for trouble shooting purposes. But the question is, how do I switch if I can't launch it? Anyone out there in the universe have an idea?
    Would appreciate the help.
    Thanks!
    - Michael

    If you can't launch Safari, that probably means it's crashing on launch. Launch the Console application and look under "User Diagnostic Reports" for crash logs related to Safari, WebProcess, or PluginProcess. Select the most recent one and post the contents -- the text, please, not a screenshot.
    These instructions may not apply if you're really on 10.4 as your profile says.

  • Error while submitting concurrent request

    Hi All,
    I am getting error while submitting this concurrent request (To handle deliver, RTR, RTV transactions)
    Error : app-fnd-00874: Routine FDFBDF found no rows in table FND_DESCRIPTIVE_FLEXS. Please contact your system administrator or support
    representative
    what is this error and how can i slove this problem?
    Thanks
    V.Arumugam

    Hi,
    We had same problem in GL while upgradation.
    Some flexfields were missing in the fnd descriptive flexfield.
    We could resolve later with help of metalink.
    Plz refer metalink note : Note:363117.1 and Note:290411.1
    Rgds,
    Arumugam S.

Maybe you are looking for

  • Apple Configurator - Updating to iOS 6.1.2 removed saved user data

    We are currently managing several classroom sets of iPads using Apple Configurator. When updating to iOS 6.1.2 on the Supervise tab, about two-thirds of one classroom (about 20 iPads) and another 4 out of 6 in a special education classroom lost all p

  • Serial number problem CS5.5

    Hello, SN problem with CS Design Premium 5.5 UPG (from CS4 Design Premium). Illustrator, Photoshop & InDesign work fine Acrobat Pro refuses the Serial Number. I tried everything (even a new partition with freshly installed system (10.6.8). Is there a

  • Mail with Exchange 2007 - Rules for "Mark as Read" and "Move to Folder"

    I have seen this posted before, but never any resolution. This is very frustrating to me. I have an Exchange account set up in the the latest version of Mail.app (4.4.1082) for OS X 10.6.6. I have rules set up for this account that tell Mail.app to m

  • Driver's SQLAllocHandle on SQL_HANDLE_ENV failed

    I have an excel file which would connect to an Oracle database and run queries. It was working fine somet times back until i uninstalled/reintalled the oracle client. I have windows 7 running oracle client 11gR2. Below are the errors i am getting. "T

  • SX 50 HS with Speedlite 430 EX II

    Hi! I'm trying to use a Speedlite 430 EX II with my SX 50 HS, but the Assist Beam of the flash doesn't seem to work. The camera's Assist Beam works correctly, the flash fires, but the Speedlite's Assist Beam doesn't. Is it normal? Thank you!