Problem splitting XML Data into multiple files
I am sending an XML message through an enterprise message source in enterprise link design studio. While I do so, I am getting a heavy error. This error tells me that my path ist wrong, but I am sure this one is right. Actually everything worked fine till I added an attribute twice in my XML. Since this point enterprise link drives me crazy, I have checked on my XML, it is valid, I have checked on my path, which is also ok.
Anyone some suggestions how to resolve the issue?
The Error code looks the following:
Unable to resolve path "/msg" in message field "host" XML.
XML:
<msg host="192.168.52.129:18342" app="[ZInvestigationProvider#null]" cat="PROCESS" id="org.sopware.services.exampleuri.impl.CepMessage.21" lvl="INFO" text="Investigation_POSSIBILITY BPEL_ID=330024 - ID=1002, RFID=RFID002, NAME=SSN Emmersberger, StartDate=10 CurrentDate=17, expectedShippingDate=13, currentZone=-1, deliveryTimeAgreement=true" tsp="2007-12-05T22:25:36.093Z" xmlns="http://schemas.sbb.org/management/Notification/1.0" />
[Oracle BAM Enterprise Link error code: 0x75 -- 0x1, 0x75 -- 0x68]
Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
[Oracle BAM Enterprise Link error code: DC -- 0x1, DC -- 0x83]
Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
[Oracle BAM Enterprise Link error code: DC -- 0x1, DC -- 0x83]
Unable to resolve path "/msg" in message field "host" XML.
XML:
<msg host="192.168.52.129:18342" app="[ZInvestigationProvider#null]" cat="PROCESS" id="org.sopware.services.exampleuri.impl.CepMessage.21" lvl="INFO" text="Investigation_POSSIBILITY BPEL_ID=330024 - ID=1002, RFID=RFID002, NAME=SSN Emmersberger, StartDate=10 CurrentDate=17, expectedShippingDate=13, currentZone=-1, deliveryTimeAgreement=true" tsp="2007-12-05T22:25:36.093Z" xmlns="http://schemas.sbb.org/management/Notification/1.0" />
[Oracle BAM Enterprise Link error code: 0x75 -- 0x1, 0x75 -- 0x68]
Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
[Oracle BAM Enterprise Link error code: DC -- 0x1, DC -- 0x83]
Update of Plan "NotificationPLAN" failed.
[Oracle BAM Enterprise Link error code: PlanMgr -- 0x1, PlanMgr -- 0xD5]
Regards,
Christoph
Ok what I tried:
- I restarted the BAM Server
- I restarted the Design Studio
- I restarted the oc4j through which I publish the messages through a topic
Result:
Unable to resolve path "/msg" in message field "Data" XML.
XML:
<msg host="192.168.52.129:18342" app="[ZInvestigationProvider#null]" cat="PROCESS" id="org.sopware.services.exampleuri.impl.CepMessage.21" lvl="INFO" text="Investigation_POSSIBILITY BPEL_ID=330024 - ID=1002, RFID=RFID002, NAME=SSN Emmersberger, StartDate=10 CurrentDate=17, expectedShippingDate=13, currentZone=-1, deliveryTimeAgreement=true" tsp="2007-12-05T22:25:36.093Z" xmlns="http://schemas.sbb.org/management/Notification/1.0" />
[Oracle BAM Enterprise Link error code: 0x75 -- 0x1, 0x75 -- 0x68]
Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
[Oracle BAM Enterprise Link error code: DC -- 0x1, DC -- 0x83]
Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
[Oracle BAM Enterprise Link error code: DC -- 0x1, DC -- 0x83]
Unable to resolve path "/msg" in message field "Data" XML.
XML:
<msg host="192.168.52.129:18342" app="[ZInvestigationProvider#null]" cat="PROCESS" id="org.sopware.services.exampleuri.impl.CepMessage.21" lvl="INFO" text="Investigation_POSSIBILITY BPEL_ID=330024 - ID=1002, RFID=RFID002, NAME=SSN Emmersberger, StartDate=10 CurrentDate=17, expectedShippingDate=13, currentZone=-1, deliveryTimeAgreement=true" tsp="2007-12-05T22:25:36.093Z" xmlns="http://schemas.sbb.org/management/Notification/1.0" />
[Oracle BAM Enterprise Link error code: 0x75 -- 0x1, 0x75 -- 0x68]
Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
[Oracle BAM Enterprise Link error code: DC -- 0x1, DC -- 0x83]
Update of Plan "NotificationPLAN" failed.
[Oracle BAM Enterprise Link error code: PlanMgr -- 0x1, PlanMgr -- 0xD5]
Similar Messages
-
Export XML data into multiple worksheet of an Excel file..using FO processr
Hi,
I need to export XML data into Excel output, the data should flow into multiple worksheet of the Excel file.
Let me know if this can be done using XML publisher. If yes, please provide me the steps to do the same.
Could not able to achieve this through by the below process:
(1) Created a RTF (which has single excel table structure).
(2) Generated the XSL file using XSL-FO Style Sheet.
(3) Passed the XSL file and XML
which exported the data into an Excel (single worksheet) format.
Please let me know, how this can be exported into multiple worksheets.
Thanks & Regards,
Dhamodaran VJ.Hi Dhamodaran ,
pass me the template you created and XML. "Created a RTF (which has single excel table structure)."
Let me have a look at it,
For ID, look at profile. -
Split imported XML data into multiple text fields
I should first describe my final project because it is very possible that I am going about this entirely wrong!
I am trying to create an interactive PDF file which is the floor plan of our office, when you mouse over the office spaces it would popup the info for the person in that office, in fact when you click on the office space it would show additional info like computer MAC and jack numbers
I placed the floor plan as a layer and them created a second layer with no fill/no stroke rectangles over the offices and made them buttons (office01, office02)
I then made text fields with the info for the people, one for regular info and one for extra info (office01-data, office01-Xdata) I made these text fields buttons as well and had them "hidden until triggered"
These info fields are all on top of one another, as in the are all the same size and in teh same location
Then I went to the office buttons and created events "On Roll Over" "Show/Hide Buttons and Forms" and changed the visibility of the corresponding info button.
This works like a charm!
I hope I am clear up to this point.... my problem now is I would like to import this data both regular and extra from an excel spreadsheet or an XML file.
That way when we get new staff or people move offices or whatever I can update the spreadsheet or XML file, rerun my InDesign file and create a new interactive PDF
I have created the XML file
<staffMap>
<staff>
<name>John Doe</name>
<computerName<gfth56df</computerName>
<phoneMAC>00:08:00:AB:CD:EF</phoneMAC>
</staff>
<staff>
<name>John Smith</name>
<computerName<gfth06cb</computerName>
<phoneMAC>00:08:00:11:22:33</phoneMAC>
</staff>
</staffMap>
Created a new InDesign document
Imported the XML and placed it in a text field
saved as a template and closed it
Reopen and import the XML data again... and it brings it all into the text field... wonderful and useful but not what I need.
Is it possible to import the XML data into separate test fields, or into some other separate field that I can make into a button and show/hide?
I may end up just entering all the data directly into InDesign as I know this will work, it just does not seem like the right way to do it.
Thanking you all in advanceI am still looking to get some help with this.
I would love to know if it is not possible or any ideas at all -
Split XSLT Output into Multiple Files
I have an XML-to-File scenario working, but now I need to split my XSLT map output into multiple files based on the data. I have been reading the Jin Shin blog on message splitting, but don't know that it pertains to my situation.
XML data getting mapped with XSLT map creates output formatted like this.
<?xml version="1.0" encoding="utf-8"?>
<ns1:ColdInvoiceData xmlns:ns1="http://graybar.com/cold/invoice">
<Header>
<RecordID>HDR</RecordID>
<InvoiceNumber>15</InvoiceNumber>
</Header>
<Details>
<RecordID>DTL</RecordID>
<LineItemNumber>001</LineItemNumber>
<UnitPrice>1.25</UnitPrice>
</Details>
<Details>
<RecordID>DTL</RecordID>
<LineItemNumber>002</LineItemNumber>
<UnitPrice>2.22</UnitPrice>
</Details>
<Header>
<RecordID>HDR</RecordID>
<InvoiceNumber>16</InvoiceNumber>
</Header>
<Details>
<RecordID>DTL</RecordID>
<LineItemNumber>001</LineItemNumber>
<UnitPrice>3.33</UnitPrice>
</Details>
</ns1:ColdInvoiceData>
I currently have this output writing to a file (FTP, File Conversion). A single file is no issue, but I need to send multiple files for every set of HDR/DTL(s). I also need to put the invoice number in the filename (which is working fine as a parameter in my single FTP File CC now).
Can I make this happen with message splitting and maybe a second map (GUI map)? Do I need to adjust the XSLT output XML format to have an invoice level? Is there a better way to go?
Thanks!I made a change to the namespace used on the Messages/Message1 nodes (since the system-assigned ns0 was already being used in my xml data) and now I am getting output.
The problem is that the output matches my input. As aforementioned, I started with just a one-to-one mapping on every node and field.
When I change the mapping to try to force multiple ColdInvoiceData nodes, I get the following error (when my source has two Invoice nodes):
<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:Messages/ns0:Message1/ns1:ColdInvoiceData[2]/Invoice. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at
When my source has one invoice node, it works ok.
Here is a screenshot of my mapping structure.
http://webpages.charter.net/kpwendel2/ib.jpg -
Split SQR output into multiple files And Rename each file.
Greetings!
We ran into scenario where we need to split an SQR output (PDF) split into multiple files (each page , each file). More over the out put has to be renamed with EMPLID.
It is for printing Advices, where we run DDP003 to print all of them, Our requirement needs to have one PDF file for each employee to placed into a shared drive OR to be emailed.
I was thinking of running the same process in a loop individually, but this is resource intensive. Is there any way we can batch run this SQR process and split into each page (each paychek comes to one page),
AND
I need them renamed by SQR as it creates them, Each file would be names as EMPLID.
This is all in alternative to run process individually by employee , via self service. to not to over laod Process scheduler server.
Can anyone help me how can we get these thigns done in SQR?
Thanks in advance.You can use the SQR command new-report for each employee which closes the current report output file and opens a new one with the specified file name (e.g. EMPLID).
-
OWB 10R2 XML_ETL_UTILS xml data into multiple targets
I am having some trouble with loading an XML file correctly into the target tables.
The XML is looking like this (simplified))
<DATA>
<ROW rowid="1">
<FIELD1>bla1.1</FIELD1>
<FIELD2>bla1.2</FIELD2>
<CHILDREN>
<CHILD id="c1_1">bla_c1.1</CHILD>
<CHILD id="c1_2">bla_c1.2</CHILD>
<CHILDREN>
<PETS>
<PET id="p1_1">bla_p1.1</PET>
<PETS>
</ROW>
<ROW rowid="2">
<FIELD1>bla2.1</FIELD1>
<FIELD2>bla2.2</FIELD2>
<CHILDREN>
<CHILD id="c2_1">bla_c2.1</CHILD>
<CHILDREN>
<PETS>
<PET id="p2_1">bla_p2.1</PET>
<PET id="p2_2">bla_p2.2</PET>
<PETS>
</ROW>
</DATA>
A have a very simple data model:
TABLE data (DATAID, FIELD1, FIELD2)
TABLE datadetails (DETAILID, DATAID, DETAILTYPE, DETAILKEY, DETAILVALUE)
(Both set to truncate/insert)
When generating the pluggable mappings using the XML_ETL_UTILS each 'level' is generated into a pluggable map (DATA, ROW, CHILDREN, CHILD, PETS, PET).
1) The first problem I have was how to keep the relationship between the 2 tables. When inserting data into the 'datadetails' table, the data has to been linked to the correct row of the 'data' table.
This has been solved (not the best way I think) by manually modify the pluggable mappings CHILDREN, CHILD, PETS and PET to include and pass through the 'rowid' attribute so this 'rowid' can be inserted into the 'datadetails' table when inserting the details.
-> My guess is that there should be a better way or the XML_ETL_UTILS should be able to generate the code to handle this 'parent<->child' relation preservation. Only I don't know how (yet).
2) The problem I am facing now (after manually modifying the generated pluggable mappings to pass through the ID of the parent), is that for each parent ALL details of the XML file are inserted and not just the details belonging to that particular parent.
It seems that when processing the data for the 'datadetails' table, it re-read the whole XML file and looks for all instances of the detail element of the particular pluggable mapping.
This results in a 'datadetail' table looking like this
DETAILID DATAID DETAILTYPE DETAILKEY DETAILVALUE
*1 1 CHILDREN c1_1 bla_c1.1
*2 1 CHILDREN c1_2 bla_c1.2
*3 1 PETS p1_1 bla_p1.1
4 1 CHILDREN c2_1 bla_c2.1
5 1 PETS p2_1 bla_p2.1
6 1 PETS p2_2 bla_p2.2
7 2 CHILDREN c1_1 bla_c1.1
8 2 CHILDREN c1_2 bla_c1.2
9 2 PETS p1_1 bla_p1.1
*10 2 CHILDREN c2_1 bla_c2.1
*11 2 PETS p2_1 bla_p2.1
*12 2 PETS p2_2 bla_p2.2
This is off course not correct. Only the ones marked with a * should be there.
When trying to add a filter within the pluggable mappings to only look for the elements that have the correct parent (fortunately we do have the parent ID available because of the previously mentioned manual modifications of the mappings), the code that gets generated is not correct because it generated code with incorrect (missing) references to the correct variables and doesn't work.
-> Any idea of how to fix this?
=> More in general: what is the correct approach with OWB to load XML files that contain multiple rows and rows can have multiple level parent<->child relations? (Very common in XML world). Somewhere after processing we need a relational model to hold this data. Any help, examples, etc. is very much appreciated.
Don't hesitate to call/e-mail me for questions/remarks, etc.
Regards,
PatrickHi Tullio
es you will have to regenerate the pluggable mappings (rerun the expert). and you can either rebuild your map or synchronize the pluggable mapping operator in the map.
The error crept in when I introduced the 'create root node' option in the expert, this path worked, just the original did not ..sorry:) The fix should resolve your problem and I will get a full update uploaded.
Thanks
David -
Problem in Download data into Excel File
Hi Friends,
I have one doubt on WDJ.
I have got the data from the Back and display the data into Table UI Element. Depending upon po_status equals to OA Pending that time conf_Ship_date Column is Empty. That time we can Select All Checkbox Click on Download Button Excel file is not download. Why it not download? Conf_Ship_date Column is Empty. Conf_Ship_date Column is data available that time data download into Excel File.
My Req: if Conf_Ship_date Column is empty that time click on Download that data will download in to Excel. In Excel Conf_Ship_date Column will display in NULL or 00.00.0000 Like this also.
Code:ExcelEle.setConf_Shp_Date(StockEle.getConf_Shp_Date());
This means I am getting date from PoDetails_OutTab(StockEle)this node and add this date to PoDetails_ExcelData(ExcelEle) this node.Finally the date will available in PoDetails_ExcelData this node. By Using this node I will download data.
How to do this work?
Regards
VijayHi Arun,
For Example in Table 4 rows and 14 columns data is available. Select all check boxes click on download button total 4 rows and 14 columns data is downloaded.
Table 4 rows and 14 columns data is available. But in some cells data not available in that time I m getting null values from ECC System. That time I am not able to download.
In Particularly this problem I am getting only date colums.
So now I have develop this code
public void onActiondownloadToExcel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActiondownloadToExcel(ServerEvent)
IPrivatePO_Details_ResultView.IPoDetails_ExcelDataNode ExcelNode = wdContext.nodePoDetails_ExcelData();
IPrivatePO_Details_ResultView.IPoDetails_ExcelDataElement ExcelEle;
IPrivatePO_Details_ResultView.IPoDetails_OutTabNode StockNode = wdContext.nodePoDetails_OutTab();
IPrivatePO_Details_ResultView.IPoDetails_OutTabElement StockEle ;
for(int i = 0 ;i<StockNode.size();i++)
StockEle = StockNode.getPoDetails_OutTabElementAt(i);
if(StockEle.getCheckBox()== true)
ExcelEle = ExcelNode.createPoDetails_ExcelDataElement();// Create Element
if(StockEle.getConf_Shp_Date()==null)
java.sql.Date deliverydate1=new java.sql.Date(0,0,0);
ExcelEle.setConf_Shp_Date(deliverydate1);
else
ExcelEle.setConf_Shp_Date(StockEle.getConf_Shp_Date());
By using this code i have to download total Records but in this Conf_Shp_Date colums i am getting 31-12.1899 this output in Excel. But i need in Excel to print Null or 00.00.0000 like
ExcelEle.setQuantity(StockEle.getQuantity());
ExcelEle.setDeliv_Date(StockEle.getDeliv_Date());
if(StockEle.getExpt_Shp_Date()==null)
java.sql.Date deliverydate2=new java.sql.Date(0,0,0);
ExcelEle.setExpt_Shp_Date(deliverydate2);
else
ExcelEle.setExpt_Shp_Date(StockEle.getExpt_Shp_Date());
ExcelEle.setVendor_Material(StockEle.getVendor_Material());
ExcelNode.addElement(ExcelEle);
if(ExcelNode.size()>0)
wdThis.wdGetCO_POPendingController().downloadData(wdContext.nodePoDetails_ExcelData());// This is for Downalod data Method
wdThis.wdGetCO_POPendingController().DownLoadToExcel();// This is for Open Popup Window
wdContext.nodePoDetails_ExcelData().invalidate();
else
wdComponentAPI.getMessageManager().reportException("Please select any one po item from the table",true);
//@@end
Regards
Vijay
Edited by: KalluriVijay on May 18, 2010 10:05 AM -
Problems reading xmp data into dng files
Hi there,
I am working on a Mac and have exported files as lossy dng for colour correction externally. They have done the work for LR 5 process (I am using CC) and returned xml files. I cannot seem to read this data into the dng files for further editing in Lightroom. I have tried re-importing them and I have tried reading metadata from file. Any help would be appreciated as I usually simply read the xmp to the original RAW but the RAW files are currently on an external drive in another country!!!
Thanks,
AndyMoominman wrote:
I am basically trying to export xmp files from a set of low resolution dng files so that I can access my Lightroom edits in the RAW files. I have separated the RAW and dng files in different folders
Hi Andy,
I dunno how best to get extracted xmp files into the raw folders, but if you are comfortable with exiftool, you can use it to extract xmp sidecars from DNG files.
If you want a turn-key solution which does not required you to futz with exiftool, then consider a free plugin I wrote:
robcole.com - xEmP
It will allow you to create xmp sidecars with all your DNG adjustments and metadata (which can then be applied to the non-dng raw files).
However, if you won't need the DNGs in your catalog afterward, then the easiest way is to convert them back to proprietary raw format using this plugin (also free, and I wrote it):
robcole.com - UnDNG
Conceptually, you can think of it as converting the DNGs to proprietary raw format, but note: it doesn't convert anything, it just allows existing raw files that are NOT in the catalog, to replace the DNGs that are in the catalog. All adjustments and metadata and everything else will be preserved (just like when you convert a proprietary raw to DNG format).
Rob -
Splitting single video into multiple files - workflow improvements?
I regularly need to split a single video into multiple separate files that are used by other programs. I'm using Premiere Pro CS4 for a number of reasons including the ability to easily and accurately select a scene by individual frames, native audio and video effects/filters, and the ability to import and export various video types. I'm open to using other tools, but I haven't yet found one that is even close to Premiere Pro when it comes to accurately selecting split points.
I'm not a Premiere Pro expert. I have been doing this for about four months and have read many resources (books, forum posts, help guides) to refine the workflow I'm currently using. My question: does anyone know any improvements that might save me time/keystrokes.
Current workflow:
I've bound F8 to File > Export > Media
Import video file
Open in source monitor
Set In and Out points for scene in source monitor
Ctrl-drag from source monitor to Project Panel (creates a subclip)
Repeat 3 and 4 for all scenes/subclips
Select all subclips from Project Panel and drag to timeline
Set work area bar to first subclip in timeline by the following four keystrokes: Home, Alt-[, PageDown, Alt-]
Type F8 (File > Export > Media shortcut). Type output file name, click OK and the first subclip is put in the AME queue
For the remaining subclips, type: Alt-[, PageDown, Alt-], F8, output file name, OK and repeat until done
Any thoughts/ideas on workflow improvements?
Thank you!Thank you Hunt.
For the sake of brevity, I didn't include all of the details about the various aspects of the projects.
Early on I was doing what you suggested and yes, it is a little quicker. I learned (painfully) a couple of months later that I sometimes have to go back and adjust the clips and this method (trim to timeline with no subclips) resulted in quite a bit of duplicate effort (to reobtain start/stop points). I've since learned that managing the "scenes" as subclips in topical bins allows me to go back and make adjustments, long after I've totally forgotten about the project content, without a lot of unnecessary reworking. -
I am trying to split a document into multiple files and it won't let me
I have opened my file in Adoble Acrobat Pro, for which I have a year subscription, and the option to split the document is gray (not applicable). Why would this not be an option? This file contains multiple docs that were merged into one for ease while emailing. Now I need to split them back up. Shouldn't I be able to do this with Acrobat Pro?
Hi adminkg&a,
It sounds like the file may have security applied to prevent alteration. Do you see "Secured" in the document's title bar?
Best,
Sara -
Problems importing XML data into form (Acrobat 8 Pro)
I created a form in Designer with an email submit button, and now I am receiving XML files by email. I'd like to import these back into the form. But when I open the form and select "import data," I get the following message:
"This document restricts some Acrobat features to allow for extended eatures in Adobe Reader. To create a copy of the document that is not restricted (and has no extended features in Adobe Reader), click Save a Copy."
Whether I save it or click cancel, afterwards "import data" is no longer an option. The same thing happens if I try to open the form again in Designer.
I assume that this is related to having enabled usage rights in Adobe Reader (necessary because the email submit button only works for people who use Microsoft Outlook -- what's up with that?). But dis-enabling these rights for the form doesn't change anything.
All help appreciated! I'm a novice, so please make it simple.
Thanks,
TedIf I click "save a copy," then it opens a dialogue box for this. I've been saving this copy under the same name but in a different folder (so as not to screw up my original).
After saving the file, the "import data" option is no longer available for selection. (Nor is the "Edit Form in Designer" option).
If I close this and open the newly saved file, then it does give me an "import data" option. But when I try to import an XML file, I always get this error:
"Xml parsing error: not well-formed (invalid token)(error code 4), line 1, column 5 of file [file path and name]"
Open for suggestions.
Thanks,
Ted -
Split the data into multiple rows in table
Hello,
I am using Oracle 10g apex 3.2.
I have a requirement like this.
I have a table like TableA
Col1 Col2
90 1
91 1:2:3
92 3
I want the data like
Col1 Col2
90 1
91 1
91 2
91 3
92 3
How to do this?
Thanks
Edited by: user13305573 on Aug 3, 2010 8:16 PMwith
your_data as
select 90 as col1, '1' as col2 from dual union all
select 91, '1:2:3' from dual union all
select 92, '3' from dual
select
y.col1,
regexp_substr(y.col2, '[^:]+', 1, t1.column_value) as col2
from
your_data y,
13 table(cast(multiset(select level from dual connect by level <= length (regexp_replace(y.col2, '[^:]+')) + 1) as sys.OdciNumberList)) t1
14 /
COL1 COL2
90 1
91 1
91 2
91 3
92 3
5 rows selected.
Elapsed: 00:00:00.05
ME_XE?select * from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
5 rows selected.
Elapsed: 00:00:00.03
ME_XE? -
Split TempDB Data file into multiple files
Hey ,
I have been seeing TempDB contention in memory on our SQL server 2012 Enterprise Edition with SP2 and I need to split TempDB Data file into multiple files .
Could someone please help me to verify the following information:
1]
We are on SQL server 2012 Enterprise Edition with service pack2 but as per SQL Server 2012 Enterprise Edition under CAL Licensing –We are limited to use 20 logical processors instead 40 logical processors. Our SQL is configured
on NUMA nodes and with the limitation SQL uses only 2 NUMA nodes on live .There are 10 logical CPUs are evenly assigned to each NUMA nodes. Microsoft recommends that if SQL server configured on NUMA node and we have 2 NUMA nodes, then we may add two data files
at a time. Please let me know should I add two TempDB data file at a time?
2] We have TempDB Data and log files both on the same Drive of SQL server .When I split TempDB into two Data files, I can get them on the same Drive .What your recommendation should I need to create TempDB Data files on the same drive or on separate
disks?
3] What would be the blackout plan for splitting the tempdb into multiple files? Please let me know if someone has a better back out plan ?
1] Run script that create tempdb Database with a single file
2] Reboot SQL service in order to apply change
Your help will be apprecited .
Thanks ,
DaizyTom , I am seeing TempDB contention on Production server when there is a heavily load on sql server . We also experiencing the overall system slowness.Please look at Pagelatch wait statistics on our server ,Please advise .
wait_type
waiting_tasks_count
wait_time_ms
max_wait_time_ms
signal_wait_time_ms
PAGELATCH_UP
2680948
3609142
10500
508214
PAGELATCH_SH
1142213
1338451
8609
324538
PAGELATCH_NL
0
0
0
0
PAGELATCH_KP
0
0
0
0
PAGELATCH_EX
44852435
7798192
9886
6108374
PAGELATCH_DT
0
0
0
0
Thanks ,
Daizy -
How can I split a class into 2 files?
I converted a C++ program to Java recently and it works fine, but I ran into a problem.
One file is very large and I need to add more functionality. Unlike with C++ where you can just put new functions in another file, I don't see a way to do it in Java.
I made another file, and therefore another class, but the compiler complains that it can't call a static function from non-static context. (I did not declare it static so I guess it's assuming it) But I understand why. So I made the new class "extend" the old one so "this" would exist but that doesn't work -- Is it because the new class is a subclass of the original class?
There must be a way to do this. But I don't see what is likely obvious. HELP! And thanks.JavaIsBetterThanCPP wrote:
There must be a way to do this. But I don't see what is likely obvious. HELP! And thanks.Unfortunately Java has no concept of "partial classes" like C# has. Generally, however, a class that is large enough to split up into separate files is either one class that should be modularized further into separate classes, or it already is modularized and all that code is the result of many inner classes. What some people do is promote those inner classes to top-level members in their own file, and mark them as package-private. Using a package you can basically have two classes that know everything about each other and have full access to each other.
But personally, and until I see justification otherwise, semantics in Java being unbreakingly tied to a certain file structure and naming is the most bonehead and, frankly, non-Java thing about Java.
There's probably a pre-processor out there that will let you split a class into multiple files and will combine them into a single source file just-in-time to pass to the compiler. -
How to write xml data to a file
Hi all,
We have a requirement of writing the xml data into a file in given directory in the server. Generating the xml data using the sql query below.
SELECT XMLELEMENT ("ROW",
XMLELEMENT ("CELL", xmlattributes ('EBIZCZMDL_01' AS "colname"), inventory_item_id),
XMLELEMENT ("CELL", xmlattributes ('EBIZFFMT_01' AS "COLNAME"), attribute29),
XMLELEMENT ("CELL", xmlattributes ('COMMON' AS "COLNAME"),inventory_item_id || '' || attribute29 || 'ITM')
AS "RESULT") "XMLDATA"
FROM apps.mtl_system_items_b
When we try to write the the data from this query to a file using UTL_FILE.put_line, the script gives the error
PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
If somebody can help us pls.......
Thanks in advanceHi Odie,
We are looking at the xml data to be like the below:
- <xref xmlns="http://xmlns.oracle.com/xref">
- <table name="NAPP_ITEM_ITEMID">
- <columns>
<column name="EBIZFFMT_01" />
<column name="COMMON" />
<column name="EBIZQOT_01" />
<column name="EBIZCZMDL_01" />
<column name="EBIZCZGOLD_01" />
</columns>
- <rows>
- <row>
<cell colName="EBIZFFMT_01">154</cell>
<cell colName="COMMON">154811809990111362727</cell>
<cell colName="EBIZQOT_01">81</cell>
<cell colName="EBIZCZMDL_01">91</cell>
<cell colName="EBIZCZGOLD_01">991</cell>
</row>
- <row>
<cell colName="EBIZFFMT_01">180</cell>
<cell colName="COMMON">180811809990111362727</cell>
<cell colName="EBIZQOT_01">871</cell>
<cell colName="EBIZCZMDL_01">731</cell>
<cell colName="EBIZCZGOLD_01">341</cell>
</row>
</rows>
</table>
</xref>
We have managed half way trying to get the structure. As we are new to this XML Programming.
The call to dbms_xslprocessor.clob2file is within the cursor loop for the given SQL.
DECLARE
l_file_name VARCHAR2 (30);
l_file_path VARCHAR2 (200);
CURSOR xml_cur
IS
SELECT XMLELEMENT
("ROW",
XMLELEMENT ("CELL",
xmlattributes ('EBIZCZMDL_01' AS "colname"),
inventory_item_id
XMLELEMENT ("CELL",
xmlattributes ('EBIZFFMT_01' AS "COLNAME"),
attribute29
XMLELEMENT ("CELL",
xmlattributes ('COMMON' AS "COLNAME"),
inventory_item_id || '' || attribute29 || 'ITM'
) AS "RESULT"
) "XMLDATA"
FROM apps.mtl_system_items_b
WHERE attribute29 IS NOT NULL;
BEGIN
l_file_path := '/usr/tmp';
l_file_name := 'TEST_XREF4.xml';
FOR xml_rec IN xml_cur
LOOP
dbms_xslprocessor.clob2file(xml_rec.XMLDATA, l_file_path, l_file_name, nls_charset_id('UTF8') );
END LOOP;
END;
Please see the above code snippet and help us if we are doing something wrong.
Thank you
Maybe you are looking for
-
I am running version 3.6.22 and would like to update. However when I tried to update from the Mozilla web site I got the message: "/tmp/S_ku+qmL.part could not be saved, because the source file could not be read. Try again later, or contact the serve
-
Editing quick time movie clips with sound
We are editing together some quick time movie clips but we can't get the sound to come up. Is there something we are doing wrong? Can you split the voice from the visual when you bring these clips into Final Cut?
-
Running with lid closed, no external monitor?
Is it possible to run with the display closed without having an external monitor connected? Closing the display without external monitor hooked up always seems to cause computer to go to sleep. Do they do this for heat reasons?
-
Username and password for Windows doesn't work for Safari
I just installed Safari 3.0.3 for windows under WindowsXP on local machine. But I have problem access local IIS. Here is what I did: 1. type http://localhost in Safari 2. I get a pop up login window says "To view this page, you need to log in to area
-
Plz answer anyone to my question
when we will go for abstract classes and when we will implement interfaces...plz give me the suitable answer to my question with example