Query heirarchies

Is it possible to do the following and if so how?
We have 2 heirachies old and new.  In the new heirarchy some values have moved to a different node
Before the beginning of the year we want to show the values on the old heirarchy and after as on the new heirarchy
On the reports show as required.  If there is a solution otherwise please advise.  Thanks

Hi,
My answer to your question assumes that the hierarchy restrictions you are using in your query are not hierarchy level dependent.
1. Your query should be having a Year (Fiscal year or Cal Year) variable OR a month variable, if it is not there you will have to create one and user will have to enter month or year.
2. Create Hierarchy variable of type Customer exit > in  the exit code read the year OR month variable (created in step above) and based on derived year value replace the heirarchy variable with different hierarchies (old and new one). For this you may need hierarchy technical name, this you can find by RSA1>Infoobject --> Select desired infoobject and go to heirachy tab and double click on the hierarchy table (/BI*/H<infoobject>) and then display the data in the table in next screen , this will give you the Hier Unique ID, which u can assing to Hierarchy Variable depending on the year OR Month value.
Give it a go, let us know if the requirement is more specific or different.
Cheers,
CK

Similar Messages

  • Displaying Heirarchical Data

    Is there a way to query heirarchical data so that it shows it's heirarchical structure but is also ordered within its heirarchical structure.
    e.g. you can query the SCOTT.EMP table using:
    SELECT empno, ename, hiredate
    FROM emp
    CONNECT BY mgr = PRIOR empno
    START WITH mgr IS NULL
    and you'll get:
    EMPNO ENAME MGR HIREDATE
    7839 KING 17-NOV-81
    7566 JONES 7839 02-APR-81
    7788 SCOTT 7566 19-APR-87
    7876 ADAMS 7788 23-MAY-87
    7902 FORD 7566 03-DEC-81
    7369 SMITH 7902 17-DEC-80
    7698 BLAKE 7839 01-MAY-81
    7499 ALLEN 7698 20-FEB-81
    7521 WARD 7698 22-FEB-81
    7654 MARTIN 7698 28-SEP-81
    7844 TURNER 7698 08-SEP-81
    7900 JAMES 7698 03-DEC-81
    7782 CLARK 7839 09-JUN-81
    7934 MILLER 7782 23-JAN-82
    But is there a way to also order the rows by HIREDATE so that TURNER would be listed before MARTIN?
    Thanks for any feedback

    Eric,
    Just adding an order by clause to the bottom of the query destroys the hierarchical tree structure. Notice the_level column in the examples below. The first query without an order by produces the tree strucutre but the siblings or nodes or leaves or whatever you want to call them within the branches are not ordered by the hiredate. In the second query, adding the order by clause to the bottom of the query, orders the results by hiredate, but for the whole query, not within the branches, destroying the tree structure, which is more obvious when you compare the_level column. The third query which uses the packaged function I posted above retains the tree structure and orders each branch by hiredate.
    SQL> COLUMN the_level FORMAT A10
    SQL> -- original query:
    SQL> SELECT     empno, ename, hiredate,
      2            LPAD (LEVEL, LEVEL * 2, '..' ) AS the_level
      3  FROM     emp
      4  START WITH mgr IS NULL
      5  CONNECT BY PRIOR empno  = mgr
      6  /
         EMPNO ENAME                HIREDATE    THE_LEVEL                          
          7839 KING                 17-NOV-1981 .1                                 
          7566 JONES                02-APR-1981 ...2                               
          7788 SCOTT                09-DEC-1982 .....3                             
          7876 ADAMS                12-JAN-1983 .......4                           
          7902 FORD                 03-DEC-1981 .....3                             
          7369 SMITH                17-DEC-1980 .......4                           
          7698 BLAKE                01-MAY-1981 ...2                               
          7499 ALLEN                20-FEB-1981 .....3                             
          7521 WARD                 22-FEB-1981 .....3                             
          7654 MARTIN               28-SEP-1981 .....3                             
          7844 TURNER               08-SEP-1981 .....3                             
          7900 JAMES                03-DEC-1981 .....3                             
          7782 CLARK                09-JUN-1981 ...2                               
          7934 MILLER               23-JAN-1982 .....3                             
    14 rows selected.
    SQL> -- order by which destroys tree structure:
    SQL> SELECT     empno, ename, hiredate,
      2            LPAD (LEVEL, LEVEL * 2, '..' ) AS the_level
      3  FROM     emp
      4  START WITH mgr IS NULL
      5  CONNECT BY PRIOR empno  = mgr
      6  ORDER BY HIREDATE
      7  /
         EMPNO ENAME                HIREDATE    THE_LEVEL                          
          7369 SMITH                17-DEC-1980 .......4                           
          7499 ALLEN                20-FEB-1981 .....3                             
          7521 WARD                 22-FEB-1981 .....3                             
          7566 JONES                02-APR-1981 ...2                               
          7698 BLAKE                01-MAY-1981 ...2                               
          7782 CLARK                09-JUN-1981 ...2                               
          7844 TURNER               08-SEP-1981 .....3                             
          7654 MARTIN               28-SEP-1981 .....3                             
          7839 KING                 17-NOV-1981 .1                                 
          7902 FORD                 03-DEC-1981 .....3                             
          7900 JAMES                03-DEC-1981 .....3                             
          7934 MILLER               23-JAN-1982 .....3                             
          7788 SCOTT                09-DEC-1982 .....3                             
          7876 ADAMS                12-JAN-1983 .......4                           
    14 rows selected.
    SQL> -- order of siblings or nodes within branches:
    SQL> SELECT   empno, ename, hiredate, the_level
      2  FROM     (SELECT       empno, ename, hiredate,
      3                   LPAD (LEVEL, LEVEL * 2, '..' ) AS the_level,
      4                   hierarchy.branch
      5                     (LEVEL,
      6                      TO_CHAR (hiredate, 'YYYYMMDD'))
      7                     AS branch
      8              FROM       emp
      9              START WITH mgr IS NULL
    10              CONNECT BY PRIOR empno  = mgr)
    11  ORDER BY branch
    12  /
         EMPNO ENAME                HIREDATE    THE_LEVEL                          
          7839 KING                 17-NOV-1981 .1                                 
          7566 JONES                02-APR-1981 ...2                               
          7902 FORD                 03-DEC-1981 .....3                             
          7369 SMITH                17-DEC-1980 .......4                           
          7788 SCOTT                09-DEC-1982 .....3                             
          7876 ADAMS                12-JAN-1983 .......4                           
          7698 BLAKE                01-MAY-1981 ...2                               
          7499 ALLEN                20-FEB-1981 .....3                             
          7521 WARD                 22-FEB-1981 .....3                             
          7844 TURNER               08-SEP-1981 .....3                             
          7654 MARTIN               28-SEP-1981 .....3                             
          7900 JAMES                03-DEC-1981 .....3                             
          7782 CLARK                09-JUN-1981 ...2                               
          7934 MILLER               23-JAN-1982 .....3                             
    14 rows selected.

  • Heirarchical query...inside another to get connect_by_root

    Given the following table:
    CREATE TABLE TEST_HIERARCHY
    CREATE TABLE TEST_HIERARCHY
    UDL_GUID INTEGER,
    DESCRIPTION VARCHAR2(50),
    PARENT_UDL_GUID INTEGER,
    CONSTRAINT TEST_HIERARCHY_PK
    PRIMARY KEY
    (UDL_GUID)
    Insert into TEST_HIERARCHY
    (UDL_GUID, DESCRIPTION, PARENT_UDL_GUID)
    Values
    (1, 'Parent 1', NULL);
    Insert into TEST_HIERARCHY
    (UDL_GUID, DESCRIPTION, PARENT_UDL_GUID)
    Values
    (2, 'Child 1', 1);
    Insert into TEST_HIERARCHY
    (UDL_GUID, DESCRIPTION, PARENT_UDL_GUID)
    Values
    (3, 'Child 2', 2);
    Insert into TEST_HIERARCHY
    (UDL_GUID, DESCRIPTION, PARENT_UDL_GUID)
    Values
    (4, 'Child 3', 2);
    Insert into TEST_HIERARCHY
    (UDL_GUID, DESCRIPTION, PARENT_UDL_GUID)
    Values
    (5, 'Parent 2', NULL);
    Insert into TEST_HIERARCHY
    (UDL_GUID, DESCRIPTION, PARENT_UDL_GUID)
    Values
    (6, 'Child 4', 5);
    Insert into TEST_HIERARCHY
    (UDL_GUID, DESCRIPTION, PARENT_UDL_GUID)
    Values
    (7, 'child 5', 5);
    Insert into TEST_HIERARCHY
    (UDL_GUID, DESCRIPTION, PARENT_UDL_GUID)
    Values
    (8, 'child 6', 7);
    Insert into TEST_HIERARCHY
    (UDL_GUID, DESCRIPTION, PARENT_UDL_GUID)
    Values
    (9, 'child 7', 7);
    COMMIT;
    And running the following SELECT:
    select level, description, udl_guid, parent_udl_guid
    from test_hierarchy
    start with parent_udl_guid in (
    select distinct
    connect_by_root udl_guid from test_hierarchy
    where udl_guid in( 8, 4)
    start with parent_udl_guid is null
    connect by prior udl_guid = parent_udl_guid
    connect by prior udl_guid = parent_udl_guid
    I get this error:
    ORA-00600: internal error code, arguments: [qctcte1], [0], [], [], [], [], [], []
    I'm guessing this isn't allowed or this is a bug?
    What we're trying to do is....users get a list of items to be 'assigned' to a vehicle for transport. If an item is part of a parent child relationship (ie- a crate containing boxes of other items) then we need to ask the user if they want to bring along everything that is linked or nothing at all (no in between, all or nothing). So what I'm trying to do is get a statement that allows you to specify the items that were selected, and pull a result set of the entire heirarchy (or heirarchies) that the selected items are part of.
    So the above inserts get you:
    Parent 1
    -- child 1
    -- -- child 2
    -- -- child 3
    parent 2
    -- child 4
    -- child 5
    -- -- child 6
    -- -- child 7
    So if a user were to select child 5 and 7, they would get the whole parent 2 hierarchy. If they select 7 and 2, they would get both parent 1 and 2's hierarchy. (I know the above columns listed are not guids, I had to dumb this down for myself so I could follow who was chasing who. Integers are so much easier)
    Searching metalink didn't get me any obvious results. I can run either query by itself and get results. I can even run a subquery for the main hierarchical query which is a normal SELECT. Oracle falls apart when trying to process them both.
    Anybody see a different way to do this? This is 10gR2 running on RHEL4. Thanks.

    ora-600's should always be checked against metalink
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:3038746456038321058::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,248095.1,1,0,1,helvetica
    also, it works fine for me
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
    PL/SQL Release 10.1.0.2.0 - Production
    CORE    10.1.0.2.0      Production
    TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
    NLSRTL Version 10.1.0.2.0 - Production
    5 rows selected.
    SQL> select level, description, udl_guid, parent_udl_guid
      2  from test_hierarchy
      3  start with parent_udl_guid in (
      4  select distinct
      5  connect_by_root udl_guid from test_hierarchy
      6  where udl_guid in( 8, 4)
      7  start with parent_udl_guid is null
      8  connect by prior udl_guid = parent_udl_guid
      9  )
    10  connect by prior udl_guid = parent_udl_guid
    11  /
         LEVEL DESCRIPTION                                          UDL_GUID PARENT_UDL_GUID
             1 Child 1                                                     2               1
             2 Child 2                                                     3               2
             2 Child 3                                                     4               2
             1 Child 4                                                     6               5
             1 child 5                                                     7               5
             2 child 6                                                     8               7
             2 child 7                                                     9               7
    7 rows selected.

  • Heirarchical Query, Connect By Loop in User Data

    Hi,
    Is there any method to find the node which has problem in heirachical query.
    As my data is complex and has levels upto 10 , its not possbile to fix manually. I have idendtified the series "START WITH" ,which causing problem. But I couldnt find the exact nodes in the seris which creates the loop.
    Even exception handling not working in that.
    Please advice.
    Regards,
    Benz

    Thanks Padders,
    This helped me to skip the coonect by Loop error.
    I was using 10.2.0.3
    Regards,
    Benz

  • Hierarchy/heirarchical queries/query start with connect

    ok... I have seen many examples of using hierachical queries. All of the example has parent as null and children with 1 parent. I haven't seen any query that queries a child with multiple parents.
    For example.
    Table A:
    Child--Parent
    1--null
    2--1
    3--1
    3--2
    4--3
    5--2
    Select query:
    Select child, level
    from A
    start with child = 3
    connect by prior child = parent
    Result
    Child--Level
    3--1
    4--2
    3--1
    4--2
    Notice that it display the child '3' twice. Its because it has 2 different parent.
    My question is that, how do I make the query to display this iteration once?

    Hi, Sentinel,
    I'd love to see a solution that simple, but I don't think it's possible.
    Suppose you want to see child=2 and all it's descendants:
    --<"begin sample data">
    with a as (select 1 child, null parent from dual
    union all select 2, 1 from dual
    union all select 3, 1 from dual
    union all select 3, 2 from dual
    union all select 4, 3 from dual
    union all select 5, 2 from dual
    --<"cut here">
    Select child, level
       from (select child, min(parent) parent from a group by child)
      start with child = 2
    connect by prior child = parent;Produces this output:
         CHILD      LEVEL
             2          1
             5          2I believe OP wants to get this for the descendants of child=2:
         CHILD      LEVEL
             2          1
             5          2[b]
             3          2
             4          3So what happened to child=3? For child=3, MIN (parent) = 1, according to this query. That's true when the universe is the entire table, but we're only interested in child=2 and its descendants.
    Message was edited by:
    Frank Kulash
    By the way, the comments
    --<"begin sample data">
    and
    --<"cut here">
    are brilliant!

  • Heirarchical query

    Hi have data in T1 like
    col1 col2
    a b
    a c
    b d
    b e
    b f
    c g
    c h
    d i
    d j
    i need to show it as like
    output
    o1 o2
    a b
    c
    b d
    e
    f
    c g
    h
    d i
    j
    like this heirarchy i have to can any help on this
    regards
    madhu

    So we have to use like this..?
    SQL> select decode(row_number() over (partition by id order by val),
      2                1,id) id1,val
      3  from t
      4  order by id,val;
           ID1 VAL
             1 col1
               col2
               col3
             2 col4
               col5
    But then what will happen for similar (id,val) pair..?
    Will ORACLE order them similarly for ANALYTICAL order_by
    and SELECT order_by.Otherwise it will cause problems,
    no?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Can a tree control express a heirarchical query?

    Hi,
    Are any of the tree controls data aware?
    null

    The tree controls are not data aware. Creating a data model for a
    tree control is highly dependent on the data so it is best left
    to the developer to design.
    Regards,
    JDeveloper Team
    Sotiri Bonanos (guest) wrote:
    : Hi,
    : Are any of the tree controls data aware?
    null

  • ORA-01008 Error while executing VO Query

    HI,
    I have a VO to get the heirarchy for the selected Business. On selecting appropriate business, ppr is fired to build up available heirarchies for that business. The query for VO is
    SELECT pos.name ||' ('||DECODE(pos.primary_structure_flag,'Y','Primary', 'N', 'Non-Primary','')||')' name , posv.org_structure_version_id org_structure_version_id
    FROM per_organization_structures pos,per_org_structure_versions posv
    WHERE pos.business_group_id = :1
    AND pos.organization_structure_id = posv.organization_structure_id
    AND pos.business_group_id = posv.business_group_id
    AND posv.date_to IS NULL
    While executing the query, it throws ORA-01008 exception saying "Not all Variables are bound". During debugging i saw that the selected business group id is available in AM before calling the VO execution.
    Any help will be appreciated.
    Thanks,

    Hi Tapash,
    The following is the information you have requested
    1. VO defn from the xml file
    <?xml version="1.0" encoding='windows-1252'?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <ViewObject
    Name="HierarchyVO"
    BindingStyle="Oracle"
    CustomQuery="true"
    RowClass="ge.oracle.apps.per.orghierarchy.poplist.server.HierarchyVORowImpl"
    ComponentClass="ge.oracle.apps.per.orghierarchy.poplist.server.HierarchyVOImpl"
    MsgBundleClass="oracle.jbo.common.JboResourceBundle"
    UseGlueCode="false" >
    <SQLQuery><![CDATA[
    SELECT pos.name ||' ('||DECODE(pos.primary_structure_flag,'Y','Primary', 'N', 'Non-Primary','')||')' name , posv.org_structure_version_id org_structure_version_id
    FROM per_organization_structures pos,per_org_structure_versions posv
    WHERE pos.business_group_id = :1
    AND pos.organization_structure_id = posv.organization_structure_id
    AND pos.business_group_id = posv.business_group_id
    AND posv.date_to IS NULL
    ]]></SQLQuery>
    <DesignTime>
    <Attr Name="_isCodegen" Value="true" />
    <Attr Name="_version" Value="9.0.3.12.53" />
    <Attr Name="_CodeGenFlagNew" Value="36" />
    </DesignTime>
    <ViewAttribute
    Name="Name"
    IsPersistent="false"
    Precision="44"
    Type="java.lang.String"
    AliasName="NAME"
    ColumnType="VARCHAR2"
    Expression="NAME"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="44" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="OrgStructureVersionId"
    IsPersistent="false"
    IsNotNull="true"
    Type="oracle.jbo.domain.Number"
    AliasName="ORG_STRUCTURE_VERSION_ID"
    ColumnType="VARCHAR2"
    Expression="ORG_STRUCTURE_VERSION_ID"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    </ViewObject>
    2. the method in AM
    public void getHierarchy(String strBusinessGrpId)
    try
    HierarchyVOImpl vo = getHierarchyVO1();
    Number BusinessGroupId = new Number("0");
    if(strBusinessGrpId!=null && !strBusinessGrpId.equals(""))
    BusinessGroupId = new Number(strBusinessGrpId);
    //vo.setWhereClause(null);
    //vo.setWhereClauseParam(0,BusinessGroupId);
    vo.executeQuery();
    catch(Exception e)
    throw new OAException(e.toString(),OAException.ERROR);
    } //end of getHierarchy
    3. calling code in CO
    if ("changeBusiness".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    String businessGrpId = pageContext.getParameter("BusinessGroup");
    Serializable[] parameters = { businessGrpId };
    mAM.invokeMethod("handleChangeBusiness", parameters);
    mAM.invokeMethod("getHierarchy", parameters);
    Thanks,
    Mohammadi

  • Heirarchical data model for Ontology???Help?

    I am attempting to model an ontology which is purely heirarchical onto Oracle's relational database.
    This can be done with a single table and a recursive foreign key, however I am concerned about the retrieval process having to repetatively query the child rows, then the grandchildren etc.
    This is going to be a very large database and I am concerned about performance.
    Certainly this is being done at numerous search sites on the web, and yet I cannot find any info on the subject from Oracle.
    Thanks for any help at all
    null

    Hah! I just work it out, share it with someone face the problem like me and hope that will be helpful,
    add text() after the XPath you set to get the Element data that you need, like that getLboMappingInfoResponse/result/text(); than it will get the data as XML Format for BI.
    Edited by: Weibing.Xia on 2013-5-16 下午5:31

  • Heirarchical filter item with checkboxes

    Hi
    We have a Bex query with a heirarchical charecterisitic filter.
    Can we have checkboxes for the same in VC.
    Please suggest
    Regards
    Lavanya

    Not answered

  • Hierarchical query To find the relation between the tables

    Hi,
    In my database schema i have hundreds of tables and dont have data model to understand the relation between them.
    I heared that there will be heirarchical query which can be written by using meta tables, is this query will really help me to understand the relations.
    Can anybody please help to get this query.
    Thanks,
    Vinod

    >
    Hi Vinod,
    I heared that there will be heirarchical query which can be written
    by using meta tables, is this query will really help me to understand the relations.You could also download Data Modeler - it should be of assistance - free from
    Oracle.
    HTH,
    Paul...
    Vinod

  • Group by Grouping sets in obiee11g query

    Hi Experts
    I have few unbalanced heirarchies in the rpd. I have created level beased heirarchy for those ragged and skipped hierarchy but while generating the report using those hierarchy generates a huge SQL involving 20-30 UNION ALLs . Instead it should have generated comparatively smaller query using Group by Grouping Sets but it is not.
    I have also tried enabling this parameter in DB properties in OBIEE11g ( changed the default DB from 9i to 11g in obiapps 7.9.6.3 rpd) but still no use .
    As a result of huge query geenration the performance is badly impacted.
    Any thought on this pls.

    I have run into the same problem. Any hints about what might be the reason or, even better, how to address it, will be more than welcome.
    thanks in advance

  • Trying to build a query

    Hello,
    I am using oracle 10g
    I have a tableA i.e. it takes the user hierarchy.
    which has the table columns like group1,group2,group3
    group1 is the manager1,group2 is under group1,group3 is under group2 i mean the data.
    and the username
    Now what i want is
    If a username selected is abc
    If its comes as group1 then the immediate group2 should be selected.
    If abc is group2 then group3 should be selected.
    How to write this query
    I tried like
    select
    case when username=group1 then (select group2 from tableA a where username='abc')
    end
    from tableA b
    where username='abc'
    But in this case gets error like single row sub query returnd more rows.
    I can have multiple people whose group1 and group2 are same.
    like if group3 value is def group2 is wer and group1 is qwe
    then again group3 value is wdf group2 is wer and group1 is qwe
    I am adding some create and insert commands
    create table tableA
    group1 varchar2(100);
    group2 varchar2(100);
    group3 varchar2(100);
    username varchar2(100);
    Here group1 is the boss, group2 is under him,group3 is under group2
    username can be group1/group2/ group3
    Table just tells which level a user stands and who are the bosses
    insert into tableA(group1,group2,group3,usrename) values ('[email protected]','[email protected]','[email protected]','[email protected]');
    insert into tableA(group1,group2,group3,usrename) values ('[email protected]','[email protected]','','[email protected]');
    insert into tableA(group1,group2,group3,usrename) values ('[email protected]','','','[email protected]');
    Now output should be
    I have a text field where a user can type any username.
    Now it enters and clicks go button.
    Should be able to see
    the people under him
    Means if in the text field a user enters
    [email protected]
    Then since def and ghi is under him he should be able to see
    [email protected]
    [email protected] as 2 rows.
    Thanks
    Edited by: user123 on Jul 12, 2011 8:24 AM

    it will be better if you post some sample data and output. i am assuming based on your posting that you want a heirarchical query result. i posted here some examples that might be of some help to you.
    SQL> select * from emp;
    EMPNO ENAME      JOB         MGR HIREDATE          SAL      COMM DEPTNO
    7902 FORD       ANALYST    7566 03-Dec-81     3000.00               20
    7839 KING       PRESIDENT       17-Nov-81     5000.00               10
    7698 BLAKE      MANAGER    7839 01-May-81     2850.00               30
    7782 CLARK      MANAGER    7839 09-Jun-81     2450.00               10
    7788 SCOTT      ANALYST    7566 09-Dec-82     3000.00               20
    7844 TURNER     SALESMAN   7698 08-Sep-81     1500.00      0.00     30
    7876 ADAMS      CLERK      7788 12-Jan-83     1100.00               20
    7900 JAMES      CLERK      7698 03-Dec-81      950.00               30
    7934 MILLER     CLERK      7782 23-Jan-82     1300.00               10
    7945 CINDY      SALESMAN   7698 16-Jan-83     1800.00               30
    7950 TINA       SALESMAN   7698 18-Jan-83     1850.00               30
    11 rows selected
    SQL> SELECT lpad(' ',2*(level-1),' ')||ename employee,  empno employee_no, job
      2  FROM emp
      3  START WITH job = 'PRESIDENT'
      4  CONNECT BY PRIOR empno = mgr
      5  ;
    EMPLOYEE                                                                         EMPLOYEE_NO JOB
    KING                                                                                    7839 PRESIDENT
      BLAKE                                                                                 7698 MANAGER
        TURNER                                                                              7844 SALESMAN
        JAMES                                                                               7900 CLERK
        CINDY                                                                               7945 SALESMAN
        TINA                                                                                7950 SALESMAN
      CLARK                                                                                 7782 MANAGER
        SCOTT                                                                               7788 ANALYST
        ADAMS                                                                               7876 CLERK
        FORD                                                                                7902 ANALYST
        MILLER                                                                              7934 CLERK
    11 rows selected
    SQL>

  • Speeding up Heirarchical tree fetch

    Hello,
    I am currently running Forms 6i (Patchset 18) on Oracle 10g R2. I have a form which uses a heirarchical tree generated by a SQL. The form takes around 10 seconds to show the tree. And while the tree is being generated the whole window is inaccessible.
    I have created appropriate Indices on the database to ensure the SQL is optimised.
    Can anything be done to increase the speed of the tree fetch?
    Regards,
    Sudhamshu

    @Manu: I have optimised the query by providing appropriate indices. However, the speed of the fetch increased only marginally.
    @Andreas:
    Thanks for the link (to your blogpost) on Partial Loading. I shall try that and see how it affects the speed. I was trying to get something similar done. This is Helpful. Thank you.

  • BIB-9509 error when trying to create query on 7 Dimensional Measure

    PART1 of the text below -----------------------------
    Is there a limit on the ability to create a bibean query on measure that is associated with a large number of dimensions.
    Basically I am trying to create a bibean query on measure which has 7 dimensions.
    When I right mouse on my ProjectDesigner, I select 'New Query'
    The Query Wizard appears as expected, I follow all instructions on Step2 of the wizard.
    Step 2:
    A list appears of all the available measures and asscociated dimensions that can be used.
    I scroll down the list and sure enough my 7 dimensional measure is available.
    I select it and it places it the Right Box. I see a tree structure that shows me the measure
    and it's associated Dimensions and their heirarchies.
    Step 3:
    I cick on Next, then I enter the Layout page.
    The layout initally has 5 page dims, 1 across dim and 1 down dims. I can re-orientate the tiles to manipulate the layout with no problems
    Now when I press next I hit a big problem
    The wizard errors with the following problem
    BIB-9509 Oracle OLAP did not create cursor.
    oracle.express.ExpressServerExceptionError class: OLAPI
    Server error descriptions:
    DPR: Unable to create server cursor, Generic at TxsOqDefinitionManager::createCursorManager[i]Long postings are being truncated to ~1 kB at this time.

    PART 2 of the text below ------------------------------
    I re -tried all of the above with 1,2 and 3 dimensional measures and I had no problems whatsoever. I was able to complete the query and select the appropriate dimension values.
    The dimensional information is held in an Analytic workspace. I have created the correct Relational Views using OLAP TABLE and registered these views using the CWM2 packages, so they be viewed by BIBEANS/JDeveloper.
    Can anybody help me from the BIBEANS team thank you
    I have installed latest production JDEV and Bibeans 9.0.3.1035 and Oracle 9.2.0.2 with all the
    appropriate patches.
    WIN200 os with 512MB
    Can anybody help me from the BIBEANS team
    thank you
    Richard

Maybe you are looking for

  • When i connect to itunes with my ipod touch it wont let me apply music, apps etc. on to it what do i do?

    Whenever i try to sync music, apps, videos etc. on to my ipod touch from my home computer it wont let me apply where it says 'apply' as it is sort of shaded out. This started happeneing when i downloaded IOS5 so i got a replacement and it did not wor

  • Dreamweaver CS3 First Run problems

    Installing Dreamweaver CS3 Saga. I've had some trouble and despite looking for answers and trying a few things I'm getting nowhere. I've included a timeline of events below to help explain. 0) System: New Dell Opliplex 745 running XP Pro Sp2 and netw

  • IMAC Premiere CS6 and GPU's question. (Updated)

    The only new iMac's which might support GPU CUDA operation in Premiere CS6, are the 27 inch ones using the GTX 675MX or the GTX 680MX video chipset. Neither of these are on the cuda supported list but of course they could be added to the appropriate

  • Soft errors/warnings are creating idocs in 51 status, and creating orders

    In our SAP 4.7 environment, inbound orders that encounter credit checks, materials in the wrong status, blocked customers, and several other issues that should just be warnings or messages rather than resulting in status 51 idocs, are hitting 51 erro

  • Mail invoice/statement to the customer

    Hi gurus i would like to know how we set up in R11 so that the system can automatically sent invoices/statements to the customers,i tried the function of making the customer site a statement site,and setting the statement cycle but when i test it,i g