Execute Script - How to Update second node in XML group
Hi,
I have an XML variable "myXML" which is set to:
<root>
<nodes>
<node>
<value>a</value>
</node>
<node>
<value>b</value>
</node>
</nodes>
</root>
Question - within an Execute script, how can I easily access and update the second node value? i.e. change "b" to "c"
The following fails in Execute Script (although it is possible using an XPath expression in a SetValue
patExecContext.setProcessDataValue("/process_data/myXML/root/nodes/node[1]/value", "c");
If I have square brackets in this expression then it fails with a nasty error
Is there an easy way?
I tired your script in my sandbox and its working fine without fail.
I noticed an additional space in your xpath expression
patExecContext.setProcessDataValue("/process_data/myXML/root/nodes/no de[1]/value", "c");
Can you remove the space within node tag and try again?
Nith
Similar Messages
-
How to update multiple elements in xml?
Hi!
I've a input xml containing Sales Order information.
The xml-file has a Header and multiple detail records
e.g.
<NS3:header>
+ <NS3:detail>
+ <NS3:detail>
+ <NS3:detail>
+ <NS3:detail>
+ <NS3:detail>
+ <NS3:detail>
+ <NS3:detail>
</NS3:header>
In each detail node, I want to control if requestedDate is a working day and change date if it's not correct
e.g.
<NS3:detail>
-<NS3:product>
-<NS3:item>
<NS3:itemProduct>222288
</NS3:itemProduct>
</NS3:item>
</NS3:product>
<NS3:quantityOrdered>2
</NS3:quantityOrdered>
-<NS3:processing>
<NS3:actionType>A
</NS3:actionType>
</NS3:processing>
<NS3:dateRequested>2012-03-03T13:17:48.439+01:00
</NS3:dateRequested>
</NS3:detail>
In this example is <NS3:dateRequested>2012-03-03T13:17:48.439+01:00</NS3:dateRequested> a Saturday and this element should be updated with the new date for Monday <NS3:dateRequested>2012-03-05T13:17:48.439+01:00</NS3:dateRequested>
The new date is fetched from a Web Service I invoke for each detail record.
I can read each node and get the element for each dateRequested in a while loop by using XPATH as following:
<scope name="Scope_1">
<sequence name="Sequence_2">
<assign name="Assign_3">
<copy>
<from expression="ora:countNodes('inputVariable','payload','/ns1:processSalesOrderElement/ns1:header/ns1:detail')"/>
<to variable="Count"/>
</copy>
<copy>
<from expression="1"/>
<to variable="varindex"/>
</copy>
</assign>
<while name="While_1"
condition="bpws:getVariableData('varindex')<bpws:getVariableData('Count')">
<sequence name="Sequence_1">
<assign name="Assign_6">
<copy>
<from expression="ora:getElement('inputVariable','payload','/ns1:processSalesOrderElement/ns1:header/ns1:detail',bpws:getVariableData('varindex'))"/>
<to variable="outputVariable" part="payload"
query="/ns1:processSalesOrderElement/ns1:header/ns1:detail"/>
</copy>
</assign>
<assign name="Assign_4">
<copy>
<from expression="ora:getElement('inputVariable','payload','/ns1:processSalesOrderElement/ns1:header/ns1:detail/ns1:dateRequested',bpws:getVariableData('varindex'))"/>
<to variable="outputVariable" part="payload"
query="/ns1:processSalesOrderElement/ns1:header/ns1:detail/ns1:dateRequested"/>
</copy>
</assign>
<assign name="Assign_1">
<copy>
<from expression="bpws:getVariableData('varindex') + 1"/>
<to variable="varindex"/>
</copy>
<copy>
<from variable="inputVariable" part="payload"
query="/ns1:processSalesOrderElement/ns1:header/ns1:businessUnit"/>
<to variable="Invoke_1_startSecureCustomerRequestDate_InputVariable"
part="parameters"
query="/ns5:startSecureCustomerRequestDateElement/ns5:businessUnit"/>
</copy>
<copy>
<from variable="outputVariable" part="payload"
query="/ns1:processSalesOrderElement/ns1:header/ns1:detail/ns1:dateRequested"/>
<to variable="Invoke_1_startSecureCustomerRequestDate_InputVariable"
part="parameters"
query="/ns5:startSecureCustomerRequestDateElement/ns5:jdDateRequestedJulian_DRQJ"/>
</copy>
</assign>
<invoke name="Invoke_1"
partnerLink="BT_SecureCustomerRequestDateManager"
portType="ns4:Oracle_E1_SBF_SEI_PkgBldFile_BT_SecureCustomerRequestDateManager"
operation="startSecureCustomerRequestDate"
inputVariable="Invoke_1_startSecureCustomerRequestDate_InputVariable"
outputVariable="Invoke_1_startSecureCustomerRequestDate_OutputVariable"/>
<scope name="Scope_2">
<sequence name="Sequence_3">
<assign name="Assign_5">
<copy>
<from variable="Invoke_1_startSecureCustomerRequestDate_OutputVariable"
part="result"
query="/ns5:startSecureCustomerRequestDateResponseElement/ns5:jdDateRequestedJulian_DRQJ"/>
<to variable="outputVariable" part="payload"
query="/ns1:processSalesOrderElement/ns1:header/ns1:dateRequested"/>
</copy>
</assign>
</sequence>
</scope>
</sequence>
</while>
My problem is how to update the date for each detail record back to my InputVariable.
There is no XPATH function like updateElement or changeElement?!?
I will use the information from InputVariable with the manipulated dateRequested later on to Invoke WS to create Sales Order in a target system.
Thanks,
NiklasHi Niklas,
have you considered also moving from assign activities to transformations?
e.g. (in a loop)
1. using an XSLT to prepare data for the 'BT_SecureCustomerRequestDateManager'
-- input document ... from 'inputVariable'
-- input parameter ... from 'varindex'
-- output ................ to 'Invoke_1_startSecureCustomerRequestDate_InputVariable'
2. invoking 'BT_SecureCustomerRequestDateManager'
3. using an XSLT to modify 'inputVariable'
-- input document ... from 'inputVariable'
-- input parameter ... from 'varindex'
-- input parameter ... output from 'BT_SecureCustomerRequestDateManager'
-- output ................ to 'inputVariable'
Then you will not need to create custom Java program (code). It is easy to do the logic/modification inside of an XSLT.
Also BPEL process code will be easier to read.
Regards,
Martin. -
How to update combobox that with xml source binding when xml updated in Powershell
I'm just newbie to WPF & Powershell. Currently have a Powershell program with XAML UI. Herein a combobox control binding a xml file. The problem lays in how can I update the combobox once xml updated? Thanks in advance!
Hello sihat,
I've read some articles about using PowerShell and WPF:
https://msdn.microsoft.com/en-us/magazine/hh288074.aspx
http://blogs.technet.com/b/heyscriptingguy/archive/2014/04/06/weekend-scripter-build-a-clock-widget-by-using-powershell-and-wpf.aspx
It seems the steps are all related to using PowerShell to create WPF UI. As the script comes from PowerShell I would think that PowerShell related forum may much better.
I will introduce things in WPF, if you want to make UI update based on your source, the source must implement a suitable property change notification mechanism such as
INotifyPropertyChanged. See
How to: Implement Property Change Notification for an example of an
INotifyPropertyChanged implementation.
For more details about this WPF scenario, please see WPF databinding:
https://msdn.microsoft.com/en-us/library/ms752347(v=vs.110).aspx
If you want to do the same in PowerShell, please consider to post on PowerShell related forum to ask how you can write the same script.
Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to update the value in xml file using transformer after setNodeValue
Hi,
This is my code
I want to set update the values in xml file using transformer..
Any one can help me
This is my Xml file
<?xml version="1.0" encoding="UTF-8"?>
<place>
<name>chennai</name>
</place>
Jsp Page
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="javax.xml.parsers.DocumentBuilderFactory,
javax.xml.parsers.DocumentBuilder,org.w3c.dom.*,org.w3c.dom.Element"
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<% String str="";
String str1="";
try
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse("http://localhost:8084/XmlApplication1/sss.xml");
out.println("Before change");
NodeList n11 = doc.getElementsByTagName("name");
Node n22= n11.item(0).getFirstChild();
str1 = n22.getNodeValue();
out.println(str1);
out.println("After change");
String name = "Banglore";
NodeList nlst = doc.getElementsByTagName("name");
Node node= nlst.item(0).getFirstChild();
node.setNodeValue(name);
NodeList n1 = doc.getElementsByTagName("name");
Node n2= n1.item(0).getFirstChild();
str = n2.getNodeValue();
out.println(str);
catch(Exception e)
out.println(e) ;
%>
<h1><%=str%></h1>
<%--
This example uses JSTL, uncomment the taglib directive above.
To test, display the page like this: index.jsp?sayHello=true&name=Murphy
--%>
<%--
<c:if test="${param.sayHello}">
<!-- Let's welcome the user ${param.name} -->
Hello ${param.name}!
</c:if>
--%>
</body>
</html>hi check this exit...
IWO10012 -
How to update data in a xml file.
I am able to retrieve data from a xml file but not able to update data. Also how can i add or delete node from a xml file.
Hi,
For some time I have also been trying to do the same thing with no success. So far I have tried a few approaches like $.post functions $.ajax post functions and HTML5 fileWriter functions. I am not well aware of the web development techniques but as fas as I understand the post or update of the json file should be done on the serverside mainly because of security issues. I am not sure how appbuilder works entirely and if there is any way to do this.
Have you managed to find a solution ?
(P.S. my goal is to update my chart data which is of course json file. So the idea here is to get some values from the user input and update the json file values then refresh the chart and display it with the new values).
Best Regards,
A.Dyankov. -
How to Edit perticular node in XML
How to edit Perticular XML node ?
<root>
<node1>
<data1> dsfs </data1>
<data2> dsfs </data2>
<data3> dsfs </data3>
<data4> dsfs </data4>
</node1>
</root>What should i do to change data3 value, means edit data of <data3> ??
help meRetriece data3 node with XPath or DOM. Set node value with setNodeValue() method.
-
Hi everybody,
How can I create an XML node?
I try whith createnode, but don't work
Thanks
CarlesThanks Gordon,
I try do understand, but i can't
I have:
oNodo = oDocument.SelectSingleNode("BOM/BO/Documents/row/vers")
if vers doesn't exist, then i have to create it
<bom>
<bo>
<Documents>
<row>
<vers>here i want to set a value</vers>
</row>
</Documents>
</bo>
</bom>
I've tried with oNewNodo = oDocument.CreateElement("vers") and it works, but doesn't put where i want
thanks
Carles -
How create Nested Child Nodes in XML Forms
Hello All:
I am very new to XML Forms/KM. I am trying to figure out a way to create Nested Child Nodes schema in XML Forms. Is there a way we can do it?
Thanks and Regards,
Vasu.Document document;
NodeList[] dataNodeList=new NodeList[2];
NodeList nodeList=document.getElementsByTagName("MyData");
for(int i=0; i<nodeList.getLength(); i++)
dataNodeList=nodeList.getChildNodes(); -
How to update/write to a XML file using JSP?
If a user enters information in a form, is there any way to write this information into an existing XML document using JSP? Basically, I want my users to be able to add new information into an XML file but I have no idea how to do it.
Help appreciated.Java webservices tutorial should help
http://java.sun.com/xml/index.jsp -
How to update Oracle DB 9.2.0.1 to 9.2.0.3 ?
Execute me, how to update oracle database 9.2.0.1 to 9.2.0.3 ?
My OS is Windows XP , I can't find the db 9.2.0.3 version in download zone .
Please tell me thank you very much .The 9203 patch is not available on OTN. You can download it from metalink(http://metalink.oracle.com) if you have a support contract.
Regards,
Anupama -
How to update report when i update the table.......
Hi, iam very new to this group, presently iam using XML Publisher, in that i have some doubts, that is, i created one report, immediatly i update the oracle table then how to update the report in XML Publisher,how to do that one pls tell me its use full for me please,
another one how do we publish this Reports.
please tell me any body,
Thank you.
Ramana.XML-Publisher can be called using an URL. This is described in the userguide.
What you could to is to create a db trigger on your table which will make a url call like you would do calling the Oracle reports server from the database using the event driven API.
Note that in order to have this work you will need to place the report you want to run in the guests folder of XML-Publisher -
11gR2 clusterware installation problem on root.sh script on second node
Hi all,
I wanna install the *11gR2 RAC* on ORA-Linux 5.5 (x86_64) using VMware server but on the second node i get two "*failed*" at the end of root.sh script.
After that i try to install DB but ı can see only one node.What is the problem...
I will send the output, ı need your help.
Thank you all for helping..
Hosts file:(we have no ping problem )
[root@rac2 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
# Public
192.168.2.101 rac1.localdomain rac1
192.168.2.102 rac2.localdomain rac2
# Private
192.168.0.101 rac1-priv.localdomain rac1-priv
192.168.0.102 rac2-priv.localdomain rac2-priv
# Virtual
192.168.2.111 rac1-vip.localdomain rac1-vip
192.168.2.112 rac2-vip.localdomain rac2-vip
# SCAN
192.168.2.201 rac-scan.localdomain rac-scan
[root@rac2 ~]#
FIRST NODE root.sh script output...
[root@rac2 ~]# /u01/app/11.2.0/db_1/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/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 /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.
2010-12-06 14:45:06: Parsing the host name
2010-12-06 14:45:06: Checking for super user privileges
2010-12-06 14:45:06: User has super user privileges
Using configuration parameter file: /u01/app/11.2.0/db_1/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
root wallet
root wallet cert
root cert export
peer wallet
profile reader wallet
pa wallet
peer wallet keys
pa wallet keys
peer cert request
pa cert request
peer cert
pa cert
peer root cert TP
profile reader root cert TP
pa root cert TP
peer pa cert TP
pa peer cert TP
profile reader pa cert TP
profile reader peer cert TP
peer user cert
pa user cert
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-2672: Attempting to start 'ora.gipcd' on 'rac2'
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac2'
CRS-2676: Start of 'ora.gipcd' on 'rac2' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac2'
CRS-2676: Start of 'ora.gpnpd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac2'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac2'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac2'
CRS-2676: Start of 'ora.diskmon' on 'rac2' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac2'
CRS-2676: Start of 'ora.ctssd' on 'rac2' succeeded
ASM created and started successfully.
DiskGroup DATA created successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-2672: Attempting to start 'ora.crsd' on 'rac2'
CRS-2676: Start of 'ora.crsd' on 'rac2' succeeded
CRS-4256: Updating the profile
Successful addition of voting disk 587cc69413ce4fd3bf0c2c2548fb9017.
Successfully replaced voting disk group with +DATA.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
1. ONLINE 587cc69413ce4fd3bf0c2c2548fb9017 (/dev/oracleasm/disks/DISK1) [DATA]
Located 1 voting disk(s).
CRS-2673: Attempting to stop 'ora.crsd' on 'rac2'
CRS-2677: Stop of 'ora.crsd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac2'
CRS-2677: Stop of 'ora.asm' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac2'
CRS-2677: Stop of 'ora.ctssd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac2'
CRS-2677: Stop of 'ora.cssdmonitor' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac2'
CRS-2677: Stop of 'ora.cssd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac2'
CRS-2677: Stop of 'ora.gpnpd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac2'
CRS-2677: Stop of 'ora.gipcd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac2'
CRS-2677: Stop of 'ora.mdnsd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac2'
CRS-2676: Start of 'ora.mdnsd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'rac2'
CRS-2676: Start of 'ora.gipcd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac2'
CRS-2676: Start of 'ora.gpnpd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac2'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac2'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac2'
CRS-2676: Start of 'ora.diskmon' on 'rac2' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac2'
CRS-2676: Start of 'ora.ctssd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac2'
CRS-2676: Start of 'ora.asm' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac2'
CRS-2676: Start of 'ora.crsd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac2'
CRS-2676: Start of 'ora.evmd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac2'
CRS-2676: Start of 'ora.asm' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'rac2'
CRS-2676: Start of 'ora.DATA.dg' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.registry.acfs' on 'rac2'
CRS-2676: Start of 'ora.registry.acfs' on 'rac2' succeeded
rac2 2010/12/06 14:52:06 /u01/app/11.2.0/db_1/cdata/rac2/backup_20101206_145206.olr
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 6847 MB Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.
[root@rac2 ~]#
SECOND NODE root.sh script output
[root@rac1 db_1]# ./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/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 /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.
2010-12-06 14:54:11: Parsing the host name
2010-12-06 14:54:11: Checking for super user privileges
2010-12-06 14:54:11: User has super user privileges
Using configuration parameter file: /u01/app/11.2.0/db_1/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
CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
ASM created and started successfully.
DiskGroup DATA created successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded
Successful addition of voting disk 2761ce8d47b44fbabf73462151e3ba1d.
Successfully replaced voting disk group with +DATA.
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
1. ONLINE 2761ce8d47b44fbabf73462151e3ba1d (/dev/oracleasm/disks/DISK1) [DATA]
Located 1 voting disk(s).
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac1'
CRS-2677: Stop of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac1'
CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac1'
CRS-2676: Start of 'ora.evmd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac1'
CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'rac1'
CRS-2676: Start of 'ora.DATA.dg' on 'rac1' succeeded
PRCR-1079 : *Failed* to start resource ora.scan1.vip
CRS-5005: IP Address: 192.168.2.201 is already in use in the network
CRS-2674: Start of 'ora.scan1.vip' on 'rac1' *failed*
CRS-2632: There are no more servers to try to place resource 'ora.scan1.vip' on that would satisfy its placement policy
start scan ... *failed*
Configure Oracle Grid Infrastructure for a Cluster ... *failed*
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 6847 MB Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.
[root@rac1 db_1]# * "./runcluvfy.sh stage -pre -crsinst -n rac1,rac2 " outputs are same each node....*
[oracle@rac2 grid]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2
Performing pre-checks for cluster services setup
Checking node reachability...
Node reachability check passed from node "rac2"
Checking user equivalence...
User equivalence check passed for user "oracle"
Checking node connectivity...
Checking hosts config file...
Verification of the hosts config file successful
Node connectivity passed for subnet "192.168.2.0" with node(s) rac2,rac1
TCP connectivity check passed for subnet "192.168.2.0"
Node connectivity passed for subnet "192.168.122.0" with node(s) rac2,rac1
TCP connectivity check failed for subnet "192.168.122.0"
Node connectivity passed for subnet "192.168.0.0" with node(s) rac2,rac1
TCP connectivity check passed for subnet "192.168.0.0"
Interfaces found on subnet "192.168.2.0" that are likely candidates for VIP are:
rac2 eth0:192.168.2.102 eth0:192.168.2.112 eth0:192.168.2.201
rac1 eth0:192.168.2.101 eth0:192.168.2.111
Interfaces found on subnet "192.168.122.0" that are likely candidates for a private interconnect are:
rac2 virbr0:192.168.122.1
rac1 virbr0:192.168.122.1
Interfaces found on subnet "192.168.0.0" that are likely candidates for a private interconnect are:
rac2 eth1:192.168.0.102
rac1 eth1:192.168.0.101
Node connectivity check passed
Total memory check passed
Available memory check passed
Swap space check passed
Free disk space check passed for "rac2:/tmp"
Free disk space check passed for "rac1:/tmp"
User existence check passed for "oracle"
Group existence check passed for "oinstall"
Group existence check passed for "dba"
Membership check for user "oracle" in group "oinstall" [as Primary] passed
Membership check for user "oracle" in group "dba" passed
Run level check passed
Hard limits check passed for "maximum open file descriptors"
Soft limits check passed for "maximum open file descriptors"
Hard limits check passed for "maximum user processes"
Soft limits check passed for "maximum user processes"
System architecture check passed
Kernel version check passed
Kernel parameter check passed for "semmsl"
Kernel parameter check passed for "semmns"
Kernel parameter check passed for "semopm"
Kernel parameter check passed for "semmni"
Kernel parameter check passed for "shmmax"
Kernel parameter check passed for "shmmni"
Kernel parameter check passed for "shmall"
Kernel parameter check passed for "file-max"
Kernel parameter check passed for "ip_local_port_range"
Kernel parameter check passed for "rmem_default"
Kernel parameter check passed for "rmem_max"
Kernel parameter check passed for "wmem_default"
Kernel parameter check passed for "wmem_max"
Kernel parameter check passed for "aio-max-nr"
Package existence check passed for "make-3.81"
Package existence check passed for "binutils-2.17.50.0.6"
Package existence check passed for "gcc-4.1.2"
Package existence check passed for "libaio-0.3.106 (i386)"
Package existence check passed for "libaio-0.3.106 (x86_64)"
Package existence check passed for "glibc-2.5-24 (i686)"
Package existence check passed for "glibc-2.5-24 (x86_64)"
Package existence check passed for "compat-libstdc++-33-3.2.3 (i386)"
Package existence check passed for "compat-libstdc++-33-3.2.3 (x86_64)"
Package existence check passed for "elfutils-libelf-0.125 (x86_64)"
Package existence check passed for "elfutils-libelf-devel-0.125"
Package existence check passed for "glibc-common-2.5"
Package existence check passed for "glibc-devel-2.5 (i386)"
Package existence check passed for "glibc-devel-2.5 (x86_64)"
Package existence check passed for "glibc-headers-2.5"
Package existence check passed for "gcc-c++-4.1.2"
Package existence check passed for "libaio-devel-0.3.106 (i386)"
Package existence check passed for "libaio-devel-0.3.106 (x86_64)"
Package existence check passed for "libgcc-4.1.2 (i386)"
Package existence check passed for "libgcc-4.1.2 (x86_64)"
Package existence check passed for "libstdc++-4.1.2 (i386)"
Package existence check passed for "libstdc++-4.1.2 (x86_64)"
Package existence check passed for "libstdc++-devel-4.1.2 (x86_64)"
Package existence check passed for "sysstat-7.0.2"
Package existence check passed for "unixODBC-2.2.11 (i386)"
Package existence check passed for "unixODBC-2.2.11 (x86_64)"
Package existence check passed for "unixODBC-devel-2.2.11 (i386)"
Package existence check passed for "unixODBC-devel-2.2.11 (x86_64)"
Package existence check passed for "ksh-20060214"
Check for multiple users with UID value 0 passed
Current group ID check passed
Core file name pattern consistency check passed.
User "oracle" is not part of "root" group. Check passed
Default user file creation mask check passed
Starting Clock synchronization checks using Network Time Protocol(NTP)...
NTP Configuration file check started...
NTP Configuration file check passed
Checking daemon liveness...
Liveness check passed for "ntpd"
NTP daemon slewing option check passed
NTP daemon's boot time configuration check for slewing option passed
NTP common Time Server Check started...
Check of common NTP Time Server passed
Clock time offset check from NTP Time Server started...
Clock time offset check passed
Clock synchronization check using Network Time Protocol(NTP) passed
Pre-check for cluster services setup was successful.
[oracle@rac2 grid]$ I'm confused :)
Edited by: Eren GULERYUZ on 06.Ara.2010 05:57Hi,
it looks like, that your "shared device" you are using is not really shared.
The second node does "create an ASM diskgroup" and create OCR and Voting disks. If this indeed would be a shared device, he should have recognized, that your disk is shared.
So as a result your VMware configuration must be wrong, and the disk you presented as shared disk is not really shared.
Which VMWare version did you use? It will not work correctly with the workstation or player edition, since shared disks are only really working with the server version.
If you indeed using the server, could you paste your vm configurations?
Furthermore I recommend using Virtual Box. There is a nice how-to:
http://www.oracle-base.com/articles/11g/OracleDB11gR2RACInstallationOnOEL5UsingVirtualBox.php
Sebastian -
How can I execute a command every 10 seconds in a specific time-frame
Hello,
I would like to create a script which in a specific time-frame collects some outputs and also pings every 10 seconds.
To collect the outputs every minute from 22:00PM to 22:10PM I have the following:
event manager applet snmp_output
event timer cron cron-entry "0-10/1 22 * * *" maxrun 30
action 010 cli command "enable"
action 020 cli command "show clock"
action 030 cli command "terminal exec prompt timestamp"
action 040 cli command "show snmp stats oid | append bootdisk:show_snmp_stats_oid.txt "
action 045 wait 5
action 050 cli command "show snmp pending | append bootdisk:show_snmp_pending.txt "
action 055 wait 5
action 060 cli command "show snmp sessions | append bootdisk:show_snmp_sessions.txt "
acionn 065 wait 5
action 070 cli command "end"
To confirm connectivity to the device doing the SNMP polls I would like to execute a ping every 10 seconds in the same timeframe.
Cron seems only to support minutes. Is it possible to combine a watchdog timer + a cron timer?
Can this ping function be incorporated in the SNMP output applet or will I have to write a new one?
Will I need TCL here (I have no experience in TCL)?
Best regards,
TimIf you wanted the pings to run in parallel, you could have this applet configure another applet to do the pinging, then remove it on the last run. This will require an amount of programmatic logic, though. If you wanted to keep things a bit simpler, add another applet that runs at 22:00 that configures a watchdog pinging applet, then a third applet that runs at 22:10 that removes the pinging applet.
When it comes to embedded quotes when you configure your nested pinging applet, you'll need to use $q to stand for the embedded quotes. You'll also need to configure:
event manager environment q " -
11gR2 RAC install fail when running root.sh script on second node
I get the errors:
ORA-15018: diskgroup cannot be created
ORA-15072: command requires at least 2 regular failure groups, discovered only 0
ORA-15080: synchronous I/O operation to a disk failed
[main] [ 2012-04-10 16:44:12.564 EDT ] [UsmcaLogger.logException:175] oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-15018: diskgroup cannot be created
ORA-15072: command requires at least 2 regular failure groups, discovered only 0
ORA-15080: synchronous I/O operation to a disk failed
I have tried the fix solutions from metalink note, but did not fix issue
11GR2 GRID INFRASTRUCTURE INSTALLATION FAILS WHEN RUNNING ROOT.SH ON NODE 2 OF RAC USING ASMLIB [ID 1059847.1Hi,
it looks like, that your "shared device" you are using is not really shared.
The second node does "create an ASM diskgroup" and create OCR and Voting disks. If this indeed would be a shared device, he should have recognized, that your disk is shared.
So as a result your VMware configuration must be wrong, and the disk you presented as shared disk is not really shared.
Which VMWare version did you use? It will not work correctly with the workstation or player edition, since shared disks are only really working with the server version.
If you indeed using the server, could you paste your vm configurations?
Furthermore I recommend using Virtual Box. There is a nice how-to:
http://www.oracle-base.com/articles/11g/OracleDB11gR2RACInstallationOnOEL5UsingVirtualBox.php
Sebastian -
How to update XML file through UCCX script ?
Hi,
I have an UCCX script with MENU step. One of the step is for technical support team. When caller chose this step, information about date and time of the call and calling number should be recorded on a XML file located on the web server.
This XML is uploaded into the web server , but I don't know how to update it through UCCX script.
Here is how the XML file looks like:
<?xml version="1.0" ?>
<rss version="2.0">
<channel>
<title>CALL LOG</title>
<link></link>
<description>Support Call log</description>
<ttl>1</ttl>
<item>
<title>2011-08-24 14:56:39 - 00044 123 123 123</title>
<link></link>
<description></description>
</item
</channel>
</rss>
Any idea?
Thanks,
OHi
The 'keyword transform' step uses the template XML file to generate the actual XML file you want to post... the template would be a plain text file uploaded to the repository, and would look like so:
<?xml version="1.0" ?>
CALL LOG
Support Call log
1
%%calldatetime%% - %%clinumber%%
Now - if you had that bit of XML, with correct time/number in it - have you verified know that you can definately just post that XML to a certain URL to get it on the server? Check with whoever manages that server exactly what you need to do to get it to appear - then worry about how you do that from UCCX. It may not be a matter of posting up that XML, you may need it in a different format or something..
Aaron
Maybe you are looking for
-
[SOLVED]Upgraded plexmediaserver no longer working
I've been using plexmediaserver from the AUR. I installed the latest release which is now plex-media-server but it's not starting. I'm still learning the ropes so have no idea where to being looking now.. [root@hostname ~]# systemctl status plexmedi
-
ITunes Library Error (new error to me)
I receive an error when I was importing a CD. This is a new one to me. The error is: The iTunes Library file cannot be saved. An unknown error occurred (-54). I have never seen this error before. Can someone tell me what it means and how to correct?
-
I have Ipda2, bought a Hp 5510 photo printer. Its up and running and connected, but i am unable to print email. I hit arrow button up top of page, it states "no airprinter" how do i correct? Thanks
-
I downloaded the icloud control panel. How can I move the photos in my phone to my PC (windows 7) ?? I tried to do it and , in the photo stream file, it appeared to work for a minute ( photos appeared one by one) but not even 5% of my photos happened
-
Hi All, This is About Medruck Transaction. I want to print a Fax Cover page. I have used Command 'Cover Auto', However I want to Add Purchase Order Number to the Fax Cover Page. How do I see the Auto Template OR How do I add PO Number