How to delete requests from OIM 11g R1?

Hello,
We have some requests that were created in production environment while the SOA environment were not configured correctly, so some are with failed state, some were tests that were completed successfully. So now the client will soon be audited, and they asked to delete all those failed and tested requests from the system.
I couldn't find an API to do this, I was trying to mount a SQL direct on the Database do delete them.
I separated these tables:
REQUEST
REQUEST_BENEFICIARY
REQUEST_BENEFICIARY_ENTITIES
REQUEST_BENEFICIARY_ENTITYDATA
REQUEST_COMMENTS
REQUEST_ENTITIES
REQUEST_ENTITY_DATA
REQUEST_HISTORY
But I saw that when the request is completed the request_key is marked on OBI, OSI, OTI.. and so on..
Does anyone had passed through this? Do you have any suggestion on the best way to do it?
Thanks for replying..

Hi Bikash,
Thanks for the answer.
There are some requests that were tests and are in a completed state. I couldn't see how to delete a request in EM, there I can only see Instances of SOA composites without reference to the request_key on the main search and many of our requests have 2 workflows levels, that means, two SOA composites instances, and are more than one year old.
Any other sugestions?
Thanks.

Similar Messages

  • How to delete users from oim database 11g???

    Can anyone help me:
    I need to clean the OIM database, so I need to delete All user accounts that exists in OIM
    Any help apprecciated
    regards

    Hi
    Last time I used this script to delete the users. Hope it will be useful for you:
    delete from oud where oiu_key in (select oiu_key from oiu where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy')));
    delete from osi where req_key in (select req_key from req where orc_key in (select orc_key from orc,usr where orc.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy')));
    delete from osi where osi_assigned_to_usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from osh where osh_assigned_to_usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from rcd where rce_key in (select rce_key from rce,orc,usr where rce.orc_key = orc.orc_key and orc.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from rch where rce_key in (select rce_key from rce,orc,usr where rce.orc_key = orc.orc_key and orc.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from rcu where rce_key in (select rce_key from rce,orc,usr where rce.orc_key = orc.orc_key and orc.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from rcb where rce_key in (select rce_key from rce,orc,usr where rce.orc_key = orc.orc_key and orc.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from rce where orc_key in (select orc_key from orc,usr where orc.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from orc where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from upd where upp_key in (select upp_key from upp,usr where upp.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from upp where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from usg where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from uhd where uph_key in (select uph_key from uph,usr where uph.usr_key = usr.usr_key and usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from uph where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from pcq where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from rcu where usr_key in (select usr_key from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy'));
    delete from usr where usr_create > to_date('20-06-2010','dd-mm-yyyy');

  • How can I o create, modify or delete users using OIM 11g web services?

    Hi,
    I have a requirement to create, modify or delete users using OIM 11g web services.
    The end users will be signing on to the online application, a user interface to request ids online. The user interface is the home grown application to request ids.
    I want to integrate this user interface with OIM 11g. I generated the java classes using the out of the box wsdl file as mentioned in the Developer’s Guide for Oracle Identity Manager 11g. But I need to know how to create users using web server client from a given wsdl file? Is there a sample web service client program to create a user in OIM?
    If you know of any document which I can follow or if you can give any details I really appreciate.
    Thanks and Regards,
    Viraf

    Hi Chong,
    Were you able to figure out the approach? I am facing the same issue like this. I have created a web service where the input values are no. of days to extend user's end date and user's employee ID. Output will be true or false. But I am getting error while searching user in OIM DB. I think my web service is not to query OIM DB
    Please let me know if you have worked on this senario.
    Thanks,
    Kalpana.

  • How to get details of Pending Approval request in OIM 11g R2?

    Hi,
    We need to find out following details from Pending Approval Request in OIM 11g R2 -
    Request ID,Assignees,Requested Resource Name, Title of Request, Beneficiary, Status of Request.
    Out of above attributes we could find out Assignees, Title of Request, Status of Request, Beneficiary, etc. But we are not getting Request ID and Requested Resource Name.
    We have used API - 'IworkflowServiceClient'
    If we use API - 'RequestService' then we are not getting Assignees and Resource name from Pending approval request.
    Can any one suggeste how can we get these details? Do we need to use other API or other alternative to get all of attributes from Pending Approval Request.
    Thanks.

    Thanks Kevin for your suggestion.
    In OIM 11g R2 I tried task.getIdentificationKey() to get Request ID and task.getSystemMessageAttributes().getTextAttribute6() to get requested resource name but I am getting null values out of it. Is there something I am missing?
    Which common thing I can use to retrieve data from both OIM and SOAINFRA? As I am not getting Request ID from 'IworkflowServiceClient' API so I could not use it to earch request in OIM using 'RequestService'. Even if I have to use query what will be common thing I can use to fetch data from both tablespaces?
    Thanks.

  • Creation of a Request in OIM 11G using API's

    Hi Friends,
    I am trying to create a request using OIM 11g API's.
    I am trying to do this for EBS Responsibility resource and this resource has a request dataset has EBS-IT-Resource-Instance, application name, responsibility name, start date and security group. Please note application name, responsibility name, start date and security group are in child form.
    I am trying to populate the request dataset using the below code.
    List<RequestBeneficiaryEntityAttribute> entityAttrList;
    RequestBeneficiaryEntity entity = null;
    entityAttrList = new ArrayList<RequestBeneficiaryEntityAttribute>();
    entity = new RequestBeneficiaryEntity();
    tcITResourceInstanceOperationsIntf tcITResourceIntf = Platform.getService(tcITResourceInstanceOperationsIntf.class);
    HashMap searchcriteria = new HashMap<String, String>();
    searchcriteria.put("IT Resources.Name", "EBSHF-APPS12");
    tcResultSet resultSet = tcITResourceIntf.findITResourceInstances(searchcriteria);
    long itResourceKey=resultSet.getLongValue("IT Resources.Key");
    entityAttrList.add(this.getAttrLong("eBusiness Suite Instance Name",itResourceKey));
    entityAttrList.add(this.getAttr("Application Name","3~300"));
    entityAttrList.add(this.getAttr("Responsibility Name", "3~300~52281"));
    entityAttrList.add(this.getAttr("Security Group", "3~0"));
    entity.setEntityKey(getResourceKey("Oracle eBusiness Responsibility"));
    entity.setEntityType(RequestConstants.RESOURCE);
    entity.setEntitySubType("Oracle eBusiness Responsibility");
    entity.setEntityData(entityAttrList);
    private RequestBeneficiaryEntityAttribute getAttr(String name, String value)
    RequestBeneficiaryEntityAttribute attr = null;
    attr = new RequestBeneficiaryEntityAttribute(name, value, RequestBeneficiaryEntityAttribute.TYPE.String);
    return attr;
    private RequestBeneficiaryEntityAttribute getAttrLong(String name, long value)
    RequestBeneficiaryEntityAttribute attr = null;
    attr = new RequestBeneficiaryEntityAttribute(name, value, RequestBeneficiaryEntityAttribute.TYPE.Long);
    return attr;
    My code is working fine and a request is getting created. But when I try to open the request dataset(object form) for the newly created request, I am getting null exceptions.
    If I did not populate the fields that are in the child form application name, responsibility name and security group which are highlighted above, then I am able to view the form with the correct IT-Resource-Instance name after request creation.
    So, I am thinking I am doing something wrong while populating child form data in the request dataset.
    Can you please provide me some code snippet to populate the child using 11G API'S?

    Hi Bikash,
    After referring your code, i made changes in mine. Here is my updated code.
    RequestBeneficiaryEntityAttribute parantAttr=null;
    List<RequestBeneficiaryEntityAttribute> entityAttrList;
    RequestBeneficiaryEntity entity = null;
    entity = new RequestBeneficiaryEntity();
    parantAttr=this.getAttrLong("eBusiness Suite Instance Name", itResourceKey);
    RequestBeneficiaryEntityAttribute mid1 = new RequestBeneficiaryEntityAttribute();
    List <RequestBeneficiaryEntityAttribute> childAttributesList = new ArrayList<RequestBeneficiaryEntityAttribute>();
    childAttributesList.add(this.getAttr("Application Name", "3~555"));
    childAttributesList.add(this.getAttr("Responsibility Name", "3~555~22862"));
    childAttributesList.add(this.getAttr("Security Group", "3~0"));
    mid1.setChildAttributes(childAttributesList);
    mid1.setAction(RequestBeneficiaryEntityAttribute.ACTION.Add);
    entityAttrList = new ArrayList<RequestBeneficiaryEntityAttribute>();
    entityAttrList.add(parantAttr);
    entityAttrList.add(mid1);
    But when I try to run this, it is getting failed saying "RequestServiceException: IAM-2050033:Invalid attribute name null. No corresponding reference was found in the data set ProvisionResourceOracle eBusiness Responsibility".
    Here is my request data set for your reference.
    <AttributeReference name="eBusiness Suite Instance Name" attr-ref="eBusiness Suite Instance Name" type="Long" length="50" widget="itresource-lookup" required="true" available-in-bulk="true" itresource-type="eBusiness Suite UM"/>
    <AttributeReference available-in-bulk="true" length="10" widget="text" type="String" attr-ref="UD_EBH_RSCP" name="EBS HR Foundation User Responsibilities">
    <AttributeReference name="Application Name" attr-ref="Application Name" type="String" length="256" widget="lookup-query" available-in-bulk="true" required="true">
    <lookupQuery lookup-query="select lkv_encoded as Value,lkv_decoded as Description from lkv lkv, lku lku where lkv.lku_key=lku.lku_key and lku_type_string_key='Lookup.EBS.Application' and lkv_encoded like concat('$Form data.eBusiness Suite Instance Name', '~%')" display-field="Description" save-field="Value"/>
    </AttributeReference>
    <AttributeReference name="Responsibility Name" attr-ref="Responsibility Name" type="String" length="256" widget="lookup-query" available-in-bulk="true" required="true" primary="true">
    <lookupQuery lookup-query="select lkv_encoded as Value,lkv_decoded as Description from lkv lkv,lku lku where lkv.lku_key=lku.lku_key and lku_type_string_key='Lookup.EBS.Responsibility' and lkv_encoded like concat('$Form data.Application Name','~%')" display-field="Description" save-field="Value"/>
    </AttributeReference>
    <AttributeReference name="Security Group" attr-ref="Security Group" type="String" length="256" widget="lookup-query" available-in-bulk="true" required="true">
    <lookupQuery lookup-query="select lkv_encoded as Value,lkv_decoded as Description from lkv lkv, lku lku where lkv.lku_key=lku.lku_key and lku_type_string_key='Lookup.EBS.SecurityGroup' and lkv_encoded like concat('$Form data.eBusiness Suite Instance Name', '~%')" display-field="Description" save-field="Value"/>
    </AttributeReference>
    I am not sure why it is not referencing to the attribute. In your blog, it is saying your code is to set process form. But i am trying to create a request using API's. so, I need some code snippet to populate request dataset. Do you think, this will serve both?
    Thanks for your help.

  • Unable to delete requests from ODS

    Hi Experts,
    I am trying to delete requests fwhich is having some added records rom an ODS. I changed the status of QM to RED and in the monitor screen as well. Now, when I try to select the request and delete, a trash can appears and after hitting the refresh button the reportinng availability appears against the request.
    I deleted the entries in the change log table...then I was able to delete the request from the ODS. Now when I try to reconstruct those deleted requests from the Reconstruct tab by changing the QM status in the monitor to green, the status of these request are in Yellow and there are updated records but the added records are 0. When I try to change the QM status it give s message "Request is already (partially) activated, no further QM action is possible.
    How do I change the request QM status to Green and the get all the added records as there were in previous instead of 0's with out reloading the ods from r/3.
    Thanks in advance,
    HT

    Hello,
             This error may be  RSMPC141 error.
    Please see Note 643880 and Note 849857
    this may occur  becos of loss f records in change log.
    You will need to reload to fix this problem
    regards,
    karthik

  • Recover deleted requests from DSO

    Hello BI Experts,
    We have been deleted requests from standard DSO accidentally. The data has been deleleted for 3yrs and we have been trying to recover from Reconstruction tab but could not found anything there.
    Can any body tell me how to recover recover deleted requests from DSO? I would really appreciate your great help.
    Thanks in advance,
    Regards,
    Venkat

    HI BI Experts,
    When we personalize Query language to another language in the SAP Portal, the variable selection fields are not displaying with description and they are displaying in the technical name.
    Example: Opened BI report from the SAP Portal and selected Personalized settings, from there selected Portal language as French. when I selected French language, the vaiable selection screen field names started appearing with technical field name in the French language but it should display the field description not the technical name.
    I hope you understand my question.
    End user does not understand the technical names when they have selected personal language. Can any body tell me how can the fields displays with description from the variable selection screen. I would really apprecite your help.
    Thanks,
    Venkat

  • HOW TO DELETE FILES FROM ADOBE READER IF THEY ARE UNNECESSARY

    HOW TO DELETE FILES FROM ADOBE READER IF THEY ARE UNNECESSARY

    Hi,
    You might need to sign up at https://cloud.acrobat.com/ and choose 'Files' tab where you can find all the files.
    Select all the files you want to remove and choose 'Delete' option.
    Regards,
    Anubha

  • How to delete songs from iPod touch

    How to delete songs from iPod touch

    If yu have iOS 5 then swipe the sonf left or right and a delete button should appeat. tap that. For earlier IOS you need to unsync the songs.

  • How to delete video from iTunes library? del and shift+del are not working - no any reaction

    how to delete video from iTunes library? del and shift+del are not working - no any reaction.

    seb963 wrote:
    Hi
    Currently, iMatch is turned off on my computer, as I do not want to upload any more songs. If I turn it on, will it upload all songs that are currently in my library? Is there another way that deleting them one by one?
    You must enable iTunes Match on the new computer. The best way to accomplish what you want to do is to create a new, empty library by launching iTunes while holding down the Option key (Shift on Windows) and choosing "new library." Do not let iTunes scan for new content, but do enable iTunes Match on the empty library. Once the scan is finished you may delete tracks from the cloud. When you are done switch back to the main iTunes library.

  • How to delete applications from mac pro?

    I think many people struggling at "How to delete appalications from Mac pro ,just because you made some mistakes or curious !" I know it is a bit difficut for people who are new users for the Mac .
    If you really don't want them ,you can delete them easily,
    As all you know after you download appalications from anywhere  ,it could be from apple app store or from other websites. They all can be disspeared if you don't like them .
    First , If you installed from apple app store  it will be really easily  just click at the app on the launchpad, after few seconds all the apps will be all shaking like leaves ,yes they are scared .(No No  don't delete me  I am helpful !) Ok yes  that is a little joke ! so what you can see now there is a small "x" at the top right corner .Can you see them ? just click the "x" And they will gone .
    Second step. This is only for you downoaded from other websites , In that case  , you just skip first step come to here  in order to save you some golden time .
    You can delete them from the launchpad , I have tried many times . i tried to drug them in the the trash . But after them all jump back to where they are , So you need to open the Finder ---> click the download -----> find the file which is belong to the app (make sure ) ------->click it  -----> drug it into the trash. then you can hear a little sound like you through it into the bin. it is really humanny  isn't it ? then go back to the finder again .---->click the application -------> find the icon on there which is you just drag into the trash.  do it again . take this one into the trash as well  then you will find the icon on the launchpad is disppeared . at the end don't forget to empty your trash   After that all job done , it is been deleted  ,
    Well done !
    Hope this could help all of your!
    Thanks for reading !

    Your profile shows Macbook Pro yet your topic confirms you are talking about a Mac Pro - or

  • How to delete elements from a cluster?

    Hello. I would like to know how to delete elements from a cluster. I got stuck with this problem. There is its own order of each element in a cluster. I tried to initiate an array but it seems like too complicated. In the attached file, I want to obtain only the data from "flow" not "pressure". I try to use array programming but it doesn't work. Would be nice if you help me to fix the file. Thanks
    Solved!
    Go to Solution.
    Attachments:
    test 1.vi ‏16 KB

    Bombbooo wrote:
    What about if I want to store data into the pressure array too? Do I have to create another loop or it can be done in the same loop as the flow loop?
    Try this, for example. Modify as needed.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    test1MOD2.vi ‏9 KB
    SelectFlowOrPressure.png ‏7 KB

  • Unable to delete request from ODS - BW 3.5

    Hi experts,
    I am not able to delete request from ODS in BW 3.5, patch level 21. I put the request red, but it does not help to delete it. The request is full load and quite hudge (16GB). Deleting actually takes too long (several hours), but does not finish, so I cannot tell you any error description. It seems that this job can run forever... I was trying to activate the request before, but because of a tablespace limitations I received some short dumps. That is why I am trying to load it agin in smaller parts. It is strange thou that in Manage/requests tab the request has flag 'available for reporting' but the data cannot be viewed as active (only as new data). Any ideas, OSS notes?
    Thank you,
    Michal

    Hi,
    If you want to delete  requests manually from the ODS tables.
    1. tcode se16.
    2. delete the request in these tables : RSICCONT (delete activated requests OR
    Make the selective deletion of the contents of that request), RSMONICDP, RSODSACTREQ (give the name of the ODS and the
    request ID and delete all the entries pertaining to this selection in that table.), RSODSACTUPDTYPE.
    You can check OSS Notes 947481
    Regards.

  • How to delete songs from itunes backup file

    how to delete songs from itunes backup file

    There is nothing to delete, as no iTunes content is included in any iPhone backup.

  • How to delete photos from my iPad that were synced from an old version of iTunes and the computer that had the photos no longer exists.

    I need to delete photos from my iPad that were synced with an old version of iTunes on a computer that is no longer functioning. Please help.
    Alos, I need to move many photos from my iPad to storage place.  Any recommendations on backup drives for an iPad 2?

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    iPhoto for iOS (iPad): Delete photos from iPhoto
    http://support.apple.com/kb/ph3137
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
    ~~~~~~~~~~~~
    There are some wireless external hard drives that can be used with the iPad.
    Best iPad External Hard Drive Storage Options
    http://www.unlocktips.com/2012/11/best-ipad-mini-external-hard-drive-memory-stor age-options/
    Another option:
    Expand your iPad's storage capacity with HyperDrive
    http://www.macworld.com/article/1153935/hyperdrive.html
    On the road with a camera, an iPad, and a Hyperdrive
    http://www.macworld.com/article/1160231/ipadhyperdrive.html
     Cheers, Tom

Maybe you are looking for