Dynamic problem with lookup-query for the purpose of resource request

Hi all
I need to set up several IOM user exchange mailboxes, I can set up AD account and account of the mailbox without any problem, but only for the first ad and Exchange account. For the second and third, etc. I get the error: "Invalid login name" during Exchange of account provisioning. I discovered that this problem exists with Exchange Connector - it is not able to collect correct GUID. So in my xml Dataset I use dynamic query Lookup to select manually correct Alias, the login name and GUID. The query for the GUID is the sequel (I cloned RO for AD and Exchnage):

AttributeReference available-in-bulk = "true" length = "32" widget = 'search query' type = 'String' attr-ref = "Object GUID" name = "Object GUID" >
* < lookupQuery search-query = "select distinct UD_KFUSER_OBJECTGUID GUID, ud_KFUSER_uid like UD_KFUSER UD_KFUSER, orc orc Login, sta sta where UD_KFUSER.orc_key = orc.orc_key and orc.usr_key = ' $Form data." Take ' and UD_KFUSER. "UD_KFUSER_AD = 27 and orc.orc_status = STA.sta_status AND STA.sta_bucket! = 'Cancelled'" display-field = "GUID" save-field = "Object GUID" / > *.
* < / AttributeReference > *.


My questions are:

1. I have to type * to run the query in the user interface, without * I got error:

+ < 17 February 2012 11:12:22 THIS > < error > < oracle.adfinternal.view.faces.config.ric +.
h.RegistrationConfigurator > < BEA-000000 > < ADF_FACES - 60096:Server Exception durin
PPR, #10 g
oracle.iam.platform.canonic.base.NoteException: an error occurred during executin
g the search query.
to oracle.iam.platform.canonic.agentry.GenericEntityLookupActor.perform)
GenericEntityLookupActor.java:337)
Is this right?

2. when I got correct values (from the search query) - they are missing on the details of the application and form of RO - what Miss me?

I use OIM 11.1.1.5, in my xml dataset I use correct attr-Ref (labels), when I type the values manually, they are propagated to form RO and Exchange mailbox is created.
Best
MP

I not had no problem when writing search query.
This works very well for me.
The request will be filled for the field, so why choose *?
I used as

Tags: Fusion Middleware

Similar Questions

  • Problem with DESC ordering for the resolution of conflicts

    I am trying to create a composite event with semantic alias set and table. I created a simplified below example to show the problem that I get. I have assessments that are entered into a table, and whenever a new is an elder at the same address, the composite event should fire. But, if there is more than two for the same address, I want only to raise the event for the most recent prior assessment. I know that this is not yet a complete solution I have to find a way to expire old events after they are used for the composite event, but I can't get beyond the error I get. CREATE_RULE_CLASS gives me the following error:

    Error on line 1
    ORA-41621: error in ordering the property:
    ORA-00904: "RLM$ EVENT. "" RLM OBCOL_0DESC$ ": invalid identifier
    ORA-06512: at "EXFSYS. DBMS_RLMGR', line 709
    ORA-06512: at line 2

    Looks like he's trying to treat my "DESC" designation under another name of the column to order by. Oracle 11g Enterprise 11.1.0.7.0. Here is my script:

    CREATE TABLE APPRAISALTEST
    (
    APPRAISAL_ID NUMBER (20) NOT NULL,
    ADDRESS_ID NUMBER (20).
    DATE OF APPRAISAL_DATE,
    NUMBER VALUE (10)
    );

    CREATE A UNIQUE APPRAISALTEST_PK ON APPRAISALTEST INDEX
    (APPRAISAL_ID);


    Start
    DBMS_RLMGR. CREATE_EVENT_STRUCT (data = > 'AppraisalPair');

    DBMS_RLMGR. () ADD_ELEMENTARY_ATTRIBUTE
    Event_Struct = > 'AppraisalPair ',.
    attr_name = > "appr1"
    tab_alias = > RLM$ TABLE_ALIAS ('APPRAISALTEST'));

    DBMS_RLMGR. () ADD_ELEMENTARY_ATTRIBUTE
    Event_Struct = > 'AppraisalPair ',.
    attr_name = > "appr2"
    tab_alias = > RLM$ TABLE_ALIAS ('APPRAISALTEST'));
    end;

    BEGIN
    DBMS_RLMGR. () CREATE_RULE_CLASS
    rule_class = > 'AppraisalPairRC ',.
    Event_Struct = > 'AppraisalPair ',.
    action_cbk = > 'AppraisalPairCBK ',.
    actprf_spec = > ' EVENT_TYPE VARCHAR2 (20), EVENT_PARAM VARCHAR2 (20),
    rslt_viewnm = > 'NewAppraisalPairs ',.
    rlcls_prop = > ' < composite equal = 'appr1. ADDRESS_ID, appr2. ADDRESS_ID"' |
    ' consumption = command 'shared' = 'appr1. ' APPRAISAL_DATE DESC' cnfevents = 'I' / > ");"
    END;

    SET DEFINE OFF
    insert into AppraisalPairRC (rlm$ ruleid, score_component_type, score_value, rulecond$ rlm)
    values ('Rule1', 'ABC', 'DEF',
    ' < condition >
    < and join = "Appr2.APPRAISAL_DATE & gt; Appr1.APPRAISAL_DATE and Appr2.VALUE & gt; Appr1.value">
    < name of the object = "Appr1" / >
    < name of the object = "Appr2" / >
    < / and >
    (< / condition > ');

    Hello

    You came across a bug that has been fixed in the latest version. You can work around this problem by changing the command clause as follows.

    SQL> BEGIN
      2            DBMS_RLMGR.CREATE_RULE_CLASS (
      3            rule_class => 'AppraisalPairRC',
      4            event_struct => 'AppraisalPair',
      5            action_cbk => 'AppraisalPairCBK',
      6            actprf_spec => 'EVENT_TYPE VARCHAR2(20), EVENT_PARAM VARCHAR2(20)',
      7            rslt_viewnm => 'NewAppraisalPairs',
      8            rlcls_prop => '');
     10  END;
     11  /
    

    Hope this helps,
    -Aravind.

  • Problem with cursor Max for the PLSQL called by OAF Page

    All,

    We developed a custom and Self Service OFA this page page, we call PLSQL package to validate and insert the data into the database tables. It worked well, but when we deployed this form throughout the Organization (meaning more users), we reach the limits of MAX cursor for a session.

    This for allows Manager to update all their coordinated under, so in a session, a Manager may work on more than one employee so reach the limit of MAX cursor.

    Please help on how we can solve this problem, I checked all of the cursors used in the PLSQL package are closed properly.

    Ex PLSQL Call:

    String createRow = null;

    try {}

    OADBTransaction oadbtransaction = (OADBTransaction) pageContext.getApplicationModule (webBean) .getTransaction ();

    java.sql.Connection connection = oadbtransaction.getJdbcConnection ();

    CallableStatement callablestatement = oadbtransaction.createCallableStatement ("start: 1: = xxx_hr_multiple_rates_pkg.is_create_job_row (pc_job_name = >: 2);") end; ", 1);

    callablestatement.setString (2, primaryJob.getText (pageContext));

    callablestatement.registerOutParameter(1,Types.VARCHAR);

    CallableStatement.Execute ();

    createRow = callablestatement.getString (1);

    String [] retVals = am.invokeMethod ("createWFMJob", parameter1) (String []);

    System.out.println("CreateRow:"+CreateRow);

    CallableStatement.Close ();

    }

    catch (Exception e) {}

    e.printStackTrace ();

    pageContext.writeDiagnostics (this, try (), 1);

    }

    Thank you

    A

    Ankit,

    Please attach your PL/SQL code, so that we can have a look that the issue could be in that.

    In addition,

    Why do you call the code inside this test below? What is the link?

    String [] retVals = am.invokeMethod ("createWFMJob", parameter1) (String []);

    Why do you need the code below? Delete this.

    java.sql.Connection connection = oadbtransaction.getJdbcConnection ();

    Move the callablestatement.close ();  outside of try catch.

    See the link, if you need some examples below:

    Advice from the Oracle Johny: OAF: sample code to call the function PL/SQL of OA Framework

    See you soon

    AJ

  • Problem with 'source file for the environment.

    Hello, I have problems with the supply environment file.

    I just read this post...

    How to "Source in the environment file.

    How to find the file of the environment. But after I Executive the .env file there is nothing set up. I checked "echo $APPL_TOP and there is nothing."


    My environmental record is:

    /D01/Oracle/vis/FS1/EBSapp/appl/APPSVIS_ebs122.env


    Then... I'm source Pentecost environmental record these steps:


    step 1: cd /d01/oracle/VIS/fs1/EBSapp/appl/APPSVIS_ebs122.env

    step 2:./APPSVIS_ebs122.env


    And still nothing.


    Help with this?


    Thank you.

    Send "source /d01/oracle/VIS/fs1/EBSapp/appl/APPSVIS_ebs122.env" followed by "env | ranking"to check.

    Thank you

    Hussein

  • What is the problem with this query in the source

    A blank page is region 2. Region1: enter rec_no (-rec_no is varchar2) region2:hide and show that displays one record based on rec_ no region1 entered.
    The problem is that I get the following error

    ORA-06550: line 1, column 7: PLS-00428: an INTO clause in this SELECT statement

    Here's my simple query in a process of pl/sql
    Start
    Select rec_no, rec_name from mytable where rec_no = upper(:P16_rec_no);
    end;

    Why? The same query works under the sql command.

    what I'm trying to accompolish here, it is because he has given huge if I want to display hide also multiples, regions and allow users to update each region as a result. Help, please. It kills me that I just can't understand what is causing the problem to the query. Thank you.

    Hello

    The list is set to the field EMPLOYEE_ID itself? What is the primary key of the table? In my example, DEPTNO is the primary key and I used the element generated by the wizard page to display the list. The parameters of the Source of the item itself or the column DEPTNO and database so that the process "process line...". "to identify the updated row.

    Andy

  • I have a problem with an error for the ad blocker that interferes with the video playback

    Whenever I try to watch a video, I get this error message:

    Oops, you have activated an adblocker!

    To watch this episode, please disable it and refresh the page.

    I removed anti-ad, refresh the page and the error came again. I have installed firewall bluhell and handicapped who, refreshed the page and the error message still appears. I've added will eliminate them permanently, click on remove and which did not help. I never had these problems before.

    Maybe a different extension is at stake. Could test you mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    Does not work if Firefox: Hold down the SHIFT key when you start Firefox.

    If Firefox is running: You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    and OK reboot.

    Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).

    That you still get this message?

  • I have a problem with a record for the administrator account.

    Original title: my password as an administrator does not work how to fix it when it doesn't let me do anything to my computer without password

    my computer will be noy take my password. IM the only one without her addministrator I can't make changes or even get in my control panel. my index is always the same that a TI does not work. Can howw I fix?

    There are a lot of options built into Windows to help you out of this situation:
    • Restart the computer with your Windows repair CD, then use system restore to set Windows in a few days (only works if you have recently changed the password).
    • Log on to your account admin to spare, and then reset the password for your existing account (works only if you set up an alternative admin account).
    • Log in as administrator mode without failure, then reset the password for your existing account (the password is usually empty).
    • Insert your flash drive USB with the password key file (only works if you have taken the time to create such a key file).
    • Use the password indicator (works only if you have created an index and it is up-to-date)
    • Check your paper files (works only if you threw down the password somewhere)
  • Problem with joining photos for the Windows 8 library mail program and error message 'create an association in the default program control panel '.

    Original title: E-mail question

    I want to send pictures of the library in Windows 8. Cannot do. He told me to create an association in the default program control panel. Been there, no help.

    Hello Jeff,.

    Please keep us updated on the status of the issue.

    I will certainly help you in the right direction to solve the problem. However, I would be grateful if you could let us know that you have set the email client that you use as default to the Control Panel program to send and receive electronic messages from the computer.

    Please respond with the requested information, in order to help you solve the problem.

    Thank you

  • Help with SOQL query for the filter of AutoSynch

    The goal is to seize any product that contains "Maint" in there. Here's what we have but we get no result of the call.

    Where:

    (LastModifiedDate > = last download successful AND Product__c = ' Maint % ')

    Any suggestions or corrections?

    I would like to use

    .... Product__c like ' % Maint.

    and test my query SOQL using Force.com Explorer or your friendly local SFDC administrator to debug any further.

  • Problem with SQL query in the view of a line

    Hello

    I have a table TABLEA it has 3 columns:

    Structure of TABLEA

    Code Tax_Code_1 Tax_Code_2

    1A
    1 B


    I want that the output voltage:

    Code Tax_Code_1 Tax_Code_2
    1 A AND B

    Any help will be necessary for me

    Thanks and greetings

    ..

  • problem with bind variables in the SQL query view object

    Hi all

    I use JDev 11.1.2.4.0.

    I have a problem with bind variables in the SQL query view object.

    This is my original SQL

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE t.nctuser_id = '20022' 
          AND to_char(t.insertdate,'YYYYMMDD') in ('20130930','20130929')
    group by t.legertype_id
    

    In my view .xml object query tab, I am writing this

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE   t.nctuser_id = '20022'
        AND to_char(t.insertdate,'YYYYMMDD') in :dddd
    group by t.legertype_id
    

    Davis here is a variable of Type liaison: String, updatable and necessary.

    I try to deal with Davis as ('20130930 ', ' 20130929') hoping the view object, run as my original SQL.

    But failed. The view object retrieves 0 line after that I run.

    Why?

    Thank you! ('2original SQL0130930', '20130929') ('20130930 ', ' 20130929')

    A variable binding cannot be used as this is why you must use years table. Check decompilation binary ADF: using oracle.jbo.domain.Array with ViewCriteria to see a solution.

    Timo

  • Hierarchical + analysis of query for the parameters of the OU

    Hello gurus,

    I'm trying for a couple of hours there is a query works as I want.

    Our application needs to store settings for our organizational units. These organizational units are generally organized in a hierarchy manner: a high-level unit many units of the child. The settings are stored in another table with 1:1 relationship.

    For ease of visualization, here are the data of the organization unit and parameter table in a more visual format:
    SQL> select * from organization_unit;
    UNIT_CODE  UNIT_NAME            PARENT_UNIT_CODE
    ---------- -------------------- ----------------
    00000      Top level
    10         L2 unit #10          00000
    10-01      L3 unit #10-01       10
    10-02      L3 unit #10-02       10
    20         L2 unit #20          00000
    20-01      L3 unit #20-01       20
    20-02      L3 unit #20-02       20
    
    SQL>  select * from org_unit_parameters;
    UNIT_CODE  PARAM1               PARAM2               PARAM3               PARAM4
    ---------- -------------------- -------------------- -------------------- --------------------
    00000      Default value        Default value        Default value        {null}
    10         {null}               Value from 10        Value from 10        {null}
    10-01      {null}               {null}               Value from 10-01     {null}
    10-02      {null}               {null}               {null}               Value from 10-02
    20         Value from 20        Value from 20        Value from 20        {null}
    20-01      {null}               Value from 20-01     {null}               {null}
    20-02      {null}               Value from 20-02     {null}               {null}
    The application queries the table of parameters to get a parameter value for a given unit.
    The parameter resolution algorithm is pretty simple: when you query a unit, the applicable parameter is set to the required level. If the parameter is undefined (null) to the required level, the value of the parameter to be returned is defined next in the hierarchy parent. In some rare cases, it can be null if a parameter is not set anywhere from required at the top level.

    I made a request that seems to work when querying a unit at a time. It uses hierarchical operators (start by + connect by) with a bit of analytical functions. Here's a test & the raw output example:
    SQL> WITH hierarchy
      2  AS
      3  (
      4    SELECT ou.unit_code,
      5         LEVEL            AS lvl
      6    FROM   organization_unit ou
      7    START WITH
      8      ou.unit_code = '20-01'
      9    CONNECT BY
     10      ou.unit_code = PRIOR ou.parent_unit_code
     11  )
     12  SELECT h.*,
     13       p.param1                                                        AS param1_raw,
     14       LAST_VALUE (p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param1_with_last,
     15       FIRST_VALUE(p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param1_with_first,
     16       p.param2                                                        AS param2_raw,
     17       LAST_VALUE (p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param2_with_last,
     18       FIRST_VALUE(p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param2_with_first,
     19       p.param3                                                        AS param3_raw,
     20       LAST_VALUE (p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param3_with_last,
     21       FIRST_VALUE(p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param3_with_first,
     22       p.param4                                                        AS param4_raw,
     23       LAST_VALUE (p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param4_with_last,
     24       FIRST_VALUE(p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param4_with_first
     25  FROM   hierarchy                                h
     26         LEFT JOIN org_unit_parameters         p
     27         ON h.unit_code = p.unit_code
     28  ORDER BY h.lvl DESC;
    
    UNIT_CODE   LVL PARAM1_RAW           PARAM1_WITH_LAST     PARAM1_WITH_FIRST    PARAM2_RAW           PARAM2_WITH_LAST     PARAM2_WITH_FIRST    PARAM3_RAW           PARAM3_WITH_LAST     PARAM3_WITH_FIRST    PARAM4_RAW           PARAM4_WITH_LAST     PARAM4_WITH_FIRST
    ---------- ---- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- --------------------
    00000         3 Default value        Default value        Value from 20        Default value        Default value        Value from 20-01     Default value        Default value        Value from 20        {null}               {null}               {null}
    20            2 Value from 20        Value from 20        Value from 20        Value from 20        Value from 20        Value from 20-01     Value from 20        Value from 20        Value from 20        {null}               {null}               {null}
    20-01         1 {null}               Value from 20        {null}               Value from 20-01     Value from 20-01     Value from 20-01     {null}               Value from 20        {null}               {null}               {null}               {null}
    Seems pretty good, higher settings are well "propagated" down with the LAST_VALUE function. But, I don't understand why the use of FIRST_VALUE and oppposite command does not give the same result. A little more play with the last query to get the final result of a given unit code:
    SQL> SELECT *
      2  FROM
      3  (
      4     WITH hierarchy
      5     AS
      6     (
      7        SELECT ou.unit_code,
      8               LEVEL            AS lvl
      9        FROM   organization_unit ou
     10        START WITH
     11           ou.unit_code = '20-01'
     12        CONNECT BY
     13           ou.unit_code = PRIOR ou.parent_unit_code
     14     )
     15     SELECT h.*,
     16            LAST_VALUE (p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param1,
     17            LAST_VALUE (p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param2,
     18            LAST_VALUE (p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param3,
     19            LAST_VALUE (p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param4
     20     FROM   hierarchy                                h
     21               LEFT JOIN org_unit_parameters         p
     22               ON h.unit_code = p.unit_code
     23     ORDER BY h.lvl
     24  )
     25  WHERE ROWNUM = 1;
    
    UNIT_CODE   LVL PARAM1               PARAM2               PARAM3               PARAM4
    ---------- ---- -------------------- -------------------- -------------------- --------------------
    20-01         1 Value from 20        Value from 20-01     Value from 20        {null}
    Works well!

    But my ultimate goal is to create a view that properly solve all these parameters for each level of the organization with the good spread rather in new queries for each unit at once. I played a little, but without success. :( My current gross query is the following:
    SQL> WITH hierarchy
      2  AS
      3  (
      4     SELECT ou.unit_code,
      5            LPAD(' ',2*(LEVEL-1)) || ou.unit_code    AS tree,
      6            LEVEL                                    AS lvl
      7     FROM   organization_unit ou
      8     START WITH
      9        parent_unit_code IS NULL
     10     CONNECT BY
     11        PRIOR unit_code =  parent_unit_code
     12  )
     13  SELECT h.*,
     14         p.param1                                                        AS param1_raw,
     15         LAST_VALUE (p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param1_with_last,
     16         FIRST_VALUE(p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param1_with_first,
     17         p.param2                                                        AS param2_raw,
     18         LAST_VALUE (p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param2_with_last,
     19         FIRST_VALUE(p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param2_with_first,
     20         p.param3                                                        AS param3_raw,
     21         LAST_VALUE (p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param3_with_last,
     22         FIRST_VALUE(p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param3_with_first,
     23         p.param4                                                        AS param4_raw,
     24         LAST_VALUE (p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param4_with_last,
     25         FIRST_VALUE(p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param4_with_first
     26  FROM   hierarchy                          h
     27            LEFT JOIN org_unit_parameters   p
     28            ON h.unit_code = p.unit_code
     29  ORDER BY h.unit_code;
    
    UNIT_CODE  TREE        LVL PARAM1_RAW                PARAM1_WITH_LAST          PARAM1_WITH_FIRST      PARAM2_RAW                   PARAM2_WITH_LAST          PARAM2_WITH_FIRST         PARAM3_RAW                PARAM3_WITH_LAST          PARAM3_WITH_FIRST         PARAM4_RAW                PARAM4_WITH_LAST       PARAM4_WITH_FIRST
    ---------- ---------- ---- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- -------------------------
    00000      00000         1 Default value             Default value             Default value          Default value                Default value             Default value             Default value             Default value             Default value             {null}                    Value from 10-02       {null}
    10           10          2 {null}                    Value from 20             Default value          Value from 10                Value from 10             Default value             Value from 10             Value from 10             Default value             {null}                    Value from 10-02       {null}
    10-01          10-01     3 {null}                    {null}                    Default value          {null}                       Value from 20-02          Default value             Value from 10-01          Value from 10-01          Default value             {null}                    Value from 10-02       Value from 10-02
    10-02          10-02     3 {null}                    {null}                    Default value          {null}                       Value from 20-02          Default value             {null}                    Value from 10-01          Default value             Value from 10-02          Value from 10-02       Value from 10-02
    20           20          2 Value from 20             Value from 20             Default value          Value from 20                Value from 10             Default value             Value from 20             Value from 10             Default value             {null}                    Value from 10-02       {null}
    20-01          20-01     3 {null}                    {null}                    Default value          Value from 20-01             Value from 20-02          Default value             {null}                    Value from 10-01          Default value             {null}                    Value from 10-02       Value from 10-02
    20-02          20-02     3 {null}                    {null}                    Default value          Value from 20-02             Value from 20-02          Default value             {null}                    Value from 10-01          Default value             {null}                    Value from 10-02       Value from 10-02
    As you can see, it's not that I was expecting. I know there is something to do with a PARTITION BY clause, but do not know how.
    Anyone know how to solve my problem?

    Thank you
    Bruno

    For the purposes of reproducibility, here is the code to create the structure and data:
    Here is the format of my paintings and a few samble data:
    CREATE TABLE organization_unit (
       unit_code         VARCHAR2(5 CHAR)   NOT NULL PRIMARY KEY,
       unit_name         VARCHAR2(100 CHAR) NOT NULL,
       parent_unit_code  VARCHAR2(5 CHAR)   
    );
    
    CREATE TABLE org_unit_parameters (
       unit_code         VARCHAR2(5 CHAR)   NOT NULL PRIMARY KEY,
       param1            VARCHAR2(100 CHAR),
       param2            VARCHAR2(100 CHAR),
       param3            VARCHAR2(100 CHAR),
       param4            VARCHAR2(100 CHAR)
    );
    
    -- Inserting data
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('00000', 'Top level', NULL);
    
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('10', 'L2 unit #10', '00000');
    
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('10-01', 'L3 unit #10-01', '10');
    
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('10-02', 'L3 unit #10-02', '10');
    
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('20', 'L2 unit #20', '00000');
    
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('20-01', 'L3 unit #20-01', '20');
    
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('20-02', 'L3 unit #20-02', '20');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param1, param2, param3)
    VALUES ('00000', 'Default value', 'Default value', 'Default value');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param2, param3)
    VALUES ('10', 'Value from 10', 'Value from 10');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param3)
    VALUES ('10-01', 'Value from 10-01');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param4)
    VALUES ('10-02', 'Value from 10-02');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param1, param2, param3)
    VALUES ('20', 'Value from 20', 'Value from 20', 'Value from 20');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param2)
    VALUES ('20-01', 'Value from 20-01');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param2)
    VALUES ('20-02', 'Value from 20-02');
       
    COMMIT;

    Hi, Bruno.

    You almost had it!
    Take your query that gets good results for a single node. Remove the START WITH clause so that it does the same thing for each node. You will need to add CONNECT_BY_ROOT to remember what node you started with in each case and PARTITION BY calling value in all the LAST_VALUE function:

    WITH hierarchy
    AS
    (
         SELECT  ou.unit_code               AS ancestor_unit_code,
                     LEVEL                    AS lvl,
              CONNECT_BY_ROOT      ou.unit_code     AS descendant_unit_code
           FROM        organization_unit     ou
           CONNECT BY    ou.unit_code  = PRIOR  ou.parent_unit_code
    )
    , got_params     AS
    (
         SELECT       h.descendant_unit_code          AS unit_code
         ,       h.lvl
         ,       LAST_VALUE (p.param1  IGNORE NULLS) OVER ( PARTITION BY  h.descendant_unit_code
                                                                ORDER BY        lvl     DESC
                                               )    AS param1
         ,       LAST_VALUE (p.param2  IGNORE NULLS) OVER ( PARTITION BY  h.descendant_unit_code
                                                                ORDER BY        lvl     DESC
                                               )    AS param2
         ,       LAST_VALUE (p.param3  IGNORE NULLS) OVER ( PARTITION BY  h.descendant_unit_code
                                                                ORDER BY        lvl     DESC
                                               )    AS param3
         ,       LAST_VALUE (p.param4  IGNORE NULLS) OVER ( PARTITION BY  h.descendant_unit_code
                                                                ORDER BY        lvl     DESC
                                               )    AS param4
         FROM               hierarchy           h
         LEFT OUTER JOIN  org_unit_parameters     p  ON     h.ancestor_unit_code     = p.unit_code
    )
    SELECT       unit_code, param1, param2, param3, param4
    FROM       got_params
    WHERE       lvl     = 1
    ;
    

    Output:

    NIT_ PARAM1           PARAM2           PARAM3           PARAM4
    ----- ---------------- ---------------- ---------------- ----------------
    00000 Default value    Default value    Default value
    10    Default value    Value from 10    Value from 10
    10-01 Default value    Value from 10    Value from 10-01
    10-02 Default value    Value from 10    Value from 10    Value from 10-02
    20    Value from 20    Value from 20    Value from 20
    20-01 Value from 20    Value from 20-01 Value from 20
    20-02 Value from 20    Value from 20-02 Value from 20
    

    I hope that's what you want. I don't see the exact results you wanted posted anywhere.

    Thanks for posting the CREATE TABLE and INSERT statements; It is very useful.

    The difference between LAST_VALUE (... DESC) and FIRST_VALUE (... CSA) has to do with the default windowing.
    Say that we try to calculate FIRST_VALUE and LAST_VALUE on a line where lvl = 1, and it has 2 and 3 lvls in the same partition.
    LAST_VALUE (... ORDER BY DESC lvl) means the window includes lvl = values 1 and all the highest (i.e., 2 and 3).
    FRIST_VALUE (...) ORDER BY DESC lvl) means the window includes lvl = 1 and all the values (which, of course, their absence)
    It is because the widow of default is BETWEEN UNBOUNDED PREVIOUS AND CURRENT ROW, where "preceding" means lower values if you use ascending order, but higher values if you use descending order. We could use FIRST_VALUE to get the same results, but we will have to explicitly set the window in BETWEEN CURRENT_ROW AND UNBOUNDED FOLLOWING.

    Published by: Frank Kulash, November 12, 2010 12:46
    Additional explanation of LAST_VALUE

    Published by: Frank Kulash, November 12, 2010 13:04
    Beheading has been corrected.

  • Problems with (films) coating of the lens on the surface of the canon lenses.

    I read many comments here about how to clean the surfaces of the lens... I wonder if canon films that they promote as do wonderful things for development are not so great for cleaning? I bought an expensive lens not for long and cleaned with either lens clothing tending my opthomologist after my appointment to look for my glasses... I collect these sweet little squares, whenever I have an appointment to the eye because they are made for the purpose of cleaning of lenses... Houston is a very humid climate and after doing some night shots the lens seems sticky and so I polished with the soft cloth... I have not added any sort of cleaning liquid... but I noticed when I had finished there was a blue smear on the entire surface of the lens... Really? I have not used any more pressure than the kind of pressure that you can use to clean your glasses.  This bluish smears can be removed or is permanent damage to a dear surfface...? Now I must say that I didn't notice that this smear has affectd of my photos... I found one in post processing which presents a particular lighting problem which could be linked to the surface of the lens... Other people have had problems with the 'coatings', which are added to the surface of the lens? I would like to add at least two lens more... but I'm afraid to invest again if I rish damage the surface of the lens even Polish with a soft cloth?

    Well, I think because I became so addicted to photography... I can't stand that a week shoud go I'm not shooting and post processing... then the most important investment I did in a lens so far is 800 dollars... so as you say the investment of 50 million dollars for the protective lens cover is my best insurance...

  • An error occurred when querying for the pending operations

    Original title: sysprep problem
    I have an acer aspire 5738Z, I use windows 7 (64 bit) I try to open sysprep.exe and it does not open, a text box appears saying "an error occurred when querying for the pending operations. What can I do to fix this?

    Hello

    Thanks for posting the request in the Microsoft community forums.
    I understand that you receive the error "an error has occurred when querying for outstanding operations" when trying to open sysprep.exe on the computer.

    You can try the solutions provide and check if it helps solve the issue.

    Method 1:
    You can scan System File Checker to fix corrupted files.
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    Method 2:
    If the steps above fail then you can try the steps and check.

    a. run regedit by typing regedit in start search by pressing ENTER.
    b navigate to the following key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
    Key: RegistrySizeLimit
    Type: REG_DWORD
    Value: 0xffffff (4294967295)
    c. reset.

    If you need help with Windows, keep us informed. We will be happy to help you.

  • Are there any known problems with external battery for iPhone 6 s karim?

    Are there any known problems with external battery for iPhone 6 s karim? Jackery of input: 5V / 2. 1a.

    I had heard that some may damage internal parts of the phone.

    I am interested in what Apple says rather than what says karim.

    Thank you.

    Jkim99 wrote:

    Are there any known problems with external battery for iPhone 6 s karim? Jackery of input: 5V / 2. 1a.

    I had heard that some may damage internal parts of the phone.

    I am interested what said Apple rather than what it says karim.

    Thank you.

    There is no Apple here in this technical forum from user to user.

Maybe you are looking for