Node creation and addition to existing Element Node

Hi all,
I have a class that opens a xml file, loads the Document and then, from a method, I am trying to add sub nodes to one of the Element node from the XML document. It just doesn't work.
This is the method that is supposed to add the nodes:
public Node getSubNode( Node iCurrentNode )
// Method local variables
DocumentBuilder lBuilder = null;
Document lDocument = null;
DocumentBuilderFactory lFactory = DocumentBuilderFactory.newInstance();
// Prepare the document and final Node to return
lBuilder = lFactory.newDocumentBuilder();
lDocument = lBuilder.newDocument();
Element lSubMenu = lDocument.createElement("sub_menu");
lSubMenu.setAttribute("ID", "User20");
lSubMenu.setAttribute("label", "Montreal user 1");
iCurrentNode.appendChild( lSubMenu );
lSubMenu = lDocument.createElement("sub_menu");
lSubMenu2.setAttribute("ID", "User21");
lSubMenu2.setAttribute("label", "Montreal user 2");
lDocument.appendChild(lSubMenu2);*/
return iCurrentNode;
I always get a "org.apache.crimson.tree.DomEx: WRONG_DOCUMENT_ERR: That node doesn't belong in this document."
So I understand by this that I am working with a Document that I declared in this method and thus, for an unknown reason, seem unable to add this node to my existing Element node.
What should I do to be able to add these nodes to my input Node?
Dominique Paquin

Ok, to answer my own question, and for the benefit of future people searching here for an answer, I'd used 2 different Document instance for the creation of my 2 nodes, one for the creation of the basic Node structure and one for the creation of the node that would be added to the other one. Since the importNode (done on the first one ) removes the parent from the imported node, I was no longer in a position to access the parent reference.
I simply created a single Document in my class as a global variable and used this single entity to create all my nodes (the original and the one added to the original), It solved all my problems.
I don't know if I was clear anough but if you need further explanation drop me a line.
[email protected]
http://www.okiok.com

Similar Messages

  • Quotation Creation and Billing for Service Orders--node details needed

    Hi ,
    I need to work on node "Quotation Creation and Billing for Service Orders" ....I see lot of integration with SD and FICO . Can any one give details about integrations required and what is done in this node ....
    Regards
    NPB

    There are different steps to be done for that.
    1. Create DIP Profile in ODP1 & check the consistency in ODP2 - DIP will be used to bill the customer based on resource (labor & material) usage. Creation of DIP profile has been discussed many times in this forum. Please check.
    2. Assign the Quotation document type & Billing type used in DIP profile to your sales area - Your document type should be assigned to your sales organisation, distribution channel & division combination.

  • Mass role creation and addition of tcodes to role menu

    Hi Folks,
    We've a requirement of building 1000's of single roles for an implementation. Our security matrix is ready with the role names and the list of tcodes to be embedded in each of these roles. What I would like to know is if we can automate a part of the process of role building i.e the following 3 steps only.
    1. Creation of the Role
    2. Addition of the tcodes in the role menu
    3. Save
    I'm aware of Ecatt/LSMW through which we can create the roles but i'm not sure if we can add the tcodes to the menu of the roles since the number of tcodes to be populated in each role will vary.
    Could anyone of you shed some light if it is possible to automate the addition of  tcodes to the role menu taking into consideration that each role will have different number of tcodes to be added to the menu and what's the best possible way to achieve this if there exists one.
    Thanks in advance for your time and suggestions!
    Guest...

    Whilst I agree that there are probably too many roles being built here, which is more of an issue with the role design / strategy, the issue of how to easily create a role for a given list of transactions is something that SAP supports via the import menu from text file option in PFCG.
    Yes you may need to write a script to cycle through all the possible role names, but we have recently had to build some roles based on actual usage, so exported transaction usage history to excel and then formatted the transactions into text files that could be imported to build the role menu.
    You will still then need to ensure any object authorisation object have the correct values set - i.e. not just starred in - but as one of the pains in build a role is getting the menu to look reasonable, I'd suggest having a look at this approach.
    Copy Menus -> Import from File is the function in PFCG in the menu tab for the role you are building
    OSS note 389675 has details of what the text file of transactions for the menu should look like.
    That should answer the question posed, rather than criticising the role design being followed.

  • HI Can I add a child node to an Element Node with a name that  exists

    HI,
    Can I add a child node to an Element Node with a name that is already existing in the Element Node.
    Let me explain what I need exactly.
    My Existing element Node looks like this:
    <form>
    <name>
    <FirstName></FirstName>
    <LastName></LastName>
    </name>
    </form>
    Can I add another child node with hte name 'FirstName' to the 'name' node ..?
    I want to put a attribute rvsn with a value 1 for the original 'FirstName' element Node.
    so the new Element Node should look like the foloowing:
    <form>
    <name>
    <FirstName rvsn="1"></FirstName>
    <FirstName></FirstName>
    <LastName></LastName>
    </name>
    </form>
    Hopefully this is valid XML !!
    when I tried to use appendChild, it removed the previous node and put the new one. Thats what is the documentation also said.. I read it after I tried it :(
    Anyway, ther should be another way to add a node like that.
    Any hints, ideas will be of great help.
    -Thanks in advance !!
    Murthy

    // this method will start marking the old values with a revision number.
         private void saveNodeDetails (Node node) {
    String Content = "";
    String nodeName = "";
    int rvsn = getRvsn();
    int type = node.getNodeType();
    int tempRvsn = 0;
    String tempNodeName = "";
    String tempParentNodeName = "";
    Node tempParentNode = null;
    // check if element
    if (type == Node.ELEMENT_NODE) {
    Node traverseNode = node;
    nodeName = getNodeName(traverseNode);
    if (nodeName != null && nodeName.trim().length() > 1)
    nodeName = nodeName.substring(0, nodeName.length() - 1);
    if (_debug)
    System.out.print("2. ELEMENT_NODE name## " + nodeName);
    // if the element has no children, its leaf node.
    // if its there in the Hashtble, then update the value from the hashtable.
    if (reqParams.containsKey(nodeName)) {
    if (_debug) System.out.println("3. Hash Value = " + reqParams.get(nodeName).toString());
    if (traverseNode == null)
    if (_debug) System.out.println("3A. traverseNode == null ");
    if (node == null)
    if (_debug) System.out.println("3B. node == null ::(((((");
    // get the node children
    NodeList children = node.getChildNodes();
    // end of getting children for the Node.
    if (_debug) System.out.println("4. Got ChildNodes ");
    if (children != null) {
    int length = 0;
    length = children.getLength();
    if (_debug) System.out.println("5. Got children Length = " + length);
    if( ((Element) node).hasAttribute("rvsn") ){
    System.out.println(" node has Attribute(rvsn) ");
    tempRvsn = Integer.parseInt( ((Element) node).getAttribute("rvsn") );
    if( tempRvsn == rvsn){
    // user is changing the same data again and again.
    // so remove the text node and append the new value as text node finally
    for (int index = 0; index < length; index++) {
    if (_debug) System.out.println("6. index = " + index);
    if (_debug) System.out.println(index + ": children.item( index )@saveNodeDetails@ContainerDoc = " + children.item(index).getNodeType() + " -- " + children.item(index).getNodeValue());
    if (children.item(index).getNodeType() == Node.TEXT_NODE)
    node.removeChild(children.item(index));
    }else{
    int l= 0; // do not do any thing if the current node rvsn is different from the rvsn of the DOM
    // programme logic could enter this part when ther are multiple revisions of the NODe in the DOM,
    // and we are traversing through the previous versions of it.
    } else{
    System.out.println(" node has no Attribute(rvsn) ");
    // the node has no rvsn attribute.
    // it is the initial version of the dom.
    // add the rvsn from the DOM to this NODE for the first time.
    ((Element) node).setAttribute("rvsn", (new Integer(rvsn)).toString() );
    // get parent node and add a new child node with the same name as current node.
    // so parent node will have the previous node with a rvsn and a new node without the rvsn !!
    tempNodeName = node.getNodeName();
    tempParentNode = node.getParentNode();
    tempParentNodeName = tempParentNode.getNodeName();
    System.out.println(" adding node: " + tempNodeName + " to : " + tempParentNodeName);
    node = addNode(tempParentNode, tempNodeName, "");
    getNodeName(node); // print the name of the node after modifying it !!!
    printSiblings(node);
    //System.out.println(" After adding the node : " + getNodeName(node));
    } else if (_debug) {
    System.out.println("7. Node name exist in the Hash but has no children to be removed..!!:: @saveNodeDetails ");
    if (_debug) System.out.println("7B. Update the dom from the hash value " + nodeName + ", " + reqParams.get(nodeName).toString());
    node.appendChild(document.createTextNode(reqParams.get(nodeName).toString()));
    if (node != null) {
    if ( ( (Element) node).hasAttribute("rvw"))
    ( (Element) node).removeAttribute("rvw");
    if ( ( (Element) node).hasAttribute("msg"))
    ( (Element) node).removeAttribute("msg");
    if ( ( (Element) node).hasAttribute("dor"))
    ( (Element) node).removeAttribute("dor");
    }// end of if (type == Node.ELEMENT_NODE)
    NodeList children = node.getChildNodes();
    if (children != null) {
    for (int i = 0; i < children.getLength(); i++) {
    saveNodeDetails(children.item(i));
         } // end of saveNodeDetails method
    public Node addNode(Node parentNode, String nodeName, String value){
    Node newNode = null;
    try{
    newNode = parentNode.appendChild( document.createElement(nodeName) );
    newNode.appendChild( document.createTextNode( value ) );
    }catch(Exception Ex){
    System.out.println("2. Exception@addNode@ContainerDoc = " + Ex);
    return newNode ;
    } // end of addNode method

  • 4 node RAC and services

    Hi All,
    We currently run 5 databases on a 5 node RAC.. 11.2.0.2 GI and a mix of 11.2 and 10.2 databases. Obviously, services are defined for use by the application based on load on each node..
    I am seeing something strange..
    CLV1P_COMMON is a service created to run on CLV1P2 instance but during my tests over the weekend, the service was coming up on different node each time.. Why is this behavior ? Is this expected ? My understanding was that the service should run only on the node it services.. and in the case, where you specifiy PREFFERRED to more than one instance, it uses them randomly.. ( load balancing )
    Can anyone guide me please ?
    Thanks
    /oracle/dba/output/STR1P/rman
    camgmolpdb01 [CLV1P1]-> srvctl status service -d CLV1P
    Service CLV1P1.aaaaaaaaaaaa.com is running on instance(s) CLV1P1
    Service CLV1P2.aaaaaaaaaaaa.com is running on instance(s) CLV1P2
    Service CLV1P3.aaaaaaaaaaaa.com is running on instance(s) CLV1P3
    Service CLV1P4.aaaaaaaaaaaa.com is running on instance(s) CLV1P4
    Service CLV1P_COMMON.aaaaaaaaaaaa.com is running on instance(s) CLV1P2
    /oracle/dba/output/STR1P/rman
    camgmolpdb01 [CLV1P1]-> srvctl config service -d CLV1P -s CLV1P_COMMON.aaaaaaaaaaaa.com
    Service name: CLV1P_COMMON.aaaaaaaaaaaa.com
    Service is enabled
    Server pool: CLV1P_CLV1P_COMMON.aaaaaaaaaaaa.com
    Cardinality: 1
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: false
    Failover type: NONE
    Failover method: NONE
    TAF failover retries: 0
    TAF failover delay: 0
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: NONE
    Edition:
    Preferred instances: CLV1P2
    Available instances: CLV1P1,CLV1P3,CLV1P4
    This is the command I used to create the service
    srvctl add service -d CLV1P -s CLV1P_COMMON.aaaaaaaaaaaaaa.com -r "CLV1P2" -a "CLV1P1,CLV1P3,CLV1P4" -P BASIC -l primary -y AUTOMATIC -e SELECT -m BASICThanks in advance
    Edited by: USER101 on Oct 15, 2012 1:59 PM
    Edited by: USER101 on Oct 15, 2012 2:01 PM

    Hi,
    preferred and available is normally only evaluated during startup of the service.
    So if you started you server in the order 1 then 2,3,4 as a result the service will get started on node 1 and not on the preferred node 2. Reason: Service is defined that it should start at least one instance. At the moment of startup there was only server 1 active, hence it is starting there. If node 2 (preferred) started after that, it is not evaluated, since Oracle does not want to move a service simply because of startup.
    If then node 1 is rebooted, the service will get failed over. to the pereferred instance. If you then stop instance on node 2 again it will be started on a different node (not fix).
    Important: The service does not fail to preferred instance, only if it is up.
    As a workaround (if you need the service always to be started on node 2 if available and only run on another instance, when node 2 is not up) you can do this with a FAN Callout script.
    Regards
    Sebastian

  • Dynamic node creation from RTTI structure and dynamic mapping

    Hi,
    I'd like to create a dynamic node in my component controller then map this node to a node in my view and bind it to a dynamic table.
    I create the dynamic node in my component controller using the add_new_child_node method :
    CALL METHOD root_node_info->add_new_child_node
        EXPORTING
          name                    = 'MY_TABLE'
          static_element_rtti     = struct_type
          is_static               = ABAP_true
        RECEIVING
          child_node_info              = node_info
    Then I use the add_new_mapped_child_node method to map the node in the view :
    * Map the context node dynamically
      wa_path = 'COMPONENTCONTROLLER.MY_TABLE'.
      insert wa_path into table tab_mapping_path.
      stru_mapping_info-controller = 'COMPONENTCONTROLLER'.
      stru_mapping_info-path = tab_mapping_path.
      lo_node_info = wd_context->get_node_info( ).
      CALL METHOD lo_node_info->add_new_mapped_child_node
        EXPORTING
          child_name      = 'MY_TABLE'
          mapping_info    = stru_mapping_info
        receiving
          child_node_info = lo_dyn_node_info
    The child node is created in my view context but it doesn't have any attribute or static element RTTI.
    Do I have to add each attribute with the add_attribute method and then the add_new_mapped_child_node method will copy them over?
    Regards,
    Pierre

    Problem solved, the path was not good :
    * Map the context node dynamically
    *  wa_path = 'COMPONENTCONTROLLER.MY_TABLE'.
    *  insert wa_path into table tab_mapping_path.
      stru_mapping_info-controller = 'COMPONENTCONTROLLER'.
    *  stru_mapping_info-path = tab_mapping_path.
      append 'COMPONENTCONTROLLER' to stru_mapping_info-path.
      append 'MY_TABLE' to stru_mapping_info-path.
      lo_node_info = wd_context->get_node_info( ).
      CALL METHOD lo_node_info->add_new_mapped_child_node
        EXPORTING
          child_name      = 'MY_TABLE'
          mapping_info    = stru_mapping_info
        receiving
          child_node_info = lo_dyn_node_info
    Regards,
    Pierre

  • Cluvfy returns Path "/tmp/" does not exist and cannot be created on nodes

    Hi,
    I'm installing Oracle RAC for SAP in AIX 5L.
    After run Pre-check for cluster services setup it returns the next message:
    Path "/tmp/" does not exist and cannot be created on nodes
    This meessage is happening after Checking node reachability and Checking user equivalence phases.
    This is my complete log:
    pr_bd01/oramedia/clusterware/Disk1/cluvfy/> ./runcluvfy.sh stage -pre crsinst -n pr_bd01,pr_bd02
    Performing pre-checks for cluster services setup
    Checking node reachability...
    Node reachability check passed from node "pr_bd01".
    Checking user equivalence...
    User equivalence check passed for user "oracle".
    ERROR:
    Path "/tmp/" does not exist and cannot be created on nodes:
    pr_bd01
    Verification will proceed with nodes:
    pr_bd02
    Pre-check for cluster services setup was unsuccessful on all the nodes.
    The /tmp is a shared filesystem and oracle user can write and read it
    Oracle user id is the same in both nodes
    Group dba id is the same in both nodes
    Group oinstall id is the same in both nodes
    The primary group for Oracle user is oinstall
    Where can my problem be ?
    Thank you
    Edited by: user8114467 on 27/02/2009 07:17 AM

    Hi,
    Even if this is not resolved from above stuff then do the following
    [oracle@node1] ssh node1 date
    [oracle@node2] ssh node2 date
    Note that it is doing the ssh to itself rather than the remaining node(s). Usually people do forget to do atleast once the ssh to itself.
    Talok Khatri

  • Check if element node exists then create another element

    Hi Everyone,
    I have element node in the Target structure. I need to create another node if 1st node has been created.
    Please let me know how should I do it.
    Thanks
    NPrabhu

    Hi,
    I need another node to occur.
    I need to check if item in the target is created. If yes then create item[1].
    Also I need to add another item above each item node to say which text it is.
    <ENGLISH_TEXTS>
       <item>
         <LINE>Catalog text jasdkajdlsk;k;</LINE>
       </item>
       <item>
         <LINE>ProductText asasdklkf;sdlfs' </LINE>
       </item>
    </ENGLISH_TEXTS>
    I want it to look like this
    <ENGLISH_TEXTS>
       <item>
         <LINE>Catalog text</LINE>
       </item>
       <item>
         <LINE>Catalog text jasdkajdlsk;k;</LINE>
       </item>
       <item>
         <LINE>Product text </LINE>
       </item>
       <item>
         <LINE>ProductText asasdklkf;sdlfs' </LINE>
       </item>
    </ENGLISH_TEXTS>
    Thanks

  • Oracle ORA_16000 when trying to add standby instance to existing rac node

    I attempted to use dbca to add a new standby instance to an existing cluster. The cluster is 4 nodes, Linux RHEL 5.3 Oracle 11.1.0.7. Also using ASM, asmlib, ocfs2 and shared block devices.
    ASM instances are up and functional on all nodes. current config appears to be running normally and correctly.
    I have a 4 instance database running on the cluster. I also have 3 physical standby active data guard instances running on 3 of the nodes. I wanted to add a new ADG instance to the 4th node.
    While running dbca I received ORA-00604 and ORA-16000.
    The active data guard database was open (read only) and redo apply was on. I am using data guard broker as well, but not grid control.
    Does anyone have a procedure for adding an instance in this environment? Do I need to have the standby in mount state? If dbca won't work does anyone have a manual procedure for adding a new instance?
    Thanks

    zulo
    Let's say you adding node nusclust160## to you existing cluster and dbca is a pain to use.
    Extend clusterware to the nusclust160## server.
    re: Page 64 of Oracle® Clusterware Administration and Deployment Guide 11g Release 1 (11.1)
    1a.
    Add undo tablespace to support additional node.
    Re-check space for DATA1 on nusclust16007 and /dbdata/ORADB on sun16109.
    As of Thursday, May 21, 2009 the DATA1 asm group has 53,584M free.
    As of Thursday, May 21, 2009 the /dbdata/ORADB has 77G free.
    In a separate terminal window on nusclust16007 run the following in sqlplus
    CREATE UNDO TABLESPACE UNDOTBS4 datafile '+DATA1' SIZE 13300M AUTOEXTEND ON ;
    This will take a long time to create this tablespace. Please minimize the window after submitting the ddl and move on to the next step.
    1b.
    Insure .bash_profile on nusclust160## should look like this:
    vi .bash_profile
    export ORACLE_HOSTNAME=nusclust160##
    export ORACLE_SID=ORADB4
    export ORA_CRS_BASE=/apps/ocr/oracle
    export ORACLE_BASE=/apps/dbs/oracle
    export PATH=/usr/ccs/bin:/usr/X/bin:/usr/bin:/usr/sfw/bin:/usr/sbin:/usr/local/bin
    export server=`uname -n`
    export PS1="$ORACLE_SID@$HOSTNAME >"
    alias cls='clear'
    alias More='more'
    alias ll='ls -lt | more'
    Gather IP addresses for fourth node from /etc/hosts:
    222.65.125.### nusclust160##
    222.65.125.### nusclust160##-vip
    10.333.248.### nusclust160##-priv
    2. Start Oracle Universal Installer:
    Go to CRS_home/oui/bin and run the addNode.sh script on one of the existing
    nodes. Oracle Universal Installer runs in add node mode.
    The Oracle inventory on nusclust16007, nusclust16008, and nusclust16036 are found under:
    /home/oracle/oraInventory
    Use a X windows enabled session (The OUI takes 33 minutes)
    cd /apps/ocr/oracle/product/11.1.0/crs/oui/bin
    ./addNode.sh
    a. In the first screen specify a new node as :
    Public Node Name:          nusclust160##
    Private Node Name:     nusclust160##-priv
    Virtual Host Name:     nusclust160##-vip
    If you receive the error:
    " tar. ./bin/racgvip.orig: Permission denied"
    Do the following:
    cd /apps/ocr/oracle/product/11.1.0/crs/bin
    ls -al racgvip.orig
    paste here:
    chown root:oinstall racgvip.orig
    chmod 771 racgvip.orig
    should now show:
    -rwxrwx--x 1 root oinstall 19213 Feb 11 08:36 racgvip.orig
    As root:
    a.
    On nusclust160##:
    cd /home/oracle/oraInventory
    ./orainstRoot.sh
    b.
    On nusclust16007:
    cd /apps/ocr/oracle/product/11.1.0/crs/install
    ./rootaddnode.sh
    clscfg: EXISTING configuration version 4 detected.
    clscfg: version 4 is 11 Release 1.
    Attempting to add 1 new nodes to the configuration
    Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
    node <nodenumber>: <nodename> <private interconnect name> <hostname>
    node 4: nusclust160## nusclust160##-priv nusclust160##
    Creating OCR keys for user 'root', privgrp 'root'..
    Operation successful.
    /apps/ocr/oracle/product/11.1.0/crs/bin/srvctl add nodeapps -n nusclust160## -A nusclust160##-vip/255.255.255.224/bge0
    c.
    On nusclust160##:
    cd /apps/ocr/oracle/product/11.1.0/crs/
    ./root.sh
    WARNING: directory '/apps/ocr/oracle/product/11.1.0' is not owned by root
    WARNING: directory '/apps/ocr/oracle/product' is not owned by root
    WARNING: directory '/apps/ocr/oracle' is not owned by root
    Checking to see if Oracle CRS stack is already configured
    OCR LOCATIONS = /raw/ocr/ocrconf1,/raw/ocr/ocrconf2
    OCR backup directory '/apps/ocr/oracle/product/11.1.0/crs/cdata/rac_cluster' does not exist. Creating now
    Setting the permissions on OCR backup directory
    Setting up Network socket directories
    Oracle Cluster Registry configuration upgraded successfully
    The directory '/apps/ocr/oracle/product/11.1.0' is not owned by root. Changing owner to root
    The directory '/apps/ocr/oracle/product' is not owned by root. Changing owner to root
    The directory '/apps/ocr/oracle' is not owned by root. Changing owner to root
    clscfg: EXISTING configuration version 4 detected.
    clscfg: version 4 is 11 Release 1.
    Successfully accumulated necessary OCR keys.
    Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
    node <nodenumber>: <nodename> <private interconnect name> <hostname>
    node 1: nusclust16007 nusclust16007-priv nusclust16007
    node 2: nusclust16008 nusclust16008-priv nusclust16008
    node 3: nusclust16036 nusclust16036-priv nusclust16036
    clscfg: Arguments check out successfully.
    NO KEYS WERE WRITTEN. Supply -force parameter to override.
    -force is destructive and will destroy any previous cluster
    configuration.
    Oracle Cluster Registry for cluster has already been initialized
    Startup will be queued to init within 30 seconds.
    Adding daemons to inittab
    Expecting the CRS daemons to be up within 600 seconds.
    Cluster Synchronization Services is active on these nodes.
    nusclust16007
    nusclust16008
    nusclust16036
    nusclust160##
    Cluster Synchronization Services is active on all the nodes.
    Waiting for the Oracle CRSD and EVMD to start
    Oracle CRS stack installed and running under init(1M)
    4. After this is done crs_stat -t will show nusclust160## in the crs i.e.
    I see:
    Name Type Target State Host
    ora....160##.gsd application ONLINE ONLINE sun...160##
    ora....160##.ons application ONLINE OFFLINE
    ora....160##.vip application ONLINE ONLINE sun...160##
    Do not be concerned about ora.nusclust160##.ons being OFFLINE, as that will be fixed shortly in a step that follows this one.
    5. As oracle :
    On nusclust16007:
    cd /apps/ocr/oracle/product/11.1.0/crs/bin
    ./racgons add_config nusclust160##:6251
    This should take about one second to run.
    If it says that it has already been added to the OCR you are fine.
    If it hangs, you may need to reboot all servers to clear this issue.
    6. Insure new node is properly added to ocr by running
    On nusclust16007:
    ocrdump
    Check for the entries that show:
    [DATABASE.ONS_HOSTS.nusclust160##.PORT]
    ORATEXT : 6251
    7. Check that your cluster is integrated and that the cluster is not divided into
    partitions by completing the following operations:
    On nusclust16007:
    cd /apps/ocr/oracle/product/11.1.0/crs/bin
    ./cluvfy comp clumgr -n all -verbose
    Should see Verification of cluster manager integrity was successful.
    8.
    Use the following command to perform an integrated validation of the Oracle
    Clusterware setup on all of the configured nodes, both the preexisting nodes
    and the nodes that you have added:
    AS oracle on nusclust16007:
    cluvfy stage -post crsinst -n all -verbose
    Post-check for cluster services setup was successful.
    good: Post-check for cluster services setup was successful.
    9.
    On nusclust160## as oracle run the following:
    cd /apps/ocr/oracle/product/11.1.0/crs/bin
    ./crs_stat -t | grep OFFLINE
    If you see this:
    ora.nusclust160##.ons application ONLINE OFFLINE
    then run this:
    ./crs_start -all
    After:
    ./crs_stat -t
    ora.nusclust160##.ons application ONLINE ONLINE nusclust160##
    If you see the above then you can move on the next step.
    Adding database binaries to the nusclust160## server and setting up the listener.
    1.
    From nusclust16007:
    Open an X window (The OUI part takes 13 minutes)
    cd /apps/dbs/oracle/product/11.1.0/db_1/oui/bin
    ./runInstaller -addNode ORACLE_HOME=/apps/dbs/oracle/product/11.1.0/db_1 $*
    You should get a prompt to specify a new node, in this case you should see nusclust160## where you will need to put a check mark beside it.
    2.
    from nusclust160##:
    Eventually you will be prompted to run the following as root on the new node
    On nusclust160##
    cd /apps/dbs/oracle/product/11.1.0/db_1
    ./root.sh
    Running Oracle 11g root.sh script...
    The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME= /apps/dbs/oracle/product/11.1.0/db_1
    Enter the full pathname of the local bin directory: [usr/local/bin]:
    Copying dbhome to /usr/local/bin ...
    Copying oraenv to /usr/local/bin ...
    Copying coraenv to /usr/local/bin ...
    Creating /var/opt/oracle/oratab file...
    Entries will be added to the /var/opt/oracle/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root.sh script.
    Now product-specific root actions will be performed.
    Finished product-specific root actions.
    3. verification
    Now set up the .bash_profile and .asm profile to on nusclust160## to support new ORADB4 and +ASM4 instances for the oracle userid.
    On nusclust160##:
    cp .bash_profile .bash_profile.bak
    On nusclust16007:
    sftp nusclust160##
    put .bash_profile
    On nusclust160##:
    vi .bash_profile
    change ORALCE_SID to ORADB4
    cp .bash_profile .asm
    vi .asm
    change ORALCE_SID to +ASM4 in .asm file
    which sqlplus
    Should show the path below is $PATH environmental variable is set correctly.
    /apps/dbs/oracle/product/11.1.0/db_1/bin/sqlplus
    On nusclust160##:
    oifcfg getif
    This should show:
    ce4 10.333.248.192 global cluster_interconnect
    ce5 222.65.125.128 global public
    4.
    Run Netbackup Oracle Agent link script.
    As oracle make sure ORACLE_HOME is fined.
    env | grep ORACLE_HOME
    then
    cd /usr/openv/netbackup/bin/
    ./oracle_link
    ls -al $ORACLE_HOME/lib/libobk.so
    should show:
    /apps/dbs/oracle/product/11.1.0/db_1/lib/libobk.so -> /usr/openv/netbackup/bin/libobk.so64.1
    5.
    On the target node, run the Net Configuration Assistant (NETCA) to add a
    listener. Add a listener to the target node by running NETCA from the target node and
    selecting only the target node on the Node Selection page.
    I shall do the following on nusclust160## using X Windows
    Now before I do this I see:
    crs_stat -t
    ora.nusclust160##.gsd application ONLINE ONLINE nusclust160##
    ora.nusclust160##.ons application ONLINE ONLINE nusclust160##
    ora.nusclust160##.vip application ONLINE ONLINE nusclust160##
    Connect to nusclust160## and open up X windows session.
    netca
    Choose Cluster configuration.
    select nusclust160## as the node to configure.
    Choose Listener configuration, then Add.
    When it prompts you for a listener name choose LISTENER as it will append _NUSCLUST160##(server name) to end of the LISTENER name to make a complete listener name. 
    At this point you will have listener to support the new node in the crs.
    now
    crs_stat -t
    will show:
    ora....0#.lsnr application ONLINE ONLINE nusclust160##
    ora.nusclust160##.gsd application ONLINE ONLINE nusclust160##
    ora.nusclust160##.ons application ONLINE ONLINE nusclust160##
    ora.nusclust160##.vip application ONLINE ONLINE nusclust160##
    At this point the necessary crs entries for gsd, ons, vip, and the listener on nusclust160## all we need now are the ORADB4 and +ASM4 instances added.
    III. 7/11/2009 7:40 AM Sat [120 min] NTTA DBA
    Use NON dbca method to create additional instances on the nusclust160## server. This will involve a complete shutdown of all RAC instances.
    1.
    Undo tablespace creation was taken care of in Step I,1. Check on the progress of the creation of tablespace UNDOTBS4 in the minimized window. Should see tablespace on primary and physical standby databases.
    2. First we shall set up the +ASM4 instance on nusclust160## and add it to the cluster.
    On nusclust160##
    cd $ORACLE_HOME/dbs
    vi init+ASM4.ora
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Cluster Database
    cluster_database=true
    cluster_database_instances=6
    # Miscellaneous
    diagnostic_dest=/apps/dbs/oracle
    instance_type=asm
    # Pools
    large_pool_size=12M
    asm_diskgroups='DATA1','ARCH','REDO1','REDO2'
    asm_diskstring='/raw/asm'
    +ASM1.instance_number=1
    +ASM2.instance_number=2
    +ASM3.instance_number=3
    +ASM4.instance_number=4
    3.
    On nusclust16007
    cd $ORACLE_HOME/dbs
    sftp nusclust160##
    put orapw+ASM1 /apps/dbs/oracle/product/11.1.0/db_1/dbs
    put orapwORADB1 /apps/dbs/oracle/product/11.1.0/db_1/dbs
    4.
    On nusclust160##
    cd $ORACLE_HOME/dbs
    cp orapw+ASM1 orapw+ASM4
    cp orapwORADB1 orapwORADB4
    5.
    On nusclust160##
    cd $HOME
    . ./.asm
    sqlplus '/ as sysasm'
    startup
    create spfile from pfile='/apps/dbs/oracle/product/11.1.0/db_1/dbs/init+ASM4.ora' ;
    shutdown immediate ;
    startup
    show parameters spfile
    6. Now that we have a running asm instance add it the cluster.
    On nusclust160##
    srvctl add asm -n nusclust160## -i +ASM4 -o /apps/dbs/oracle/product/11.1.0/db_1
    srvctl enable asm -n nusclust160## -i +ASM4
    7. Now that we have an asm instance let's set up a database instance.
    On nusclust16007/ORADB1 :
    alter system set cluster_database_instances=6 scope=spfile ;
    alter system set instance_name=ORADB4 scope=spfile sid='ORADB4' ;
    alter system set instance_number=4 scope=spfile sid='ORADB4' ;
    alter system set local_listener=LISTENER_ NUSCLUST160## scope=both sid='ORADB4' ;
    alter system set thread=4 scope=both sid='ORADB4' ;
    alter system set undo_tablespace=UNDOTBS4 scope=both sid='ORADB4' ;
    alter database add logfile thread 4 group 28 ('+REDO1', '+REDO2' ) size 100M ;
    alter database add logfile thread 4 group 29 ('+REDO1', '+REDO2' ) size 100M ;
    alter database add logfile thread 4 group 30 ('+REDO1', '+REDO2' ) size 100M ;
    alter database add logfile thread 4 group 31 ('+REDO1', '+REDO2' ) size 100M ;
    alter database enable public thread 4;
    Need to add 5 groups to support standby
    So at the end of the day 900M will be added to REDO1(29,577M free) and 900M will be added to REDO2 (29,577M free).
    8. Set up init.ora, listener.ora, and tnsnames.ora for ORADB4 on nusclust160##.
    a. init.ora set up
    cd $ORACLE_HOME/dbs
    vi initORADB4.ora
    SPFILE='+DATA1/ORADB/spfileORADB.ora'
    b. add entries to tnsnames.ora:
    ORADB4 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORADB)
    (INSTANCE_NAME = ORADB4)
    ORADB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16007-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16008-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16036-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORADB)
    LISTENERS_ORADB =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16007-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16008-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16036-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    LISTENER_NUSCLUST160## =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    ORADB_PRIM =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16007-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16008-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust16036-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORADB)
    c. add entries to listener.ora, The entries for most of this file should be set already, just insure modifications that need to be made are made.
    SID_LIST_LISTENER_NUSCLUST160## =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /apps/dbs/oracle/product/11.1.0/db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = ORADB)
    (ORACLE_HOME = /apps/dbs/oracle/product/11.1.0/db_1)
    (SID_NAME = ORADB4)
    LISTENER_NUSCLUST160## =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = NUSCLUST160##-vip)(PORT = 1521)(IP = FIRST))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 222.65.125.###)(PORT = 1521)(IP = FIRST))
    9. Reload the listener.
    lsnrclt
    set current_listener LISTENER_NUSCLUST160##
    reload
    exit
    10. Check audit trail, add instance to cluster, and start db instance.
    a.
    Check for audit directory and start the instance.
    /apps/dbs/oracle/product/11.1.0/db_1/rdbms/audit
    If this audit trail directory does not exist then create it.
    b.
    srvctl add instance -d ORADB -i ORADB4 -n nusclust160##
    srvctl modify instance -d ORADB -i ORADB4 -s +ASM4
    srvctl enable instance -d ORADB -i ORADB4
    Will probably show: PRKP-1017 : Instance ORADB4 already enabled.
    c.
    sqlplus '/ as sysdba'
    startup
    **Because the cluster_database_instances parameter requires the complete shutdown of all instances in the cluster, you might have an issue when it attempts to start the instance. If you receive an error then run:
    srvctl stop database -d oradb
    sqlplus '/ as sysdba'
    startup
    shutdown
    srvctl start database -d oradb
    shutdown
    srvctl start instance -d ORADB -i ORADB4 -o open
    11.
    Modify spfile of ASM1, ASM2, +ASM3
    On nusclust16007
    . ./.asm
    sqlplus '/ as sysasm'
    alter system set instance_number=4 scope=spfile sid='+ASM4' ;
    On nusclust16008
    . ./.asm
    sqlplus '/ as sysasm'
    alter system set instance_number=4 scope=spfile sid='+ASM4' ;
    On nusclust16036
    . ./.asm
    sqlplus '/ as sysasm'
    alter system set instance_number=4 scope=spfile sid='+ASM4' ;
    b Modify tnsnames.ora on nusclust nusclust16007, nusclust16008, and nusclust16036
    On nusclust16007
    ORADB4 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORADB)
    (INSTANCE_NAME = ORADB4)
    Add the following line to the ORADB alias:
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    Add the following line to the LISTENERS_ORADB alias:
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    Add the following line to the ORADB_PRIM alias:
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    On nusclust16008
    ORADB4 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORADB)
    (INSTANCE_NAME = ORADB4)
    Add the following line to the ORADB alias:
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    Add the following line to the LISTENERS_ORADB alias:
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    Add the following line to the ORADB_PRIM alias:
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    On nusclust16036
    ORADB4 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORADB)
    (INSTANCE_NAME = ORADB4)
    Add the following line to the ORADB alias:
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    Add the following line to the LISTENERS_ORADB alias:
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    Add the following line to the ORADB_PRIM alias:
    (ADDRESS = (PROTOCOL = TCP)(HOST = nusclust160##-vip)(PORT = 1521))
    c Add standby logs on primary to support 4th node.
    alter database add standby logfile thread 4 group 32 ('+REDO1', '+REDO2' ) size 100M ;
    alter database add standby logfile thread 4 group 33 ('+REDO1', '+REDO2' ) size 100M ;
    alter database add standby logfile thread 4 group 34 ('+REDO1', '+REDO2' ) size 100M ;
    alter database add standby logfile thread 4 group 35 ('+REDO1', '+REDO2' ) size 100M ;
    alter database add standby logfile thread 4 group 36 ('+REDO1', '+REDO2' ) size 100M ;
    12.
    Test the cluster to make sure everything is set up correctly.
    a. Shutdown resources.
    On nusclust16007:
    emctl stop dbconsole
    ps -ef | grep perl
    ps -ef | grep agent
    ps -ef | grep java
    On nusclust16008:
    emctl stop dbconsole
    On nusclust16036:
    emctl stop dbconsole
    On nusclust16008:
    cd $HOME
    . ./.rman
    cd scripts
    ./go
    shutdown immediate
    cd $HOME
    . ./.bash_profile
    srvctl stop database -d oradb
    crs_stop -all
    crs_stat -t
    b. Startup resources
    On nusclust16007:
    cd $HOME
    . ./.bash_profile
    crs_start -all
    crs_stat -t
    The command above should show everything up and running.
    ocrcheck
    On nusclust16008:
    cd $HOME
    . ./.rman
    cd scripts
    ./go
    startup
    On nusclust16007:
    emctl start dbconsole
    On nusclust16008:
    emctl start dbconsole
    On nusclust16036:
    emctl start dbconsole
    How does that work for you?
    -JR jr

  • Permissions issue - node creation

    Today our application developed a new bug related to posting messages into a SimpleChatModel node.  It tells us that the user does not have permission to create the node.
    We have approximately 50 rooms and all of them have the nodes we need already in them.  There is no node creation that takes place during normal operation of our application.
    Now, we've been doing this type of posting (successfully posting chat messages into the SimpleChatModel with only Publisher-level permissions) all last week and over the weekend.  It may be that we wrote a bug of course, but I couldn't help noticing that the timing coincided with Nigel's blog post introducing the new SDK.  Is it possible that the volume of new LCCS users, or the use of new server-side permission techniques is related to our issue?
    Thanks,
    -Mike

    Hironmay, I appreciate your input, I know I didn't really provide enough info but I wanted to see if there actually was a problem of which you were aware.
    The behavior was better this morning - but the error has returned (no changes to our code have been made).  So I suspect it is either a timing issue related to how elements of the swf load, or a bug in your service.
    Here is some of the code we use to initialize the chat pod.
    import com.adobe.rtc.sharedModel.descriptors.ChatMessageDescriptor;
    import com.adobe.rtc.events.ChatEvent;
    import com.adobe.rtc.sharedModel.SimpleChatModel;
    [Bindable]
    public var chatModel:SimpleChatModel;
    private function init():void{
    chatModel = new SimpleChatModel();
    chatModel.sharedID = "myChat_SimpleChatModel";
    sync();
    chatModel.addEventListener(ChatEvent.HISTORY_CHANGE, onChatMsg);
    this.addEventListener(KeyboardEvent.KEY_UP, onKeyStroke);
    public function sync():void
    chatModel.subscribe();
    protected function submitChat(str:String):void
    var cmd:ChatMessageDescriptor = new ChatMessageDescriptor();
    cmd.msg =  str;
    chatModel.sendMessage(cmd);
    chat_mesg_input.text = "";
    that code is in an mxml file that defines the chat pod.  the only other place in which we call sync() is reproduced with a small bit of context here:
    if (_usersInRoom == "2" && !_synched) {
    startPublication();
    if (chatPod) {
    chatPod.sync();
    _synched = true;
    this issue does not seem to be confined to any specific room(s) and we are using version 10.
    Error: MessageManager.createNode : insufficient permissions to create node
    at com.adobe.rtc.messaging.manager::MessageManager/http://www.adobe.com/2006/connect/cocomo/messaging/internal::createNode()[C:\work\branches \connect\1004\cocomoPlayer10\src\com\adobe\rtc\messaging\manager\MessageManager.as:253]
    at com.adobe.rtc.sharedModel::CollectionNode/publishItem()[C:\work\branches\connect\1004\coc omoPlayer10\src\com\adobe\rtc\sharedModel\CollectionNode.as:615]
    at com.adobe.rtc.sharedModel::SimpleChatModel/sendMessage()[C:\work\branches\connect\1004\co comoPlayer10\src\com\adobe\rtc\sharedModel\SimpleChatModel.as:377]
    at ChatComponent/submitChat()[/Users/mschwab/work/GoodChat/flex/src/ChatComponent.mxml:31]
    at ChatComponent/onKeyStroke()[/Users/mschwab/work/GoodChat/flex/src/ChatComponent.mxml:55]

  • Setup and Configure IM Components SSO and DAS on Replica RMS Node

    Dear All,
    I was trying the step
    Step 5: How to Setup and Configure IM Components SSO and DAS on Replica RMS Node In Multimaster Replication (MMR) with Identity Management (IM) Cluster in High Availability Env
    But, at the stage to connect to OID, it is not connecting to the RMS database.
    When I checked login through ODM, it is connecting fine. also, ldapbind is also binding fine.
    How to solve this ? What will be the issue and where to check it ?
    Also, from the RMS, when I am connecting through EM console, I am not getting any output on Infrastructure link to change the passwords. its showing
    Identity Management
    Error retrieving information of default metadata repository.
    Unable to establish secure connection to Oracle Internet Directory Server ldap://devportal.paaf.gov.kw:636/ Base Exception : javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
    If there is any experts, pls reply. Because, last time I created a TAR and it took months to resolve and ultimately nothing happened they closed the TAR after some time as I was busy with some other works and not able to proceed with the synchronization.
    Thanks in advance,
    With Regards,
    Sheeja Anil

    Rule [ 47 ]: fuser link
    ~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if the fuser symbolic link /sbin/fuser -> /bin/fuser exists or
    not. This is required for Suse 8.0 and Suse 9.0.
    Test [ PASSED ] :
    Not required =~ Exists|Not required
    Action:
    fuser link exists or not required.
    Rule [ 48 ]: orarun package
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if the orarun package is installed and if the oracle user
    environment need to be reset. This is only required for Suse 8.0 and
    Suse 9.0.
    Test [ PASSED ] :
    Not applicable =~ Not installed|Installed correctly|Not
    applicable|Environment reset not required
    Action:
    orarun is not installed or installed correctly.
    Rule [ 49 ]: semmsl
    ~~~~~~~~~~~~~~~~~~~
    Description:
    Check if semmsl kernel parameter is 256 or higher. For more details on
    how to configure this parameter, refer to Oracle Application Server
    10.1.2 Installation Guide - Chapter 4 - Section 4.3.2 Configuring the
    Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    semmsl kernel parameter is 256 or higher.
    Rule [ 50 ]: semmns
    ~~~~~~~~~~~~~~~~~~~
    Description:
    Check if semmns kernel parameter is 32000 or higher. For more details
    on how to configure this parameter, refer to Oracle Application Server
    10.1.2 Installation Guide - Chapter 4 - Section 4.3.2 Configuring the
    Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    semmns kernel parameter is 32000 or higher.
    Rule [ 51 ]: semopm
    ~~~~~~~~~~~~~~~~~~~
    Description:
    Check if semopm kernel parameter is 100 or higher. For more details on
    how to configure this parameter, refer to Oracle Application Server
    10.1.2 Installation Guide - Chapter 4 - Section 4.3.2 Configuring the
    Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    semopm kernel parameter is 100 or higher.
    Rule [ 52 ]: semmni
    ~~~~~~~~~~~~~~~~~~~
    Description:
    Check if semmni kernel parameter is 142 or higher. For more details on
    how to configure this parameter, refer to Oracle Application Server
    10.1.2 Installation Guide - Chapter 4 - Section 4.3.2 Configuring the
    Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    semmni kernel parameter is 142 or higher.
    Rule [ 53 ]: shmall
    ~~~~~~~~~~~~~~~~~~~
    Description:
    Check if shmall kernel parameter is 2097152 or higher. For more
    details on how to configure this parameter, refer to Oracle
    Application Server 10.1.2 Installation Guide - Chapter 4 - Section
    4.3.2 Configuring the Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    shmall kernel parameter is 2097152 or higher.
    Rule [ 54 ]: shmmax
    ~~~~~~~~~~~~~~~~~~~
    Description:
    Check if shmmax kernel parameter is 2147483648 or higher. For more
    details on how to configure this parameter, refer to Oracle
    Application Server 10.1.2 Installation Guide - Chapter 4 - Section
    4.3.2 Configuring the Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    shmmax kernel parameter is 2147483648 or higher.
    Rule [ 55 ]: shmmni
    ~~~~~~~~~~~~~~~~~~~
    Description:
    Check if shmmni kernel parameter is 4096 or higher. For more details
    on how to configure this parameter, refer to Oracle Application Server
    10.1.2 Installation Guide - Chapter 4 - Section 4.3.2 Configuring the
    Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    shmmni kernel parameter is 4096 or higher.
    Rule [ 56 ]: msgmax
    ~~~~~~~~~~~~~~~~~~~
    Description:
    Check if msgmax kernel parameter is 8192 or higher. For more details
    on how to configure this parameter, refer to Oracle Application Server
    10.1.2 Installation Guide - Chapter 4 - Section 4.3.2 Configuring the
    Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    msgmax kernel parameter is 8192 or higher.
    Rule [ 57 ]: msgmnb
    ~~~~~~~~~~~~~~~~~~~
    Description:
    Check if msgmnb kernel parameter is 65535 or higher. Refer to Oracle
    Application Server 10g Installation Guide 10g - Chapter 4 - Section
    4.3.3 Configuring the Kernel Parameters on Linux for more details on
    how to configure this.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    msgmnb kernel parameter is 65535 or higher.
    Rule [ 58 ]: msgmni
    ~~~~~~~~~~~~~~~~~~~
    Description:
    Check if msgmni kernel parameter is 2878 or higher. For more details
    on how to configure this parameter, refer to Oracle Application Server
    10.1.2 Installation Guide - Chapter 4 - Section 4.3.2 Configuring the
    Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    msgmni kernel parameter is 2878 or higher.
    Rule [ 59 ]: file-max
    ~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if file-max kernel parameter is 131072 or higher. For more
    details on how to configure this parameter, refer to Oracle
    Application Server 10.1.2 Installation Guide - Chapter 4 - Section
    4.3.2 Configuring the Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    file-max kernel parameter is 131072 or higher.
    Rule [ 60 ]: ip_local_port_range
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if ip_local_port_range kernel parameter is between 10000 and
    65000 or higher. For more details on how to configure this parameter,
    refer to Oracle Application Server 10.1.2 Installation Guide - Chapter
    4 - Section 4.3.2 Configuring the Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    ip_local_port_range kernel parameter is between 10000 and 65000 or
    higher.
    Rule [ 61 ]: limit processes
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if the limit of max processes is set to 16384 or higher. For
    more details on how to configure this parameter, refer to Oracle
    Application Server 10.1.2 Installation Guide - Chapter 4 - Section
    4.3.2 Configuring the Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    The limit of max processes is set to 16384 or higher.
    Rule [ 62 ]: limit descriptors
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if the limit of file descriptors is set to 65536 or higher. For
    more details on how to configure this parameter, refer to Oracle
    Application Server 10.1.2 Installation Guide - Chapter 4 - Section
    4.3.2 Configuring the Kernel Parameters on Linux.
    Test [ PASSED ] :
    Adequate = Adequate
    Action:
    The limit of descriptors is set to 65536 or higher.
    Rule [ 63 ]: Port 1521
    ~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if port 1521 is free or not. If port 1521 is used by an Oracle
    listener version 10.1.0.2 or later, then the existing listener will be
    used by the existing database and the Oracle Application Server 10g
    Metadata Repository. The installer will perform this configuration
    automatically. If port 1521 is used by an Oracle listener version
    earlier than 10.1.0.2, then the existing listener need to be stopped.
    After the installation is complete, the new 10.1.0.2 listener can be
    configured to listen to the existing (pre 10.1.0.2) databases. If port
    1521 is used by non-oracle programs, then this program need to be
    configured to listen to ports other than 1521. Refer to Installation
    Guide, section 4.4.4 for more details.
    Test [ PASSED ] :
    TNS Listener 10.1.0.2 or higher is running =~ TNS Listener 10.1.0.2 or
    higher is running|Free
    Action:
    Port 1521 is not used, or is used by TNS*Listener version 9.0.1 or
    higher.
    Rule [ 64 ]: Environment Variables
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if the following environment variables are not set: TNS_ADMIN,
    ORA_NLS, and LD_BIND_NOW. In addition, the following environment
    variables must not references to any existing Oracle Home: PATH,
    CLASSPATH and LD_LIBRARY_PATH.
    Test [ FAILED ] :
    Has reference to existing Oracle Homes = Properly defined
    Action:
    Refer to the following table for the necessary action to take:
    <PRE>
    Return Value          Action
    Has reference to existing     Remove any reference to existing
    Oracle Homes          Oracle Homes from PATH, CLASSPATH
                        and LD_LIBRARY_PATH.
    Some variables are set     Unset TNS_ADMIN, ORA_NLS, and
                        LD_BIND_NOW.
    Cannot access /etc/oratab     Grant read permission on
                        /etc/issue to the current user.
    </PRE>
    Rule [ 67 ]: DNS Lookup
    ~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if the host is properly registered in the DNS.
    Test [ FAILED ] :
    nslookup IP_address = Host correctly registered in DNS
    Action:
    Refer to the following table for the necessary action to take:
    <PRE>
    Return Value          Action
    nslookup host.domain     The DNS server failed to resolve the
                        nslookup using host.domain.
    nslookup IP_address     The DNS server failed to resolve the
                        nslookup using IP address.
    Cannot determine IP address Fix any problem with host IP address.
    Cannot access          Grant execute permission on
    /usr/bin/nslookup      /usr/bin/nslookup to the current
                        user.
    </PRE>
    Rule [ 68 ]: /etc/hosts format
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if /etc/hosts file contains a line with "ip_address
    fully_qualified_hostname short_hostname".
    Test [ PASSED ] :
    Contains host.domain = Contains host.domain
    Action:
    The Fuly Qualified Domain name has been set correctly.
    Rule [ 69 ]: Oracle Home length
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check that the path to the Oracle home directory is not longer than
    127 characters.
    Test [ PASSED ] :
    Less than 127 char = Less than 127 char
    Action:
    Oracle Home directory is not longer than 127 characters.
    Rule [ 70 ]: Memory for Dev Kit
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if the machine has enough memory to install Developer Kits
    install type. The minimum requirements is 256 MB.
    Test [ PASSED ] :
    Available = Available
    Action:
    The machine has enough memory to install J2EE & Webcache install type.
    Rule [ 71 ]: Memory for BI&Forms
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if the machine has enough memory to install Business
    Intelligence & Forms install type. The minimum requirements is 1 GB.
    Test [ PASSED ] :
    Available =~ Available|Install type not available
    Action:
    The machine has enough memory to install Business Intelligence & Forms
    install type.
    Rule [ 72 ]: Space for BI&Forms
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if the machine has enough disk space to install Business
    Intelligence & Forms install type. The minimum requirements is 2 GB.
    Test [ PASSED ] :
    Available =~ Available|Install type not available
    Action:
    The machine has enough disk space to install Business Intelligence &
    Forms install type.
    Rule [ 73 ]: control-center
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if the minimum required control-center package version is
    installed. For RedHat AS/ES 4.0: control-center-2.8.0-12.
    Test [ PASSED ] :
    Adequate =~ Adequate|Not required
    Action:
    The required compat-db package version or higher is installed.
    Rule [ 74 ]: xscreensaver
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Description:
    Check if the minimum required xscreensaver package version is
    installed. For RedHat AS/ES 4.0: xscreensaver-4.18-5.rhel4.2.
    Test [ PASSED ] :
    Adequate =~ Adequate|Not required
    Action:
    The required compat-db package version or higher is installed.

  • What is node and how to create a node in logical database in reports.

    What is the purpose of this nodes. Show me one example program using these nodes.Clearly show me an example with explanation. If this is taking any table means.Plz give me a clear example with my ztable.
    Tables : zptable1
    fields in this table are f1,
                                    f2,
                                    f3.

    hi,
    The sole effect of the NODES statement is to copy data from logical databases to executable programs. It defines an interface work area and is allowed only in the global declaration section of executable programs that are linked to a logical database, and in the database program of logical databases. node must be the name of a node of the logical database. NODES declares a table work area node for the respective node. The data type of the table work area is either predefined in the node of the logical database or can be chosen from a list using addition TYPE.
    The nodes of the structure of a logical database are maintained in transaction SE36
    for more go to transaction ABAPHELP and write Nodes you will get examples there and explanation
    thanks
    Sachin

  • How to rename element (node) names in an XMLType column?

    I have a source table with a xml data stored in an XMLType column.
    The xml contains elements/nodes identified by numbers. I need to replace the numbers with the appropriate names.
    The plsql below does this, but has two issues:
    i. It selects the data into a clob and does a text replace on the elements in a loop. This works, but is super slow for 3500+ xml rows (about 500 node pairs per row).
    ii. Once the data has had the element numbers replaced with the names, it inserts the new xml (clob wrapped in xmltype function) into the table with the XMLType attribute.
    The problem with the latter action is that it is failing due to nls client vs server settings, or so it appears from what I could dig up. The actual error message:
    ORA-19202: Error occurred in XML processing
    LPX-00242: invalid use of ampersand ('&') character (use &amp;)
    Error at line 3
    There are come entities in the original xml like "&#61616;" (the degree symbol).
    My question is two-fold:
    a). Can I replace the element names without straying from the xmltype datatype? If so, how?
    b). If I cannot do "a.)", then what must I do ensure that the clob gets converted correctly to xmltype and inserted into the table?
    SQL> select <some rows> from nls_database_parameters ;
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CHARACTERSET WE8ISO8859P1
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.2.0.1.0
    SQL> SELECT * FROM NLS_SESSION_PARAMETERS;
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    ----code below-----
    (note, this is a stripped down version of the original, so there may be typos)
    declare
    l_xmlclob CLOB;
    l_newxml XMLType;
    v_record_uid NUMBER(20);
    CURSOR my_cur IS
    select a.elementname,b.tagname
    from t_elements a, t_tags b
    where (a.element_uid = b.element_uid)
    begin
    select br.xml_data.getClobVal() xml_data into l_xmlclob from t_elements;
    FOR my_rec IN my_cur LOOP
    l_xmlclob := replace(l_xmlclob,my_cur.elementname,my_cur.maptag_name);
    END LOOP;
    l_newxml := XMLType(l_xmlclob);
    insert into test_translated_xml (xml_data) values (l_newxml);
    end;
    (hopefully I haven't missed anything)
    Any tips or hints would be much appreciated.
    Thanks!

    Hello again,
    Take a look at html entity codes: http://www.w3schools.com/tags/ref_entities.asp.
    You can use this:
    insert into t values (xmltype('<test>'||dbms_xmlgen.convert('this is a test &')||'deg;</test>'));
    or
    insert into t values (xmltype('<test>'||dbms_xmlgen.convert('this is a test &')||'#176;</test>'));
    see this: &deg; (& deg;) or this: &#176; (& #176;)
    SQL*Plus will not display degree character. But this is valid enitity code, and when you generate HTML out of this, it should be displayed properly in web browser.
    HTML is in fact XML, that is validated by specific DTD (Document Type Definition).
    Paweł

  • How do you get the value of an ELEMENT node?

    Which API call do you use to get the value of a simple element node, e.g. <element>value</element>
    The comments for getNodeValue in the header file oraxml.h says
    This function returns the "value" (e.g. associated data) for the given node. Only COMMENT, CDATA and TEXT nodes have data, all others return NULL.
    I've used an xpath expression to select the node that I want but now I can't get the value of the node because it is of type ELEMENT.
    When use getNodeValue I get NULL just like the comment says. Not sure what to try next.

    For parsing with XPath
    http://www.oracle.com/technology/pub/notes/technote_domparser.html

  • Adding namespace qualified element nodes

    Is there a way to add namespace qualified element nodes to
    a document stored in a BDBXML container using the XmlModify class
    (BDBXML version 2.3.10, Linux)? Or, for that matter, any other
    handles?
    Particularly, is it possible to achieve this using the PHP
    extension?
    Let me give an example.
    When doing queries, you can set a namespace in the XmlQueryContext
    or in the XQuery expression itself:
    # prefix cannot be '' as of BDBXML 2.3.10
    $qc->setnamespace('a', 'http://as-guides.com/wev1');
    declare namespace a = "http://as-guides.com/wev1"; ...
    declare default element namespace "http://as-guides.com/wev1"; ...
    You can then refer to your namespace qualified elements as "a:Bla"
    etc. Or just as "Bla" if you make your namespace the default
    namespace.
    So far, so good.
    Now what if I want to add a namespace qualified element to
    my document? However I go about setting the namespace I always end
    up with either an apparently namespace qualified element which the
    namespace is not registered for or an element in the empty
    namespace.
    What I want is my element to adhere to the namespace
    "http://as-guides.com/wev1", which is set as the default
    element namespace in my document.
    Here is an example document.
    <Broadcast xmlns="http://as-guides.com/wev1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://as-guides.com/wev1 ds.xsd">
    <Start epoch="1186100400">2007-08-03T00:20:00Z</Start>
    <End epoch="1186100700">2007-08-03T00:25:00Z</End>
    <Content>
    <Title>Tagesschau</Title>
    <Genre>Nachrichten</Genre>
    </Content>
    </Broadcast>
    And here is my PHP code.
    $docname = '2007-08-02-1186100400-25758173-ard.xml_41368';
    $mgr = new xmlmanager;
    $cont = $mgr->opencontainer($argv[1]);
    $cont->addalias('tv');
    $qc = $mgr->createquerycontext();
    $qc->setnamespace('a', 'http://as-guides.com/wev1');
    $qexp = $mgr->prepare('/a:Broadcast', $qc);
    $mod = $mgr->createmodify();
    $mod->addappendstep($qexp, XmlModify_Element, 'a:now', time());
    $doc = $cont->getdocument($docname);
    $docval = new xmlvalue($doc);
    echo $docval->asString(), "\n";
    $uc = $mgr->createupdatecontext();
    $mod->execute($docval, $qc, $uc);
    Here is what gets added as last child node under "Broadcast":
    <a:now xmlns="">1189605065</a:now>
    So the namespace prefix I specified is added verbatim, without
    regard to the namespace settings in $qc (XmlQueryContext) - which
    do work fine for the query. No namespace declaration for "a"
    is added to the document. The resulting XML is invalid, as
    xmllint correctly points out.
    namespace error : Namespace prefix a on now is not defined
    So settings in XmlQueryContext do not seem to have any bearing on
    my update. XmlUpdateContext, on the other hand, does not have any
    methods defined for setting the namespace.
    Not setting the namespace in $qc (XmlQueryContext) and specifying
    it in the XQuery itself didn't work either. I left out the call to
    "setnamespace()" and changed the query to:
    declare default element namespace "http://as-guides.com/wev1";
    /Broadcast
    And I changed "a:now" to just "now". Here is what got added:
    <now xmlns="">1189607498</now>
    I didn't expect this second version to work, but I did expect the first
    one to work.
    What is the meaning of supplying XmlQueryContext to the execute()
    method?
    Is there a way to add namespace qualified elements to a document?
    If so, how can it be done?

    Thanks for your answer, George. I haven't quite understood how to make it do the trick, though.
    To change one document I did:
    dbxml> open tv.dbxml
    dbxml> setnamespace a http://as-guides.com/wev1
    Binding a -> http://as-guides.com/wev1
    dbxml> getdoc 2007-08-02-1186104300-25758380-sat1.xml_40564
    1 documents found
    dbxml> print
    <?xml version="1.0" encoding="UTF-8"?>
    <Broadcast xmlns="http://as-guides.com/wev1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://as-guides.com/wev1 ds.xsd">
    <Start epoch="1186104300">2007-08-03T01:25:00Z</Start>
    <End epoch="1186105800">2007-08-03T01:50:00Z</End>
    <VPS>03:25</VPS>
    <Content>
    <Title>Moin</Title>
    </Content>
    </Broadcast>
    dbxml> append doc(2007-08-02-1186104300-25758380-sat1.xml_40564)/a:Broadcast element "" "<a:now xmlns:a='http://as-guides.com/wev1'>NOW</a:now>"
    Appending into nodes: doc(2007-08-02-1186104300-25758380-sat1.xml_40564)/a:Broadcast an object of type: element with name: and content: <a:now xmlns:a='http://as-guides.com/wev1'>NOW</a:now>
    0 modifications made.
    No change made to my document. I used the doc() function instead of collection() as in the example you gave. Using collection() as in your example (verbatim) I get an error message:
    stdin:17: append failed, Error: XmlModify::execute: Cannot perform a modification on an XmlValue that isn't either Node or Document type
    This is in the FAQ, but I don't quite get it.
    http://www.oracle.com/technology/products/berkeley-db/faq/xml_faq.html#49
    Anyway, I can still perform modifications outside of the container and then replace the document. Or wait till 2.4.
    Thanks for your answer and the good work. Regards,
    Michael

Maybe you are looking for

  • MSI not installing via Group Policy - Insists location does not exist

    Hi I am creating a group policy object whereby I am pointing my software package installation to \\192.168.1.3\GPO\MSOCached32bit.msi The location has permissions for the machine accounts on both the share and the ntfs permissions with read only acce

  • Missing Photo Gallery

    I've been working on a portfolio website for my girlfriend this past week, and even in iWeb its proving to be pretty tough. I've created a photo album for the site. However, when I publish and then view the published site, no album appears. Is there

  • Can't upload files to lighttp server

    Hi * I'm starting to have grey hairs abut this... My sys is Archlinux (64bit), lighttpd 1.4.29-2, curl 7.22. I'm trying to setup hhtp server with capability of upload files. After basic setup I use following command to test functionality:  curl -T "t

  • MackBook Air 13" and Samsung SyncMaster TA550 Monitor

    I have MacBook Air 13" and I try to set up Samsung TA550 27" monitor to work with it. Now my MacBook does not want to use the requested (by Samsung) resolution 1920 x 1080 but only pushes lower resolutions. How can get this solved? I connect it with

  • SD Field

    Hi All, in SD reporting we got one issue, which is below mentaioned objects 0NOQUOT_REJ-Number of rejected quotation items 0NETVALQUOT-Order value from quotation we need what is the R/3 fields names and tables for above objects Regards, Malli