Trigger a job on placing a request for database provisioning on EM12c

Hi
I have created a job and associated it with a script that must run in Em12c. This job has to be auto-executed as soon as a request for database is made in the Database Self-Service Portal. How is this done in EM12c.
Thanks

Hi,
All dbms_scheduler calls automatically commit. You cannot commit in a trigger so you are getting an error. There are two ways around this.
- one is as suggested above to put the enable into an autonomous transaction using PRAGMA AUTONOMOUS_TRANSACTION.
- the other way is to have the trigger enqueue an AQ message and then either use a job or a registered notification to do whatever you need to do. The advantage of that approach is that if there is an error in the trigger the message enqueue will be rolled back, but the autonomous txn would commit either way. But this is a bit more setting up (create a queue, enqueue a message, register a subscriber or create an event job).
Hope this helps,
Ravi.

Similar Messages

  • Creating Installation Media component for Database Provisioning in OEM 12c

    When creating installation media to use in a database provisioning procedure, do I have to unzip and rezip Disk 1 and 2 before I load them into OEM?  I mean can't I just upload the zip files and tell OEM which is the "Main File" via the drop down box in the "Specify Source" section of the "Select Files" tab of the software library entity page?

    Thanks for the answer Courtney.  Then may I ask, what is the meaning of that "Main File" selection box on the file page? 

  • How to trigger approval request for resources after assigning role

    Hi,
    We have a use case where we need to assign resources to user via assigning roles.
    In order to achive this use case
    1. we have created a role and assigned the access policy to it which contain the resources to be provisioned once the role is assigned to the user.
    2. Created a SOA composite having manager approval and assigned this composite to a approval policy of type 'Assign Role'.
    3. I am already having the approval policy for the resources which are present in roles. The approval policy of resources is of type "Provision Resource".
    4. Also the SOA composite for resource apporal is deployed in OIM and assigned to the approval policy.
    5. Now when I am raising the request from OIM of type "Assign Role" the approval defined in the SOA composite for Role approval gets triggered. After approving the role request the role is assigned to the user and also the resources defined in the access policy gets provisioned to teh user account.
    Now I want to trigger the resource approval process after the role approval instead of directly provisioning the resources. So that once the role is approved the individual Approval Process of resources part of roles should also gets invoked. Based on the approval or rejection of resources approval, the resource gets assigned to the user.
    Please let me know how to achieve the above use case.
    Thanks in advance

    Access policy is saying whoever gets xyz role, will get this abc resource. Now once a user gets xyz role, you are stopping to get abc resource? both are contradictory. Don't go through access policy. User is anyway going to request for roles. Modify your flow and make user request for resource. Have your composite and approval policy attached. User will get resource once it is approved.
    regards,
    GP

  • Can I purchase Philips Hue products directly from an Apple Store without having placed an online request for personal pickup?

    I'v taken a recent interest in Philips Hue products, particularly their GU10 bulbs. I was therefore wondering if it was possible to simply walk in and purchase the bulbs over the counter (assuming they have them in stock) without placing an online request for personal pickup?

    Yes but I would check to see if they have them in stock

  • Trigger sheduled job

    Hi all,
    I need to trigger or release sheduled job when particular file is present in folder.
    I mean for example..
    I have sheduled a job ZFCP0001A01...I want to trigger job if ZFCP.TXT file is present in particular folder. If file is not present, then dont trigger job.
    Does anyone has program which i can shedule everyday to trigger above job if file present.
    Many Thanks
    Shiva

    Hi shiva,
    It is possible.
    Just create one event for job that you are going to monitor..i.e file placing in a folder.
    then by using SM36/SM37 u can schedule your job ZFCP0001A01 based on Job Start condition after event in SM37.  you need to configure it.
    Pls check with your basis people to create that event.
    Reward points if my reply helps u
    ~Lakshmiraj~

  • Authorisation request for this document was cancelled

    Forum,
    I have an approval stage and template configured in SAP when a sales order is raised it prompts the user for authorisation. Whilst this is ok'd the order is placed in a 'Draft' status. Upon trying to add one particular order, i get the following message:
    The authorisation request for this document was cancelled. The document cannot be added inless the authorisation request is restored.
    As he needed to get the order processed. I advised he duplicate the order and re-add it this time ensuring the correct authorisation procedure is carried out.
    Why would this occur?
    Regards,
    Juan

    HI Juan
    The question u have asked is nor very much clear the first scenario is that once the approval is rejected the document saves in draft well if thats the concern than this is the way the approval procedure is defined that without approval the document should not have any affect on the system whereas rightly said by fellow geniuses u can have multiple person to approve if one is not present other can approve it this would save time and effort for you
    The second scenario is that the approval procedure u have assigned gives u the message with one particular document and its fine with rest if thats the case then i would request you please check the query if there is any associated with the approval procedure
    Regards,
    Manish

  • How to Trigger a Job from se38 Report

    Hi,
    I need to trigger a job from an se38 report program.
    Currently the code I'm using is:
      SUBMIT YARTZ_SPOOL
             USER SY-UNAME
             VIA JOB 'YARTZ_JOB2'
             NUMBER 1
             TO SAP-SPOOL
             SPOOL PARAMETERS l_print_parms
             WITHOUT SPOOL DYNPRO
             AND RETURN.
    But the SY_SUBRC return I get is 8 which stands for 'Error In job Scheduling'
    Is the method used correct?
    Or am i going wrong in scheduling the job? As far as Job scheduling goes, I used the Date/Time schedule and scheduled it at a time 20 minutes later.
    Thanks.

    Hi,
    use the code
      IF p_bjob = 'X'.
        CONCATENATE sy-cprog sy-datum sy-uzeit
                    INTO jobname SEPARATED BY '_'.
        CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            jobname          = jobname
          IMPORTING
            jobcount         = jobcount
          EXCEPTIONS
            cant_create_job  = 1
            invalid_job_data = 2
            jobname_missing  = 3
            OTHERS           = 4.
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
          IMPORTING
            out_archive_parameters = arc_params
            out_parameters         = print_params
            valid                  = valid
          EXCEPTIONS
            archive_info_not_found = 1
            invalid_print_params   = 2
            invalid_archive_params = 3
            OTHERS                 = 4.
        IF valid = chk.
          SUBMIT YARTZ_SPOOL
                          WITH <selection-screen parameters if any>
                          AND RETURN
                          USER               sy-uname
                          VIA JOB            jobname
                          NUMBER             jobcount
                          TO SAP-SPOOL
                          SPOOL PARAMETERS   print_params
                          ARCHIVE PARAMETERS arc_params
                          WITHOUT SPOOL DYNPRO.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              jobcount             = jobcount
              jobname              = jobname
              strtimmed            = 'X'
            EXCEPTIONS
              cant_start_immediate = 1
              invalid_startdate    = 2
              jobname_missing      = 3
              job_close_failed     = 4
              job_nosteps          = 5
              job_notex            = 6
              lock_failed          = 7
              invalid_target       = 8
              OTHERS               = 9.
          IF sy-subrc <> 0.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ELSE.
            MESSAGE i029 WITH jobname.
          ENDIF.
        ELSE.
          MESSAGE s000 WITH text-003.
          STOP.
        ENDIF.
      ENDIF.
    reward points if useful
    regards,
    Anji

  • Differnet spool request for different costomers

    Hi folks,
    I am using f.27 to create a monthly customer statement. But i need differnet spool request for different costomers. so that i can mail the reports for costomers differently. now single spool request is generating.
    regards
    Vijay

    Hi,
    thanks for  reply. Yup we can do that if there are many costumers. then it will be a hectic job to retrieve for all of them and sending mail. so is ther any possible way to generate spool in a breakup way..
    please try...
    Regards
    Viajy

  • Request for some Visual Basic code?

    Hello not sure if I'm posting in the correct area but I have a request for some Visual Basic Code.
    I use a particular document in word quite often to fill out forms for my job. However I would like something that allows me to open a new instance of the same document while closing the current AFTER I print it without any extra mouse clicks, or if after
    I print the document the forms are cleared and I can start over.
    P.S. I would take the time to learn how to do it myself but I currently reside in South Korea and work for the USAF so I don't have much time.

    Hi,
    I suggest you post the request to Word for Developers forum since it needs support for coding:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=worddev
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Melon Chen
    TechNet Community Support

  • Upload request for Quotation  from external data (ME47)

    Hi is there a easy way to upload request for change in SAP from external data.
    Maybe a functionmodule or BAPI.
    Like for transaction ME41 ME42 ME47 etc.
    Edited by: J. Paulina on Sep 23, 2008 3:55 PM

    For things to happen automatically, you'll need to use JavaScript. To import a record, you use the importTextData document method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.502.html
    Note that it can't work with Reader and it must be placed in a trusted function in a folder-level JavaScript file.
    To print programmatically, use the print method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.511.html
    So the script could loop through the records, printing after each one populates the fields.

  • REQUIRE One spool request for n copies in one print command in smartform

    Hii Friends,
              I created a smartform..I require 5 copies of that form..There is a text which needs to be changed in evry copies...eg Original in first copy
                            Duplicate in second copy
                            Triplicate in third copy....n so on
    So i used a loop n i am calling smartform 5 times....The problem is i need one spool request to be created..
    Note: By default sometimes it create one spool request and sometimes 3 spool request...
    Pls share your inputs ............
    Thanks,
    Regards,
    Sujit.

    hi,
    this is more complicated see below description from help
    regards,darek
    Printing Several Forms in One Print Request
    Use
    You want to bundle several forms into one print job.
    Print Request vs. Spool Request
    SAP Smart Forms allows you to bundle several forms to form one output unit. This output unit is called a print request. A print request is different from a spool request:
    Whether a new spool job is created in the spool depends on the settings in the spool dialog.
    Whether a new print request starts depends on the standard parameters of the generated function module you set in SAP Smart Forms. For each print request, the spool dialog is called only once. If you suppress the dialog, you can pass parameters for spool processing only at the beginning of the print request.
    This means that a print request gathers several forms before submitting them to spool processing. Thus they cannot be spread over several spool requests. Vice versa however, you can include several print requests into one spool request.
    Procedure
    Use function module SSF_FUNCTION_MODULE_NAME to retrieve the name of the function module generated from the Smart Form (see also: Integrating the Smart Form Into the Application).
    Call the Smart Form for the first time and set the NO_CLOSE parameter of the control structure. This prevents the print request from being closed after accepting the output of the Smart Form and allows you to include all other form output into this print request as well. Leave the NO_OPEN parameter empty.
    Instead of calling the Smart Form for the first time you can also call function module SSF_OPEN .
    If you want to start a new spool request for the print request, set the TDNEWID field of the Output Options in this first call.
    For all other form output of the application program that you want to include into the print request, use a loop to set both the NO_OPEN field and the NO_CLOSE field of the control structure.
    To close the print request, in the call of the last Smart Form set the NO_OPEN parameter and unmark the NO_CLOSE parameter.
    Instead of calling the Smart Form for the last time, you can also call function module SSF_CLOSE .
    Result
    The forms you called in the steps described above are included into one print request. If in the first step you started a new spool request, you can now view its status in the spool request overview (transaction SP01 ).

  • REP-52251: Cannot get output of job ID 69 you requested  ....

    OS: Oracle As 10.1.2.0.2 (rel 2 for Linux 86)
    I have moved my forms and reports from windows XP (DS 9.04) to the Linux box.
    I have compiled and run FORMS and most of the REPORTS succesfully.
    I have compiled one report succesufully.
    But when I run this report from the FORM, I got message as below:
    Error
    REP-52251: Cannot get output of job ID 69 you requested on Thu Sep 29 15:37:03 PDT 2005.<P>REP-56093: Cached output for job 69 is no longer valid
    I have checked
    http://abc:7778/reports/rwservlet/showjobs?
    Status is as follows:
    Error
    Finished successfully but output is voided
    Regards,
    DN

    Just in case someone else too finds this thread with google. We had too REP-56093: Cached output for job 5429 is no longer valid. After checking reports cache dir we did see that the problematic reports have cache key with (broken)umlauds. So we disabled :DESNAME parameter and that got rid the umlauds in file names and that resolved the cache error. So if you get this error, you might check the cache directory if the problematic reports have some weird cache files/filenames.

  • Need to submit request for revoke using API

    Hi,
    I need to submit request for revoke application instance using the OIM API, so that once the request is raised OIM approvals should get trigger.
    Could you please share some sample code to achieve this, I am able to raise the request for provisioning but facing issue while raising request for revoke.
    Thanks.

    Hi,
    Refer this : OIMService (Oracle Fusion Middleware Java API Reference for Oracle Identity Manager)
    Specify operation as RequestConstants.MODEL_REMOVE_ROLES_OPERATION
    Reference : RequestConstants (Oracle Fusion Middleware Java API Reference for Oracle Identity Manager)
    Thanks,
    Pallavi

  • Request for compression is scheduled

    When I go to my InfoCube "manage" button and scroll down to the initial requests I see a clock and when I put my mouse over it I see: "request for compression is scheduled".
    The cube is large, say 86M records and many, many requests.
    I'm looking at SM37 and I can't see those jobs.
    So I looking for:
    a) what is the name of that job scheduled so I can see it and watch its progress?
    b) if I see the job running can I / should I  stop it?
    Thanks for your help.
    Mike

    Arun,
    And if it IS greyed out? what does that mean?
    Additionally, I went to the Request tab and my requests that were compressed were check marked, then I went the Collape tab and pressed refresh and then on the Request tab my requests were no longer check marked? Is that normal? I want to see them checked.
    Mike
    Edited by: Michael Hill on Apr 21, 2010 11:46 PM

  • Spliting Spool Request for Dunning in background.

    Hi Experts,
    I'm having a requirement to split the spool request for every 1000 pages,as for more then 1000 pages for Dunning executed in background.
    the job is automaticaly canceled after 30 mn of execution
    => in F150, status of the printout is "Printout has terminated" .
    My requirement is to split the spool request using enhancement in print program.
    How can i split the spool request after 1000 pages and again print from 1001 to last.
    print program for F150 - SAPF150D2
    Thanks in advance.

    Hi Yusuf,
    There is no otherway to delete the spool request except giving the option delete in the authorization object S_SPO_ACT.Make sure that you havenot given the values SP01, SP0R under the authoriztion object S_ADMI_FCD. If you have given both  the authorization objects with the above mentioned values than that user will get the authorization to delete the spool requests created by the other users also. So if you want to restrict the user not to delete the spool requests created by the other users make sure , not to give him the values SP01, SP0R under the authoriztion object S_ADMI_FCD.
    Regards,
    Bharath.

Maybe you are looking for

  • Separador de mil en PLD

    Buen día Soy nueva con PLD y tengo un inconveniente,  quiero colocar separador de mil a un campo de tipo FORMULA, como haría eso?? Por lo que me pude fijar las variables de sistema, ya tienen separador de mil. La versión que tengo es SBO SP01 PL08. S

  • Can not view downloaded jpg photos after ios 7 install

    I installed ios 7 on my ipad 3. Now I can not view my jpg picture. They show blank.

  • Window Flickers Issue w/ MBP

    I don't know if the upgrade matters, but after 10.6.7 upgrade - safari windows  jitters / (like screen refresh) - often when I save a page in safari and sometime I think I see same thing on top most finder window - maybe elsewhere Coud it have anythi

  • Product is not abstract and does not override abstract method

    Received the following errors. Product.java:3: Product is not abstract and does not override abstract method ge tDisplayText() in Displayable public class Product implements Displayable ^ Product.java:16: getDisplayText() in Product cannot implement

  • Can you insert a .swf created in Captivate 6.0 in a new Captivate 5.5 project?

    I have several .swfs created in Captivate 6.0 that I would like to use in my Captivate 5.5 project. Will this work? I was hoping I could insert them as animation.