Cache groups and table join

Hi,
Is there any limitation regarding an SQL query doing a JOIN of tables from multiple cache groups?
Thanks

No limitations. From a query/DML perspective, cache group tables are just like any other table.
Chris

Similar Messages

  • How to create checkbox group and table dynamically?

    HI All
    How to create checkbox group and table dynamically?
    Regards
    Ravi

    hi
    check this links for creating  tables dnamically
    How to Create a table dynamically?
    Re: how to create a table dynamically in webdynpro
    and for checkboxgroup
    IWDTransparentContainer rootContainer =
    (IWDTransparentContainer)view.getElement("RootUIElementContainer");
    IWDCheckBox check = (IWDCheckBox)view.createElement(IWDCheckBox.class,"Check"+k);
    //Here "check"+k k represents a unique value every time u create so that u wont get a duplicate instance
    check.setChecked(false);
    rootContainer.addChild(check);
    or Re: adding checkboxes dynamically

  • Cache groups and # symbol

    Hi!
    I have oracle table (user kvstr):
    create table CHANGES
    CHNG_ID NUMBER(10) not null,
    DAY DATE default SYSDATE,
    VOLUME_# NUMBER(4,2),
    NAVI_USER VARCHAR2(30) default USER,
    NAVI_DATE DATE default SYSDATE
    Then I create TimesTen 7.0.1 (WIN32) cache group:
    CREATE USERMANAGED CACHE GROUP "CGRP_CHANGES"
    FROM
    "KVSTR"."CHANGES" (
    "CHNG_ID" NUMBER(10) NOT NULL,
    "DAY" DATE,
    "VOLUME_#" NUMBER(4,2),
    PRIMARY KEY("CHNG_ID"), READONLY
    WHERE (TRUNC("KVSTR"."CHANGES"."DAY") = TRUNC(SYSDATE));
    Cache group created normally. But when I refresh cache group error occurred:
    Command> REFRESH CACHE GROUP ttsys.cgrp_changes COMMIT EVERY 1000 ROWS;
    5056: The cache operation fails: error_type=<Oracle Error>, error_code=<1740>, error_message: ORA-01740: missing double quote in identifier
    5039: An error occurred while refreshing TTSYS.CGRP_CHANGES: Refresh failed (ORA-01740: missing double quote in identifier
    The command failed.
    What's wrong?

    Hi!
    I was also facing the same problem but with out using # the problem gets solved. I guess TimesTen does not supports # in the column names but it is mentioned in the docs that it supports .
    Regards
    /Ahmad

  • Group by and table Join

    Hi Expert,
    I am new for pl/sql I have some question ..
    I have table like this
    1. table productcost has column productcostID,costID,DeptID,REQUESTCOST,EXPENDITURECOST
    2. table COST has column costID , costName,costmajorID,costtypeID
    3. table Departments has DeptID,DeptName
    4. table CostMajor has costmajorID , costmajorName
    i want to query productcost Table where DeptID = somevalue call X and it must contain every productcost has DeptID = X and i want to select costname to show
    and i want to group by it by costmajorID in table Cost .... How Can I do that ? Someone please help me ..
    My Result Like this (a Table query from table productcost )
    table 1
    costmajorName1 EXPENDITURECOST REQUESTCOST
    costName1 1000000 2000000
    costName2 1000000 2000000
    table 2
    costmajorName2 EXPENDITURECOST REQUESTCOST
    costName3 1000000 2000000
    costName4 1000000 2000000
    table 3
    costmajorName3 EXPENDITURECOST REQUESTCOST
    costName5 1000000 2000000
    costName6 1000000 2000000
    ps. I'm not good in english sorry if i made you not understand..

    Query for a xml output then but take the below just as a template as I don't have a Database at hand and that's all I can come up with at the moment
    You can get more help in the {forum:id=34} forum or wait till Marc shows up ;) or someone else provides a working example
    select xmlelement("Table",
           xmlelement("Title",
           xmlelement("Col_1", costmajor_name),
           xmlelement("Col_2", 'expenditure_cost'),
           xmlelement("Col_3", 'request_cost')
              xmlagg (
           xmlelement("Costs",
           xmlelement("Col_1", cost_name),
           xmlelement("Col_2", expenditure_cost),
           xmlelement("Col_3", request_cost)
      from (select cm.costmajor_name,c.cost_name,pc.expenditure_cost,pc.request_cost
              from productcost pc,
                   cost c,
                   costmajor cm
             where dept_id = :dept_chosen
               and pc.cost_id = c.cost_id
               and c.costmajor_id = cm.costmajor_id
      group by costmajor_nameRegards
    Etbin

  • Group and table visibility

    Hello Friends,
    I am facing a problem as follows:
    In an existing application I am trying to modify some code: there is a group which contains two tables the visibility of both tables are set to context element node also called visibility: and its elements table_1 is set to visibility property of first table and table_2 value attribute is set to visibility property of the second table.
    Now from the coading as far as I understood it is as follows:
    When the first table is set to NONE the second table is automatially visible and first table is disappered, and as soon as in coading it makes the first table visible the second table is automatically disappred ?
    Can any one pls help me in understanding how/what is going on ?
    Because the issue is I have to place now a third table and when this table is visible then the other two tables should not be visible, .......
    Regards

    Hi,
    In the wdDoModifyView:- Now put the if condition for tables that if one is VISIBLE then other two should be set as NONE.
    Regards,
    Praveen

  • Difference between Logicaldatabase and Table Join in Query SQ01

    Hello Expert,
    To create query, we need to create infoset first. While cration of infoset we have two option
    1. Enter Table names and join table
    2. Use logical database.
    We cant use both option at a time.
    I have created a infoset where i have used the logical database PNPCE, Now i have situation where i need to join the two infotype mainly 0021 and 0138. But i cant find any otion wher i can join these two table. If i use these two table in the infoset instead of logical database , i am able to join them using join tool.
    When i use logical database, by default infotypes are joined based on the employee number only. Is thetre any option where i can join my two infotype other than employee field???
    Regards,
    Sagar

    Moderator message - Please search before asking - post locked
    Rob

  • Handling substitution groups and Tables generation

    Hi
    This is concerning the generation of tables from xml schema containing "substitutionGroup" attributes and "extension" elements for
    deriving from abstract types.
    I want to know how the tables are generated when schema has subsitution groups.
    I went through the generated tables and observed that it creates a table for each extension...but also generates a table for the head of the subsitution group.
    This table would have columns for each of the members in the derivatives of the abstract type.This is resulting in more than 1000 columns in my case
    Any suggestions?
    Thanks
    Devashish

    When a subsitution group is used each of the type of each of the elements in the substition group must be an extension of the type of the head element. In the case where the head type is based on an abstract empty complexType this makes no sense. Since the type inheritiance system implies that anywhere a parent type can appear it is legal for the chlild type to appear in it's place we have to create a storage structure for the head element which can handle any of the possible child types. This means that at the storage level we have to generate a table with a column for each possible descendant of the head element. This means that we are effectively restricting the number of direct elements and attributes that can be defined by members of the substition group to a number that is a little less than 1000.
    This can be be seen in the first example below.
    However in the case where the substition group contains no common element we can model this as choice. as is shown in the second XML Schema. Since every member of the choice is independant of the other members of the choice there is no need for the inheritance hierarchy in the type definitions. This means that each member of the choice can now be mapped to a seperate table. This structure allows for a choice with approxamately a 1000 entries and no practicle limits on the number of decendant elements and attributes for each member of the choice..
    This can be seen in the second example bleow;
    The key point is the number of columns in ROOT_TABLE. In the First Example it is 17, the fixed overhead plus the number of columns required to persist headType, member1Type and member2Type. In the Second example it is 12, the fixed overhead plus a REF XMLType to point at instances of member1Type and REF XMLType to point at instnaces of member2Type.
    I hope this answers your question
    SQL> var schemaURL varchar2(256)
    SQL> var schemaPath varchar2(256)
    SQL> --
    SQL> column qualified_col_name format A64
    SQL> column data_type format A40
    SQL> --
    SQL> set lines 150 pages 25 long 10000
    SQL> --
    SQL> begin
      2    :schemaURL := 'testcase.xsd';
      3    :schemaPath := '/public/testcase.xsd';
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
      2  /
    Call completed.
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<?xml version="1.0" encoding="UTF-8"?>
      5  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified" attribute
    FormDefault="unqualified" xdb:storeVarrayAsTable="true">
      6     <xs:element name="root" type="rootType" xdb:defaultTable="ROOT_TABLE"/>
      7     <xs:complexType name="rootType" xdb:SQLType="ROOT_T">
      8             <xs:sequence>
      9                     <xs:element ref="head"/>
    10             </xs:sequence>
    11     </xs:complexType>
    12     <xs:complexType name="headType" xdb:SQLType="HEAD_T" abstract="true"/>
    13     <xs:complexType name="member1Type" xdb:SQLType="MEMBER1_T">
    14             <xs:complexContent>
    15                     <xs:extension base="headType">
    16                             <xs:sequence>
    17                                     <xs:element name="Member1.Child1" type="xs:string"/>
    18                                     <xs:element name="Member1.Child2" type="xs:string"/>
    19                             </xs:sequence>
    20                     </xs:extension>
    21             </xs:complexContent>
    22     </xs:complexType>
    23     <xs:complexType name="member2Type" xdb:SQLType="MEMBER2_T">
    24             <xs:complexContent>
    25                     <xs:extension base="headType">
    26                             <xs:sequence>
    27                                     <xs:element name="Member2.Child1" type="xs:string"/>
    28                                     <xs:element name="Member2.Child2" type="xs:string"/>
    29                             </xs:sequence>
    30                     </xs:extension>
    31             </xs:complexContent>
    32     </xs:complexType>
    33     <xs:element name="head" type="headType" xdb:defaultTable="GLOBAL_HEAD_TABLE"/>
    34     <xs:element name="member1" type="member1Type" substitutionGroup="head" xdb:defaultTable="GLOBAL_MEMBER1_TABLE"/>
    35     <xs:element name="member2" type="member2Type" substitutionGroup="head" xdb:defaultTable="GLOBAL_MEMBER2_TABLE"/>
    36  </xs:schema>');
    37  begin
    38    if (dbms_xdb.existsResource(:schemaPath)) then
    39      dbms_xdb.deleteResource(:schemaPath);
    40    end if;
    41    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    42  end;
    43  /
    PL/SQL procedure successfully completed.
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,TRUE
      7    );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> --
    SQL> desc ROOT_TABLE
    Name                                                                                Null?    Type
    TABLE of SYS.XMLTYPE(XMLSchema "testcase.xsd" Element "root") STORAGE Object-relational TYPE "ROOT_T"
    SQL> --
    SQL> desc ROOT_T
    ROOT_T is NOT FINAL
    Name                                                                                Null?    Type
    SYS_XDBPD$                                                                                   XDB.XDB$RAW_LIST_T
    head                                                                                         HEAD_T
    SQL> --
    SQL> desc HEAD_T
    HEAD_T is NOT FINAL
    HEAD_T is NOT INSTANTIABLE
    Name                                                                                Null?    Type
    SYS_XDBPD$                                                                                   XDB.XDB$RAW_LIST_T
    SQL> --
    SQL> desc GLOBAL_HEAD_TABLE
    Name                                                                                Null?    Type
    TABLE of SYS.XMLTYPE(XMLSchema "testcase.xsd" Element "head") STORAGE Object-relational TYPE "HEAD_T"
    SQL> --
    SQL> desc GLOBAL_MEMBER1_TABLE
    Name                                                                                Null?    Type
    TABLE of SYS.XMLTYPE(XMLSchema "testcase.xsd" Element "member1") STORAGE Object-relational TYPE "MEMBER1_T"
    SQL> --
    SQL> desc MEMBER1_T
    MEMBER1_T extends SCOTT.HEAD_T
    MEMBER1_T is NOT FINAL
    Name                                                                                Null?    Type
    SYS_XDBPD$                                                                                   XDB.XDB$RAW_LIST_T
    Member1.Child1                                                                               VARCHAR2(4000 CHAR)
    Member1.Child2                                                                               VARCHAR2(4000 CHAR)
    SQL> --
    SQL> desc GLOBAL_MEMBER2_TABLE
    Name                                                                                Null?    Type
    TABLE of SYS.XMLTYPE(XMLSchema "testcase.xsd" Element "member2") STORAGE Object-relational TYPE "MEMBER2_T"
    SQL> --
    SQL> desc MEMBER2_T
    MEMBER2_T extends SCOTT.HEAD_T
    MEMBER2_T is NOT FINAL
    Name                                                                                Null?    Type
    SYS_XDBPD$                                                                                   XDB.XDB$RAW_LIST_T
    Member2.Child1                                                                               VARCHAR2(4000 CHAR)
    Member2.Child2                                                                               VARCHAR2(4000 CHAR)
    SQL> --
    SQL> select qualified_col_name, data_type from user_tab_cols where table_name = 'ROOT_TABLE'
      2  /
    QUALIFIED_COL_NAME                                               DATA_TYPE
    SYS_NC_OID$                                                      RAW
    SYS_NC_ROWINFO$                                                  XMLTYPE
    XMLEXTRA                                                         XMLTYPEEXTRA
    "XMLEXTRA"."NAMESPACES"                                          XMLTYPEPI
    "XMLEXTRA"."EXTRADATA"                                           XMLTYPEPI
    XMLDATA                                                          ROOT_T
    SYS_TYPEID("XMLDATA")                                            RAW
    "XMLDATA"."SYS_XDBPD$"                                           XDB$RAW_LIST_T
    "XMLDATA"."head"                                                 HEAD_T
    SYS_TYPEID("XMLDATA"."head")                                     RAW
    "XMLDATA"."head"."SYS_XDBPD$"                                    XDB$RAW_LIST_T
    TREAT("XMLDATA"."head" AS "MEMBER2_T")."Member2.Child1"          VARCHAR2
    TREAT("XMLDATA"."head" AS "MEMBER2_T")."Member2.Child2"          VARCHAR2
    TREAT("XMLDATA"."head" AS "MEMBER1_T")."Member1.Child1"          VARCHAR2
    TREAT("XMLDATA"."head" AS "MEMBER1_T")."Member1.Child2"          VARCHAR2
    ACLOID                                                           RAW
    OWNERID                                                          RAW
    17 rows selected.
    SQL> select qualified_col_name, data_type from user_tab_cols where table_name = 'GLOBAL_MEMBER1_TABLE'
      2  /
    QUALIFIED_COL_NAME                                               DATA_TYPE
    SYS_NC_OID$                                                      RAW
    SYS_NC_ROWINFO$                                                  XMLTYPE
    XMLEXTRA                                                         XMLTYPEEXTRA
    "XMLEXTRA"."NAMESPACES"                                          XMLTYPEPI
    "XMLEXTRA"."EXTRADATA"                                           XMLTYPEPI
    XMLDATA                                                          MEMBER1_T
    SYS_TYPEID("XMLDATA")                                            RAW
    "XMLDATA"."SYS_XDBPD$"                                           XDB$RAW_LIST_T
    "XMLDATA"."Member1.Child1"                                       VARCHAR2
    "XMLDATA"."Member1.Child2"                                       VARCHAR2
    ACLOID                                                           RAW
    OWNERID                                                          RAW
    12 rows selected.
    SQL> select qualified_col_name, data_type from user_tab_cols where table_name = 'GLOBAL_MEMBER2_TABLE'
      2  /
    QUALIFIED_COL_NAME                                               DATA_TYPE
    SYS_NC_OID$                                                      RAW
    SYS_NC_ROWINFO$                                                  XMLTYPE
    XMLEXTRA                                                         XMLTYPEEXTRA
    "XMLEXTRA"."NAMESPACES"                                          XMLTYPEPI
    "XMLEXTRA"."EXTRADATA"                                           XMLTYPEPI
    XMLDATA                                                          MEMBER2_T
    SYS_TYPEID("XMLDATA")                                            RAW
    "XMLDATA"."SYS_XDBPD$"                                           XDB$RAW_LIST_T
    "XMLDATA"."Member2.Child1"                                       VARCHAR2
    "XMLDATA"."Member2.Child2"                                       VARCHAR2
    ACLOID                                                           RAW
    OWNERID                                                          RAW
    12 rows selected.
    SQL> insert into ROOT_TABLE values( XMLType (
      2  '<root>
      3    <member1>
      4      <Member1.Child1>AAA</Member1.Child1>
      5      <Member1.Child2>BBB</Member1.Child2>
      6    </member1>
      7  </root>'))
      8  /
    1 row created.
    SQL> insert into ROOT_TABLE values( XMLType (
      2  '<root>
      3    <member2>
      4      <Member2.Child1>CCC</Member2.Child1>
      5      <Member2.Child2>DDD</Member2.Child2>
      6    </member2>
      7  </root>'))
      8  /
    1 row created.
    SQL> set long 1000 pages 20
    SQL> --
    SQL> select * from ROOT_TABLE
      2  /
    SYS_NC_ROWINFO$
    <root>
      <member1>
        <Member1.Child1>AAA</Member1.Child1>
        <Member1.Child2>BBB</Member1.Child2>
      </member1>
    </root>
    <root>
      <member2>
        <Member2.Child1>CCC</Member2.Child1>
        <Member2.Child2>DDD</Member2.Child2>
      </member2>
    </root>
    SQL> var schemaURL varchar2(256)
    SQL> var schemaPath varchar2(256)
    SQL> --
    SQL> begin
      2    :schemaURL := 'testcase.xsd';
      3    :schemaPath := '/public/testcase.xsd';
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
      2  /
    Call completed.
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<?xml version="1.0" encoding="UTF-8"?>
      5  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified" attribute
    FormDefault="unqualified" xdb:storeVarrayAsTable="true">
      6     <xs:element name="root" type="rootType" xdb:defaultTable="ROOT_TABLE"/>
      7     <xs:complexType name="rootType" xdb:SQLType="ROOT_T">
      8             <xs:choice>
      9                     <xs:element ref="member1" xdb:SQLInline="false" xdb:defaultTable="MEMBER1_TABLE"/>
    10                     <xs:element ref="member2" xdb:SQLInline="false" xdb:defaultTable="MEMBER2_TABLE"/>
    11             </xs:choice>
    12     </xs:complexType>
    13     <xs:complexType name="member1Type" xdb:SQLType="MEMBER1_T">
    14                             <xs:sequence>
    15                                     <xs:element name="Member1.Child1" type="xs:string"/>
    16                                     <xs:element name="Member1.Child2" type="xs:string"/>
    17                             </xs:sequence>
    18     </xs:complexType>
    19     <xs:complexType name="member2Type" xdb:SQLType="MEMBER2_T">
    20                             <xs:sequence>
    21                                     <xs:element name="Member2.Child1" type="xs:string"/>
    22                                     <xs:element name="Member2.Child2" type="xs:string"/>
    23                             </xs:sequence>
    24     </xs:complexType>
    25     <xs:element name="member1" type="member1Type"  xdb:defaultTable="GLOBAL_MEMBER1_TABLE"/>
    26     <xs:element name="member2" type="member2Type" xdb:defaultTable="GLOBAL_MEMBER2_TABLE"/>
    27  </xs:schema>');
    28  begin
    29    if (dbms_xdb.existsResource(:schemaPath)) then
    30      dbms_xdb.deleteResource(:schemaPath);
    31    end if;
    32    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    33  end;
    34  /
    PL/SQL procedure successfully completed.
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,TRUE
      7    );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> --
    SQL> desc ROOT_TABLE
    Name                                                                                Null?    Type
    TABLE of SYS.XMLTYPE(XMLSchema "testcase.xsd" Element "root") STORAGE Object-relational TYPE "ROOT_T"
    SQL> --
    SQL> desc ROOT_T
    ROOT_T is NOT FINAL
    Name                                                                                Null?    Type
    SYS_XDBPD$                                                                                   XDB.XDB$RAW_LIST_T
    member1                                                                                      REF OF XMLTYPE
    member2                                                                                      REF OF XMLTYPE
    SQL> --
    SQL> desc GLOBAL_MEMBER1_TABLE
    Name                                                                                Null?    Type
    TABLE of SYS.XMLTYPE(XMLSchema "testcase.xsd" Element "member1") STORAGE Object-relational TYPE "MEMBER1_T"
    SQL> --
    SQL> desc MEMBER1_T
    MEMBER1_T is NOT FINAL
    Name                                                                                Null?    Type
    SYS_XDBPD$                                                                                   XDB.XDB$RAW_LIST_T
    Member1.Child1                                                                               VARCHAR2(4000 CHAR)
    Member1.Child2                                                                               VARCHAR2(4000 CHAR)
    SQL> --
    SQL> desc GLOBAL_MEMBER2_TABLE
    Name                                                                                Null?    Type
    TABLE of SYS.XMLTYPE(XMLSchema "testcase.xsd" Element "member2") STORAGE Object-relational TYPE "MEMBER2_T"
    SQL> --
    SQL> desc MEMBER2_T
    MEMBER2_T is NOT FINAL
    Name                                                                                Null?    Type
    SYS_XDBPD$                                                                                   XDB.XDB$RAW_LIST_T
    Member2.Child1                                                                               VARCHAR2(4000 CHAR)
    Member2.Child2                                                                               VARCHAR2(4000 CHAR)
    SQL> --
    SQL> select qualified_col_name, data_type from user_tab_cols where table_name = 'ROOT_TABLE'
      2  /
    QUALIFIED_COL_NAME                                               DATA_TYPE
    SYS_NC_OID$                                                      RAW
    SYS_NC_ROWINFO$                                                  XMLTYPE
    XMLEXTRA                                                         XMLTYPEEXTRA
    "XMLEXTRA"."NAMESPACES"                                          XMLTYPEPI
    "XMLEXTRA"."EXTRADATA"                                           XMLTYPEPI
    XMLDATA                                                          ROOT_T
    SYS_TYPEID("XMLDATA")                                            RAW
    "XMLDATA"."SYS_XDBPD$"                                           XDB$RAW_LIST_T
    "XMLDATA"."member1"                                              XMLTYPE
    "XMLDATA"."member2"                                              XMLTYPE
    ACLOID                                                           RAW
    OWNERID                                                          RAW
    12 rows selected.
    SQL> select qualified_col_name, data_type from user_tab_cols where table_name = 'GLOBAL_MEMBER1_TABLE'
      2  /
    QUALIFIED_COL_NAME                                               DATA_TYPE
    SYS_NC_OID$                                                      RAW
    SYS_NC_ROWINFO$                                                  XMLTYPE
    XMLEXTRA                                                         XMLTYPEEXTRA
    "XMLEXTRA"."NAMESPACES"                                          XMLTYPEPI
    "XMLEXTRA"."EXTRADATA"                                           XMLTYPEPI
    XMLDATA                                                          MEMBER1_T
    SYS_TYPEID("XMLDATA")                                            RAW
    "XMLDATA"."SYS_XDBPD$"                                           XDB$RAW_LIST_T
    "XMLDATA"."Member1.Child1"                                       VARCHAR2
    "XMLDATA"."Member1.Child2"                                       VARCHAR2
    ACLOID                                                           RAW
    OWNERID                                                          RAW
    12 rows selected.
    SQL> select qualified_col_name, data_type from user_tab_cols where table_name = 'GLOBAL_MEMBER2_TABLE'
      2  /
    QUALIFIED_COL_NAME                                               DATA_TYPE
    SYS_NC_OID$                                                      RAW
    SYS_NC_ROWINFO$                                                  XMLTYPE
    XMLEXTRA                                                         XMLTYPEEXTRA
    "XMLEXTRA"."NAMESPACES"                                          XMLTYPEPI
    "XMLEXTRA"."EXTRADATA"                                           XMLTYPEPI
    XMLDATA                                                          MEMBER2_T
    SYS_TYPEID("XMLDATA")                                            RAW
    "XMLDATA"."SYS_XDBPD$"                                           XDB$RAW_LIST_T
    "XMLDATA"."Member2.Child1"                                       VARCHAR2
    "XMLDATA"."Member2.Child2"                                       VARCHAR2
    ACLOID                                                           RAW
    OWNERID                                                          RAW
    12 rows selected.
    SQL> insert into ROOT_TABLE values( XMLType (
      2  '<root>
      3    <member1>
      4      <Member1.Child1>AAA</Member1.Child1>
      5      <Member1.Child2>BBB</Member1.Child2>
      6    </member1>
      7  </root>'))
      8  /
    1 row created.
    SQL> insert into ROOT_TABLE values( XMLType (
      2  '<root>
      3    <member2>
      4      <Member2.Child1>CCC</Member2.Child1>
      5      <Member2.Child2>DDD</Member2.Child2>
      6    </member2>
      7  </root>'))
      8  /
    1 row created.
    SQL> set long 1000 pages 20
    SQL> --
    SQL> select * from ROOT_TABLE
      2  /
    SYS_NC_ROWINFO$
    <root>
      <member1>
        <Member1.Child1>AAA</Member1.Child1>
        <Member1.Child2>BBB</Member1.Child2>
      </member1>
    </root>
    <root>
      <member2>
        <Member2.Child1>CCC</Member2.Child1>
        <Member2.Child2>DDD</Member2.Child2>
      </member2>
    </root>
    SQL>
    SQL>
    SQL>

  • Authorization Groups and table TBRG

    In our system we have tables which are using custom authorization group ZEXC.  I am looking at this via SE11 Table Maintenance Generator or SE54 Assign Authorization Group.
    I can also see that it is assigned to roles by using SUIM -->Roles-->By Authorization values -->entry auth object (S_TABU_DIS) and click on entry values.
    What I am not seeing is that the authorization group is defined in table TBRG.
    So my question is....  An authorization group does not need to be defined in order to attach it to a table or assign it to a role?  If the authorization group was created then deleted is it still valid to have it attached to tables and roles?

    Hi Sharon,
    Assign the authorization to user and make it inactive mode.Then authorization will be deactived to tat particular user's.

  • Oracle Text and table joins

    Is it possible to create an index on a view as opposed to a table, when using Oracle Text?

    Thanks for the earlier response.
    I was also loooking at Oracle Ultra Search. I figured out that Ultr search provides out of the box query application to do free-form text search, parameterized search and so on....
    I also read that Oracle Ultra search uses Oracle text as the underlying technology to do the search.
    I have a requirement where most of my searches will be on structured data spread across multiple tables. But I also have a requirement to index some static content which resides on the file system.
    Is it possible to mix and match query results i.e. first perform a search on the structured data and then perform another search on the static document data and then megre results from both and display back to the user?
    Thanks for the help

  • Can we move SAP standard Function Group and Table defintion to BW

    Dear Forum,
    We are in a ‘pilot’ process of migrating SAP R/3 Custom development objects to our BW client and we have a few questions that we would like to know if possible.
    We are currently in the ‘To Be’ Blueprint Phase of migrating SAP 45B to ERP2005 as a Ramp-Up customer and we need to determine as soon as possible the feasibility of moving one particular Custom application
    from our SAP R/3 environment to BW.  This application primarily performs computational processing and does reporting of the results at the
    conclusion
    We have selected one Custom R/3 ABAP program to do a ‘pilot’ to determine the feasibility of migrating it to the BW platform. This Custom program utilizes objects from standard SAP Function Groups which are non existent in BW.  In this particular case Function groups KMS0
    (Cost Center Selection) and KAB2 (CO Reporting: General).
    Questions:
    Are we allowed to move these 2 standard SAP Function Groups to BW ? Would it alter the BW environment integrity as intended and designed by SAP?
    If we move the Function Group KMS0 and KAB2 will
    SAP support our BW environment if we decide to move them?
    Would it be considered a ‘SAP Best Practice’ to move standard SAP R/3
    objects to BW?
    Thank you in advance for your help,
    Paulo Silveira
    [email protected]

    Hi Paulo and welcome on board !
    Please don't post twice the same question...(look in the other one...)
    ..and don't forget to rewards the answers...it's THE way to say thanks here !
    Anyway, I'd suggest to close this thread to avoid to receive answers in both threads...
    Cheers,
    Roberto

  • More than one root table ,how to design cache group ?

    hi,
    each cache group have onle one root table , many child table ,if my relational model is :
    A(id number,name ....,primary key id)
    B(id number,.....,primary key id)
    A_B_rel (aid number,bid number,foreign key aid referenc a (id),
    foreign key bid referenc b(id))
    my select statement is "select ... from a,b,a_b_rel where ....",
    i want to cache these three table , how should i create cache group ?
    my design is three awt , Cache group A for A , Cache Group b for b, Cache group ab to a_b_rel ?
    are there other better solution ?

    As you have discovered, you cannot put all three of these tables into one cache group. For READONLY cache groups the solution is simple, put two of the tables (say A and A_B) in one cache group and the other table (B) in a different cache group and make sure that both use the same AUTOREFRESH interval.
    For your case, using AWT cache groups, the situation is a bit mnore complicated. You must cache the tables as two different cache groups as mentioned above, but you cannot define a foreign key relationship in TimesTen between tables in different cache groups. Hence you will need to add logic to your application to check and enforce the 'missing' foreignb key relationship (B + A_B in this example) to ensure that you do not inadvertently insert data that would violate the FK relationship defined in Oracle. Otherwise you could insert invalid data in TimesTen and this would then fail to propagate to Oracle.
    Chris

  • Aggregate query on global cache group table

    Hi,
    I set up two global cache nodes. As we know, global cache group is dynamic.
    The cache group can be dynamically loaded by primary key or foreign key as my understanding.
    There are three records in oracle cache table, and one record is loaded in node A, and the other two records in node B.
    Oracle:
    1 Java
    2 C
    3 Python
    Node A:
    1 Java
    Node B:
    2 C
    3 Python
    If I select count(*) in Node A or Node B, the result respectively is 1 and 2.
    The questions are:
    how I can get the real count 3?
    Is it reasonable to do this query on global cache group table?
    I have one idea that create another read-only node for aggregation query, but it seems weird.
    Thanks very much.
    Regards,
    Nesta
    Edited by: user12240056 on Dec 2, 2009 12:54 AM

    Do you mean something like
    UPDATE sometable SET somecol = somevalue;
    where you are updating all rows (or where you may use a WHERE clause that matches many rows and is not an equality)?
    This is not something you can do in one step with a GLOBAL DYNAMIC cache group. If the number of rows that would be affected is small and you know the keys or every row that must be updated then you could simply execute multiple individual updates. If the number of rows is large or you do not know all the ketys in advance then maybe you would adopt the approach of ensuring that all relevant rows are in the local cache grid node already via LOAD CACHE GROUP ... WHERE ... Alternatively, if you do not need Grid functionality you could consider using a single cache with a non-dynamic (explicitly loaded) cache group and just pre-load all the data.
    I would not try and use JTA to update rows in multiple grid nodes in one transaction; it will be slow and you would have to know which rows are located in which nodes...
    Chris

  • Please recommend solutions for  Cache Connect and ?

    ---> Solution I
    2 servers create Cache Connect to RDBMS
    ---> Solution II
    1 server create Cache Connect to RDBMS and create active standby pair with another server

    Hi,
    If you only need READONLY caching in TimesTen and all updates will be made in Oracle then you have two main options:
    Multiple READONLY Caches
    For this you have one or more separate TimesTen caches each with a READONLY cache group defined against the oracle DBMS. Each cache can cache different tables/data or they can can cache the same tables/data as required.
    This architecture is very flexible (adding or removing TimesTen servers is very simple) and very scalable. It also provides very good HA; if one cache is down applications can just access a different cache.
    However, due to the asynchronous, time based nature of the refresh from Oracle to Timesten at any moment in times the data in all the caches may not be 100% consistent with each other or Oracle.
    By this I mean the following:
    - Assume that you have 2 (or more) READONLY caches caching the same data from Oracle, with an AUTOREFRESH interval of T1
    - At some time, T2, you update, in Oracle, one of the rows cached by the caches.
    - At some later time, T3, you query the updated row via both caches
    If (T3 - T2) < T1 then the values returned by your query may differ between the caches (depending on where exactly they are in the autorefresh interval when the update is done).
    Active/Standby pair using 2-SAFE replication with READONLY cache group and optional read-only subscribers
    With this architecture you define a TimesTen Active/Standby replicated pair using 2-safe replication and containing the READONLY cache group. 'Scale out' is accomplished in one of three ways:
    1. Adding further A/S pairs with a READONLY cache group
    2. Adding read-only subscriber datastores to the original A/S pair
    3. A mixture of (1) and (2)
    The main advantages of this architecture are as follows:
    1. When 2-Safe is used within the A/S pair, queries to either cache will always return consistent results (i.e. the consistency issue that I described for the first scenario does not exist in this configuration). However, threr can still be inconsitencies in results between the A/S pair and any readonly subscribers (since the replication to them is asynchronous) but given the high performance of TimesTen replication the latency between a change appearing at the A/S pair and the readonly subscribers will typically be a few ms rather than potentially several seconds for the multiple-cache scenario.
    2. The loading on the central Oracle DBMS arising from AuTOREFRESH processing is reduced compared to the multiple-cache scenario. The difference in loading between this solution and the multiple cache solution will be larger as more TT servers are deployed.
    It should be noted that the operational management of this solution is a little more complex than for the first scenario since the A/S pair must be monitored and a 'failover' trigerred if there is some fauilure within the pair.
    Hope that helps a little.
    Chris

  • How to query data from grid cache group after created global AWT group

    It is me again.
    as I mentioned in my previous posts, I am in progress of setup IMDB grid environment, and now I am at stage of creating cache group. and I created global AWT cache group on one node(cachealone2), but I can not query this global cache group from another node(cachealone1)
    thanks Chirs and J, I have done successfully setup IMDB grid env, and have two node in this grid as below
    Command> call ttGridNodeStatus;
    < MYGRID, 1, 1, T, igs_imdb02, MYGRID_cachealone1_1, 10.214.10.176, 5001, <NULL>, <NULL>, <NULL>, <NULL>, <NULL> >
    < MYGRID, 2, 1, T, igsimdb01, MYGRID_cachealone2_2, 10.214.10.119, 5002, <NULL>, <NULL>, <NULL>, <NULL>, <NULL> >
    2 rows found.
    and I create group ATW cache group on cachealone2
    Command> cachegroups;
    Cache Group CACHEUSER.SUBSCRIBER_ACCOUNTS:
    Cache Group Type: Asynchronous Writethrough global (Dynamic)
    Autorefresh: No
    Aging: LRU on
    Root Table: ORATT.SUBSCRIBER
    Table Type: Propagate
    1 cache group found.
    Command> SELECT * FROM oratt.subscriber;
    0 rows found.
    however I can not query this from another node cachealone1
    Command> SELECT * FROM oratt.subscriber WHERE subscriberid = 1004;
    2206: Table ORATT.SUBSCRIBER not found
    The command failed.
    Command> SELECT * FROM oratt.subscriber WHERE subscriberid = 1004;
    2206: Table ORATT.SUBSCRIBER not found
    The command failed.
    Command> SELECT * FROM oratt.subscriber;
    2206: Table ORATT.SUBSCRIBER not found
    this is example from Oracle docs, I an not sure where I missed for this. thanks for your help.

    Sounds like you have not created the Global AWT cache groupo in the second datastore? There is a multi-step process needed to roll out a cache grid and various things must be done on each node in the correct order. have you done that?
    Try checking out the QuickStart example here:
    http://download.oracle.com/otn_hosted_doc/timesten/1121/quickstart/index.html
    Chris

  • Uanble to create Cache Group from Cache Administrator

    Folks,
    I am attempting to create a cache group from the Cache Administrator.
    I have set all the data source properties and am able to login to the data source but when I attempt to create a cache group i.e. I specify the name & type of cache group, I get this message in red at the bottom saying "Gathering table information, please wait" and... that's it. Nothing happens!
    I am able to move the cursor etc. but the cache group is not defined.
    Anybody have any suggestions as to what I'm doing wrong? Any help would be appreciated!
    keshava

    You cannot have multiple root tables within one cache group. The requirements for putting tables together into one cache group are very strict; there must be one top level table (the root table) and there can optionally be multiple child tables. The child tables must be related via foreign keys either to the root table or to a child table higher in the hierarchy.
    The solution for your case is to put one ofthe root tables and the child table into one cache group and the other root table into a separate cache group. If you do that you need to take care of a few things:
    1. You cannot define any foreign keys between tables in different cache groups in TimesTen (the keys can exist in Oracle) so the application must enforce the referential integrity itself for those cases.
    2. If you load data into one cache group (using LOAD CACHE GROUP or 'load on demand') then Timesten will not automatically load the corresponding data into the other cache group (sicne it does not know about the relationship). The application will need to load the data into the other cache group explicitly.
    There are no issues regarding transactional consistency when changes are pushed to Oracle. TimesTen correctly maintains and enforces transactional consistency regardless of how tables are arranged in cache groups.
    Chris

Maybe you are looking for

  • Cut and paste foreign languages?

    I translated an English paragraph into Japanese using Google Translate. It pasted as little boxes instead of letters in ID4. Can you help?

  • Photoshop Album 2.0 Starter Edition mit Photoshop Elements 2.0

    Hallo, ich fange klein an und arbeite z.Z. mit der Photoshop Album 2.0 Starter Edition. Darin finde ich die Funktion Korrigieren. Innerhalb des neuen Korrekturfenster wird mir angeboten mein Photo zu Bearbeiten mit.. Jetzt sollte das Produkt Photosho

  • Open a tabStrip with a treeNode

    Struggling here, I know I must just be overlooking it but I've got a treeNode and I want to open a tab from my tabStrip by clicking on the treeNode. I was doing this by just calling the page and passing a parameter however by doing this I was overidi

  • How do I install an older version of Premiere CS6

    I want to install Premiere CS6 6.0.3 but have 6.0.5 installed. I downloaded the 6.0.3 update from this page: http://www.adobe.com/support/downloads/product.jsp?product=98&platform=Windows but when I tried to install it I got an error. How do I instal

  • ThinkPad W530 with Windows 8 x64 Pro BSOD when connecting to projector

    Nine, that only covers Widows 7. Many people in this thread have reported the problem using Windows 8. Has that been addressed by Lenovo yet? Stability problems like this should NEVER be allowed to go so long without a resolution. Edit Note : This th