Targets.xml
I have just installed database w/em 10g 10.2.0.1.0 and the EM failed for the following reason.
STARTED EMCA at Feb 21, 2006 12:34:12 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Feb 21, 2006 1:07:13 PM oracle.sysman.emcp.EMAgentConfig updateTargets
SEVERE: Error saving targets list to C:\Oracle\10.2.0\u4stagd2\sysman\emd\targets.xml :: Malformed \uxxxx encoding.
Feb 21, 2006 1:07:13 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error updating C:\Oracle\10.2.0\u4stagd2\sysman\emd\targets.xml
I tried with the emca.bat command but with the same results. How can I fix this?
Thanks
On Metalink an entry exists that says that on Microsoft the \u makes the Agent Assistant interpret this as unicode. Solution is to use a directory that does not start with \u.
cu
Andreas
Similar Messages
-
How to remove a node from a target xml payload in reciever file channel
i have a scenario where i have to remove a node from my target xml file in receiver file channel and want xml as the output file. I don't want a fixed length file. How to do that in receiver channel? Do we need to use file content conversion for that?
that will result in giving you a fixed file or a separator defined file.
it will not give you an XML file.
In case you want a XML file, instead of using variable substitution, use Dynamic configuration and adapter specific properties.
Some ref:
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm -
Retreive IDOC number and map it to a field in Target XML
Hi Experts,
IDOC to file scenario
I have a requirement where I have to retreive the number of the IDOC generated and map it to a field ID in the target XML.
Do i have to use a UDF for this? can ne one pls explain?
Regards,
TejaHi Ravi,
You dont need use a UDF for this.
this is a very simple requiremen.
You can get the IDOC number from source IDOc
under EDI_DC40 node field name DOCNUM.
This DOCNUM fielsd will contain the IDOC number
Map this DOCNUM field from source IDOC to target XML structure. -
Splitting source xml tag value into parts in target xml
Hi All,
We have a requirement in our transformation as follows
If you get String morethan 20 it should be split and assigned to target element.
For example:
There is one condition that the maximum lenght of the target element is 5.
source xml:
<test1>aassdfgghjkkll</test1>
So the Target xml is should be like this
<test2>aassd</test2>
<test2>gghjk</test2>
<test2>kll</test2>
another example
Source xml:
<test1>qwert</test1>
Target xmls
<test2>qwert</test2>
Thanks in Advance.
Thanks and Regards,
Nagaraju .D
Edited by: user645787 on Feb 10, 2009 2:24 AMSQL> with Src_Data as (
2 select XMLType('<test1>aassdfgghjkkll</test1>') as Src from dual union all
3 select XMLType('<test1>qwert</test1>') as Src from dual
4 )
5 select XMLQuery(
6 '
7 for $s in 1 to (fn:string-length($Src) + 4) idiv 5
8 let $substr := fn:substring($Src, ($s - 1) * 5 + 1, 5)
9 return <test2>{$substr}</test2>
10 '
11 PASSING Src AS "Src"
12 RETURNING CONTENT
13 ).GetStringVal()
14 from Src_Data
15 ;
XMLQUERY('FOR$SIN1TO(FN:STRING-LENGTH($SRC)+4)IDIV5LET$SUBSTR:=FN:SUBSTRING($SRC
<test2>aassd</test2><test2>fgghj</test2><test2>kkll</test2>
<test2>qwert</test2>Regards,
Dima -
Recreating the target.xml file in oracle_home/sysman/emd in windows7
Hi All,
My sysman user got expired and I was trying to create the new password for the user.I am using oracle 11.2.0 in windows 7 OS. I was following the steps in the
http://thetendjee.wordpress.com/2006/07/19/changing-sysman-and-dbsnmp-passwords-it-aint-that-easy/
I realised that target.xml file in the ORACLE_HOME/sysman/emd is blank. I tried to create the target.xml file by using the steps in
http://oraclestore.blogspot.com/2008/09/how-to-recreate-targetsxml-file-and.html
However, it seems that ORACLE_HOME/bin/./agentca -d command does not work for windows OS. I could not see the agentca file in C:\app\TL\product\11.2.0\dbhome_1\bin. All i could find is agtctl application file.
Is there a different command in windows environment to recreate the target.xml file .
Thanks,
Virathttps://forums.oracle.com/forums/message.jspa?messageID=10796815#10796815
DUPLICATE thread!
do NOT multi-post -
Adding additional XML Header in Target XML structure
Hi all,
I have a requirement that i need add one additional XML header to target XML messages. At the moment i can see default XML header as ,
<?xml version="1.0" encoding="UTF-8" ?>
<Test>
<Add>Test Mesage</Add>
</Test>
But i would like to have one more additional header like below,
<?xml version="1.0" encoding="UTF-8" ?>
<?Siebel-Property-Set EscapeNames="false"?>
<Test>
<Add>Test Mesage</Add>
</Test>
Can some one help me to find a way to adding this additional header?
Thanks in advance.
Prasad Babu.Hi Prasad,
Yes it is possible by Java Mapping. Please check my response for similar thread
Re: Add XML header? -
Dynamically Modifying Target XML Namespace
Dear All,
We have a requirement of dynamically modifying the namespace of the target XML . The scenario is as follows:
There are multiple recipients of a message, and two of the recipients are using the same target structure, but with a different XML namespace. We are catering to the different receivers using different interfaces, but because these two recipients are using the same Target message type, hence they can only point to any one namespace (the XML namespace mentioned in this target message type). For example, the required target messages look like:
Message expected at recipient 1:
<ns0:root xmlns:ns0="http://target1.com">
<tagA/>
<tagB/>
<tagC/>
</ns0:root>
Message expected at recipient 2:
<ns0:root xmlns:ns0="http://target2.com">
<tagA/>
<tagB/>
<tagC/>
</ns0:root>
Obviously, we can only create one message type with name root, and that can point to only 1 namespace. However, we need 2 different namespaces, based on the input payload. For example, if a flag in the input has a value 1, we set the namespace as "http://target1.com"; if it has value 2, we set the namespace as "http://target2.com". We are thinking of dynamically deriving the namespace at the time of mapping, but can not figure out a way to do so. We are currently using Graphical Mapping for one of the recipients; do we have to employ XSLT/ABAP mapping to achieve this? Has anybody done a work around this kind of a problem?
Awaiting Answers.
Thanks and Sincere Regards,
SidHi Peter,
Thanks for replying. Unfortunately, we are using PI 7.01 and not PI 7.1. Any other ideas?
Nice blog though!
P.S: Obviously, we could use 2 different interfaces pointing to the same message type, essentially creating two different communication channels towards the 2 receivers, and modify the payload within these channels using some Adapter Modules. However, this solution looks rather like firing a cannon to kill a fly, and I surely hope PI does have some other capabilities to achieve this using a single interface and single comm channel, which I do not know of (digging through help.sap right now), or can not think of right now.
Thanks and Regards,
Sid -
Remove prefix ns from target xml
Hi Guys,
I have a target file that is as follows
<?xml version="1.0" encoding="UTF-8"?>
<ns:MT_Case1 xmlns:ns0="urn:Case:Case1">
<Field1></Field1>
<Field2></Field2>
<Field3></Field3>
< ns /MT_Case1>
How can I remove the pre fix ns from the target xml?
can ne one help pls?
Edited by: Ravindra Teja on Jul 6, 2011 6:58 PM
Edited by: Ravindra Teja on Jul 6, 2011 7:00 PMYou can add or remove the namespace prefix using XMLAnonymizerBean module.
Refer this [link|http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/content.htm]
BTW, this namespace prefix might not cause any impact.. What do u test? If the namespace prefix nso is removed using xmlspy editor then you dont get namespace prefix in the element tag. -
Targets.xml requires restart of any services ?
hi,
do we need to restart any service after making changes in targets.xml in oracle 9ias server.
please let me know the same.
regards
kumarHum! I am not sure how will your DCM out of sync issue will get resolved by adding instance name in targets.xml. Can you tell bit more details? What actually happened? How did DCM got out of sync? What does "dcmctl getState" command show?
Thanks
Shail -
Web Cache target not found in targets.xml
A colleague of mine is in Turkey and is getting this error when trying to install grid control on a windows XP pro server. It is a clean install.
the targets.xml file is
<Targets AGENT_TOKEN="f04d4e849c1e838b19c3e20ed579e9dcd03c15b9">
<Target TYPE="oracle_emd" NAME="10.10.10.63:3872"/>
<Target TYPE="host" NAME="10.10.10.63"/>
<Target TYPE="oracle_database" NAME="emrep">
<Property NAME="OracleHome" VALUE="C:\OracleHomes\db10g"/>
<Property NAME="UserName" VALUE="6f3598cb6f944bc6" ENCRYPTED="TRUE"/>
<Property NAME="MachineName" VALUE="10.10.10.63"/>
<Property NAME="Port" VALUE="1521"/>
<Property NAME="SID" VALUE="EMREP"/>
<Property NAME="ServiceName" VALUE="emrep"/>
<Property NAME="password" VALUE="21de4ab415cd3024c57856f7b1bc2dcb" ENCRYPTED="TRUE"/>
</Target>
<Target TYPE="oracle_listener" NAME="LISTENER_10.10.10.63">
<Property NAME="ListenerOraDir" VALUE="C:\OracleHomes\db10g\network\admin"/>
<Property NAME="LsnrName" VALUE="LISTENER"/>
<Property NAME="Machine" VALUE="10.10.10.63"/>
<Property NAME="OracleHome" VALUE="C:\OracleHomes\db10g"/>
<Property NAME="Port" VALUE="1521"/>
</Target>
<Target TYPE="oracle_csa_collector" NAME="10.10.10.63_oms_csa_collector" DISPLAY_NAME="10.10.10.63_oms_csa_collector">
<Property NAME="recvFileDir" VALUE="C:\OracleHomes\oms10g\oms_csa\results"/>
</Target>
<Target TYPE="oracle_emrep" NAME="Management Services and Repository" VERSION="1.0">
<Property NAME="ConnectDescriptor" VALUE="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ENIGMA4)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=emrep)))"/>
<Property NAME="UserName" VALUE="e8f757a39036b54d" ENCRYPTED="TRUE"/>
<Property NAME="password" VALUE="21de4ab415cd3024c57856f7b1bc2dcb" ENCRYPTED="TRUE"/>
</Target>
</Targets>
I have referenced metalink note 352357.1 but am note sure how to look at symbolic links in windows.
any help is appreciated.
regards
AlanHi
This is the host of your GC enviroment, and in this hosts you have two targets.xml files:
- The AGENT_HOME\sysman\emd\targets.xml file, that is the file that you show in this posts.
But in the OMS_HOME\sysman\emd\targets.xml file you find the Oracle Application Server and his components (OC4J, http server, Webcache)
Regards -
Target XML Files with optional elements
Hi All,
I am using ODI 10.1.3.4. My task is to create an XML file of the following format:
<parent count="2">
<child>
<name>Fred</name>
<age>15</age>
<email>[email protected]</email>
</child>
<child>
<name>Bob</name>
<age>5</age>
*<email />*
</child>
</parent>
I have been able to successfully create a target file. But the file does NOT contain the empty elements. ie the email element for Bob is missing from my target file.
Is there any way to configure the XML connection or the "create xmlfile" command to output the empty element?
Many Thanks
NatAfter speaking to BEA support it appears as though there is a partial solution to this issue. If you add the attributes minOccurs="0" nillable="true" to the elements then the SOAP message is correct. i.e.
<xs:complexType name="SIDSearchCriteriaStructure">
<xs:sequence>
<xs:choice>
<xs:element ref="SIDUniqueReference" minOccurs="0" nillable="true"/>
<xs:element ref="SIDOtherCriteria" minOccurs="0" nillable="true"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
I say that this is only a partial fix because elements cannot have minOccurs and nillable attribtes when they are references (as opposed to named elements - e.g. <xs:element name="SIDDNA" type="RestrictedStringType"/>). This is according to XMLSpy anyway. Don't know whether it's W3C legal though.
Nick -
Generating target XML tag from a value in the Source XML document
Hi there,
I have a scenario where the following transformation needs to occur:
Source Message...
<Catalogue>
<key>abc<\key>
<value>123<\value>
<key>def<\key>
<value>456<\value>
<\Catalogue>
Target Message...
<Catalogue>
<abc>123<\abc> --> Value of KEY becomes the XML tag and the VALUE gets assigned to it
<def>456<\abc>
<\Catalogue>
The target message is written to an xml file using the receiver file adapter.
I would like the target message generation to be dynamic so that when a new key-value pair is added, it would not require a change in the XI mapping layer. Is there a way to accomplish this without having to code or enhance the adapter. I am trying to avoid doing this in the mapping because that would mean changing the mapping every time a new key-value pair needs to be added.
Any suggestions to accomplish this are welcome.
Thanks all.Hi,
I doubt if it will work for you. you can generate dynamic values using this but not tags dynamically. You need to see if there are any methods to generate tags dynamically.
One way of doing this is by using Java Mapping and playing around with InputStream and OutputStream.It will work for sure with this.
Thanks
Amit -
Target XML attribute with XSLT
Hello,<br />I have an xml file which looks like this:<br /><br /><PRODUCTS><br /><PRODUCT><br /><IMAGE href="file://./0001.tif"></IMAGE><br /></PRODUCT><br /><PRODUCT><br /><PRODUCTS><br /><br />Is there a way to target the href attribute of the PRODUCT element with XSLT?<br /><br />Thanks
hi marco,
> Thank you gregor, I'll take a look to this reference; I'm total newby to
> XSLT, so any suggestions would be surely fine.. another question: do you
> think it's better to work with XSLT or XmlRules?
there is no short answer on this. it depends on your documents/data you
want to process, what to achieve and you're knowledge in scripting vs.
xslt. i use xmlRules for styling my documents, xslt for data transformation.
in general you've got more control, especially over the rendered
document, using xmlRules. if you want to process layout rules/guidelines
in dependency of the actual document you have to render it first.
complex data transformation and composition is better with xslt outside
of indesign. i prefer to prepare my data (select relevant data,
numbering, ...) with xslt.
cheers,
gregor -
Hello there,
I am going to make process to create Lun on NetApp Simulator.
I had NetApp simulator, NetApp SDK server up n running on my server ...i made web target as my SDK API server and my TEO also on same server..http://172.21.***.**:8088 << this is my target connection.
1> i want to check : does my connection work succefully or not for that i created process "web HTTP request" but that was not hit my target...
so, please anybody have information for creating web http request process..please share with me...i appreciate you....
2> I also have one more question regrding to using XML API in the process....As i said i also want to make process to crete Lun on my simulator...
so..does anybody have information that how to use this XML API in our process...
I really appreciate for help...
Regards,
Krupesh PatelHello Christopher.......
Now this time i just want to do simple web service target ...i want to use web service execute activity with wsdl use...
Here ..i created web target as http://www.weather.gov/
My process is to execute the web service ..this is my Relative url : http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl in for web service execute activity as i show in the image..
Now..i want to select method by veryfing the url but i didn't get success....and got error...i want to execute this service on the target and want weather according to zip code i get from method...
please help...appreciate you for information....
Here is that image : -
Generating multiple target xmls from one source xml using xslt mappings
Hi,
I need to create more than one xml file from one source xml file using xslt mappings in file to file scenario.
Can you please let me know how this can be achieved.
Thanks,
RajeshRajesh,
If you must use the XSL Transformation then you can find a nice simple example here. It's based on the Xalan XSLT Processor which to my knowledge is incorporated in PI7.1. I've not actually tried this but it makes for an interesting mapping case so please let us know the results:
[XSLT Split for multiple XML file output|http://abbeyworkshop.com/howto/xslt/xslt_split/index.html]
The XSL file will require a namespace addition:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:redirect="http://xml.apache.org/xalan/redirect" extension-element-prefixes="redirect" version="1.0">
The redirect prefix is used for the write tags in the XSL file.
The details cover the transformation of the source file:
1:<student_list>
2: <student id="1">
3: <name>George Washington</name>
4: <major>Politics</major>
5: <phone>312-123-4567</phone>
6: <email>gw_at_example.edu</email>
7: </student>
8: <student id="2">
9: <name>Janet Jones</name>
10: <major>Undeclared</major>
11: <phone>311-122-2233</phone>
12: <email>janetj_at_example.edu</email>
13: </student>
14: <student id="3">
15: <name>Joe Taylor</name>
16: <major>Engineering</major>
17: <phone>211-111-2333</phone>
18: <email>joe_at_example.edu</email>
19: </student>
20:</student_list>
Using this transformation:
2:<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3: xmlns:redirect="http://xml.apache.org/xalan/redirect"
4: extension-element-prefixes="redirect"
5: version="1.0"
6:>
7:<xsl:output method="xml"/>
8:
9:<xsl:template match="/">
10: <xsl:apply-templates />
11:</xsl:template>
12:
13:<xsl:template match="student_list">
14: <xsl:apply-templates />
15:</xsl:template>
16:
17:<xsl:template match="student">
18: <xsl:variable name="filename" select="concat(@id,'.xml')" />
19: <redirect:write select="$filename">
20: <student id="{@id}">
21: <xsl:apply-templates />
22: </student>
23: </redirect:write>
24:</xsl:template>
25:
26:<xsl:template match="name | major | phone | email">
27: <xsl:copy-of select="." />
28:</xsl:template>
29:
30:</xsl:stylesheet>
Maybe you are looking for
-
Change log of document address for Ship to party in sales order
hi experts, There is a case where Ship to party address is diffferent at sales order level and custome rmaster level.Can anyone help to find the log of data inserted /updated in the customer address at sales document level. We tried CDHDR and CDPOS
-
Please Help. Has anyone else experienced this crash? I spoke to support, and they hinted that this might be a common problem.
-
TIP 03: Transportable Tablespaces in 10g by Joel Pèrez
Hi OTN Readers! Everyday I get connection on Internet and one of the first issues that I do is to open the OTN main page to look for any new article or any new news about the Oracle Technology. After I open the main page of OTN Forums and I check wha
-
Water damaged MacBook Pro still working perfectly
In July I spilled about an ounce of liquid on my 13" MacBook Pro, in the area around the L/K buttons. I quickly shut it off and turned it upside down for a few days. I then sent it in to Apple and they called back to tell me that it would surely fr
-
Dependant(?) Data Merging
Windows 7, InDesign CS4, Excel 2010 I hope this makes sense: I have a project that involves making labels for about 800 SKUs. I've merged data before when making labels like this and it worked great (it's been a while though). Anyway, this proje