OIM 11g sql query
HI all,
Please help me with a SQL query which fetches all users with a specific resource in provisioning state in OIM 11g.
Thanks.
Hi Gyan,
Thankyou it helped us a lot.
But I started working with OIM apis but I am not aware of the back end flow.
lets say when a user is being created, a request being raised untill approved, or a resource is provisioned ...I want to know what keys will generated and where they gets stored.
It would be very helpful for me if u explain and explain some more scenrios.
Thanks in advance.
Similar Messages
-
11g SQL query syntax/results differ from 10g
Hello,
A bit of an odd situation. We have a report in 10g that is working as expected and when we run the same report in 11g we slightly different results. The same physical tables and columns are being used between each report and the number of records (17) returned to OBI are the same. Both queries are pulling from the same database with the same user id. As there are differences in how 10g runs queries vs 11g, are there any odd behaviors that I should keep an eye out for in how 11g assembles the data that's returned from the db prior to presenting it on the Analysis?
10g Results (correct):
Region...............Actuals (Prior Qtr).....Up...........Plan Amount....................% of Plan
AP...........................10,489..............8,965..............................................................
Americas................114,208...........110,779..................6...........................1969411%
EMEA.....................26,799..............23,976..............................................................
UNASSIGNED....................................................149,957...........................0%
Grand Total.............151,496...........143,721..........149,962.........................96%
11g Results (incorrect):
Region...............Actuals (Prior Qtr).....Up...........Plan Amount....................% of Plan
AP...........................10,180..............8,965............................................................
Americas.................90,878...........110,779............................................................
EMEA.....................24,978.............23,976............................................................
UNASSIGNED....................................................149,957...........................0%
Grand Total.............126,037..........143,721..........149,957.........................96%
Thank you!
Mike
-------------------- 10g query--------------------------
-------------------- Sending query to database named EBS Rapid Data Store (id: <<5087545>>):
WITH
SAWITH0 AS (select T28761.PERIOD_NAME as c2,
T28761.PERIOD_START_DATE as c3,
T28761.QUARTER_RANK as c4,
ROW_NUMBER() OVER (PARTITION BY T28761.QUARTER_RANK ORDER BY T28761.QUARTER_RANK DESC) as c5
from
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ ),
SAWITH1 AS (select Case when case SAWITH0.c5 when 1 then SAWITH0.c3 else NULL end is not null then Rank() OVER ( ORDER BY case SAWITH0.c5 when 1 then SAWITH0.c3 else NULL end ASC NULLS LAST ) end as c1,
SAWITH0.c2 as c2,
SAWITH0.c4 as c3
from
SAWITH0),
SAWITH2 AS (select min(SAWITH1.c1) over (partition by SAWITH1.c3) as c1,
SAWITH1.c2 as c2
from
SAWITH1),
SAWITH3 AS (select distinct SAWITH2.c1 + 1 as c1,
SAWITH2.c2 as c2
from
SAWITH2),
SAWITH4 AS (select T28761.QUARTER_RANK as c2,
T28761.QUARTER_YEAR_NAME as c3,
T28761.PERIOD_START_DATE as c4,
ROW_NUMBER() OVER (PARTITION BY T28761.QUARTER_RANK ORDER BY T28761.QUARTER_RANK DESC) as c5
from
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ ),
SAWITH5 AS (select Case when case SAWITH4.c5 when 1 then SAWITH4.c4 else NULL end is not null then Rank() OVER ( ORDER BY case SAWITH4.c5 when 1 then SAWITH4.c4 else NULL end ASC NULLS LAST ) end as c1,
SAWITH4.c2 as c2,
SAWITH4.c3 as c3
from
SAWITH4),
SAWITH6 AS (select distinct min(SAWITH5.c1) over (partition by SAWITH5.c2) as c1,
SAWITH5.c2 as c2,
SAWITH5.c3 as c3
from
SAWITH5),
SAWITH7 AS (select D1.c1 as c1,
D1.c2 as c2,
D1.c3 as c3,
D1.c4 as c4,
D1.c5 as c5,
D1.c6 as c6
from
(select sum(case when T37838.POL_VERSION_FLAG = 'C' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 then nvl(T37838.AMOUNT , 0) when T37838.PERIOD_NAME <> 'March-13' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 and T37838.POL_VERSION_FLAG is null then nvl(T37838.AMOUNT , 0) else 0 end ) as c1,
SAWITH6.c3 as c2,
T41894.ICN_GROUP as c3,
SAWITH6.c2 as c4,
T41894.ICN_GROUP_CODE as c5,
T30728.PARENT_REGION as c6,
ROW_NUMBER() OVER (PARTITION BY T30728.PARENT_REGION, T41894.ICN_GROUP_CODE, SAWITH6.c2 ORDER BY T30728.PARENT_REGION ASC, T41894.ICN_GROUP_CODE ASC, SAWITH6.c2 ASC) as c7
from
SAWITH3 left outer join (
XXFI.XXFI_REVFCST_POL_REPORTING_V T37838 /* Fact_POL_Snapshot */ left outer join
XXFI.XXFI_GEO_REGION_ACCUM T30728 /* Dim_Regions */ On T30728.COUNTRY_CODE = T37838.SHIP_TO_COUNTRY_CODE2) left outer join
XXFI.XXFI_ICN_OWNERS_V T41894 /* Dim_ICN_Override */ On T37838.OVERRIDE_ICN = T41894.ICN_CODE) On SAWITH3.c2 = T37838.PERIOD_NAME,
SAWITH6
where ( SAWITH6.c1 = SAWITH3.c1 and SAWITH6.c3 = '2010-Q2' and (T37838.PROSPECT_NUMBER is null or T37838.PROSPECT_NUMBER not like '%Budget%') )
group by T30728.PARENT_REGION, T41894.ICN_GROUP_CODE, T41894.ICN_GROUP, SAWITH6.c2, SAWITH6.c3
) D1
where ( D1.c7 = 1 ) ),
SAWITH8 AS (select sum(case when T37838.POL_VERSION_FLAG = 'C' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 then nvl(T37838.AMOUNT , 0) when T37838.PERIOD_NAME <> 'March-13' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 and T37838.POL_VERSION_FLAG is null then nvl(T37838.AMOUNT , 0) else 0 end ) as c1,
sum(case when T37838.POL_VERSION_FLAG = 'C' and T37838.FORECAST_PROBABILITY_PERCENT >= 50 then nvl(T37838.AMOUNT , 0) when T37838.PERIOD_NAME <> 'March-13' and T37838.FORECAST_PROBABILITY_PERCENT >= 50 and T37838.POL_VERSION_FLAG is null then nvl(T37838.AMOUNT , 0) else 0 end ) as c2,
T30728.PARENT_REGION as c3,
T28761.QUARTER_YEAR_NAME as c6,
T41894.ICN_GROUP as c7,
T28761.QUARTER_RANK as c8,
T41894.ICN_GROUP_CODE as c9
from
XXFI.XXFI_REVFCST_POL_REPORTING_V T37838 /* Fact_POL_Snapshot */ left outer join
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ On T28761.PERIOD_NAME = T37838.PERIOD_NAME) left outer join
XXFI.XXFI_GEO_REGION_ACCUM T30728 /* Dim_Regions */ On T30728.COUNTRY_CODE = T37838.SHIP_TO_COUNTRY_CODE2) left outer join
XXFI.XXFI_ICN_OWNERS_V T41894 /* Dim_ICN_Override */ On T37838.OVERRIDE_ICN = T41894.ICN_CODE
where ( T28761.QUARTER_YEAR_NAME = '2010-Q2' and (T37838.PROSPECT_NUMBER is null or T37838.PROSPECT_NUMBER not like '%Budget%') )
group by T28761.QUARTER_YEAR_NAME, T28761.QUARTER_RANK, T30728.PARENT_REGION, T41894.ICN_GROUP_CODE, T41894.ICN_GROUP),
SAWITH9 AS (select D1.c1 as c1,
D1.c2 as c2,
D1.c3 as c3,
D1.c4 as c4,
D1.c5 as c5,
D1.c6 as c6,
D1.c7 as c7,
D1.c8 as c8,
D1.c9 as c9
from
(select sum(SAWITH8.c1) over (partition by SAWITH8.c3) as c1,
sum(SAWITH8.c2) over (partition by SAWITH8.c3) as c2,
SAWITH8.c3 as c3,
sum(SAWITH8.c1) over (partition by SAWITH8.c8, SAWITH8.c9, SAWITH8.c3) as c4,
sum(SAWITH8.c2) over (partition by SAWITH8.c8, SAWITH8.c9, SAWITH8.c3) as c5,
SAWITH8.c6 as c6,
SAWITH8.c7 as c7,
SAWITH8.c8 as c8,
SAWITH8.c9 as c9,
ROW_NUMBER() OVER (PARTITION BY SAWITH8.c3, SAWITH8.c8, SAWITH8.c9 ORDER BY SAWITH8.c3 ASC, SAWITH8.c8 ASC, SAWITH8.c9 ASC) as c10
from
SAWITH8
) D1
where ( D1.c10 = 1 ) ),
SAWITH10 AS (select sum(T34877.AMOUNT) as c1,
T28761.QUARTER_YEAR_NAME as c3,
T30728.PARENT_REGION as c4,
T41894.ICN_GROUP as c5,
T28761.QUARTER_RANK as c6,
T41894.ICN_GROUP_CODE as c7
from
XXFI.XXFI_REVENUE_BUDGET_ACCUM T34877 /* Fact_Revenue_Budgets */ left outer join
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ On T28761.PERIOD_NAME = T34877.PERIOD_NAME) left outer join
XXFI.XXFI_GEO_REGION_ACCUM T30728 /* Dim_Regions */ On T30728.COUNTRY_CODE = T34877.SHIP_TO_COUNTRY_CODE2) left outer join
XXFI.XXFI_ICN_OWNERS_V T41894 /* Dim_ICN_Override */ On T34877.OVERRIDE_ICN = T41894.ICN_CODE
where ( T28761.QUARTER_YEAR_NAME = '2010-Q2' )
group by T28761.QUARTER_YEAR_NAME, T28761.QUARTER_RANK, T30728.PARENT_REGION, T41894.ICN_GROUP_CODE, T41894.ICN_GROUP),
SAWITH11 AS (select D1.c1 as c1,
D1.c2 as c2,
D1.c3 as c3,
D1.c4 as c4,
D1.c5 as c5,
D1.c6 as c6,
D1.c7 as c7
from
(select sum(SAWITH10.c1) over (partition by SAWITH10.c4) as c1,
sum(SAWITH10.c1) over (partition by SAWITH10.c6, SAWITH10.c7, SAWITH10.c4) as c2,
SAWITH10.c3 as c3,
SAWITH10.c4 as c4,
SAWITH10.c5 as c5,
SAWITH10.c6 as c6,
SAWITH10.c7 as c7,
ROW_NUMBER() OVER (PARTITION BY SAWITH10.c4, SAWITH10.c6, SAWITH10.c7 ORDER BY SAWITH10.c4 ASC, SAWITH10.c6 ASC, SAWITH10.c7 ASC) as c8
from
SAWITH10
) D1
where ( D1.c8 = 1 ) ),
SAWITH12 AS (select T28761.PERIOD_NAME as c2,
T28761.PERIOD_START_DATE as c3,
T28761.QUARTER_RANK as c4,
ROW_NUMBER() OVER (PARTITION BY T28761.QUARTER_RANK ORDER BY T28761.QUARTER_RANK DESC) as c5
from
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ ),
SAWITH13 AS (select Case when case SAWITH12.c5 when 1 then SAWITH12.c3 else NULL end is not null then Rank() OVER ( ORDER BY case SAWITH12.c5 when 1 then SAWITH12.c3 else NULL end ASC NULLS LAST ) end as c1,
SAWITH12.c2 as c2,
SAWITH12.c4 as c3
from
SAWITH12),
SAWITH14 AS (select min(SAWITH13.c1) over (partition by SAWITH13.c3) as c1,
SAWITH13.c2 as c2
from
SAWITH13),
SAWITH15 AS (select distinct SAWITH14.c1 + 1 as c1,
SAWITH14.c2 as c2
from
SAWITH14),
SAWITH16 AS (select T28761.QUARTER_YEAR_NAME as c2,
T28761.PERIOD_START_DATE as c3,
T28761.QUARTER_RANK as c4,
ROW_NUMBER() OVER (PARTITION BY T28761.QUARTER_RANK ORDER BY T28761.QUARTER_RANK DESC) as c5
from
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ ),
SAWITH17 AS (select Case when case SAWITH16.c5 when 1 then SAWITH16.c3 else NULL end is not null then Rank() OVER ( ORDER BY case SAWITH16.c5 when 1 then SAWITH16.c3 else NULL end ASC NULLS LAST ) end as c1,
SAWITH16.c2 as c2,
SAWITH16.c4 as c3
from
SAWITH16),
SAWITH18 AS (select distinct min(SAWITH17.c1) over (partition by SAWITH17.c3) as c1,
SAWITH17.c2 as c2
from
SAWITH17),
SAWITH19 AS (select sum(case when T37838.POL_VERSION_FLAG = 'C' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 then nvl(T37838.AMOUNT , 0) when T37838.PERIOD_NAME <> 'March-13' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 and T37838.POL_VERSION_FLAG is null then nvl(T37838.AMOUNT , 0) else 0 end ) as c1,
T30728.PARENT_REGION as c2
from
SAWITH15 left outer join (
XXFI.XXFI_REVFCST_POL_REPORTING_V T37838 /* Fact_POL_Snapshot */ left outer join
XXFI.XXFI_GEO_REGION_ACCUM T30728 /* Dim_Regions */ On T30728.COUNTRY_CODE = T37838.SHIP_TO_COUNTRY_CODE2) On SAWITH15.c2 = T37838.PERIOD_NAME,
SAWITH18
where ( SAWITH18.c1 = SAWITH15.c1 and SAWITH18.c2 = '2010-Q2' and (T37838.PROSPECT_NUMBER is null or T37838.PROSPECT_NUMBER not like '%Budget%') )
group by T30728.PARENT_REGION),
SAWITH20 AS (select T28761.PERIOD_NAME as c2,
T28761.PERIOD_START_DATE as c3,
T28761.QUARTER_RANK as c4,
ROW_NUMBER() OVER (PARTITION BY T28761.QUARTER_RANK ORDER BY T28761.QUARTER_RANK DESC) as c5
from
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ ),
SAWITH21 AS (select Case when case SAWITH20.c5 when 1 then SAWITH20.c3 else NULL end is not null then Rank() OVER ( ORDER BY case SAWITH20.c5 when 1 then SAWITH20.c3 else NULL end ASC NULLS LAST ) end as c1,
SAWITH20.c2 as c2,
SAWITH20.c4 as c3
from
SAWITH20),
SAWITH22 AS (select min(SAWITH21.c1) over (partition by SAWITH21.c3) as c1,
SAWITH21.c2 as c2
from
SAWITH21),
SAWITH23 AS (select distinct SAWITH22.c1 + 1 as c1,
SAWITH22.c2 as c2
from
SAWITH22),
SAWITH24 AS (select T28761.QUARTER_YEAR_NAME as c2,
T28761.PERIOD_START_DATE as c3,
T28761.QUARTER_RANK as c4,
ROW_NUMBER() OVER (PARTITION BY T28761.QUARTER_RANK ORDER BY T28761.QUARTER_RANK DESC) as c5
from
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ ),
SAWITH25 AS (select Case when case SAWITH24.c5 when 1 then SAWITH24.c3 else NULL end is not null then Rank() OVER ( ORDER BY case SAWITH24.c5 when 1 then SAWITH24.c3 else NULL end ASC NULLS LAST ) end as c1,
SAWITH24.c2 as c2,
SAWITH24.c4 as c3
from
SAWITH24),
SAWITH26 AS (select distinct min(SAWITH25.c1) over (partition by SAWITH25.c3) as c1,
SAWITH25.c2 as c2
from
SAWITH25),
SAWITH27 AS (select sum(case when T37838.POL_VERSION_FLAG = 'C' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 then nvl(T37838.AMOUNT , 0) when T37838.PERIOD_NAME <> 'March-13' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 and T37838.POL_VERSION_FLAG is null then nvl(T37838.AMOUNT , 0) else 0 end ) as c1
from
SAWITH23 left outer join XXFI.XXFI_REVFCST_POL_REPORTING_V T37838 /* Fact_POL_Snapshot */ On SAWITH23.c2 = T37838.PERIOD_NAME,
SAWITH26
where ( SAWITH26.c1 = SAWITH23.c1 and SAWITH26.c2 = '2010-Q2' and (T37838.PROSPECT_NUMBER is null or T37838.PROSPECT_NUMBER not like '%Budget%') ) ),
SAWITH28 AS (select sum(case when T37838.POL_VERSION_FLAG = 'C' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 then nvl(T37838.AMOUNT , 0) when T37838.PERIOD_NAME <> 'March-13' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 and T37838.POL_VERSION_FLAG is null then nvl(T37838.AMOUNT , 0) else 0 end ) as c1,
sum(case when T37838.POL_VERSION_FLAG = 'C' and T37838.FORECAST_PROBABILITY_PERCENT >= 50 then nvl(T37838.AMOUNT , 0) when T37838.PERIOD_NAME <> 'March-13' and T37838.FORECAST_PROBABILITY_PERCENT >= 50 and T37838.POL_VERSION_FLAG is null then nvl(T37838.AMOUNT , 0) else 0 end ) as c2
from
XXFI.XXFI_REVFCST_POL_REPORTING_V T37838 /* Fact_POL_Snapshot */ left outer join
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ On T28761.PERIOD_NAME = T37838.PERIOD_NAME
where ( T28761.QUARTER_YEAR_NAME = '2010-Q2' and (T37838.PROSPECT_NUMBER is null or T37838.PROSPECT_NUMBER not like '%Budget%') ) ),
SAWITH29 AS (select sum(T34877.AMOUNT) as c1
from
XXFI.XXFI_REVENUE_BUDGET_ACCUM T34877 /* Fact_Revenue_Budgets */ left outer join
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ On T28761.PERIOD_NAME = T34877.PERIOD_NAME
where ( T28761.QUARTER_YEAR_NAME = '2010-Q2' ) )
select case when SAWITH7.c2 is not null then SAWITH7.c2 when SAWITH9.c6 is not null then SAWITH9.c6 when SAWITH11.c3 is not null then SAWITH11.c3 end as c1,
case when SAWITH9.c3 is not null then SAWITH9.c3 when SAWITH19.c2 is not null then SAWITH19.c2 when SAWITH7.c6 is not null then SAWITH7.c6 when SAWITH11.c4 is not null then SAWITH11.c4 end as c2,
case when SAWITH7.c3 is not null then SAWITH7.c3 when SAWITH9.c7 is not null then SAWITH9.c7 when SAWITH11.c5 is not null then SAWITH11.c5 end as c3,
SAWITH9.c5 / nullif( 1000, 0) as c4,
SAWITH7.c1 / nullif( 1000, 0) as c5,
SAWITH11.c2 / nullif( 1000, 0) as c6,
nvl(SAWITH9.c4 , 0) / nullif( nvl(SAWITH11.c2 , 0), 0) * 100 as c7,
case when SAWITH7.c4 is not null then SAWITH7.c4 when SAWITH9.c8 is not null then SAWITH9.c8 when SAWITH11.c6 is not null then SAWITH11.c6 end as c16,
case when SAWITH11.c7 is not null then SAWITH11.c7 when SAWITH9.c9 is not null then SAWITH9.c9 when SAWITH7.c5 is not null then SAWITH7.c5 end as c17,
SAWITH27.c1 as c19,
SAWITH28.c2 as c20,
SAWITH29.c1 as c21,
SAWITH28.c1 as c22,
SAWITH19.c1 as c23,
SAWITH9.c2 as c24,
SAWITH11.c1 as c25,
SAWITH9.c1 as c26
from
SAWITH7 full outer join SAWITH9 On SAWITH7.c5 = SAWITH9.c9 and nvl(SAWITH7.c4 , 88.0) = nvl(SAWITH9.c8 , 88.0) and nvl(SAWITH7.c4 , 99.0) = nvl(SAWITH9.c8 , 99.0) and nvl(SAWITH7.c6 , 'q') = nvl(SAWITH9.c3 , 'q') and nvl(SAWITH7.c6 , 'z') = nvl(SAWITH9.c3 , 'z')) full outer join SAWITH11 On SAWITH11.c7 = case when SAWITH7.c5 is not null then SAWITH7.c5 when SAWITH9.c9 is not null then SAWITH9.c9 end and nvl(SAWITH11.c4 , 'q') = nvl(case when SAWITH7.c6 is not null then SAWITH7.c6 when SAWITH9.c3 is not null then SAWITH9.c3 end , 'q') and nvl(SAWITH11.c4 , 'z') = nvl(case when SAWITH7.c6 is not null then SAWITH7.c6 when SAWITH9.c3 is not null then SAWITH9.c3 end , 'z') and nvl(SAWITH11.c6 , 88.0) = nvl(case when SAWITH7.c4 is not null then SAWITH7.c4 when SAWITH9.c8 is not null then SAWITH9.c8 end , 88.0) and nvl(SAWITH11.c6 , 99.0) = nvl(case when SAWITH7.c4 is not null then SAWITH7.c4 when SAWITH9.c8 is not null then SAWITH9.c8 end , 99.0)) full outer join SAWITH19 On nvl(SAWITH19.c2 , 'q') = nvl(case when SAWITH7.c6 is not null then SAWITH7.c6 when SAWITH9.c3 is not null then SAWITH9.c3 when SAWITH11.c4 is not null then SAWITH11.c4 end , 'q') and nvl(SAWITH19.c2 , 'z') = nvl(case when SAWITH7.c6 is not null then SAWITH7.c6 when SAWITH9.c3 is not null then SAWITH9.c3 when SAWITH11.c4 is not null then SAWITH11.c4 end , 'z'),
SAWITH27,
SAWITH28,
SAWITH29
order by c2
+++:cfa20000:cfa20015:----2013/08/14 10:31:12
-------------------- Query Status: Successful Completion
+++:cfa20000:cfa20015:----2013/08/14 10:31:12
-------------------- Rows 21, bytes 34272 retrieved from database query id: <<5087545>>
+++:cfa20000:cfa20015:----2013/08/14 10:31:12
-------------------- Physical query response time 27 (seconds), id <<5087545>>
+++:cfa20000:cfa20015:----2013/08/14 10:31:12
-------------------- Physical Query Summary Stats: Number of physical queries 1, Cumulative time 27, DB-connect time 0 (seconds)
+++:cfa20000:cfa20015:----2013/08/14 10:31:12
-------------------- Rows returned to Client 17
--------------------------------------------- 11g Query ----------------------------------------------------------
Sending query to database named EBS Rapid Data Store (id: <<2779207>>), connection pool named EBS XXFI Connection Pool, logical request hash 1334563, physical request hash 292e1532: [[
WITH
OBICOMMON0 AS (select T28761.PERIOD_NAME as c2,
T28761.PERIOD_START_DATE as c3,
T28761.QUARTER_RANK as c4,
ROW_NUMBER() OVER (PARTITION BY T28761.QUARTER_RANK ORDER BY T28761.QUARTER_RANK DESC) as c5,
T28761.QUARTER_YEAR_NAME as c6
from
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ ),
SAWITH0 AS (select Case when case D1.c5 when 1 then D1.c3 else NULL end is not null then Rank() OVER ( ORDER BY case D1.c5 when 1 then D1.c3 else NULL end ASC NULLS LAST ) end as c1,
D1.c2 as c2,
D1.c4 as c3
from
OBICOMMON0 D1),
SAWITH1 AS (select min(D1.c1) over (partition by D1.c3) as c1,
D1.c2 as c2
from
SAWITH0 D1),
SAWITH2 AS (select distinct D1.c1 + 1 as c1,
D1.c2 as c2
from
SAWITH1 D1),
SAWITH3 AS (select Case when case D1.c5 when 1 then D1.c3 else NULL end is not null then Rank() OVER ( ORDER BY case D1.c5 when 1 then D1.c3 else NULL end ASC NULLS LAST ) end as c1,
D1.c6 as c2,
D1.c4 as c3
from
OBICOMMON0 D1),
SAWITH4 AS (select distinct min(D1.c1) over (partition by D1.c3) as c1,
D1.c2 as c2,
D1.c3 as c3
from
SAWITH3 D1),
SAWITH5 AS (select sum(case when T37838.POL_VERSION_FLAG = 'C' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 then nvl(T37838.AMOUNT , 0) when T37838.PERIOD_NAME <> 'March-13' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 and T37838.POL_VERSION_FLAG is null then nvl(T37838.AMOUNT , 0) else 0 end ) as c1,
D4.c2 as c2,
T41894.ICN_GROUP as c3,
T30728.PARENT_REGION as c4,
D4.c3 as c5,
T41894.ICN_GROUP_CODE as c6
from
SAWITH2 D6 left outer join (
XXFI.XXFI_REVFCST_POL_REPORTING_V T37838 /* Fact_POL_Snapshot */ left outer join
XXFI.XXFI_GEO_REGION_ACCUM T30728 /* Dim_Regions */ On T30728.COUNTRY_CODE = T37838.SHIP_TO_COUNTRY_CODE2) left outer join
XXFI.XXFI_ICN_OWNERS_V T41894 /* Dim_ICN_Override */ On T37838.OVERRIDE_ICN = T41894.ICN_CODE) On D6.c2 = T37838.PERIOD_NAME,
SAWITH4 D4
where ( D4.c1 = D6.c1 and D4.c2 = '2010-Q2' and (T37838.PROSPECT_NUMBER is null or T37838.PROSPECT_NUMBER not like '%Budget%') )
group by T30728.PARENT_REGION, T41894.ICN_GROUP_CODE, T41894.ICN_GROUP, D4.c2, D4.c3),
SAWITH6 AS (select sum(case when T37838.POL_VERSION_FLAG = 'C' and T37838.FORECAST_PROBABILITY_PERCENT >= 50 then nvl(T37838.AMOUNT , 0) when T37838.PERIOD_NAME <> 'March-13' and T37838.FORECAST_PROBABILITY_PERCENT >= 50 and T37838.POL_VERSION_FLAG is null then nvl(T37838.AMOUNT , 0) else 0 end ) as c1,
sum(case when T37838.POL_VERSION_FLAG = 'C' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 then nvl(T37838.AMOUNT , 0) when T37838.PERIOD_NAME <> 'March-13' and T37838.FORECAST_PROBABILITY_PERCENT >= 75 and T37838.POL_VERSION_FLAG is null then nvl(T37838.AMOUNT , 0) else 0 end ) as c2,
T28761.QUARTER_YEAR_NAME as c3,
T41894.ICN_GROUP as c4,
T30728.PARENT_REGION as c5,
T28761.QUARTER_RANK as c6,
T41894.ICN_GROUP_CODE as c7
from
XXFI.XXFI_REVFCST_POL_REPORTING_V T37838 /* Fact_POL_Snapshot */ left outer join
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ On T28761.PERIOD_NAME = T37838.PERIOD_NAME) left outer join
XXFI.XXFI_GEO_REGION_ACCUM T30728 /* Dim_Regions */ On T30728.COUNTRY_CODE = T37838.SHIP_TO_COUNTRY_CODE2) left outer join
XXFI.XXFI_ICN_OWNERS_V T41894 /* Dim_ICN_Override */ On T37838.OVERRIDE_ICN = T41894.ICN_CODE
where ( T28761.QUARTER_YEAR_NAME = '2010-Q2' and (T37838.PROSPECT_NUMBER is null or T37838.PROSPECT_NUMBER not like '%Budget%') )
group by T28761.QUARTER_YEAR_NAME, T28761.QUARTER_RANK, T30728.PARENT_REGION, T41894.ICN_GROUP_CODE, T41894.ICN_GROUP),
SAWITH7 AS (select sum(T34877.AMOUNT) as c1,
T28761.QUARTER_YEAR_NAME as c2,
T41894.ICN_GROUP as c3,
T30728.PARENT_REGION as c4,
T28761.QUARTER_RANK as c5,
T41894.ICN_GROUP_CODE as c6
from
XXFI.XXFI_REVENUE_BUDGET_ACCUM T34877 /* Fact_Revenue_Budgets */ left outer join
XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ On T28761.PERIOD_NAME = T34877.PERIOD_NAME) left outer join
XXFI.XXFI_GEO_REGION_ACCUM T30728 /* Dim_Regions */ On T30728.COUNTRY_CODE = T34877.SHIP_TO_COUNTRY_CODE2) left outer join
XXFI.XXFI_ICN_OWNERS_V T41894 /* Dim_ICN_Override */ On T34877.OVERRIDE_ICN = T41894.ICN_CODE
where ( T28761.QUARTER_YEAR_NAME = '2010-Q2' )
group by T28761.QUARTER_YEAR_NAME, T28761.QUARTER_RANK, T30728.PARENT_REGION, T41894.ICN_GROUP_CODE, T41894.ICN_GROUP),
SAWITH8 AS (select D1.c1 as c1,
D1.c2 as c2,
D1.c3 as c3,
D1.c4 as c4,
D1.c5 as c5,
D1.c6 as c6,
D1.c7 as c7,
D1.c8 as c8,
D1.c9 as c9,
D1.c18 as c18,
D1.c19 as c19,
D1.c20 as c20,
D1.c21 as c21,
D1.c22 as c22
from
(select 0 as c1,
case when D1.c2 is not null then D1.c2 when D2.c3 is not null then D2.c3 when D3.c2 is not null then D3.c2 end as c2,
case when D1.c3 is not null then D1.c3 when D2.c4 is not null then D2.c4 when D3.c3 is not null then D3.c3 end as c3,
case when D1.c4 is not null then D1.c4 when D2.c5 is not null then D2.c5 when D3.c4 is not null then D3.c4 end as c4,
case when D1.c5 is not null then D1.c5 when D2.c6 is not null then D2.c6 when D3.c5 is not null then D3.c5 end as c5,
nvl(D2.c2 , 0) / nullif( nvl(D3.c1 , 0), 0) * 100 as c6,
D3.c1 / 1000 as c7,
D1.c1 / 1000 as c8,
D2.c1 / 1000 as c9,
case when D1.c6 is not null then D1.c6 when D2.c7 is not null then D2.c7 when D3.c6 is not null then D3.c6 end as c18,
D2.c2 as c19,
D3.c1 as c20,
D1.c1 as c21,
D2.c1 as c22,
ROW_NUMBER() OVER (PARTITION BY case when D1.c2 is not null then D1.c2 when D2.c3 is not null then D2.c3 when D3.c2 is not null then D3.c2 end , case when D1.c3 is not null then D1.c3 when D2.c4 is not null then D2.c4 when D3.c3 is not null then D3.c3 end , case when D1.c4 is not null then D1.c4 when D2.c5 is not null then D2.c5 when D3.c4 is not null then D3.c4 end , case when D1.c5 is not null then D1.c5 when D2.c6 is not null then D2.c6 when D3.c5 is not null then D3.c5 end , case when D1.c6 is not null then D1.c6 when D2.c7 is not null then D2.c7 when D3.c6 is not null then D3.c6 end ORDER BY case when D1.c2 is not null then D1.c2 when D2.c3 is not null then D2.c3 when D3.c2 is not null then D3.c2 end ASC, case when D1.c3 is not null then D1.c3 when D2.c4 is not null then D2.c4 when D3.c3 is not null then D3.c3 end ASC, case when D1.c4 is not null then D1.c4 when D2.c5 is not null then D2.c5 when D3.c4 is not null then D3.c4 end ASC, case when D1.c5 is not null then D1.c5 when D2.c6 is not null then D2.c6 when D3.c5 is not null then D3.c5 end ASC, case when D1.c6 is not null then D1.c6 when D2.c7 is not null then D2.c7 when D3.c6 is not null then D3.c6 end ASC) as c23
from
SAWITH5 D1 full outer join SAWITH6 D2 On D1.c6 = D2.c7 and SYS_OP_MAP_NONNULL(D1.c4) = SYS_OP_MAP_NONNULL(D2.c5) and SYS_OP_MAP_NONNULL(D1.c5) = SYS_OP_MAP_NONNULL(D2.c6) ) full outer join SAWITH7 D3 On D3.c6 = case when D1.c6 is not null then D1.c6 when D2.c7 is not null then D2.c7 end and SYS_OP_MAP_NONNULL(D3.c4) = SYS_OP_MAP_NONNULL(case when D1.c4 is not null then D1.c4 when D2.c5 is not null then D2.c5 end ) and SYS_OP_MAP_NONNULL(D3.c5) = SYS_OP_MAP_NONNULL(case when D1.c5 is not null then D1.c5 when D2.c6 is not null then D2.c6 end )
) D1
where ( D1.c23 = 1 ) )
select D1.c1 as c1,
D1.c2 as c2,
D1.c3 as c3,
D1.c4 as c4,
D1.c5 as c5,
D1.c6 as c6,
D1.c7 as c7,
D1.c8 as c8,
D1.c9 as c9,
D1.c18 as c19,
D1.c19 as c21,
D1.c20 as c22,
D1.c21 as c23,
D1.c22 as c24
from
SAWITH8 D1
order by c4, c2, c5, c19, c3
[2013-08-14T10:38:15.000-05:00] [OracleBIServerComponent] [TRACE:2] [USER-34] [] [ecid: 54a0696aeaefab88:-d74da91:1406506ef2a:-8000-00000000000151e6,0:1:9:6:1] [tid: a093e700] [requestid: cc480014] [sessionid: cc480000] [username: ] -------------------- Query Status: Successful Completion [[
[2013-08-14T10:38:15.000-05:00] [OracleBIServerComponent] [TRACE:2] [USER-26] [] [ecid: 54a0696aeaefab88:-d74da91:1406506ef2a:-8000-00000000000151e6,0:1:9:6:1] [tid: a093e700] [requestid: cc480014] [sessionid: cc480000] [username: ] -------------------- Rows 17, bytes 27200 retrieved from database query id: <<2779207>>check the report for the columns which has incorrect values for any calculation, null handling.
also check whether there is a difference in logical SQL between 10g and 11g.
also check whether they are pointing to same db.
check for null handling or default value not being set in 11g.
try rebuilding the same report, to check the metrics individually verify they match with 10g. -
Need sql query to get OIM request pending approval details for one user
HI OIM Guru,
It would be great help if someone can provide me sql query by which i can find out how many requests are pending for approval for one user ?1. Below query will give you status of all the request.
SELECT REQ.REQUEST_ID , REQ.REQUEST_STATUS FROM REQUEST REQ
2. You can have following status
Obtaining Operation Approval
Obtaining Template Approval
Operation Approval Approved
Operation Approval Rejected
Post Operation Processing Initiated
Request Approval Rejected
Request Closed
Request Completed
Request Created
Request Failed
Request Withdrawn
Template Approval Rejected
3. Now prepare the query from above sapmle, the requset status string should not contains foloowing values.
Rejected
Failed
Closed
Withdrawn
Completed
The builded query will give you the desired result for 11g
for 10 G
Get the OST_STATUS from Req table, and do you logic above stated
-Kuldeep
Edited by: Kuldeep on May 22, 2012 1:04 AM -
Query to find dependent task attached to task on some response in OIM 11g
can anyone help me in making a sql query to find dependent task attached to task on some response in OIM 11g
Edited by: user13331347 on Sep 3, 2012 2:09 PMUse below query to find all dependent task in OIM 11g:-
select pkg.pkg_name, mil.mil_name, rsc.rsc_data, rsc.sta_key, sta.sta_status, sta.sta_bucket, mil2.mil_name
from pkg pkg, tos tos, mil mil, mil mil2, rsc rsc, sta sta, rgm rgm
where pkg.pkg_key = tos.pkg_key
and tos.tos_key = mil.tos_key
and mil.mil_key = rsc.mil_key
and rsc.sta_key = sta.sta_key
and rgm.rsc_key = rsc.rsc_key
and rgm.mil_key = mil2.mil_key
order by pkg.pkg_name, mil.mil_name, rsc.rsc_data, sta.sta_status, mil2.mil_name -
Issue in creation of group in oim database through sql query.
hi guys,
i am trying to create a group in oim database through sql query:
insert into ugp(ugp_key,ugp_name,ugp_create,ugp_update,ugp_createby,ugp_updateby,)values(786,'dbrole','09-jul-12','09-jul-12',1,1);
it is inserting the group in ugp table but it is not showing in admin console.
After that i also tried with this query:
insert into gpp(ugp_key,gpp_ugp_key,gpp_write,gpp_delete,gpp_create,gpp_createby,gpp_update,gpp_updateby)values(786,1,1,1,'09-jul-12',1,'09-jul-12',1);
After that i tried with this query.but still no use.
and i also tried to assign a user to the group through query:
insert into usg(ugp_key,usr_key,usg_priority,usg_create,usg_update,usg_createby,usg_updateby)values(4,81,1,'09-jul-12','09-jul-12',1,1);
But still the same problem.it is inserting in db.but not listing in admin console.
thanks,
hanuman.Hanuman Thota wrote:
hi vladimir,
i didn't find this 'ugp_seq'.is this a table or column?where is it?
It is a sequence.
See here for details on oracle sequences:
http://www.techonthenet.com/oracle/sequences.php
Most of the OIM database schema is created with the following script, located in the RCU distribution:
$RCU_HOME/rcu/integration/oim/sql/xell.sql
there you'll find plenty of sequence creation directives like:
create sequence UGP_SEQ
increment by 1
start with 1
cache 20
to create a sequence, and
INSERT INTO UGP (UGP_KEY, UGP_NAME, UGP_UPDATEBY, UGP_UPDATE, UGP_CREATEBY, UGP_CREATE,UGP_ROWVER, UGP_DATA_LEVEL, UGP_ROLE_CATEGORY_KEY, UGP_ROLE_OWNER_KEY, UGP_DISPLAY_NAME, UGP_ROLENAME, UGP_DESCRIPTION, UGP_NAMESPACE)
VALUES (ugp_seq.nextval,'SYSTEM ADMINISTRATORS', sysadmUsrKey , SYSDATE,sysadmUsrKey , SYSDATE, hextoraw('0000000000000000'), 1, roleCategoryKey, sysadmUsrKey, 'SYSTEM ADMINISTRATORS', 'SYSTEM ADMINISTRATORS', 'System Administrator role for OIM', 'Default');
as a sequence usage example.
Regards,
Vladimir -
How to give query in lookup type udf in OIM 11g
Hi,
In OIM 9.x, we were able to provide query in lookup type field in users UDF to fetch data from DB and display it in lookup table.
Where as in OIM 11g, I cant find that option. We need to provide user id in lookuptype field based on some query. Please let me know where we can do the same in OIM 11g.
Thanks,
Kalpana.In OIM 9.x, we had below query in one of the lookup type attribute:
select usr.usr_udf_empid,usr.usr_first_name,usr.usr_last_name from usr where usr.usr_emp_type='Full-Time' and usr.usr_status='Active' and usr.USR_UDF_EMPID is not null
The lookup used to show firstname, lastname & employee id of active employees in the lookup.
Where we can achieve the same in OIM 11g?
Thanks,
Kalpana. -
OIM 11g+Database Application Tables Resource Connectors+ MS SQL Server 2008
Hello Experts:
I installed DBAT 9.1.0.5.0 Resource Adapter on Linux 64 bit server using OIM 11g, I try to create Generic Connectors to configure Target Resource for MS SQL Server 2008 and after entering all the information on the second screen and click continue the screen gets stuck. This does not throw any kind of error nor any error msg are written to Log files. It's been difficult to debug the problem or know the root cause since there is no error msg thrown. No data is written from the sql server.
I can ping to the sql server and port are open.
Do we have to do any kind of setting on sql server to make this work?
Does any one have ideas? Did any one face any issues like this before?
Has any one worked with OIM connections with SQL server?
Just throwing all these question as I am running out of ideas.
Much help appreciated.
Thanks.
Edited by: 886912 on Dec 8, 2011 5:09 PMThanks Rajiv for the quick reply.
I did try local oracle server and there was no issue. And i even tried all kinds of browsers for SQL server and still the same issue.
And also can you explain a bit more on the these enabling logs
Also enable your logs like XELLERATE.WEBAPP and GTC related logs like
Xellerate.GC.StartUp
Xellerate.GC.ProviderRegistration
Xellerate.GC.ImageGeneration
Xellerate.GC.FrameworkProvisioning
Xellerate.GC.Provider.ProvisioningFormat
Xellerate.GC.Provider.ProvisioningTransport
Xellerate.GC.FrameworkReconciliation Xellerate.GC.Provider.Reconciliation
Format
Xellerate.GC.Provider.Validation
Xellerate.GC.Provider.Transformation
Xellerate.GC.Model
Xellerate.GC.Server
I have done it the DBAT. How to do on these?
Thanks -
Hi,
I am trying to achieve the following on OIM User Profile screen:
1. I have 10 text attributes on user profile screen (UDFs), these 10 attributes should get populated based on a drop down attribute selection on the user profile -how can I achieve this functionality in ADF?
2. Based the selection I need to query OIM Database to retrieve values for these 10 attributes -where can I embed my SQL query to populate a particular UDF?
Thanksuser608228 wrote:
Hi,
I am trying to achieve the following on OIM User Profile screen:
1. I have 10 text attributes on user profile screen (UDFs), these 10 attributes should get populated based on a drop down attribute selection on the user profile -how can I achieve this functionality in ADF?Check this link for prepopulating fields conditionally http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/uicust.htm#BABHHBGJ
Developing managed beans http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/uicust.htm#autoId41 -
Using information from ItResource for executing custom sql in OIM 11g
I need executing a custom sql query using a connection of a ItResource. How can I get the instance of connection for to execute the sql query ? Someone have a idea of how i make this ? Help me ...
TksHashMap itAttribute = new HashMap();
itAttribute.put("IT Resources.Name","IT-DB01");
tcITResourceInstanceOperationsIntf itResource=null;
tcResultSet resItResKey;
resItResKey = itResource.findITResourceInstances(itAttribute);
long iTesourceKey = resItResKey.getLongValue("IT Resource.Key");
tcResultSet resItRes = itResource.getITResourceInstanceParameters(iTesourceKey);
Append following lines:-
HashMap<String, String> hashMap = new HashMap<String, String>();
int countResultGetITResourceInstanceParameters = resItRes .getRowCount();
for(int i = 0; i < countResultGetITResourceInstanceParameters; i++) {
resultGetITResourceInstanceParameters.goToRow(i);
hashMap.put(
resItRes .getStringValue(ZAPConstants.IT_RESOURCES_TYPE_PARAMETER_NAME),
resItRes .getStringValue(ZAPConstants.IT_RESOURCES_TYPE_PARAMETER_VALUE)
return hashMap; -
Extracting the Logical sql query for the specified report in OBIEE 11g
Hi ,
I want to extract the logical SQL Query for the Particular report in OBIEE 11.1.1.5.
Any pointers related to this will be very helpful.
Thanks,
Sonalifor a try please add Logical sql view to ur report it will dispaly the Logical sql for that Report..
Hope it will helps you. -
SQL Concat function seem not to work properly in SQL query data model. BIP 11g
I try to use this function to show entire name CONCAT(name, ' ', surname) and it doesnt show the surname. it looks like it only tooks 2 arguments. I use it with the option "Add element by expression" within a SQL Query - Data set.
Luciai don't believe you
please post more info, may be screen or sql or some more useful statement
CONCAT(name, ' ', surname) and it doesnt show the surname
may be because for some case "surname" is empty or may be you incorrect use concat function
one way mentioned by BluShadow is " || " operator - http://docs.oracle.com/cd/B28359_01/server.111/b28286/operators003.htm#SQLRF51156
and another is concat function http://docs.oracle.com/cd/B28359_01/server.111/b28286/functions026.htm#SQLRF00619
so for your case it can be like
CONCAT(CONCAT(name, ' '), surname) -
Sql Query in Custom Java Class in OIM 9x
Hi All,
I m having requirement where I need to execute SQL Select Query in custom java class.
The class is a action class ,in a method I m trying to execute SQL Query as below
sdkDataSet = new tcDataSet();
dataprovider =sdkDataSet.getDataBase();
//sdkDataSet = new tcDataSet();
sdkDataSet.setQuery(dataprovider, sdkQuery);
sdkDataSet.executeQuery();
logger.debug(CLASSNAME + methodName + "Query Executed");
if (sdkDataSet.getRowCount() > 0)
sdkName = sdkDataSet.getString(0);
logger.debug(CLASSNAME + methodName+ "The sdkName is " + sdkName);
Error is returned in logs
tcDataSetException Must set a query before executing
I hope issue is coming due to dataprovider dbrefence.
Kindly let me know how to execute sql query in a action class.
Regards,
KrishHi Pallavi,
Thanks for your reply...
OOTB class Name is com.thortech.xl.webclient.actions.ApprovalsAction
This class will display the pending Approvals for a user.On pending approval page, I need to add one more attribute let say email of the beneficiary user.I have a query which will fetch email value based on RequestID.
select usr.usr_email from rqu rqu, usr usr, act act where rqu.usr_key=usr.usr_key and usr.act_key=act.act_key and rqu.req_key=1234*
Pls let me know if there is any way to get email with or with out executing Query.
Regards,
Krish -
11g : column fornula as a SQL query
While creating a report in 11 g and choosing columns from the subject area, I see that we can edit the column formula.
Is it possible to specify a SQL query in the column formula.?No, it's not possible.
If you want to use specific sql you can use the EVALUATE function
http://gerardnico.com/wiki/dat/obiee/evaluate
Regards
Adil -
OIM sql Query for getting the status of the task which got failed
Hi Everyone,
We have a requirement like we need to get the status of a particular task(say Create User in OID resource - Completed\Rejected status) for the particular user.We are able to get the status of the resource provisioed to the user but not the status of the particular task getting trigerred for the user.can someone put some light on this.We need to get the SQL query for this.
Thanks in Advance.
Regards,
MKNHi
Use this sample query to get the task status, also check the cooments
SELECT USR.USR_LOGIN, OSI.SCH_KEY,SCH.SCH_STATUS,STA.STA_BUCKET FROM
OSI,SCH,STA,MIL,TOS,PKG,OIU,USR,OBJ,OST
WHERE OSI.MIL_KEY=MIL.MIL_KEY
AND SCH.SCH_KEY=OSI.SCH_KEY
AND STA.STA_STATUS=SCH.SCH_STATUS
AND TOS.PKG_KEY=PKG.PKG_KEY
AND MIL.TOS_KEY=TOS.TOS_KEY
AND OIU.USR_KEY=USR.USR_KEY
AND OIU.OST_KEY=OST.OST_KEY
AND OST.OBJ_KEY=OBJ.OBJ_KEY
AND OSI.ORC_KEY=OIU.ORC_KEY
AND OBJ.OBJ_NAME='AD User'
AND OST.OST_STATUS = 'Provisioning' -- filter accordinglly
AND STA.STA_BUCKET = 'Pending' -- filter accordinglly
AND PKG.PKG_NAME='AD User' -- filter accordinglly
AND MIL.MIL_NAME='System Validation' ---- filter accordinglly
Thanks,
Kuldeep -
How to polulate data from lookup using request dataset in OIM 11g
Hi,
Using Request dataset in OIM 11g, I need to display one dropdown with the roles those need to come from Lookup.
For Ex; I have 2 resources,i.e Resource A and Resource B. Resource A has 5 roles and Resource B has 3 Roles.
While creating a request, If I select Resource A, then I should be able to get 5 Roles and if I select Resource B then I should be able to see corresponding 3 roles.
Pls. note I have only one Look up definition , where I have roles for both Resource A and B.
I have done simillar thing in OIM 10g , however I am unable to do it using OIM 11g Request dataset.
Pls suggest.Hi BB,
I am trying to follow up your response.
You are suggestng to use prepopulate adapter for to populate respource object name, that means We have to just use an sql query from obj tabke to get the resource object name. right ?? it could be like below, what should I have entity-type value here ??
<AttributeReference name="Field1" attr-ref="act_key"
available-in-bulk="false" type="Long" length="20" widget="ENTITY" required="true"
entity-type="????"/>
<PrePopulationAdapter name="prepopulateResurceObject"
classname="my.sample.package.prepopulateResurceObject" />
</AttributeReference>
<AttributeReference name="Field2" attr-ref="Field2" 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.xxx.BO.Field2'
and instr(lkv_encoded,concat('$Form data.Field1', '~'))>0" display-field="Description" save-field="Value" />
</AttributeReference>
Then I need think about the 'Lookup.xxx.BO.Field2' format.
Could you please let me know if my understanding is correct?? What is the entity-type value of the first attribute reference value?
Thanks for your all help.
Maybe you are looking for
-
My desktop image will not resize no matter what I do.
For some reason, I cannot get the images that I use as my desktop wallpaper to do anything but "full screen". I've done restarts and tried every type of image display and nothing works. I have some great wallpaper images, but unless I can do "fit to
-
Hi there, I created a user table with 16 fields, if I run a query like "SELECT * FROM myTable" I can see all the column and the data inserted, when I use "Tools-User Tables" and then I select myTable I see only 14 fields and is not matter of resize.
-
Itouch is disabled - cannot get it to work or show up in itunes
My daughters itouch is disabled. She forgot her password. I have a new laptop and all of our other itouchs and ipads are syncing fine. This one is not being recognized. How can I get it to show up in itunes so we can reset it? Is there another way ar
-
Can i zoom in when recording video on ipad
How do i zoom in when recording video on an ipad. I am aware of the 3 finger tap to zoom in when watching video but it is the recording of video that i am interested in. If not is there an app to facilitate this? Many thanks
-
Changing the workflow polling interval from 5 minutes
Trying to reduce the workflow polling internal from 5 minutes to something shorter. When a Change Request is created, the approval email goes to the manager and they reply with [Approved] or [Rejected] in the email. It sits in the workflow mailbox fo