Try to export using IOM API via tcExportOperationsIntf

Hi all

I wrote a custom code for exports of components to IOM API Help and I am able to take exports from

Research, resources, process form and process definitions.

But I'm not able to export role, resource, Access Policy, policy on the approval and debugging has been established that

ExportOperationsIntf.findObjects (Type, Name); Returns null for role, resource, Access Policy, policy on the approval.

If I try to research role, resource, Access Policy, political approval using OOTB Deployment Manager export then I can see my components required, but the API, I am not able to do.

I tried to give the name as * DemoRole * and "TestDemoRole" [name], but it didn't work.

Fact ExportOperationsIntf.findObjects (Type, Name); data only works for resouce?

All the world is facing this problem?

IOM Env = 11.1.2.2.0

Thank you

Rahul

The categories should match while yours are slightly poorly named.

You can get a list of available categories using the following code snippet:

tcExportOperationsIntf = dm.getService (tcExportOperationsIntf.class) operations;
Categories collection = operations.retrieveCategories ();
for (String category: categories)
System.out.println (Category);

For reference, in OIM 11 g R2 PS2, the following categories may be used:

-CustomResourceBundle
-eventhandlers
-Form process
-CertificationDefinition
-Organization
-RiskConfiguration
-ITResource
-NOTIFICATIONTEMPLATE
-PasswordPolicy
-RequestDataset
-DataObjectDef
-CertificationConfiguration
-Metadata role
-User group
-PrepopAdapter
-Process
-Plugin
-ITResourceDef
-Resources
-EmailDef
-TaskAdapter
-SystemProperties
-ApplicationInstance
-GenericConnector
-GTCProvider
-Rule
-User metadata
-CatalogDefinition
-ApprovalPolicy
-Job
-Jar
-Metadata Org
-Search
-Task
-ErrorCode

Tags: Fusion Middleware

Similar Questions

  • Try to export a Table Alias via ODI

    I wanted initially extracted table Alias Essbase Maxl (original note below) - but not sure it's viable. Whoever did this by ODI?

    ===============================

    I'm having a hard time finding the correct MaxL to export and table alias - basically, I need to export the default table, shift some periods and years and then recharge it in a table different aliases. Any help is appreciated!

    [email protected]!

    Hello

    It is possible, but it takes a little effort, I did on this blog a bit backwards:-http://john-goodwin.blogspot.com/2008/10/odi-essbase-challenge-extracting.html

    The other option is to run some maxl running an OS of ODI command to extract of the alias, and then read information in the output file.
    MAXL statement would be:-database query 'Sample'.' Basic ' list of alias_names in table_alias "Default."

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How can I update the search using IOM API values?

    Hello
    I'm trying to update lookvalue but I'm tcInvalidValueException and here is my code


    < String, String > HashMap updateValMap = new HashMap < String, String > ();
    updateValMap.put (meOrg.getValue (), meOrg.getKey () () m:System.NET.SocketAddress.ToString m:System.NET.SocketAddress.ToString ());
    I put the values that are inserted in the hash table

    createLookup.updateLookupValue (lookupCode, updateValMap "E-mail user") ;// didn't work

    so tried
    createLookup.updateLookupValue (lookupCode, "Email", "USER_EMAIL123", "", "en", "US"). didn't work

    can anyone suggest what the problem

    Thank you
    Rahul Shah

    updateLookupMap.put ("search Definition.Lookup Code Information.Decode", "VALUE");
    lookupOperationsIntf.updateLookupValue ("SELECTION list. TEST, "CODE KEY", updateLookupMap);

  • need to extend the end date of user using the API of the IOM

    Hello
    I have a requirement extension enddate to the user to some 30 days using IOM API-tcUserOperationsIntf. I know there is a Thor.API.Operations.tcUserOperationsIntf.updateUser (Thor.API.tcResultSet poUserResultSet, phAttributeList java.util.Map) method that can be used to update the data of the user in DB IOM.
    If someone has run this method then please let me know a procedure step by step to implement this method. I am new to using the API of the IOM.


    Thank you
    Kalpana.

    Try this:

    tcUserOperationsIntf userOperationsIntf = (tcUserOperationsIntf) getUtility ("Thor.API.Operations.tcUserOperationsIntf");

    protected void execute() {}
    try {}
    beginning of the custom code
    tcUserOperationsIntf oUserObj = (tcUserOperationsIntf) getUtility ("Thor.API.Operations.tcUserOperationsIntf");
                   
    System.out.println ("executing query");
    custom code starts
    tcUserOperationsIntf usrOps;
    The criteria map = new HashMap();
    Criteria.put ("Users.Key", "86821");
    System.out.println ("user key-86821");
                   
    tcResultSet users = oUserObj.findUsers (criteria);
    System.out.println (UsersList.getTotalRowCount ());
    Criteria.put ("Users.End Date 12:01:56.000000000 2012-06-24","" ");
    oUserObj.updateUser (users, criteria);
    } catch (Exception e) {}
                   
    }
    }

  • How to use the API of the IOM in Self Service identity custom region

    Hi all

    I developed a custom in Self Service identity using this guide area: customization of the Interface - 11 g Release 2 (11.1.2.1.0)

    Inside this area, I have a simple form that allows the creation of users. This form uses the API of the IOM, in particular the following line:

    UserManager usermgr = Platform.getService(UserManager.class);
    

    The error I got is:

    < error > < oracle.iam.platform.utils.SpringBeanFactory > < BEA-000000 > < parsin instantiation Spring Bean Factory Failed.IOExceptiong XML document resource path of class [META-INF/iam-spring-config. XML]; nested exception is java.io.FileNotFoundException: resource path of class [META-INF/AIm-spring-config.] XML] could not be opened because there is no >

    I use it because I think that I am inside the ISS. For this reason I don't want to use the client method to retrieve the UserManager (which obviously works):

            String ctxFactory = "weblogic.jndi.WLInitialContextFactory";
            String serverURL = "t3://" + HOSTNAME + ":" + PORT;
            
            Hashtable env = new Hashtable();
            env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL, ctxFactory);
            env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, serverURL);
            
            OIMClient oimClient = new OIMClient(env);
            try {
                oimClient.login(OIM_USERNAME, OIM_PASSWORD.toCharArray());
            } catch(LoginException e) {
                e.printStackTrace();
            }
            UserManager usermgr = client.getService(UserManager.class);
    

    It is possible to use the UserManager methods in this case?

    Thanks in advance for your help.

    Manual

    Solved.

    Just replace

    UserManager usrmgr = Platform.getService(UserManager.class);
    

    with

    UserManager usermgr = OIMClientFactory.getUserManager();
    

    Manual

  • Failed to export.  Receive a notice of error 2 Win32 API whenever I try to export.  Says it can't locate the files.  Huh?

    Ok

    I get a system error whenever I try to export. "An internal error has occurred: error in Win32 API 2 (the system cannot find the specified file) when the Shell Execute ExW of the AgWorkspace.shellExecute." "  Scary sounds.  In essence, LR 5.6 has just crashed and burned.  Anyone out there have a clue?

    Thank you

    Russell Abraham

    [email protected]

    I use Windows 64, but I get the 2 Win32 API error when exporting?

  • Issue while deploying code that uses the api of the IOM: OIMClient

    We strive to deploy a war file with some java code that is interfaced with the IOM by using the api OIMClient. Note that we have all necessary spring pots and it works great on Tomcat. Our production env is on weblogic and when deploy us the file. War on weblogic deploys it fine. But when we test some web pages, we get the following error:

    Root cause]] of ServletException.
    java.lang.NoClassDefFoundError: org/springframework/jndi/JndiTemplate
    to oracle.iam.platform.OIMClient. < init > (OIMClient.java:83)
    ......
    Truncated. check the log file full stacktrace
    >


    The class file is available in a container called Spring framework with the same package structure: org.springframework.jndi.jnditemplate. I wonder why he cannot find the definition for this class. I also tried to delete these jars to war file and adding them to the lib dir field. I always find myself with the same exception.

    Appreciate all the help I can get.

    Published by: 958829 on Sep 12, 2012 23:01

    try to add the jar of spring separately to help:->-> deployments weblogic console add jars

  • Define the process shape and available resources using the IOM APIs

    Hello

    I'm provision the resource in the IOM with the APIs of the IOM. I know that the API to use is provisionObject (long plUserKey, long plObjectKey). The problem is that I have some data to be set manually on the form of courses, so I have to send it via the API.

    Please guide me how can I set the shape of process data and then provide a resource of IOM with the APIs.

    Thank you.

    Rahul

    You can do it in both directions.
    1. you can use adapter pre-population.
    2. you can use the API.
    http://docs.Oracle.com/CD/E21764_01/apirefs.1111/e17334/Thor/API/operations/tcFormInstanceOperationsIntf.html#setProcessFormData_long__java_util_Map _

    extract the information from the object put into service

    http://docs.Oracle.com/CD/E21764_01/apirefs.1111/e17334/Thor/API/operations/tcUserOperationsIntf.html#getObjects_long _

    That
    prntPrvsndPrsInsKey - retrieves the Instance.Key process for provisioned resource object
    hashPrntData - a card that conatins keys as process form column name / value in the form of data.

    tcforminstanceoperationsintf.setProcessFormData (prntPrvsndPrsInsKey, hashPrntData);

    Thank you.
    Kuldeep

  • need to update the date of the end of the user using the API of the IOM

    We have a requirement where we need to update the date of the end of the user. The details of the user as usr_key, number of days to extend (such as 30 days or 60 days), and affects manager is provided by SOA (maybe by BPEL). In the java class, I need to add the number of days of the closing date of the user and then update the table of the usr by IOM API method - usrMap.put ("USR_END_DATE", updatedEndDate);

    I wrote a small program, but it has erros. Please help me in this situation.
    ' public boolean updateEnddate (String usrKey, String managerKey, String NombreJours) {}
    Boolean result = false;
    String NombreJours;
    int totalNumUsers = 0;
    HashMap usrMap = new HashMap();
    usrMap.put ("Users.Key", usrKey);
    usrMap.put ("USR_MANAGER_KEY", managerKey);
    try {}
    DateFormat sdfSource = new SimpleDateFormat("yyyy-MM-dd");
    Date date = sdfSource.parse("USR_END_DATE");
    SimpleDateFormat sdfDestination = new SimpleDateFormat("dd-MMM-yyyy");
    String userEndDate = sdfDestination.format (date);
    tcResultSet = this.usrIntf.findUsers (usrMap) users;
    totalNumUsers = usersList.getRowCount ();
    If (totalNumUsers > 0)
    for (int i = 0; i < totalNumUsers; i ++) {}
    usersList.goToRow (i);
    updatedEndDate = userEndDate + NombreJours;
    usrMap.put ("USR_END_DATE", updatedEndDate);
    this.usrIntf.updateUser (users, usrMap);
    result = true;
    }
    on the other
    result = true;
    }




    Thank you
    Kalpana.

    Calculate the new date

    /**
    * This method is used to obtain the new date after adding x-days
    @param strDate - date today
    @param daysToAdd - x-days
    * @return Nouvelle_date - date after the addition of x days
    */
    private String incrementDate (Date strDate, int daysToAdd) {}
    Start date
    Logger.info("NotifyLastDayOfService::incrementDate(): entrez»);
    SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-DD 00:00:00");
    Dim str As String = sdf.format (strDate);
    Calendar c = Calendar.GetInstance ();
    try {}
    c.setTime (sdf.parse (str));
    } catch (ParseException exception) e {}
    e.printStackTrace ();
    }
    c.Add (Calendar.DATE, daysToAdd); number of days to add
    String PROMOTIONDate = sdf.format (c.getTime ());
    System.out.println ("calculated End Date:" + PROMOTIONDate);
    Logger.info("NotifyLastDayOfService::incrementDate(): sortie»);
    return Nouvelle_date;
    }

    This should solve your problem :)

  • Export of DataPump API - number of rows exported using

    Hello

    I'm working on the procedure to export data in the table before deleting the partition. It will be run by the Scheduler of the data, that's why I want to run the datapump job using the API.

    I wonder, if it is possible to get the number of rows exported. I would compare with the number of rows in a partition before you delete the partition.


    Thank you

    Krystian

    Hello

    Don't know exactly how you want the number of rows per partition that have been exported, but here are a few ideas:

    1. create a log file by using 'add_file ':

    -Add a log file

    dbms_datapump.add_file (h, ' DEPTJOB.log ', a', NULL,)

    dbms_datapump.Ku$ _file_type_log_file);

    It is also in my example included below.  Here is the content after the DEPTJOB.log workload (situated in Oracle Directory object would be "in my example):

    $ cat /tmp/DEPTJOB.log

    Departure 'SCOTT '. "" DEPTJOB ":

    Object type TABLE_EXPORT/TABLE/TABLE processing

    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

    . . "exported"SCOTT" DEPT': 'SYS_P1581' 5,929 KB 2 lines

    . . "exported"SCOTT" DEPT': 'SYS_P1582' 5,914 KB 1 lines

    . . "exported"SCOTT" DEPT': 'SYS_P1583' 5,906 KB 1 lines

    Table main 'SCOTT '. "' DEPTJOB ' properly load/unloaded

    ******************************************************************************

    Empty the files together for SCOTT. DEPTJOB is:

    /tmp/Dept.dmp

    Job 'SCOTT '. "" DEPTJOB "managed to 00:00

    You can then review or extract the information from the log file.

    2. save the master table and the query for the busy lines.

    Use the parameter "KEEP_MASTER":

    -Keep the main table to be deleted after employment ends

    dbms_datapump.set_parameter(h,'KEEP_MASTER',1);

    Here's my example, the request to the main table is at the end.

    $ sqlplus scott/tiger @deptapi

    SQL * more: version 12.2.0.0.2 Beta on Fri Jan 22 12:55:52 2016

    Copyright (c) 1982, 2015, Oracle.  All rights reserved.

    Last successful login time: Friday, January 22, 2016 12:55:05-08:00

    Connected to:

    Database Oracle 12 c Enterprise Edition Release 12.2.0.0.2 - 64-bit Beta

    With the options of partitioning, OLAP, advanced analytics and Real Application Testing

    Connected.

    SQL > SET FEEDBACK 1

    SQL > SET 10 NUMLARGEUR

    SQL > SET LINESIZE 2000

    SQL > SET TRIMSPOOL ON

    SQL > SET TAB OFF

    SQL > SET PAGESIZE 100

    SQL > SET SERVEROUTPUT ON

    SQL >

    SQL > Rem save on the old table of scott.dept

    SQL > dept and rename it dept_old.

    Renamed table.

    SQL >

    SQL > Rem re-create it with partitions

    SQL > CREATE TABLE dept (deptno NUMBER varchar (14) dname, loc varchar (13)) PARTITION INTO 3 PARTITIONS HASH (deptno)

    2.

    Table created.

    SQL >

    SQL > Rem fill the dept table

    SQL > insert into dept select * from dept_old;

    4 lines were created.

    SQL >

    SQL > Rem now create datapump job export SCOTT. DEPT. using the API

    SQL > DECLARE

    2: NUMBER;         -Handle Datapump

    3 jobState VARCHAR2 (30);   -To keep track of job status

    4 ind NUMBER;         -Index of the loop

    5 the ku$ _LogEntry;   -For error messages and work in PROGRESS

    6 js ku$ _JobStatus;  -The State of the work of get_status

    7 jd ku$ _JobDesc;    -The get_status job description

    8 m ku$ _Status;     -The status returned by get_status object

    9 sql_stmt VARCHAR2 (1024);

    nom_partition 10-VARCHAR2 (50);

    11 rows_completed NUMBER;

    12

    BEGIN 13

    14-

    15 run the Installer based on the operation to perform.

    16-

    17 h: = dbms_datapump.open ('EXPORT', 'TABLE', NULL, 'DEPTJOB', NULL);

    18 dbms_datapump.add_file (h, 'dept.dmp', 'd', NULL,

    dbms_datapump.Ku$ _file_type_dump_file 19, 1);

    20

    21    --- Add a logfile                                                         

    22 dbms_datapump.add_file (h, ' DEPTJOB.log ', a', NULL,)

    23 dbms_datapump.ku$ _file_type_log_file);

    24

    25 dbms_datapump.metadata_filter (h, 'SCHEMA_EXPR', ' IN ("SCOTT") ");

    26 dbms_datapump.metadata_filter (h, 'NAME_LIST', "'DEPT"');

    27

    28

    29-

    30 start work.

    31-

    32 dbms_datapump.set_parameter (h, 'SILENT', 'banner');

    33

    34 -keep the main table to be deleted after employment ends

    35 dbms_datapump.set_parameter(h,'KEEP_MASTER',1);

    36

    37 dbms_datapump.start_job (h);

    38

    39-

    40 - run to grabbing the output of the job and write in the output log.

    41-

    42 jobState: = "UNDEFINED";

    43 WHILE (jobState! = "COMPLETED") AND (jobState! = "STOPPED")

    44 LOOP

    45 dbms_datapump.get_status (h,

    dbms_datapump.Ku$ _status_job_error 46.

    dbms_datapump.Ku$ _status_wip 47, -1, jobState, m);

    48

    49      --

    50. If we received messages WIP or error for the work, display them.

    51      --

    52 IF (BITAND(sts.mask,dbms_datapump.ku$_status_wip)! = 0)

    53 THEN

    54: = sts.wip;

    55 ON THE OTHER

    56 IF (bitand(sts.mask,dbms_datapump.ku$_status_job_error)! = 0)

    57 THEN

    58: = sts.error;

    59 ON THE OTHER

    the 60: = NULL;

    61 END IF;

    62 END IF;

    63

    64 the IS NOT NULL IF

    65 THEN

    66 ind: = the. FIRST;

    67 then AS ind IS NOT NULL

    68 LOOP

    69 dbms_output.put_line ((ind). LogText);

    70 ind: = the. Next (IND);

    LOOP END 71;

    72 END IF;

    73 END LOOP;

    74

    75-

    76 - release work.

    77-

    78 dbms_datapump.detach (h);

    79

    80-

    81. all exceptions that spread at this point will be captured.

    82 - the details are extracted from get_status and displayed.

    83-

    EXCEPTION OF 84

    85, SO THAN OTHERS THEN

    BEGIN 86

    87 dbms_datapump.get_status (h,

    dbms_datapump.Ku$ _status_job_error, 0-88,.

    89 jobState, sts);

    90 IF (BITAND(sts.mask,dbms_datapump.ku$_status_job_error)! = 0)

    91 THEN

    the 92: = sts.error;

    93 the IS NOT NULL IF

    94 THEN

    95 ind: = the. FIRST;

    96 although ind IS NOT NULL

    LOOP OF 97

    98 dbms_output.put_line ((ind). LogText);

    99 ind: = the. Next (IND);

    100 END LOOP;

    101 END IF;

    102 END IF;

    103

    BEGIN 104

    105 DBMS_DATAPUMP. STOP_JOB (m, 1, 0, 0);

    EXCEPTION OF 106

    107. WHEN OTHER NULL THEN;

    END 108;

    109

    110 EXCEPTION

    111, SO THAN OTHERS THEN

    112 dbms_output.put_line ('ORA-00000: an unexpected exception during ' |)

    113 ' Manager of exceptions. ' ||

    114 ' sqlcode = ' | TO_CHAR (SQLCODE));

    END 115;

    END 116;

    117.

    Departure 'SCOTT '. "" DEPTJOB ":

    Object type TABLE_EXPORT/TABLE/TABLE processing

    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

    . . "exported"SCOTT" DEPT': 'SYS_P1581' 5,929 KB 2 lines

    . . "exported"SCOTT" DEPT': 'SYS_P1582' 5,914 KB 1 lines

    . . "exported"SCOTT" DEPT': 'SYS_P1583' 5,906 KB 1 lines

    Table main 'SCOTT '. "' DEPTJOB ' properly load/unloaded

    ******************************************************************************

    Empty the files together for SCOTT. DEPTJOB is:

    /tmp/Dept.dmp

    Job 'SCOTT '. "" DEPTJOB "managed to 00:00

    PL/SQL procedure successfully completed.

    SQL >

    SQL > table main query Rem for number of lines completed

    SQL > column nom_partition format a10

    SQL > format 9999 column lines

    SQL > SELECT nom_partition, COMPLETED_ROWS FROM SCOTT . DEPTJOB WHERE BASE_OBJECT_NAME = "DEPT";

    PARTITION_ COMPLETED_ROWS

    ---------- --------------

    SYS_P1581 2

    SYS_P1583 1

    SYS_P1582 1

    3 selected lines.

    SQL >

    SQL > "EXIT";

    3. you might even extract information of the call from the command line:

    $ sqlplus scott/tiger @deptapi.sql | grep 'exported ' | AWK ' {print "Table:" $4, 'charge' $7, $8} '

    Table: 'SCOTT '. "" DEPT ":"SYS_P1581"loaded 2 rows

    Table: 'SCOTT '. "' DEPT ': 'SYS_P1583' loaded 1 lines

    Table: 'SCOTT '. "' DEPT ': 'SYS_P1582' loaded 1 lines

  • Create 10000 of TI resource Instance using the API of the IOM.

    Hello

    I need to develop a utility that will create 1000's of resources COMPUTER to IOM, the utility must read the resource data in a CSV file.

    Utility must use the Api of the IOM to develop this feature...

    Please provide feedback

    Kind regards


    Abreu

    Thanks Abhishek.

    I have a doubt linked to this resource setting that is there in the CSV file, how we can pass these parameters as aphAttributes in createITResourceInstance method.

    Kind regards

    Sri

  • The list of organizations using the API of the IOM

    Hi, I use OIM 11 G PS2, when I connect with a normal user and the search page open user, one of the field it is possible to use as filter of organization, if I click on the search organization icon and then click on search, leaving empty, all fields, I get a list of organizations, which should be the ones where the user is enabled. How can I get the same list of organizations through IOM API? Regards Leo

    Use an asterisk in your search

    OrganizationManager (Oracle Fusion Middleware Java QAnywhere for Oracle Identity Manager)

    -Kevin

  • I use a PC.  Problem: When you try to export my photo developed in the library, a message appears that says, "can't export, or offline or missing Source files."  How can I get my picture exported to my hard drive?

    I use a PC.  Problem: When you try to export my photo developed in the library, message box appears that says, 'impossible to export... '. Offline or missing source files. "How to fix this to export my photos on my hard drive?

    Lightroom is not in the expected location that he thinks that the photos are in the photos.

    This can happen because you have (perhaps accidentally) moved, renamed or deleted photos or folders containing them outside of Lightroom.

    The solution is to use your operating system to find the new location of the photos. Take note of where they are. Then in Lightroom, you can reconnect to them through these instructions: Adobe Lightroom - find folders and files moved or missing

    As an alternative, if the files were simply moved (and not renamed or deleted), you can use your operating system to move towards where Lightroom is expected to make them.

  • Seeking help with a problem with the LR I use LR CC on a laptop, when you try to export a picture to an external hard drive, I am now without apparent reason to get the following message, "could not create a JPEG sponsor limit you 92 k Bytes.Plea.

    Seeking help with a problem with the LR


    I use LR CC on a laptop, when you try to export a picture to an external hard drive, I am now without apparent reason to get the following message.

    "Could not create a respondent JPEG limit you 92 k Bytes.Please increase the size limit files
    . (1).

    .....

    I tried to increase the size of the file several times,

    I left LR

    I restarted the computer.


    Any help or advice for this problem will be greatly appreciated


    Thanks in advance


    @stu

    Not because of the number of pixels, in this photo and the chosen level of quality there is no possible way to create a JPG file to the size of file you requested. You must change your export settings.

    Show us a copy of the export dialog box, so we can see clearly the part file setting and the size of the Image.

    Also indicate the number of this image (width and height) pixels after cropping (as appropriate) and prior to export.

  • Creation of posts of Siebel using JAVA API in IOM

    Hi Experts,

    I need to create positions of Siebel using JAVA API.

    I try to incorporate OIM 11 g-Siebel connector, but this connector is not able to create new positions of siebel.

    Please tell me where to find the info/examples of use of the api or how to best integrate?

    Thanks in advance

    Kiran

    This is useful.

    I was able to create a post of siebel using the model given here,

    Creating New position in Siebel using Siebel DataBean

Maybe you are looking for