AddIndiex on multiple nodes

Hi,
We all know addindex command for adding an index,
what I want to learn is how can I use this command to make a unique index on multiple elements.
My CityList.xml file has CityID and CountryID.
I want both as one Index that is unique so that quering is fast rather than two non unique indexes, just the way we can do a composite PK in RDBMs.
Thanks For Helping Me And Others Out On This One
DBXML Newbie
Please help as this is an urgent issue
null

Hi Sarva,
You cannot define an index on multiple elements for a Berkeley DB XML container, as you would do within an RDBMS for a composite primary key.
Nevertheless, you can define two indexes, one on CityID and one on CountryID. Your query probably checks for equality of those two with predefined values, so both of the indexes that you'll define will be used. You can inspect the query plan to verify this.
A better workaround might be to create a metadata node that represents a composite value out of the two id's by taking the values of the elements (city id, and country id) and creating a concatenated string (e.g.: "country_id - city_id") or a decimal (this value will have to be unique for every country_id - city_id pair, e.g.: country_id * 10.000 + city_id). Than, you'll have to add an index on that metadata node, and modify your queries to look for the value of the metadata node that represent the country_id, city_id pair.
Regards,
Andrei

Similar Messages

  • How to get the data from multiple nodes to one table

    Hi All,
    How to get the data from multiple nodes to one table.examples nodes are like  A B C D E relation also maintained
    Regards,
    Indra

    HI Indra,
    From Node A, get the values of the attributes as
    lo_NodeA->GET_STATIC_ATTRIBUTES(  IMPORTING STATIC_ATTRIBUTES = ls_attributesA  ).
    Similarily get all the node values from B, C, D and E.
    Finally append all your ls records to the table.
    Hope you are clear.
    BR,
    RAM.

  • BW 3.5 works with multiple nodes for authorizations

    Hi,
    Does BW 3.5 allow to do authorizations on mutiple nodes? It seems that from the How to wotk with hierarchy authorizations paper, the variable can only allow filtering 1 node. for 2.0B. We have requirements to allow viweing multiple nodes in a hierarchy.
    Thanks
    Will

    Hi Will,
    creat a hierarchy-node variable fill by authorizations in the frontend. The type has to be multiple entries (not single value). In RSSM at the hierarchy authorization creation you have to use the F4 for selecting nodes. The F4 allows to drag more nodes into the right frame.
    Cheers
    Peter

  • How would I delete multiple nodes at a time in OSB

    I want to delete multiple nodes in OSB at a time. I have a request and that needs to get rid of the Nodes instead of using multiple delete actions I want to achieve in one shot. Any suggestions

    Hi,
    You should be able to delete all nodes selected by an XPath expression... Have a look at this...
    http://docs.oracle.com/cd/E28280_01/dev.1111/e15866/ui_ref.htm#i1290003
    Cheers,
    Vlad

  • BizTalk Mapper - Looping multiple nodes to map to a single node in a single row (flat file)

    Hi everybody,
    I'm still new in developing BizTalk app and require some help in this one problem. Appreciate your time and input to help me on this.
    Basically I have an XML document as input and a flat file as output. Example for input is as per below. The "Contact" node's maxOccurs here is set to unbounded and could be multiple. (phone, fax, website, telex ...)
    <root>
    <CustomerName>Company A</CustomerName>
    <Contact>
    <Type>Phone</Type>
    <Locator>03566789</Locator>
    <Type>Phone</Type>
    <Locator>03566790</Locator>
    <Type>Fax</Type>
    <Locator>03566795</Locator>
    <Type>Telex</Type>
    <Locator>03566798</Locator>
    <Type>Website</Type>
    <Locator>www.companyA.com</Locator>
    </Contact>
    </root>
    The expected output in XML would look like below. The final outcome would be a csv file. Strictly Phone 1, phone 2, fax and telex, the rest would be ignored.
    <root>
    <CustomerName>Company A</CustomerName>
    <Phone1>03566789</Phone1>
    <Phone2>03566790</Phone2>
    <Fax>03566795</Fax>
    <Telex>03566798</Telex>
    </root>
    Example of expected output result (csv file): CompanyName;Phone1;Phone2;Fax;Telex;
    In our case here: Company A;03566789;03566790;03566795;03566798;
    Another example could be: Company B;036778911;;036778912;; if only 1 phone number and 1 fax number provided.
    I've used Table Looping and Table Extractor and nearly got the desired result except that it is represented in multiple rows instead of one: Example:
    Company A;03566789;;;
    Company A;;03566790;;;
    Company A;;;03566795;;
    Company A;;;;03566798;
    Any idea how to do the mapping? I'm kind of stuck here and it sounds like an easy problem but i could not find any example to the solution that I need here. Table looping and table extractor is ok to map from single node flat file to multiple nodes but not
    the reverse like in this example.
    rgds,
    sportivo

    Hi,
    Please refer to below links where similar issue has been answered.
    http://social.msdn.microsoft.com/Forums/en-US/biztalkgeneral/thread/ecdff241-6795-4a95-bad7-48fca4410dfb
    http://www.epinaki.com/2011/05/other-options-to-using-biztalk-table-looping-functoid-par-i/
    I hope this helps you.
    Thanks With Regards,
    Shailesh Kawade
    MCTS BizTalk Server
    Please Mark This As Answer If This Helps You.
    http://shaileshbiztalk.blogspot.com/

  • How to create multiple nodes for a feature in PE03

    Hi Specialists,
    I have a requirement for australia where we need to maintain multiple nodes  in a feature ( Tcode : PE03).
    Action Type      Action Reason
    L6                      00
                              01
    L7                      06
                              08
    L2                      01
    Issue is : 1) How can we maintian the above values in a feature tree.
                    2) The SAP standard structure is using PME14 but PME14 does not contain the 2 above mentioned
                         fields i.e.( Action Type & Action Reason). Istead it is contained in structure PME04 .
                        SO how can we modify the SAP standard structure.
                    3) The above strucure PME14 is being read in an SAP standard report RPCPSPQ0 :
                         i.e Payment Summary Report tcode: PC00_M13_PSGEN . If we want to accomodate the new requirement for        australia does that mean we need to modify SAP standard report / or is there a user exit/BADI available to avoid making changes to SAP standard report.
    Please suggest.

    Can you please supply the name of the Feature you are trying to use?  it will help to understand the full picture.

  • BizTalk mapping multiple nodes

    Hello All,
    Below is an example of a schema I have to work upon. There will be multiple nodes of Diviions under the root node and there will be similar number of divisions node under the mappings node. now each divisions node (under root node) will have multiple record
    nodes which will each have an industry_type node. So, what I want to do is match both industry_type nodes (each under root and mappings node) and if the value is same I want to map the industry_type_value to the destination schema. So there can be n number
    of industry_type nodes and I want to have equal number in the destination schema. When I am using a looping functoid along with value mapping I am getting the non matchin industry_type nodes too in the destination schema.
    Please help me with the same.

    Hey Ashwin,
    I am unable to add the xml so am pasting the files:
    Input:
    <ns0:Root xmlns:ns0="http://Pricing.MTB.Schema.Schema1">
      <Divisions>
        <Record>
          <Identifier>node1</Identifier>
          <Industry_Type>ABC</Industry_Type>
        </Record>
        <Record>
          <Identifier>node2</Identifier>
          <Industry_Type>DEF</Industry_Type>
        </Record>
        <Record>
          <Identifier>node3</Identifier>
          <Industry_Type>GHI</Industry_Type>
        </Record>
      </Divisions>
      <Mappings>
        <Record>
          <Industry_type>ABC</Industry_type>
          <Industry_Type_value>ABC0</Industry_Type_value>
        </Record>
        <Record>
          <Industry_type>DEF</Industry_type>
          <Industry_Type_value>DEF0</Industry_Type_value>
        </Record>
        <Record>
          <Industry_type>GHI</Industry_type>
          <Industry_Type_value>GHI0</Industry_Type_value>
        </Record>
      </Mappings>
    </ns0:Root>
    Output:
    <ns0:Root xmlns:ns0="http://Pricing.MTB.Schema.Schema2">
      <Divisions>
        <Record>
          <Identifier>node1</Identifier>
          <Industry_Type>ABC0</Industry_Type>
        </Record>
        <Record>
          <Identifier>node2</Identifier>
          <Industry_Type>DEF0</Industry_Type>
        </Record>
        <Record>
          <Identifier>node3</Identifier>
          <Industry_Type>GHI0</Industry_Type>
        </Record>
      </Divisions>
    </ns0:Root>

  • Having multiple Node manger process in a single host machine.

    I am using weblogic server(portal)10.2.
    I am running the Node Manager to start the admin server.I have installed Java based Node manager in the host machine .Created a unix id ND1 and started the Node Manager utiliy with this id.
    I keep on creating domain for my new applicaitons and add this ND1 in each new domain group,so that ND1 will access the new domain's admin folder.
    Now when I add this ND1 in more than 16 domain groups,I got trouble in accessing the domain folder.In unix OS there is group membership limitation where a unix id cannot be in more than 16 groups.
    Anyone came acroos this issue?
    Possible options.
    1) Can we have multiple node manager ids(ND1,ND2,ND3..etc) for a single Node manager utility in single host?
    2) While starting the server,will node manager look only the nm_password.properties file in domain folder?

    You can boot multiple Node Managers if you change the NodeManager home. To do that, create a directory for each NodeManager and copy the startNodeManager script to it. Then edit the NODEMGR_HOME, LISTEN_ADDRESS, and LISTEN_PORT

  • JTree multiple nodes selection problem !

    I can not make my JTree to be in multiple node selection mode.
    I have custom tree model and tree node class, the tree model class
    implements javax.swing.tree.TreeModel, and the tree node is an ordinary
    Java object.
    In this setting, my JTree is always in single selection mode.
    I have tried set the selection model after the JTree has initialized, and
    it didn't work.
    What I missed in TreeModel implementation ? Or should my tree node class
    also implements javax.swing.tree.TreeNode ?
    Don't tell me just call
    xxtree.getSelectionModel().setSelectionMode(javax.swing.tree.TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
    It didn't work.

    Just in case anyone wants to know, I did find the magic number of files, and what the problem is. I talked with tech suppot at Adobe, and they know the problem exists, but won't fix it. I did put in a request in the "Request a Feature" form. Read on:
    The magic number is 40 Canon 1Ds Mark III Raw files, and clicking on three or more keywords. The key to not having the numbers of keywords counted incorrectly in the filter pane is to click on the keywords as fast as you can before it starts to write to the metadata. If you click on each keyword one at a time, and wait about a second or more between selecting the keywords, then the counts in the filter panel for the number of keywords is not correct in relation to the number of files that you have chosen to apply keywords to. The cure for this is to click as many keywords as possible as fast as you can before the software starts incorporating the keywords into the metadata.
    I would suggest to Adobe, that a nice feature would be that one could click on as many keywords as one would want, to as many files one would want, and then have a button or icon that would enable one to then apply all the keywords at once, instead of applying them as you click them as it is now. I also would love it if Adobe fixed it now instead of waiting to fix it in the version of CS5. Someone on Adobe's support line told me that Adobe would rather wait to put this into the CS5 version than fix it now. I don't think that is right, but heck, I am only one guy who depends on this software to provide images keyworded to my clients in a timely manner. I would never run my business like this Adobe. If there is a problem, and there is, please fix it now, or give me some of my money back since your product has a design flaw that is having a negative impact in my ability to to my job and run my business.
    Thanks!
    Daniel Root
    Portland, OR

  • Select the multiple nodes in a tree

    Hi Experts,
    We need to select the multiple nodes in a tree.Whatever we are selecting,that has to be added in the table as a tree structure itself.
    For ex:
    A
    |--A1
        |--B1
    If We select the A then A,A1 and B1 has to be added in a table.Please help me out for this.
    Regards
    Nutan
    Edited by: Armin Reichert on Jan 29, 2008 2:33 PM

    Hi,
    You have to create a recursive node and use the tree by nesting UI component
    Following tutorial will be of use
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/wdjava%20tutorials%20and%20articles%20archive/constructing%20a%20recursive%20and%20loadable%20web%20dynpro%20tree.pdf
    Recursive Node
    http://help.sap.com/saphelp_nw70/helpdata/en/5d/97384162316532e10000000a1550b0/frameset.htm
    TreeByNesting
    http://help.sap.com/saphelp_nw70/helpdata/en/92/12a74046033913e10000000a155106/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#31 [original link is broken]
    Regards
    Ayyapparaj

  • Drag and drop of multiple nodes between 2 trees

    Hi,
    I am trying to implement a drag and drop of multiple nodes between two different trees. A simple drag drop written on the lines of the demo code RSDEMO_DRAG_DROP_TREE_MULTI works perfectly fine. But my requirement is, when a child (leaf) node is dragged, if its parent is not present in the target tree, that too has to be dragged and dropped from left to right. When I try to manually add nodes to the target tree, it dumps because the node key table and drag drop object have fewer nodes than what I am trying to add. So it always dumps in the drag_drop_complete method.
    I have also tried putting this code in the PBO of my screen, calling a subroutine to refresh my tree with all nodes required. But I realise that the PBO does not get called after a drag drop. Is there a way to achieve this? Any help would be greatly appreciated. Thank you.
    Regards,
    Nithya

    There's a Multi-Select TreeView sample on the WindowsClient.com, you can download it. Then you can drag multi nodes as follows:
    Code Snippet
    private void Form2_Load(object sender, EventArgs e)
                this.listBox1.AllowDrop = true;
                this.listBox1.DragOver += new DragEventHandler(listBox1_DragOver);
                this.listBox1.DragDrop += new DragEventHandler(listBox1_DragDrop);
                this.multiSelectTreeView1.ItemDrag += new
                     ItemDragEventHandler(multiSelectTreeView1_ItemDrag);
            void multiSelectTreeView1_ItemDrag(object sender, ItemDragEventArgs e)
                this.multiSelectTreeView1.DoDragDrop(this.multiSelectTreeView1.SelectedNodes,
                     DragDropEffects.Move);
            void listBox1_DragDrop(object sender, DragEventArgs e)
                ArrayList selectNodes = e.Data.GetData(
                    e.Data.GetFormats()[0]) as ArrayList;
                foreach (TreeNode node in selectNodes)
                    this.listBox1.Items.Add(node.Text);
            void listBox1_DragOver(object sender, DragEventArgs e)
                 e.Effect = DragDropEffects.Move;

  • Random Selection Failure - to-spec at line is evaluated to multiple nodes

    Hi,
    Has anybody come across a situation were an assign activity fails with an
    "Exception is thrown because the to-spec at line 113 is evaluated to multiple nodes"
    The problem is that an element in a variable appears more than once although it is restricted to maxOccurs="1".
    e.g
    <variable>
    <outputVariable>
    <part name="payload" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Output xmlns="http://xmlns.oracle.com/MyApp/MySchema">
    <result/>
    <result/>
    </Output>
    </part>
    </outputVariable>
    </variable>
    The result element has a maxOccurs="1" in the xsd and the operation in the assign activity is a copy not an append!
    The problem is not consistent and happens randomly with the same set of data.

    Hi I understand the workaround here (adding [1] to the to-spec expression) - but what about the extra empty nodes, when we move to the next step in our process will those empty nodes still exist - since our XSD sets that node to maxOcurrs="1" this would cause issues down stream if these empty nodes are carried forward - we are thinking of putting in a XSLT to remove them, but wanted to see if anyone has input on if they will be carried forward - since this is a random issue ware not able to reproduce it in our dev/test environment, it seems to only happen in our Production environment.

  • Cluster Apex MS's across multiple nodes for load balancing?

    Can Cluster Apex MS's across multiple nodes for load balancing? If Yes/No, any supportive doc's will be much appreciated.
    Here is what I did ..........
    I tried multiple MS's on different nodes for Apex Domain (clustered)
    Deployed apex.war, i.war with targets pointing to cluster.
    Apex listener techstack is shared filesystem $HOME/apex, where apex-config.xml and bdb are available
    Anyone of the MS's whichever started up first is locking up bdb and 500 server shows up when internal workspace is being launched with host specific url, where as it works fine for the host which actually locked up bdb (first MS that was started)
    2nd MS shows errors as below in log files ..
    Caused By: com.sleepycat.je.EnvironmentLockedException: (JE 4.0.103)$HOME/apex/bdb The environment cannot be locked for single writer access. ENV_LOCKED: The je.lck file could not be locked. Environment is invalid and must be closed.
    Its expected behavior until here .....
    ++++ I tried something to get it working ++++
    Whilst both MS's are up and running, delete $HOME/apex/bdb but let apex-config,xml be as it is...now the internal workspace urls for both hosts work fine. I logged into host specific urls and navigated, created/edited users.,etc and it is all looking good but it did not create new bdb directory under $HOME/apex ...!!
    Having said its working fine, the same issue repeats after the MS's bounce. So I did put a command line to delete bdb dir once the MS comes up to avoid the issue but really not sure if this is the right way at all?
    Geek's ...awaiting your advice!!

    Hey there,
    I managed to fulfill my requirement..
    If its a cluster on same machine or across machines, this should work
    1. Login to machine, cd $DOMAIN_HOME
    2. mkdir -p Apex_lsn_config/AdminServer Apex_lsn_config/<MS1> Apex_lsn_config/<MS2> # MS1 and MS2 are the Managed Server names as appropriate
    #If you are planning for cluster spawning MS's across machines, make sure you create the dir's on step 2 for each machine respectively. (in my case $DOMAIN_HOME is not shared)
    3. Copy apex-config.xml from the /tmp/apex or whatever location you have it currently to Apex_lsn_config/<MS1> Apex_lsn_config/<MS2>
    4. cd $DOMAIN_HOME/bin; cp -p SetDomainEnv.sh SetDomainEnv.sh.orig #Backup the file
    5. Append -Djava.io.tmpdir in SetDomainEnv.sh as below for JAVA_OPTIONS # Do it on both machine if you are not sharing DOMAIN_HOME and planning cluster across machines
    -Djava.io.tmpdir=$DOMAIN_HOME/APEX_CONFIG/${SERVER_NAME}
    Hint: Search for "iterativeDev" and append the same line with -Djava.jo.tmpdir
    6. Modify "java.io.tmpdir" from the web.xml file of apex.war as below and re-deploy the war
    <context-param>
         <param-name>config.dir</param-name>
         <param-value>${java.io.tmpdir}</param-value>
    </context-param>
    7. Bounce Weblogic Admin and Manged Servers. Make sure to tail the Managed Server log to see apex-config.xml is picked from the new location.
    8. Brew a Coffee for yourself :)
    - You find the instructions on creating a cluster from weblogic documentation, the steps mentioned above are only to overcome the bdb locking issue whilst creating a cluster.
    Did it help?
    Edited by: Oratime on Mar 25, 2013 2:44 AM

  • Deploying EJBs on multiple nodes

    Hi,
    Our Application works when we deploy it on a single node. But the moment we deploy
    it with multiple nodes,we are getting a exception:
    java.lang.NoClassDefFoundError: javax/xml/bind/UnmarshalException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    Our deployment looks correct for me.
    We have specified each node in the target like:
    <EJBComponent Name="ecommerce" Targets="monode3,monode2,monode1,monode4,monode5,monode6"
    URI="ecommerce.jar"/>
    Any clues from anyone?
    Thanks,
    Jeeva

    You didn't give the full stack trace. No thread starts executing at
    Class.forName ;-)
    What's happening is that you are dealing with XML, probably in your
    clustered EJBs or in your HTTP session, and so it's getting replicated. The
    XML pops out onto the other end of the wire, the code loaded from the system
    classpath tries to deserialize it, but can't find your application classes.
    That's a common problem with object transfer protocols.
    Do you know where you are using javax/xml?
    Peace,
    Cameron Purdy
    Tangosol Inc.
    Tangosol Coherence: Clustered Coherent Cache for J2EE
    Information at http://www.tangosol.com/
    "Jeeva" <[email protected]> wrote in message
    news:3c3a8401$[email protected]..
    >
    Hi,
    Our Application works when we deploy it on a single node. But the momentwe deploy
    it with multiple nodes,we are getting a exception:
    java.lang.NoClassDefFoundError: javax/xml/bind/UnmarshalException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    Our deployment looks correct for me.
    We have specified each node in the target like:
    <EJBComponent Name="ecommerce"Targets="monode3,monode2,monode1,monode4,monode5,monode6"
    URI="ecommerce.jar"/>
    Any clues from anyone?
    Thanks,
    Jeeva

  • Multiple-node WebCenter Spaces config with default file-based policy

    hi,
    My customer will use web center 11g on multiple linux server, I noticed there is a comment in wc doc like this:
    =========================================
    The default file-based policy store can only be used for single-node WebCenter Spaces configurations. For multi-node configurations, you must reassociate the policy and credential store with an external LDAP-based store (such as Oracle Internet Directory) as described in Section 23.4, "Configuring the Policy and Credential Store."
    The policy store can be configured to use Oracle Internet Directory 11gR1 and 10.1.4.3, and OVD 11gR1 with the Local Store Adapter (LSA).
    The identity store can be configured to use the following LDAP servers:
    Oracle Internet Directory (OID) 11gR1 and 10.1.4.3
    Oracle Virtual Directory (OVD) 11gR1 and 10.1.4
    Sun iPlanet version 4.1.3
    Active Directory shipped as part of Windows 2000
    Open LDAP version 2.0.7
    Novell NDS version 8.5.1
    ========================================
    My customer only has AD, they don't have budget to buy oid at this time, according to the statement "The policy store can be configured to use Oracle Internet Directory 11gR1 and 10.1.4.3, and OVD 11gR1 with the Local Store Adapter (LSA).", does that mean the wc policy store can not use other ldap such as ad in multiple-node wc configuration?
    If performance is not an issue, can I use default file-based policy store in this case?
    If it's impossible for the customer to buy oid at this time, what's the possible solution?
    Thanks a lot!
    Regards

    You can configure directly with AD.
    Basically your WebLogic server needs to be configured to talk to AD. You can configure an Identity provider in Weblogic server which uses AD as LDAP.
    This should work in multi-node environment.
    Also, i do not see any reason why file based jazn-data should not work.
    Best solution from my perspective if Weblogic AD configuration does not work:
    Create and manage your users and roles in Weblogic embedded LDAP. All you have to change in your application is the realm to the name of weblogic realm(default is myrealm) and while deploying make sure you uncheck the create users and roles.
    Regards,
    Venkat

Maybe you are looking for

  • Photoshop Opens 8bit TIFF files as Camera Raw

    My normal workflow consists of opening RAW files in ACR, making adjustments, then moving on to Photoshop where I apply retouching and build clipping paths. I then save the file as an 8bit TIFF. I rarely reopen these 8bit TIFFs again, but when I did s

  • Authorization for PO .

    Hi , our client have a practice of creating consolidated import PO for  5 plants. Each line item is for different plant. Each plant user should only be able to change his plants  line item only . How to authorize user to change only one line item ? I

  • Weblogic JSF issue

    Hi, I am working on a migration project to convert my app from websphere 5.1 to wls 10.3. Now, in doing do I am getting the following JSF error. java.lang.UnsupportedOperationException     at javax.faces.context.FacesContext.getELContext(FacesContext

  • Error when deploying application in WebLogic6.1SP1

    Hi, I am trying to deploy an application from the console on Web Logic 6.1 SP1 and keep getting the attached error. I un-installed Web Logic several times to start from scratch and yet the error($Proxy66) won't go away. Could anyone please help? Deta

  • Cannot update to 4.0

    hey everyone, can somebody tell me what wrong with my iphone 3G, b/c i just cannot update it to firmware 4.0. I have 3.1.2 right now and want to update to 4.0 but it keep said "This device isn't eligible for the requested build"