Dynamic HGrid: add node
Hello,
We have some metadata, stored in database tables, populated using SQL and which
does not change at runtime. This metadata captures a hierarchical structure.
There is only one level in the hierarchy.
X
- X1
- X2
- X3
Y
- Y1
- Y2
Z
- Z1
- Z1
Now there is a seeded entity to which we want to attach part of this hierarchy or in other words one or more child nodes of above metadata.
We will capture this in custom table(s).
Say to Entity E1,
- you add X->X1, X->X2, X->X3 (all children of X), Y->Y2 and Z->Z1.
- remove/delete child X->X2
- add child Z->Z2
Dev guide says
Consider using a HGrid instead of a Tree when you want your users to either:
Manipulate the objects in the hierarchy (add, delete, move, reorder, etc.). Note that in certain cases, you may want your users to
navigate from a Tree to a HGrid to perform these actions. This is done by providing a button that switches to an "update" or "edit" mode,
which displays a HGrid instead of a Tree. But there is no sample (code and ui interaction) for adding new node to HGrid.
So I have 2 questions.
1. To capture this kind of interaction, is HGrid right UI element?
2. If YES, is there a sample showing adding a node to the HGrid?
regards, Yora
Hi Nalini,
If I understood correctly, you want to trigger mail from IT0019. Am I right?
If so, then create notification content inTcode SO10 which will contain all the information from IT0019.
Then create distribution list (DL) via Tcode SBWP and assign user ID and mail ID to whom mail should trigger. Then user ID need to maintain in T526 table
Then create feature which is copied from M0001 and you need to assign your text and DL
Then call custom feature in dynamic action under IT0019. Then mail will trigger from It0019 creation or change.
If my understanding is wrong, let me know.
Regards,
Purnima
Similar Messages
-
How to dynamically add Nodes to JTree?
How to add nodes to a Jtree by getting the information into a specific file
For example, in JList:
DefaultListModel workgroups;
workgroups = new DefaultListModel();
List<String> workgroupsList = new ArrayList<String>();
workgroupsList = ParserUtils.getWorkgroupList(ParserUtils.getConfigPath() + "\\.workgroup.properties");
if (!workgroupsList.isEmpty()){
for (String workgroup : workgroupsList){
workgroups.addElement(workgroup.toString().trim());
workgroupList = new JList(workgroups); //adds the list workgroupsThe output of this will be a JList displaying the list of workgroups per line. The list could be found in a file name "workgroup.properties"
Question is, is it possible to adapt this same method in JTree. The information per line will serve as one node in the tree. For example, I have 3 workgroups in the list, there will also be 3 nodes to be found in the tree.
Any suggestions?
THanks.There's a huge JTree example in the Swing tutorial. It's a bit of a beast to use.
-
Is it possible to dynamically create xml nodes?
Hi,
Is it possible to dynamically create child nodes of an xml
file with flash??
Im what i want to do is save a users name etc in an xml file
without having to manually add nodes in.
So when a user clicks a button to save their details a new
node is created.
ThnxYes.
Look
at XML.appendChild as a starting point. -
Dynamic reverse context node mapping at runtime
Hi!
I have an application which uses another embedded component containing a ALV table which shows the data of a transparent table.
Everything works fine if i'm working with a static table with static attributes and map the context node of the application to the node in the embedded component. The context node in the embedded component is reversed mapped and gets its data from the application's context node.
Now i want to do it dynamically. Inside the application the user should choose the name of a table and I'm using RTTI functions to get it's technical informations. At runtime i'm adding dynamically attributes (i.e. fieldname, type, length) to a static context node called 'DATA'.
The ALV component of the embedded component is mapped to an interface context node named 'DATA' which uses reverse mapping to receive data from the applications context node 'DATA'.
What I need to know is how to create the mapping between application context node and interface context node of the embedded component at runtime after i have created the attributes of the node dynamically. Is that basically possible?
I've already tried to map the both nodes statically to see if the dynamically created attributes are mapped automatically then. The mapping seems to be fine at node level, but doesn't work for the later dynamically added attributes.
Could someone point me to informations if dynamic mapping context nodes is basically possible and how to do it?
Regards
Ralf-J.Hi Lars!
Thanks for the link! The problem isn't to fill the context node dynamically. That's already working using RTTI etc.
It seems to me that the interface context node of the ALV in the embedded component doesn't recognize the dynamically added attributes. As i wrote the binding on node level (DATA->DATA), which i'm doing at design time, is working as expected, but the added attributes are only shown in the context node of the using component but not in the embedded.
I'm still thinking there must be a way to do a binding at runtime. On the other hand the comment of Glenn in the thread you've pointed me to, seems to suggest that the ALV itself might have problems with dynamically appended attributes.
Regards
Ralf-J. -
hi all
i have a self join table with following column as select statement
SELECT 1, LEVEL, a.product, ''exit'',a.techno
FROM bom_products a
CONNECT BY PRIOR a.techno = a.set_techno
START WITH a.set_techno IS NULL
that techno is pk
and set_techno is fk
and use
following code for view my tree:
DECLARE
htree ITEM;
b NUMBER;
a RECORDGROUP;
BEGIN
go_block('BLK_CHART');
htree := FIND_ITEM('BLK_CHART.T');
a := FIND_GROUP('a');
IF NOT ID_NULL(a) THEN
DELETE_GROUP(a);
END IF;
a := CREATE_GROUP_FROM_QUERY('a',
'SELECT 1, LEVEL, a.product, ''exit'',a.techno
FROM bom_products a
CONNECT BY PRIOR a.techno = a.set_techno
START WITH a.set_techno IS NULL and a.techno='''||:BLK.TECHNO||''''
b := POPULATE_GROUP(a);
FTREE.SET_TREE_PROPERTY(htree, FTREE.RECORD_GROUP, a);
END;
and no problem,
my issue is :
add child to my tree and record to my table
can any one help me to add node???????????????????WRITE THE FOLLOWING SCRIPT IN THE WHEN-BUTTON-PRESSED
INSERT INTO TABLE VALUES (NEW_DISPLAY_LABEL,NEW_VALUE);
COMMIT;
P_PARENT_NODE_VALUE:= ftree.get_tree_node_property('tree4',:system.trigger_node,ftree.node_value);
P_PARENT_NODE := Ftree.Find_Tree_Node('tree4',P_PARENT_NODE_VALUE,Ftree.FIND_NEXT, Ftree.NODE_value, Ftree.ROOT_NODE, Ftree.ROOT_NODE);
P_NEW_NODE := ftree.add_tree_node('tree4',P_PARENT_NODE,ftree.parent_offset,ftree.last_child,ftree.expanded_node,NEW_DISPLAY_LABEL,null,NEW_VALUE);
Message was edited by:
zakaoullah -
Add node to a specific node in JTree
I use the following TreePanel class to add node to the tree. My question is how to add a new node under
a specific node which has been created before. In other words, how to get the path and identify the node.
For e.g., I first loaded some raw data files and created the "raw data" node, later I need to load another file
and create a new node under the "raw data" node. Each node is created by using user object. Any help is greatly appreicated.
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.tree.*;
public class TreePanel extends JPanel {
protected DefaultMutableTreeNode rootNode;
protected DefaultTreeModel treeModel;
protected JTree tree;
public TreePanel() {
super(new GridLayout(1,0));
rootNode = new DefaultMutableTreeNode("Experiment");
treeModel = new DefaultTreeModel(rootNode);
tree = new JTree(treeModel);
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.setShowsRootHandles(true);
JScrollPane scrollPane = new JScrollPane(tree);
add(scrollPane);
public JTree getTree(){
return tree;
/* Add child to the currently selected node. */
public DefaultMutableTreeNode addObject(Object child){
DefaultMutableTreeNode parentNode = null;
TreePath parentPath = tree.getSelectionPath();
if(parentPath == null){
parentNode = rootNode;
else{
parentNode = (DefaultMutableTreeNode)(parentPath.getLastPathComponent());
return addObject(parentNode, child, true);
/* Add child */
public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent, Object child){
return addObject(parent, child, false);
/* Add child */
public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent, Object child, boolean shouldBeVisible){
DefaultMutableTreeNode childNode = new DefaultMutableTreeNode(child);
if(parent == null){parent = rootNode;}
treeModel.insertNodeInto(childNode, parent, parent.getChildCount());
if(shouldBeVisible){
tree.scrollPathToVisible(new TreePath(childNode.getPath()));
return childNode;
/* Add child */
public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent, DefaultMutableTreeNode child){
if(parent == null){parent = rootNode;}
treeModel.insertNodeInto(child, parent, parent.getChildCount());
return child;
}Thanks in advance!public static DefaultMutableTreeNode findNode(DefaultMutableTreeNode from, Object userObject) {
if (userObject == null && from.getUserObject() == null) {
return from;
} else if (userObject.equals(from.getUserObject())) {
return from;
DefaultMutableTreeNode node = null;
for (int i = 0; i < from.getChildCount(); i ++) {
node = (DefaultMutableTreeNode) from.getChildAt(i);
if (userObject == null) {
if (userObject == node.getUserObject()) {
break;
} else {
if (userObject.equals(node.getUserObject())) {
break;
node = null;
if (node != null) {
return node;
//Node not found
//dig deeper
for (int i = 0; i < from.getChildCount(); i ++) {
node = (DefaultMutableTreeNode) from.getChildAt(i);
if (!node.isLeaf()) {
node = findNode(node, userObject);
if (node != null) {
return node;
//Not found
return null;
} -
Hey, I am currently migrating my cluster.
I removed the server pool master according to the metalink note by doing a failover (stopped the agent on the server pool master)
Deleted the old master (node2) from the server pool.
Executed the cleanup script on node2 and switched it off
Modified the cluster.conf on the remaining node and remove the entries for the old master node2.
Replaced the old server with new hardware -
same name - same ip.
Now I try to add this server to the server pool, but I get a timeout message
OVM-1006 Register Oracle VM Server (node2) Failed: errcode=00001, errmsg=CDS accquire lock /etc/ovs-agent/db/srv.lock timeout. locker process is 8339
Where can I look ?
ChristianLemeunier wrote:
> environment: sles 10 sp3, oes2, cluster services
>
> problem: reconfiguring oes to add a node to the cluster is causing the
> error *failed to add node to cluster*
>
> history: I installed a 4 node cluster in a HP C7000 blade. We had to
> replace the network switch in the blade center by a virtual connect
> flex-10. This resulted in a loss of network connectivity, so I removed 3
> of 4 nodes from cluster and eDirectory.
> This worked fine, replication and time synchronisation was succesfully
> and all server objects belonging to these 3 servers were deleted.
>
> Now the new switch has been configured and network connection
> reestablished. Reconfiguring eDirectory and other oes2 services
> succeeds, alle server objects are recreated, eDirectory is in sync, but
> reconfiguring cluster services does not succeed.
>
> What do I have to do, to reconfigure cluster service and add nodes to
> the cluster?
>
> Thank you for all hints.
>
> Ursula
>
>
Did you remove the cluster rpms and then reinstall the rpms. I would
recommend following TID 3131978 and see if that helps. -
Program to add node / delete node in the tree control via abap object
Hi all,
i am new to abap objects.
Can anyone help me out to give program about add node , delete node at
a particular point in tree hierarchy.
folder1 -- level 1
subfolder1 -- level 2
*********subfolder1 -- level 3
*********subfolder2 -- level 3
subfolder2 -- level 2
folder2 -- level 1
if i select level3 and click on ADD button .....i get a facility to add new node
at level 3 and and same thing can happen at level1 and level2 ............ if i select
and folder at level3 and click on delete button ....it should delete that folder...
if you do not have such program ........then guide me how to achieve this target via object oriented because i have to split the screen also and have to show some alve display in that.
just guide me how to add and delete node at a particular level in tree structure....
thanks in advance........Hello Ravi,
Try this demo program:
<b>BCALV_TREE_01</b>
<b>BCALV_TREE_DEMO</b>
BCALV_TREE_SIMPLE_DEMO
Also try:
BCALV_TREE_02
BCALV_TREE_03
BCALV_TREE_04
BCALV_TREE_05
BCALV_TREE_06
regards,
Beejal
**reward if this helps -
Hi all,
i would like to add datas into my xml model but i don't manage to do it.
Here is the context :
-I have an xml file which represents a tree
-When the xml model is loaded, i bound it to a tree
-Then i add nodes to my tree ( aNode.addNode(new Node ) )
When adding a node, i would like the node to be represented to my model;
e.g : before adding a node
<node name="node1">
<node name="node1_1"/>
<node name="node1_2"/>
</node>
after the node is added :
<node name="node1">
<node name="node1_1"/>
<node name="node1_2"/>
<node name="new node"/>
</node>
I have tried xml setProperty:
oModel.setProperty(myPath,data);
oModel.setProperty(myPath,data,oContext);
Can somebody help me to achieve this?
Thanks,
best regards,
MarcThanks for this fast reply, i try it and i come back to you
Edit :
Here is my xml file :
<?xml version="1.0" encoding="utf-8"?>
<objectSet version="1.2.3.4">
<aRoot code="testCode" reference="0123456789" description="TestDescription"
owner="Tester">
<component name="MyCompo1" type="MyCompo1Type">
<component name="MyCompo2" type="MyCompo2Type">
<property name="myProperty2-1" type="string" value="null" />
<property name="myProperty2-2" type="string" value="null" />
<property name="myProperty2-3" type="string" value="null" />
</component>
<component name="MyCompo3" type="MyCompo3Type">
<property name="myProperty3-1" type="string" value="null" />
</component>
</component>
</aRoot>
</objectSet>
I made a button with the fellowing function attached :
aTestFunction: function(oEvent){
console.log("Test");
var tree = this.byId("myTree");
var oModel = tree.getModel();
var pty = oModel.getProperty("/aRoot/MyCompo1"); // Empty; path is not good
var pty1 = oModel.getProperty("/aRoot/component");//something but only whitespaces when printing
console.log(pty);//empty
console.log(pty1);// a lot of whitespaces (9lines of different sizes)
pty1.push("node");//Error, pty1.push is not a function
oModel.setProperty("/aRoot/component",pty1);
The argument of pty1.push is not good, but the function cannot be even called.
Another try? -
I have two node RAC. One node has OS issue so we have to reinstall OS and Now I want to add new node.But ORACLE_HOME and ORA_CRS_HOME will be different for second home.
Is it possible to have ORACLE_HOME differnt on each home?
Means one the first node ORACLE_HOME is /opt/oracle/product/10.2.0/crs
and on second node ORACLE_HOME will /export/home/oracle/product/10.2.0/crs
How to add node in such condition?I have followed ML NOTE: 270512.1 and I am able to add clusterware on second Node
When I have tried to "Add the RAC software to the new node" at time I am getting bellow error
OUI-10009: There are no new nodes to add to this installation
I have genrated trace using this command
./addNode.sh "CLUSTER_NEW_NODES=bullhead-rac2" -logLevel trace -debug
Here it is
Oracle Universal Installer, Version 10.2.0.3.0 Production
Copyright (C) 1999, 2006, Oracle. All rights reserved.
[main] [13:54:16:457] [NativeSystem.<init>:259] NullSecurityManager is set for Native System calls
[main] [13:54:16:464] [Library.getInstance:95] Created instance of Library.
[main] [13:54:16:465] [Version.isPre10i:189] isPre10i.java: Returning FALSE
[main] [13:54:16:466] [UnixSystem.getCSSConfigType:2014] configFile=/var/opt/oracle/ocr.loc
[main] [13:54:16:475] [Utils.getPropertyValue:221] keyName=ocrconfig_loc props.val=/dev/rdsk/c3t1d0s1 propValue=/dev/rdsk/c3t1d0s1
[main] [13:54:16:476] [Utils.getPropertyValue:292] propName=local_only propValue=FALSE
[main] [13:54:16:477] [UnixSystem.getCSSConfigType:2058] configType=false
[main] [13:54:16:481] [Version.isPre10i:189] isPre10i.java: Returning FALSE
[main] [13:54:16:482] [ClusterInfo.<init>:222] m_olsnodesPath=/oracle/product/10.2.0/crs/bin/olsnodes
[main] [13:54:16:485] [RuntimeExec.runCommand:74] Calling Runtime.exec() with the command
[main] [13:54:16:486] [RuntimeExec.runCommand:76] /oracle/product/10.2.0/crs/bin/olsnodes
[main] [13:54:16:550] [RuntimeExec.runCommand:131] runCommand: Waiting for the process
[Thread-2] [13:54:16:551] [StreamReader.run:61] In StreamReader.run
[Thread-3] [13:54:16:551] [StreamReader.run:61] In StreamReader.run
[Thread-2] [13:54:17:965] [StreamReader.run:65] OUTPUT>catfish-rac1
[Thread-2] [13:54:17:969] [StreamReader.run:65] OUTPUT>bullhead-rac2
[main] [13:54:18:62] [RuntimeExec.runCommand:133] runCommand: process returns 0
[main] [13:54:18:63] [RuntimeExec.runCommand:147] RunTimeExec: output>
[main] [13:54:18:64] [RuntimeExec.runCommand:150] catfish-rac1
[main] [13:54:18:64] [RuntimeExec.runCommand:150] bullhead-rac2
[main] [13:54:18:65] [RuntimeExec.runCommand:155] RunTimeExec: error>
[main] [13:54:18:66] [RuntimeExec.runCommand:175] Returning from RunTimeExec.runCommand
[main] [13:54:18:66] [ClusterInfo.getNodeNames:341] Number of nodes=2
[main] [13:54:18:69] [ClusterInfo.getLocalNodeName:242] cmd=/oracle/product/10.2.0/crs/bin/olsnodes -l
[main] [13:54:18:69] [RuntimeExec.runCommand:74] Calling Runtime.exec() with the command
[main] [13:54:18:70] [RuntimeExec.runCommand:76] /oracle/product/10.2.0/crs/bin/olsnodes
[main] [13:54:18:70] [RuntimeExec.runCommand:76] -l
[Thread-5] [13:54:18:134] [StreamReader.run:61] In StreamReader.run
[main] [13:54:18:135] [RuntimeExec.runCommand:131] runCommand: Waiting for the process
[Thread-4] [13:54:18:134] [StreamReader.run:61] In StreamReader.run
[Thread-4] [13:54:19:560] [StreamReader.run:65] OUTPUT>catfish-rac1
[main] [13:54:19:626] [RuntimeExec.runCommand:133] runCommand: process returns 0
[main] [13:54:19:627] [RuntimeExec.runCommand:147] RunTimeExec: output>
[main] [13:54:19:628] [RuntimeExec.runCommand:150] catfish-rac1
[main] [13:54:19:628] [RuntimeExec.runCommand:155] RunTimeExec: error>
[main] [13:54:19:629] [RuntimeExec.runCommand:175] Returning from RunTimeExec.runCommand
[main] [13:54:19:630] [ClusterInfo.getLocalNodeName:247] exit value 0
[main] [13:54:19:631] [ClusterInfo.getLocalNodeName:253] output.length=1
[main] [13:54:19:631] [ClusterInfo.getLocalNodeName:257] output[0]=catfish-rac1
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
LD_LIBRARY_PATH environment variable :
Total args: 25
Command line argument array elements ...
Arg:0:../../jdk/jre/bin/java:
Arg:1:-Doracle.installer.library_loc=../lib/solaris:
Arg:2:-Doracle.installer.oui_loc=/oracle/product/10.2.0/db_1/oui/bin/..:
Arg:3:-Doracle.installer.bootstrap=FALSE:
Arg:4:-Doracle.installer.startup_location=/oracle/product/10.2.0/db_1/oui/bin:
Arg:5:-Doracle.installer.jre_loc=../../jre:
Arg:6:-Doracle.installer.nlsEnabled="TRUE":
Arg:7:-Doracle.installer.prereqConfigLoc= :
Arg:8:-Doracle.installer.unixVersion=5.10:
Arg:9:-mx96m:
Arg:10:-cp:
Arg:11:/tmp/OraInstall2007-10-09_01-54-01PM:../jlib/OraInstaller.jar:../jlib/oneclick.jar:../jlib/xmlparserv2.jar:../jlib/srvm.jar:../jlib/share.jar:../jlib/
OraInstallerNet.jar:../jlib/xml.jar:../jlib/orai18n-collation.jar:../jlib/orai18n-mapping.jar:../jlib/emCfg.jar:../jlib/ojmisc.jar:../jlib/InstImages.jar:../
jlib/InstHelp.jar:../jlib/InstHelp_de.jar:../jlib/InstHelp_es.jar:../jlib/InstHelp_fr.jar:../jlib/InstHelp_it.jar:../jlib/InstHelp_ja.jar:../jlib/InstHelp_ko
.jar:../jlib/InstHelp_pt_BR.jar:../jlib/InstHelp_zh_CN.jar:../jlib/InstHelp_zh_TW.jar:../jlib/oracle_ice.jar:../jlib/help4.jar:../jlib/help4-nls.jar:../jlib/
ewt3.jar:../jlib/ewt3-swingaccess.jar:../jlib/ewt3-nls.jar:../jlib/swingaccess.jar:../jlib/classes12.jar::../jlib/OraPrereq.jar:../jlib/jewt4.jar:../jlib/jew
t4-nls.jar:
Arg:12:oracle.sysman.oii.oiic.OiicInstaller:
Arg:13:-scratchPath:
Arg:14:/tmp/OraInstall2007-10-09_01-54-01PM:
Arg:15:-sourceType:
Arg:16:network:
Arg:17:-timestamp:
Arg:18:2007-10-09_01-54-01PM:
Arg:19:-addNode:
Arg:20:ORACLE_HOME=/oracle/product/10.2.0/db_1:
Arg:21:CLUSTER_NEW_NODES=bullhead-rac2:
Arg:22:-logLevel:
Arg:23:severe:
Arg:24:-debug:
Initializing Java Virtual Machine from ../../jdk/jre/bin/java. Please wait... -
How to add node in Java system NW 7.3 ehp1
Hi Everyone,
Hoe to add node in JAva System in Nw 7.3 ehp1.
Whats are point which need to keep in mind before adding node?
Regards
AdilHi Adil,
Follow the below steps
1.Start the Config Tool by double-clicking the configtool script file in <SAP_install_dir>/<system_name>/<instance_name>/j2ee/configtool directory.
2.choose the Java instance according to the level you want to make configurations.
3.Choose the Servers tab.
4.In the Custom Number of Server Processes field, enter the number of server processes you want to have. Click on set and save the configuration
Choose Check Value to verify that your server is capable of handling the number of server processes you entered. Correct the value if necessary.
Restart the java engine.
You need adjust the heap memory accordingly
SAP Note 723909 - Java VM settings for J2EE 6.40/7.0
Checked the sapnote if java don't come up
1658950 - J2EE System fails with "exitcode = -2"
http://scn.sap.com/community/performance-scalability/blog/2013/08/29/java-memory-sizing-procedure-pragmatic-approach
With Regards
Ashutosh Chaturvedi -
Macking button to expand the tree and collapse tree and another to add node
macking button to expand the tree and collapse tree and another to add node and saving the changes in the database ( this is problem)
and finally delete node from database
so what is proper code for those buttons
thanks my mail is :
[email protected]Hello,
Use the ftree package's functions
code to expand all nodes:
PROCEDURE explose_tree IS
node ftree.node;
htree ITEM;
state varchar2(30);
BEGIN
-- search the tree ID --
htree := Find_Item('BL_TREE.TREE_1');
-- search the root --
node := Ftree.Find_Tree_Node(htree, '');
-- expand all nodes --
WHILE NOT Ftree.ID_NULL(node) LOOP
state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
IF state = Ftree.COLLAPSED_NODE THEN
Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.EXPANDED_NODE);
END IF;
node := Ftree.Find_Tree_Node(htree, '', ftree.find_NEXT,Ftree.NODE_LABEL,'', node);
END LOOP;
END;and to collapse all nodes:
PROCEDURE Implose_tree IS
node ftree.node;
htree ITEM;
state varchar2(30);
BEGIN
-- search the root ID --
htree := Find_Item('BL_TREE.TREE_1');
-- search the root --
node := Ftree.Find_Tree_Node(htree, '');
-- Collapse all nodes --
WHILE NOT ftree.ID_NULL(node) LOOP
state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
IF state = Ftree.EXPANDED_NODE THEN
Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.COLLAPSED_NODE);
END IF;
node := Ftree.Find_Tree_Node(htree, '', Ftree.FIND_NEXT,Ftree.NODE_LABEL, '', node);
END LOOP;
END; Francois -
Hello,
I am trying to add node to two-node Oracle RAC 11g, but I got
an error. I follow the steps:
# export ORACLE_HOME=/u01/app/11.2.0/grid
# cd $ORACLE_HOME/oui/bin
# ./addNode.sh -silent "CLUSTER_NEW_NODES={rac3}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={rac3-vip}"So, Follows the log file:
INFO: Environment Variables:
INFO: ORACLE_HOME = /u01/app/11.2.0/grid
INFO: PATH = /u01/app/oracle/product/11.2.0/db_1/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/b
in
INFO: CLASSPATH =
INFO: Username:oracle
INFO: Install area Control created with access level 1
INFO: Oracle Universal Installer version is 11.2.0.1.0
INFO: Setting variable 'ORACLE_HOME' to '/u01/app/11.2.0/grid'. Received the value from the command line.
INFO: Setting variable 'CLUSTER_NEW_NODES' to 'rac3'. Received the value from the command line.
INFO: Setting variable 'CLUSTER_NEW_VIRTUAL_HOSTNAMES' to 'rac3-vip'. Received the value from the command line.
INFO: Setting variable 'PREREQ_CONFIG_LOCATION' to ''. Received the value from variable association.
INFO: Setting variable 'FROM_LOCATION' to '/u01/app/11.2.0/grid/inventory/ContentsXML/comps.xml'. Received the value from a co
de block.
INFO: Setting variable 'ROOTSH_LOCATION' to '/u01/app/11.2.0/grid/root.sh'. Received the value from a code block.
INFO: Setting variable 'ROOTSH_STATUS' to '3'. Received the value from a code block.
INFO: Setting variable 'ORACLE_HOME' to '/u01/app/11.2.0/grid'. Received the value from the command line.
INFO: Setting variable 'CLUSTER_NEW_NODES' to 'rac3'. Received the value from the command line.
INFO: Setting variable 'CLUSTER_NEW_VIRTUAL_HOSTNAMES' to 'rac3-vip'. Received the value from the command line.
INFO: Setting variable 'PREREQ_CONFIG_LOCATION' to ''. Received the value from variable association.
INFO: Setting variable 'FROM_LOCATION' to '/u01/app/11.2.0/grid/inventory/ContentsXML/comps.xml'. Received the value from a code block.
INFO: Setting variable 'ROOTSH_LOCATION' to '/u01/app/11.2.0/grid/root.sh'. Received the value from a code block.
INFO: Setting variable 'ROOTSH_STATUS' to '3'. Received the value from a code block.
INFO:
*** Welcome Page***
INFO: Setting variable 'ORACLE_HOME_NAME' to 'Ora11g_gridinfrahome1'. Received the value from a code block.
INFO: SRVM ClusterInfo.IsLocalOnly() called. Return value obtained is 'true'.
INFO: The CRS clusterware location for 'oracle.crs 10.1.0.2.0' is '/u01/app/11.2.0/grid'.
INFO: CRS clusterware detected.
INFO: Vendor clusterware is not detected.
INFO: Local node 'rac1' is derived from the Oracle home properties.
INFO: Setting variable 'LOCAL_NODE' to 'rac1'. Received the value from a code block.
INFO: Setting variable 'EXISTING_REMOTE_NODES' to 'rac2'. Received the value from a code block.
INFO: Setting variable 'REMOTE_NODES' to 'rac3'. Received the value from a code block.
INFO: Setting the 'ExistingClusterNodes' property to 'rac1,rac2'.
INFO: Setting the 'EnableVirtualHostNameEntry' property to 'true'.
INFO: Setting the 'NewNodes ( CLUSTER_NEW_NODES )' property to 'rac3'. Received the value from the command line.
INFO: Setting variable 'REMOTE_NODES' to 'rac3'. Received the value from a code block.
INFO: Setting variable 'CLUSTER_NODES' to 'rac1,rac2,rac3'. Received the value from a code block.
INFO: Performing tests to see whether nodes rac2,rac3 are available
INFO: Validating nodes rac2...
INFO: Checking if nodes are alive...
INFO: Validating user equivalence...
INFO: Validating nodes rac3...
INFO: Checking if nodes are alive...
INFO: Validating user equivalence...
INFO: Status of nodes in the cluster:
Status of node 'rac2':
Node is okay
Status of node 'rac3':
null
SEVERE: The selected remote nodes 'rac3' are not accessible.
INFO: User Selected: Yes/OKWhen I try ping to the new node, it is okay.
So, can you help, please?
Thank you very much.Hello,
Very good tip. Thank you very much.
On more question. After addNode.sh, when I peform the /u01/app/11.2.0/grid/root.sh, I got error:
[root@rac3 ~]# /u01/app/11.2.0/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/11.2.0/grid
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 /etc/oratab file...
Entries will be added to the /etc/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.
2011-04-08 14:04:34: Parsing the host name
2011-04-08 14:04:34: Checking for super user privileges
2011-04-08 14:04:34: User has super user privileges
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
FATAL: Module oracleoks not found.
FATAL: Module oracleadvm not found.
FATAL: Module oracleacfs not found.
acfsroot: ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec.
acfsroot: ACFS-9310: ADVM/ACFS installation failed.
acfsroot: ACFS-9311: not all components were detected after the installation.
CRS-2672: Attempting to start 'ora.gipcd' on 'rac3'
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac3'
CRS-2676: Start of 'ora.gipcd' on 'rac3' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'rac3' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac3'
CRS-2676: Start of 'ora.gpnpd' on 'rac3' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac3'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac3' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac3'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac3'
CRS-2676: Start of 'ora.diskmon' on 'rac3' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac3' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac3'
CRS-2676: Start of 'ora.ctssd' on 'rac3' succeeded
DiskGroup DATA creation failed with the following message:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification 'ORCL:DISK5' matches no disks
ORA-15031: disk specification 'ORCL:DISK4' matches no disks
ORA-15031: disk specification 'ORCL:DISK3' matches no disks
ORA-15031: disk specification 'ORCL:DISK2' matches no disks
ORA-15031: disk specification 'ORCL:DISK1' matches no disks
Configuration of ASM failed, see logs for details
Did not succssfully configure and start ASM
CRS-2500: Cannot stop resource 'ora.crsd' as it is not running
CRS-4000: Command Stop failed, or completed with errors.
Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.crsd -init
Stop of resource "ora.crsd -init" failed
Failed to stop CRSD
CRS-2673: Attempting to stop 'ora.asm' on 'rac3'
CRS-2677: Stop of 'ora.asm' on 'rac3' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac3'
CRS-2677: Stop of 'ora.ctssd' on 'rac3' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac3'
CRS-2677: Stop of 'ora.cssdmonitor' on 'rac3' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac3'
CRS-2677: Stop of 'ora.cssd' on 'rac3' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac3'Can you help about these problems?
thank you. -
After del/add Node, there are Agent issues
Dear Expert
i have GC12c to monitor Exadata Machine
i face problem with Grid_home in Node_1
then we follow proceduer for del/add node from RAC
now agent in node_1
Agent Version : 12.1.0.1.0
OMS Version : (unknown)
Protocol Version : 12.1.0.1.0
Agent Home : /u01/GC_home_last/agent_inst
Agent Binaries : /u01/GC_home_last/core/12.1.0.1.0
Agent Process ID : xxxxx
Parent Process ID : xxxxx
Agent URL : https://xxxxxxxxx
Repository URL : https://xxxxxx
Started at : 2012-02-04 23:36:24
Started by user : oracle
Last Reload : 2012-02-05 09:13:03
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 853
Size of XML files pending upload(MB) : 18.61
Available disk space on upload filesystem : 68.29%
Collection Status : Collections enabled
Last attempted heartbeat to OMS : 2012-02-05 09:14:04
Last successful heartbeat to OMS : (none)
How can i establish connection between agent and OMS
THanks In advance
Samiwe have OEM 12c to monitor Exadata
every thing were good
we faced problem
Then we deleted node and add it again to our cluster enviroment.(crs_home deleted)
The agent which was deployed early on the node that was deleted now is unavailbel/unreachable
i got below msg from GCEM
Plugin mismatches between agent and repository. Check plugin:[ The plug-in is oracle.sysman.empa Version in pla inventory : null Version on agent : 12.1.0.1.0 Content type : DISCOVERY Error code : INCOMPATIBILITY_WITH_OMS Error Msg : This plug-in is incompatible with the current version of plug-in deployed on the OMS, The plug-in is oracle.sysman.emfa Version in pla inventory : null Version on agent : 12.1.0.1.0 Content type : DISCOVERY Error code : INCOMPATIBILITY_WITH_OMS Error Msg : This plug-in is incompatible with the current version of plug-in deployed on the OMS]
from agent Home:
Agent Version : 12.1.0.1.0
OMS Version : (unknown)
Protocol Version : 12.1.0.1.0
Agent Home : /u01/GC_home_last/agent_inst
Agent Binaries : /u01/GC_home_last/core/12.1.0.1.0
Agent Process ID : xxxxx
Parent Process ID : xxxxx
Agent URL : https://xxxxxxxxx
Repository URL : https://xxxxxx
Started at : 2012-02-04 23:36:24
Started by user : oracle
Last Reload : 2012-02-05 09:13:03
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 853
Size of XML files pending upload(MB) : 18.61
Available disk space on upload filesystem : 68.29%
Collection Status : Collections enabled
Last attempted heartbeat to OMS : 2012-02-05 09:14:04
Last successful heartbeat to OMS : (none) -
How to add node value using org.w3c.dom.Document?
Hi ,
I'm using org.w3c.dom.Document to deal with xml files. I could successfully add nodes , and their attributes. However I could not add a value of the node. (e.g. <myNode>I couldn't add this value</myNode>)
does anyone know how to deal with this?
I tried subNode.setNodeValue("the value i can't add"); whereas the subNode is an instance of org.w3c.dom.Node... i know this is interface i of course used the concrete class
org.apache.crimson.tree.ElementNode
but when I used the subNode.getNodeValue() i simply got null?
can u plz help me?
thanks in advanceReading the API documentation for the Node interface might help. At least you wouldn't be surprised when the results are exactly what the documentation says they will be.
What would really help would be forgetting the idea that an Element can have a value. Text nodes have values, though, so create a Text node and make it the child of the Element node.
Maybe you are looking for
-
LOP days are not calculated properly
Dear Experts, I am new to TM, i have configured abscence type for LOP. but when i maintained the same in IT 2001 for an employee for the entire month, the absence days calculated is only for working days i.e 22 days. but i want it to calculate for th
-
How To Turn Off Slicer Correlation
Hello, I'm wondering how I can turn off correlation so when one item is selected in a slicer, correlation to the other slicer items would not be associated. See attached image. EPG is selected in the left slicer, right slicer automatically filters
-
Hi every body How is everybody doing? Does 802.1x require the usage of EAP ? or can we use 802.1x without using EAP? thanks and have a geat weekend.
-
Nested Strucutre in RFC Function Module
Hello All I am trying to pass a nested structure(of TABLE TYPE, with tree structure) in a RFC , but its not getting activated when I am making it remote enabled, its giving message "Only tables with flat line structure are allowed in RFC". Can anyone
-
Getting notification when the APP is closed (Android, iOS)
Hi I'v been searching for a while with no luck. Is there a way to get notifications even when the APP is not opened. As I can some native APPs have some kind of notification system which works even if the APP is not opened. Is there a way to do that