How to get AD reconciliation event data using SQL query.

Hi All,
I was trying to get all recon data for Target AD Recon from OIM db, but it seems that in OIM 11g we do not have recon data in tables: RCU, RCE, etc. We have to use "RECON_..." tables, my question is does any bady has sample query to fetch data from recon tables?
best
mp

It should be a question of linking your AD user reconciliation table (beginning RA_) with the RECON_EVENTS table by RE_KEY.
In my case I have OID user reconciliation (so my RA_ table will be different to yours) and can use something like:
SELECT RECON_EVENTS.RE_STATUS, RA_OIDUSER5.* FROM RECON_EVENTS, RA_OIDUSER5 WHERE RECON_EVENTS.RE_KEY = RA_OIDUSER5.RE_KEY;
Obviously it then depends on what information you want to filter on and retrieve.

Similar Messages

  • How to retrieve Reconciliation Event Data using OIM API ?

    Hi,
    I want to retrieve values of some field from reconciliation event. I could not find any API method available
    to get event data.

    Check this link
    Re: API for reading reconciliation Processed-Data

  • How to get EKBE-BUDAT (GR Date) using data of BSEG

    hI ,
    My requirement is to get the GR date from EBKE which is in the field BUDAT.
    my report already has BSEG data , using that i want to get the EKBE-BUDAT.
    One of the Function person suggested this:
    Select LFBNR
               LFPOS
               LFGJA
       From EKBE
    into it_ekbe_temp
      where  EKBE -EBELN = EKBEBSEG-EBELN
          AND  EKBE-EBELP = EKBEBSEG-EBELP
          AND  EKBE-BELNR = EKBEBSEG-BELNR
          AND  EKBE-BUZEI = BSEG-BUZEI
    once we get these 3 fields, again put a query on EKBE and get the GR date BUDAT
    select a~ebeln
              a~ebelp
              a~budat
              a~lfbnr
              a~lfpos
              a~lfgja
    into table it_ekbe
    from ekbe as a
    inner join bseg as b on
    b~ebeln = a~ebeln
    and b~ebelp = a~ebelp
    for all entries in it_ekbe_temp
    where a~gjahr = it_ekbe_temp-lfgja
    and   a~belnr = it_ekbe_temp-lfbnr
    and   a~buzei = it_ekbe_temp-lfpos.
    endif.
    Can anyone suggest me how to get the GR date from EKBE using BSEG data.

    Hi Mayank,
    You can get through by hitting MSEG table first , get the required key info. and then hit EKBE and get BUDAT.
    Pass ebeln,ebelp to mseg and get the key info. ...
    Hope this helps.
    Thanks,
    Amresh

  • Filtering data using sql query

    I am pulling data from a database which is a log of events type data. It consists of entries at a certain time, entry text, and even has an entry type. One of those types is known as "open item." This entry has the potential to be present on multiple days over and over. The problem is I only want the "open item" entries to appear that occur on the most recent day of a date range that is input by the user, but also not excluding all other entries from all of the other days that are not "open item." The "is_open=0" is what is excluding the "open items" from all of the entries, but now there needs to be a way to include (ie. "is_open=1") the "open items" on the current day. My query is as follows:
    SELECT     b.log_title, a.log_id, MIN(a.shift_date) AS shift_date,a.shift_id,a.operator_position_descr,a.is_open,a.user_id, MAX(a.annotation_number) AS annotation_number,
                          a.entry_text, MIN(a.entry_time) AS entry_time,a.font_num
    FROM         log_entries AS a INNER JOIN
                          log_list AS b ON a.log_id = b.log_id
    WHERE ((entry_type_code NOT LIKE '%NLOG%'
                AND entry_type_code <> 'daily'
                AND entry_type_code <> 'shift act') or entry_type_code is null)
              AND (is_open = 0  AND is_standing_order = 0 AND is_rolled_forward is null) 
    GROUP BY b.log_title, a.log_id, a.user_id,a.shift_id,a.operator_position_descr,a.is_open, a.entry_text,a.font_num
    Order by entry_time

    Change you WHERE clause to something like this... (You didn't say what kind of DB you were using so I used SQL Server syntax)
    WHERE ((entry_type_code NOT LIKE '%NLOG%'
    AND entry_type_code IN ('daily', 'shift act')) OR entry_type_code is null)
    AND (is_open = 0 OR (is_open = 1 AND a.shift_date >= DateAdd(dd, DateDiff(dd, 0, GetDate()), 0)))
    AND is_standing_order = 0
    AND is_rolled_forward is null
    The biggest change is this... AND (is_open = 0 OR (is_open = 1 AND a.shift_date >= DateAdd(dd, DateDiff(dd, 0, GetDate()), 0))).
    It allows is_open = 1 if the shift_date is =&gt; midnight of the of the current day.
    HTH,
    Jason

  • Failing to import data using SQL query

    I am trying to import data from a sql query to analysis service in SSDT. i went to model > import from data source >Microsoft SQL Server and i chose from query. I typed my query which works fin in SSMS and when i press import if gives me a error. what
    is going on please help here is the error
    DirectQuery error: All tables used when querying in DirectQuery Mode must be from a single relational Data Source.
    here is my query:
    USE AdventureWorks2012;
    SELECT SalesPersonID, [29484] Brian, [29485] Peter, [29486] Frank, [29518] Sarah, [29519] Janet, [29520] Alice, [29608] Martin, [29609] Patrick, [29610] Wasu, [29780] Samanyika, [29781] Vladmire
    FROM
    SELECT SalesOrderID, SalesPersonID, CustomerID 
    FROM Sales.SalesOrderHeader
    WHERE SalesPersonID IS NOT NULL
    As P PIVOT
    COUNT (SalesOrderID) FOR CustomerID IN ([29484], [29485], [29486], [29518],  [29519], [29520], [29608], [29609], [29610], [29780], [29781])
    AS PVT
    ORDER BY SalesPersonID ASC;

    Hi,
    When importing data from relational data source, the steps are:
    In SQL Server Data Tools (SSDT), click the Model menu, and then click Import
    from Data Source.
    On the Connect to a Data Source page, select the type of database to connect to, and then click Next.
    Follow the steps in the Table Import Wizard. On subsequent pages, you will be able to select specific tables and views or apply filters by using the Select
    Tables and Views page or by creating a SQL query on Specify a SQL Query page.
    As we can see on the steps, we need to select one database, so we needn't to write "USE AdventureWorks2012" on the query.
    Reference:Import from a Relational Data Source
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to get two rows of data using GUI_DOWNLOAD

    Hi i am using GUI_DOWNLOAD i am downloading data into excel succesfully.....
    i am getting data as
    Pernr Fname Lname
    1000  F1000 L1000
    2000  F2000 L2000
    requirement
    is to add one more field  on the top of text as what is the run date .
    is it possible using GUI_DOWNLOAD? or need to use oops/OLE only one ?
    RUNDATE: 15/05/2009
    Pernr Fname Lname
    1000  F1000 L1000
    2000  F2000 L2000
    Regards
    sas

    Hi,
    check the below code, it's working as per your requirement. For the second call of FM  use
    append                = 'X'.
    DATA: it_date TYPE TABLE OF char30, "For downloading Rundate
            wa_date LIKE LINE OF it_date.
      CONCATENATE 'Rundate: ' sy-datum+6(2) '.' sy-datum+4(2) '.'
                  sy-datum+0(4) INTO wa_date.
      APPEND wa_date TO it_date.
    "Download the Rundate first
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename              = 'D:\1.xls'
          filetype              = 'DAT'
          write_field_separator = 'X'
        TABLES
          data_tab              = it_date.
    "Now download your data tab with header with the append parameter as X
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename              = 'D:\1.xls'
          filetype              = 'DAT'
          append                = 'X'
          write_field_separator = 'X'
        TABLES
          data_tab              = it_tab
          fieldnames            = it_header.
    Hope this helps you.
    Regards,
    Manoj Kumar P
    Edited by: Manoj Kumar on May 15, 2009 8:46 AM

  • How to load time only no date using sql loader

    I want to load just time portion from the data, the data looks like this
    08/10/09 ,FZ10, AD2R, DFHMIRS , 14, 01:12:07.001230, 01:02:07.112354, TRANS PURGED / TIMED OUT ,
    control file:
    LOAD DATA
    APPEND
    INTO TABLE TRANS_ABENDS
    FIELDS TERMINATED ',' TRAILING NULLCOLS
         TRANS_DATE           DATE "MM/DD/YYYY",
         TRANS_ID          ,
         ABEND_CODE          ,
         ABEND_PGM           ,
         ABEND_COUNT           ,
         RESPONSE_TIME      "to_date(:RESPONSE_TIME,'dd/mm/yy HH:MI:SS.ffffff')",
         CPU_TIME          "to_date(:RESPONSE_TIME,'dd/mm/yy HH:MI:SS.ffffff')",
         ABEND_RESOLUTION     ,
         INSTANCE          CONSTANT 'EAST'
    I can load the time using the control file but it adds the first of the month as date in the column. I want to load only time value. Appreciate any help on this.

    I meant, how are these columns defined in the table that is being loaded?
    If these are defined as DATE, then as was pointed out Oracle will default the date portions if they are not provided in the formatted string.
    If these are defined as NUMBER (with some fractional portion), then you could use a combination of substr, multiplication and concatenation to derive the time as number in the form <seconds>.<fractional seconds>.
    You could also look into the data type INTERVAL DAY TO SECOND.
    SQL> create table trans_abends (
      2   trans_date date,
      3   trans_id char(4),
      4   abend_code char(4),
      5   abend_pgm char(8),
      6   abend_count number(4),
      7   response_time interval day (0) to second (6),
      8   cpu_time interval day (0) to second (6)
      9  )
    10  /
    Table created.
    SQL> insert into trans_abends values (sysdate, 'xxxx', 'xxxx', 'xxxxxxxx', 1, to_dsinterval('+0 01:12:07.001230'), to_dsinterval('+0 01:02:07.112354') )
      2  /
    1 row created.
    SQL> select response_time, cpu_time from trans_abends;
    RESPONSE_TIME
    CPU_TIME
    +0 01:12:07.001230
    +0 01:02:07.112354For the sql loader control file, try
    "to_dsinterval('+0 '||:RESPONSE_TIME)"
    not tested.
    Edited by: user142857 on Nov 18, 2009 12:20 PM
    Edited by: user142857 on Nov 18, 2009 12:27 PM

  • How to display contineous 10 dates from today date using SQL query

    Hi All
    I need a requirement of displaying 10 dates and numbers contineously, I have written a query for getting 10 numbers like this
    select rownum from dual where rownum < 10 connect by rownum = level;
    But i am not able to get the dates, Can any one help me ?

    Hi Satyaki,
    No issues on my 9.2.0.8 client.
    SQL*Plus: Release 9.2.0.8.0 - Production on Sat May 3 09:49:17 2008
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    SQL> conn test/test@db10g
    Connected.
    SQL> select rownum, trunc(sysdate) + rownum from dual where rownum <= 10 connect by rownum = level;
        ROWNUM TRUNC(SYS
             1 04-MAY-08
             2 05-MAY-08
             3 06-MAY-08
             4 07-MAY-08
             5 08-MAY-08
             6 09-MAY-08
             7 10-MAY-08
             8 11-MAY-08
             9 12-MAY-08
            10 13-MAY-08
    10 rows selected.
    SQL> Regards

  • How to get the number value from Oracle SQL Query?

    Hi All,
    I have a query which will return the below output.
    LINE_NUMBER           STRING
    10000                        A,B,C,D
    20000                       X,Y,Z,D
    80000                       P,Q,R,A
    130000                     E,R,T,Y
    210000                     Y,R,G,H
    1300000                   F,H,Y,UThe above output i need to get only the number 1, 2, 8, 13, 21, 210 for each row. Can you give the solution for that?
    Thanks

    Another wild guess
    SQL>  with t as (
    select '10000                        A,B,C,D' str from dual union all
    select '20000                       X,Y,Z,D' str from dual union all
    select '80000                       P,Q,R,A' str from dual union all
    select '130000                     E,R,T,Y' str from dual union all
    select '210000                     Y,R,G,H' str from dual union all
    select '1300000                   F,H,Y,U' str from dual
    select str, rtrim(regexp_substr(str,'\d+'),0) nums from t
    STR                                  NUMS                               
    10000                        A,B,C,D 1                                  
    20000                       X,Y,Z,D  2                                  
    80000                       P,Q,R,A  8                                  
    130000                     E,R,T,Y   13                                 
    210000                     Y,R,G,H   21                                 
    1300000                   F,H,Y,U    13                                 
    6 rows selected.

  • How  to count a number in number using sql query

    Hi Guys,
    I want to count a number in number.please answer this query.
    eg> i have a phone No : 9988585633
    Now i want to count a number of this phone no:
    if i will give no: 9 then it will return 2
    if i will give no: 8 ,tnen it will return 3.
    regards,
    Dhanush

    Something like this:
    $[CHE_TEST@asterix1_impl] var phoneno char(10);
    $[CHE_TEST@asterix1_impl] exec :phoneno := '9988585633';
    PL/SQL procedure successfully completed.
    $[CHE_TEST@asterix1_impl] ed
    Wrote file c:\temp\afiedt.sql
      1  with data as (
      2    select substr(:phoneno, level, 1) no
      3    from dual connect by level <= length(:phoneno)
      4  )
      5  select count(*), no
      6  from data
      7* group by no
    $[CHE_TEST@asterix1_impl] r
      1  with data as (
      2    select substr(:phoneno, level, 1) no
      3    from dual connect by level <= length(:phoneno)
      4  )
      5  select count(*), no
      6  from data
      7* group by no
      COUNT(*)|N
    ----------|-
             2|3
             1|6
             3|8
             2|5
             2|9cheers

  • Deleting Reconciliation Event Data

    HI,
    How we can delete Reconciliation Event Data?
    Thanks in advance.

    If I remember correctly OIM has a Recon Archive. it basically moves the current data by date to matching tables that end in _ARCH.
    it can also delete the arch tables before it starts. With a little research you can probably figure out from looking at those jobs hot delete it.
    if you would rather not risk it then just keep running the archive. be careful of the date range they can run a long time and you probably would want to do this off hours.
    hope that helps.

  • IIf condition between dates using mdx query

    Hi,
    how to check IIF condition between dates using mdx query.
    I able to check single year,plese check below mdx query.I need to check members between years.
    my requirement is member is belongs to between years(2007 to 2010),display "yes" else "NO";
    Could you please give me exact mdx query.
    From,to-2007,2010,if member belongs to 2007to 2010 then disply "yes"else "no".
    how to pass two members in IIf condition.
    WITH
    MEMBER Measures.[test]
    AS Iif([Date].[Calendar Year].currentmember
    is [Date].[Calendar Year].&[2007],"no","yes")
    SELECT {Measures.[test]}
    on 0
    ,[Product].[Subcategory].[Subcategory].MEMBERS * [Date].[Calendar Year].[Calendar Year]
    ON 1
    FROM [Adventure Works]
    indu

    Hi Sriindu,
    consider the following:
    WITH
    MEMBER measures.[test] AS
    IIF
    Exists
    [Date].[Calendar Year].CurrentMember
    [Date].[Calendar Year].&[2007] : [Date].[Calendar Year].&[20010]
    ).Item(0)
    IS
    [Date].[Calendar Year].CurrentMember
    ,"yes"
    ,"no"
    SELECT
    {measures.[test]} ON 0
    [Product].[Subcategory].[Subcategory].MEMBERS
    [Date].[Calendar Year].[Calendar Year] ON 1
    FROM [Adventure Works];
    Philip,

  • Dataload using sql query

    Hi,
    i need to load the data using sql query in to essbase cube by using maxl .If any one knows this please let me know.
    i
    thanks in advance

    Here is a sample maxl script I use to clear, load, and calculation a BSO Application and Database. Both the Application and Database are titled "STAT_2".
    /*** Login to essbase server ***/
    /*** login $1 $2 on $3; ***/
    login 'username 'password' on 'server';
    /*** Set output file to spool all error messages only ***/
    spool stdout on to 'C:\Hyperion\Automation\Logs\STAT_2_ALL_Load_Essbase.LOG';
    spool stderr on to 'C:\Hyperion\Automation\Errors\STAT_2_ALL_Load_Essbase.ERR';
    /*** Clear data in STAT_2 ***/
    /** execute calculation 'STAT_2'.'STAT_2'.'ClrA2Yr'; **/
    /*** Import data from the FACT_STAT_2YEARS table using a load rule ***/
    import database 'STAT_2'.'STAT_2' data connect as 'SQLUserName' identified by 'SQLPassword' using server rules_file 'LdA_All.rul' on error write to 'C:\Hyperion\Automation\Logs\STAT_2_ALL_Load_Essbase.log';
    /*** Calculate data in STAT_2 ***/
    /** execute calculation 'STAT_2'.'STAT_2'.'ClcA2Yr'; ***/
    spool off;
    logout;
    exit;

  • How to get the user entered data?

    Hi all,
    I have created an HTMLB DynPage component.
    In That i have created my input screen with textboxes using response.write method.
    i have added one onConfirm event on which the data whould validate.
    so onConfirm method im trying to get the data with request.getParameter method which returns null...
    how to do...how to get the user entered data to do my validations...can anyone plz advice.
    Thanks,
    Viswes

    Hi
    inputfield or textbox component entered directly using response.write(...) are not htmlb , but html.
    to create portal input field (ie HTMLB), you should do something like
    this in the doProcessBeforeOutput member function
    InputField field1 = new InputField("Id1");
    field1.setSize(8); // 8 characters
    this.getForm().addComponent(field1);
    and in doProcessAfterInput member function
    InputField field1 =
    (InputField) this.getComponentByName("Id1");
    you can then manipulate the content of the field.
    Hope this help,
    Guillaume

  • How to get the plsql table data into output cursor

    Hi,
    Could anybody please help me.
    Below is an example of the scenario..
    CREATE OR REPLACE PACKAGE chck IS
    PROCEDURE getdata(dept_no IN VARCHAR2,oc_result_cursor OUT sys_REFCURSOR);
    TYPE get_rec is record (ename varchar2(20),
    eno number(12));
    TYPE t_recs IS TABLE OF get_rec INDEX BY BINARY_INTEGER;
    emp_tab t_recs;
    END chck;
    CREATE OR REPLACE PACKAGE BODY chck AS
    PROCEDURE getdata(dept_no IN VARCHAR2,oc_result_cursor OUT sys_REFCURSOR)
    is
    BEGIN
    select ename, eno
    bulk collect into emp_tab
    from emp;
    open oc_result_cursor for select * from table(emp_tab); -- I believe something is wrong here ....
    END;
    END chck;
    the above package is giving me an error:
    LINE/COL ERROR
    10/29 PL/SQL: SQL Statement ignored
    10/43 PL/SQL: ORA-22905: cannot access rows from a non-nested table
    item
    let me know what needs to be changed
    Thanks
    Manju

    manjukn wrote:
    once i get the data into a plsql table, how to get this plsql table data into the cursor?There is no such thing as a PL/SQL table - it is an array.
    It is nothing at all like a table. It cannot be indexed, partitioned, cluster, etc. It does not exist in the SQL engine as an object that can be referenced. It resides in expensive PGA memory and needs to be copied (lock, stock and barrel) to the SQL engine as a bind variable.
    It is an extremely primitive structure - and should never be confused as being just like a table.
    Its use in SQL statements is also an exception to the rule. Sound and valid technical reasons need to justify why one want to push a PL/SQL array to the SQL engine to run SELECT 's against it.

Maybe you are looking for

  • BT totally refuses to give help.

    Today I have phoned BT tech support on a number of occassions trying to get my speed improved.  On five of the occassions I have been told that BT will not do anything until the 29th of this month after the migration from 8Mb to 20Mb has been done. 

  • IS-R:functional modules in IS-Retail

    Hi experts,                 Can anyone tell me the" functional  modules" of IS-Retail?Give all the functional modules which you use and give the T-code to execute them. Regards Swamy

  • Launch PB in CS5 and get "The operation could not be completed."

    I had been using the PB plug-in previously and it worked fine.  Since that time, I have installed no new hardware or drivers but have installed Topaz Adjust 4 filter.  Now, when I have an image opened in PS CS5 and I click Filters -> Pixel Bender ->

  • Apple needs to bring back the month preview on IOS7 calendar.

    Am I the only one who finds this a not very well thought out move? The preview is so helpful! Instead of going into each day and looking at the individual appts/events, it was so much easier to look at a month, tap a day and it would show a list of a

  • Bookmarks not showing when bookmark icon tapped

    Hi, I have created an ePub and am seeing a problem with it when trying to add a bookmark. Sometimes tapping the bookmark icon in the top right of the book will result in the red bookmark ribbon appearing, but then on other occasions, however much I t