Data File Parsing in CVI
Hi guys,
I'm new in LabWindows. I have a simple project, which has to parse a .txt file. Only some data inside the txt-File is interesting (the middle part, segment # 1-3 -> see example). The upper and lower part differs in size and is not important. Are there predefined LabWindows function, which I may use, or do I have to code it in C?
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Program Run: xxxxxxxxxxxxxxxxxxxxxx Model: xxxxxxxxxxx
Description: xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxx
Seg- Segm. Run | Mix | RMV GasVol Max Max CNS CPTD END END
ment Time Time | Used| liter Segm. A B % % N2 N2+O2
# (min) (min) | # | /min liters (mswg) Segm. Segm. Segm. (mswg) (mswg)
----- ----- ----- | ------ | ---- ------ ------ ----- ------ ----- ------ ------
1 0.1 0.1 | 1 |20.00 4.0 20. 0.62 0.0% 0.0 20. 20.
2 19.9 20.0 | 1 |20.00 1178.4 20. 0.62 2.9% 6.1 20. 20.
3 2.2 22.2 | 1 |20.00 87.7 20. 0.62 0.1% 0.1 20. 20.
3.0% 6.2
Total Total
with 1.5
xxxxxxxxxxxxxxxxxxxxx: liters safety factor
Mix # 1 1270.1 1905.1
... delete your second call of ReadLine and it should work
HansiWWW wrote:
It works very nice...
The only problem I currently have is, that it only prints out every second line????????
int CVICALLBACK AddCallback (int panel, int control, int event,
void *callbackData, int eventData1,
int eventData2)
int error = 0;
int status = 0;
int filehandle = 0;
char str[351];
if (event == EVENT_COMMIT) {
filehandle = OpenFile("test.dat", VAL_READ_ONLY, VAL_OPEN_AS_IS, VAL_ASCII);
while(1) {
status = ReadLine(filehandle, str, 350);
// end of file reached
if(status == -2)
break;
// Error found
else if(status == -1) {
//error = GetFmtIOErrr ( );
break;
else {
ReadLine(filehandle, str, 350);
strcat(str, "\n");
SetCtrlVal (panel, PANEL_ACTIONBOX, str);
CloseFile (filehandle);
return 0;
Similar Messages
-
How to parse ".dat" file using java?
Hi experts/friends,
I need to parse the ".dat" files such as "history.dat" of Firefox history and "index.dat" of IE history...
I cannot able to parse those files.
Can anyone suggest me or help me....Google ( [url http://www.google.com/search?q=firefox+history+file+format]firefox history file format )
Google ( [url http://www.google.com/search?q=internet+explorer+history+file+format]internet explorer history file format ) -
Parsing raw DAT files from WVC210 IP cam
Hi,
Is there any information available about the raw DAT file format that cisco uses for the WvC210 IP camera's?
A surveillence system based on 2 WvC210 IP camera's was vandalised and we could salvage only the DAT files, the rest is trashed.
I've loaded the software onto a new system and put the DAT files in the correct location but nothing works on these files.
I can see structure in the raw data, so there is something there.
The validate tools and the DBTools don't have any effect so maybe the files are mangled.
But as a programmer I could parse the files and possibly pad stuff to get it working again.
It's really important we do a full effort to retrieve some evidence, any help is appreciated.
I've read most posts and I relalise the product is EOL, but all I need is the file structure, any tech docs available?
Regards,
ShaunHi Alan,
We have more .DAT files but no .rcd or other files.
Here is the full file list, showing bytes and filenames.
These are all the files that were recovered from the vandalised harddrive.
But I'll double check this just to be sure.
I'm guessing the naming convention is:
C00000/1 (camera number)
S00A ??
20120215 (year-month-day)
151302 (hr-min-sec)
37178 (??)
.dat (file extention)
15-02-2012 16:02 717.034 C00000S00A20120215130237178.dat
15-02-2012 16:40 819.238 C00000S00A20120215134037698.dat
15-02-2012 18:03 718.943 C00000S00A20120215150349680.dat
15-02-2012 19:06 935.351 C00000S00A20120215160626831.dat
15-02-2012 19:08 323.334 C00000S00A20120215160844811.dat
15-02-2012 14:37 971.580 C00001S00A20120215113659726.dat
15-02-2012 15:09 752.687 C00001S00A20120215120925565.dat
15-02-2012 16:00 563.281 C00001S00A20120215130006543.dat
15-02-2012 17:34 615.714 C00001S00A20120215143439943.dat
15-02-2012 17:34 22.921.555 C00001S00A20120215143441035.dat
15-02-2012 19:08 858.214 C00001S00A20120215160839377.dat
15-02-2012 19:13 132.448.256 C00001S00A20120215161340485.dat
15-02-2012 19:19 350.180.000 C00001S00A20120215161947209.dat
These are all the files we have and I've uploaded all to the google docs folder:
https://docs.google.com/open?id=0B8oCN_ZRP1rARTBFWW4tNHhRUEdxTmM0SV9SSTVsQQ -
How to Edit a XML data file from AS3 class...
Hi...
I need to edit an XML data file I have at the exit of application.... I have a demo code which is not working....
This is the code :
public function UpdateData():void
trace("Closing....");
var FileData:XML=<Hello>Hai</Hello>
var urlLdr:URLLoader = new URLLoader();
var urlRqst:URLRequest = new URLRequest ("AppData.xml");
urlRqst.data=FileData;
urlRqst.contentType = "text/xml";
urlRqst.method = URLRequestMethod.POST;
urlLdr.load(urlRqst);
This AppData file already exist and has some data in it.
Plus :
How to find the application is exiting.use: fscommand('Quit');
to exit your app.
and this is how you would use the urlloader class to save data:
public function UpdateData():void
trace("Closing....");
var FileData:XML=<Hello>Hai</Hello>
var urlVar:URLVariables=new URLVariables();
urlVar.fileData=FileData;
var urlLdr:URLLoader = new URLLoader();
var urlRqst:URLRequest = new URLRequest ("this must be an executable to parse and write data");
urlRqst.data=urlVar;
urlRqst.contentType = "text/xml";
urlRqst.method = URLRequestMethod.POST;
urlLdr.load(urlRqst);
but i don't think you can use an executable on a fl4 device so you will need to use a different class. i don' know how you're storing an xml file on a fl4 device but you should be able to use the sharedobject to read and store xml. -
Unable to use B2B Document Editor tool to create guideline from data file
Does anyone successfully used the B2B Document Editor tool to generate the guideline doc from an HL7 data file ?
I attempted to use the SpecGenerator feature of this tool to create a guideline from the "a01.xml" sample file in the HL7 tutorials (came with the B2B installation" and the wizard kept on giving me "parsing errors" message below
"The data in the file could not be parsed. Please check the file to verify that it is valid and formatted correctly. This error can occur for one of the following reasons: A) The data file may be a Word document or have some other binary format. B) The envelope data may not be formatted properly. If this is an X12 data file, please verify that the ISA segment is the correct size (exactly 106 characters). If this is an EDIFACT data file, it must have either a UNA or begin with UNB. For other standards, verify that the envelope segments conform to the specified rules. C) The segment/record delimiters in the file are incorrect."
Any idea why ? I did not alter the sample file in anyway -- its format is exactly the same as when it was installed.
Any helps are appreciate !!Hi,
I would suggest that you learn the B2B product starting with the HL7 tutorial. Start by importing the export files and follow the instructions to make the system work end to end.
Next, you want to configure for the HL7 tutorial manually using the ecs and xsd files provided in the HL7 tutorial directory. Again, ensure that the system work end to end after you have done the manual configuration.
Next, you create a new ecs and xsd file using the Document Editor from scratch and use them in your manual configuration. You can use the same doctype and version as in the tutorial so that you can be familiar with the Document Editor and at the end of this exercise, you know you have done things properly if the system works end to end. The documentation for Document Editor is mainly in the Windows Help section.
After the incremental steps above, you will have the knowledge to implement the document type and version of your project. Going straight into the requirements in your project makes it difficult to debug because they are too many moving parts.
Hope this helps,
Eng -
Hi,
I am generating my reports using the cgicmd.dat file in pdf format and my application is in web-based html.
I have a report which passes 4 paramters and 2 of it is considered imortant (and dynamic according to user interaction in the begining) and should not be changed by the users. I have found out that by using the parameter forms like %P, %PT and %PC entry in the cgicmd.dat file would means that I cannot use other user parameters in the file entry, and so also in the reverse situation.
But when I tried to put both of them (%P and %1..%4 for user parameters) together, then call up the reports with the parameter values included in the entry (like http://server/repserver/?repname+value1+v2+v3+v4), I seems to be able to pass the important values to the displayed parameter form while hiding them and asking the users to enter only the other 2 parameters which they may change.
But then, when I submit the form, it gave me an error:
======================================================
Error: The requested URL was not found, or cannot be served at this time.
Oracle Reports Server CGI - Error occurred while parsing the Reports Server command line.
======================================================
May anyone assist me on how I can make use of the parameter form and also passing in some values that are dynamic and cannot be changed by the users?
Thank you in advance for your assistance!FYI...
Our dev and prod are at the same levels. I was able to narrow the problem down further, however. It appears to be a row size problem. If I force a rownum < 1500 in my report's query, then it works fine on dev and prod. If I force a rownum < 2000, then it crashes the engine on prod. The reason it works on dev and not on prod is that the amount of data on dev is far less than prod. Also, I ran the report locally on my PC against the prod database and it gave me a little more info. The report appears to query all of the rows fine, but it gets an ArrayIndexOutOfBounds exception. Since the report comes back with all rows just fine using a DESFORMAT other than DELIMITED, I believe it's a bug with applying the delimiter when formatting the report. The admins say that we are a few patchsets behind, so I'm guessing it is a fixed bug already.
Thanks. -
Error editing data file, unable to load Region Definition
Hello
I'm getting a parseException when I try to edit a data file from UCM.
The steps followed are:
1- Create an element definition at Site Studio
2 - Create a Region Definition refering to the Element Definition
3 - Create a Content in UCM. Double checked that the region definition and the web site are set. The content of the primary file is:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wcm:root xmlns:wcm="http://www.stellent.com/wcm-data/ns/8.0.0" version="8.0.0.0">
</wcm:root>
4 - Open the content info and click "Edit data file". Then two pop-up window are showed:
A. The contributor pop-up displays a blank page with title containing "'idcService' parameter not found"
B. new Page displays the next message:
Unable to perform the action due to the following reasons:
[+] The Region Definition could not be loaded. The Region Definition 'RD_REGION_ID' could not be loaded. [...] The markup in the document preceding the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
I've checked the region definition and everything seems correct to me:
Web browser displays the xml correctly when I open it from "Web Location".
I've checked the syntax with Notepad++ XML Tools plugin and the result is "No error detected".
I've also checked the file with hex editor and everything seems to be right.
Same tests for the primary file
Both contents, the region definition and the dataFile, are accesible and editable from Site Studio.
UCM server LOG:
-translated-
Could not load 'RD_REGION_ID' of Region Definition. Error parsing Region Definition at line 1, column 2.
-end of translated log-
Error: The markup in the document preceding the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.. [ Detalles ]
!csSSWebsiteObjectLoadError,Region Definition,RD_REGION_ID!csSSWebsiteObjectSaxParseException,Region Definition,1,2,The markup in the document preceding the root element must be well-formed.!syJavaExceptionWrapper,org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:925)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at weblogic.xml.jaxp.RegistryDocumentBuilder.parse(RegistryDocumentBuilder.java:163)
Server:
Version:11gR1-11.1.1.4.0-idcprod1-101229T001824 (Build:7.3.0.180)
Database Type:Oracle
Database Version:11.2.0.2.0 ---Oracle Database 11g Enterprise Edition Release --- - Production With the Partitioning,
Site Studio Info:
Component Build Version: 11.0.0.648
Disable Contribution: False
Web Site Object Type Field: xWebsiteObjectType
Web Sites Field: xWebsites
Web Site Section Field: xWebsiteSection
Do not Show In Lists For Web Sites Field: xDontShowInListsForWebsites
Region Definition Field: xRegionDefinition
Contributor Console Enabled: True
Designer Version: 11.1.1.4.0Hi,
I've tested to obtain the content of the UCM from a webcenter portal server, I create a new Navigation Item of type "Content Item", when I choose any document from the UCM I'm getting the next trace:
java.lang.NullPointerException
at oracle.adf.controller.internal.binding.RegionUtils.getRegionHierarchyStringRecurse(RegionUtils.java:675)
at oracle.adf.controller.internal.binding.RegionUtils.getRegionHierarchyStringRecurse(RegionUtils.java:700)
at oracle.adf.controller.internal.binding.RegionUtils.getRegionHierarchyStringRecurse(RegionUtils.java:700)
at oracle.adf.controller.internal.binding.RegionUtils.getRegionHierarchyStringRecurse(RegionUtils.java:715)
at oracle.adf.controller.internal.binding.RegionUtils.getRegionHierarchyString(RegionUtils.java:647)
at oracle.adf.controller.internal.binding.RegionUtils.getTaskFlowId(RegionUtils.java:577)
oracle.adf.controller.ControllerException: ADFC-14014: Task flow binding active attribute evaluated to null, binding='pickerWrapper1'.
at oracle.adf.controller.internal.binding.DCTaskFlowBinding.getConditionalActivationValue(DCTaskFlowBinding.java:974)
at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:84)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3211)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2883)
java.lang.NullPointerException
at oracle.adf.controller.internal.binding.RegionUtils.getRegionHierarchyStringRecurse(RegionUtils.java:675)
at oracle.adf.controller.internal.binding.RegionUtils.getRegionHierarchyStringRecurse(RegionUtils.java:700)
at oracle.adf.controller.internal.binding.RegionUtils.getRegionHierarchyStringRecurse(RegionUtils.java:700)
at oracle.adf.controller.internal.binding.RegionUtils.getRegionHierarchyStringRecurse(RegionUtils.java:715)
at oracle.adf.controller.internal.binding.RegionUtils.getRegionHierarchyString(RegionUtils.java:647)
at oracle.adf.controller.internal.binding.RegionUtils.getTaskFlowId(RegionUtils.java:577)
I don't know if the reason for this error is the same or there are other causes involved
Regards,
Rafa -
The flat files are present in a unix server .
No other application can be loaded there
i have a lunix machine from where i have to access unix server data
which is the better way
1)directly reading the file from the unix server
2)loading the file in lunix and then reading
How this can be done in java ????
Now lets say we are reading the file in some way or the other ,How to do i parse it
File parsing
different file:
1)fixed format
file size 50 mb
eg
a)the data will be in fixed column size
0-60 -name
61-70 -department
71-80 -age
b)there will be section strip data for a particular section
Note :-Here i have to parse a particular section from the flat file the size of file is 50mb?
eg
section-Finance
name department age
Smith dep1 32
john dep2 40
turner dep3 56
section-marketing
name department age
antony dep1 60
black dep2 57
2)csv file
file size 15 kb
here the data size will be not be fixed but will have a seperator
name|department|age
Smith|dep1|32
john|dep2|40
turner|dep3|56
antony|dep1|60
black|dep2|57
here seperator is | it can be anything
Thanx in advance
MeghnaXml Convert:
http://industry.java.sun.com/solutions/products/by_product/0,2348,all-4398-99,00.html
Flat File to Xml Converion:
http://www.infoloom.com/gcaconfs/WEB/philadelphia99/lyons.HTM -
How to insert a new line character inside CDATA tag in the source xml data file?
values for form fields in the xml data file is contained inside CDATA tags which is an Unparsed Format.
Eg: [CDATA[IBM-01 ~ DSHFSJDSJ ~ FGFGFJ, ~ VA 665665]] delimited by "~" char
Actual o/p:-
IBM-01 ~ DSHFSJDSJ ~ FGFGFJ, ~ VA 665665
Expected o/p is like :-
IBM-01
DSHFSJDSJ
FGFGFJ,
VA 665665
live cycle product does not interpret ~ as a newline character. Please suggest which character should be used instead inside CDATA section or if there is any other way to fix this?I do not have any problem while using IE's XML parser
for XML+XSLT merging.That is because IE's parser does not implement XML correctly.
But when I use JAXP's Transformer object, it does not
preserve the new lines inside attribute values and
converts those into white spaces.That is exactly what the XML specifications say should happen.
>
----If you have text that contains newlines, you
should put it in an element, not in
----an attribute.
That would be my last solution. But I'd really hate
to change my logic just 'coz JAXP is not capable of
handling new lines inside attribute values. I may be
wrong... but If IE can keep those then there has to
be a way to do the same from server side merging....Sure. Write your own parser with the same bug in it. But you don't have any right to demand that other people supply you with parsers that work incorrectly. -
I have an XML data file that I want to use to populate a pdf fill-out form. There is enough data in the file to populate several forms. Is there a way of moving each set of data from this XML file into a seperate pdf fill-out form?
Hi,
There are many ways to convert XML files to PDFs through java.
One of the easiest way is by using iText.jar which have classes for conversion.
The following are the required steps
1. Create a document object for the XML file ( Using DOM or SAX parser).
2. Parse the xml document and extract the content to write in PDF.
3.Create a itext Document object.
4.Get a PdfWriter instance for the PDF file.
5.Write in the pdf the extracted text using the document object.
Refer <a href="http://itextdocs.lowagie.com/examples/com/lowagie/examples/general/HelloWorld.java">here</a> for a simple pdf writer example.
Refer <a href="http://java.sun.com/developer/codesamples/xml.html">here</a> for examples of XML Parsers.
Regards,
Uma -
After renaming data file it failes during database open
Hi,
I took RMAN full back.
Then i renamed datafile then restored and recovered. It goes fine.
But during the daabase open it fails with
ORA-01113: file 6 needs media recovery
ORA-01110: data file 6: '+OBTDG1/qa112asm/datafile/users02.dbf'
Any specific reason for that?
=======================================================
Recovery Manager: Release 11.2.0.1.0 - Production on Thu Jul 22 01:19:30 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN> backup database;
connected to target database: QA112ASM (DBID=3746246770)
RMAN>
Starting backup at 22-JUL-10
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=145 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=+OBTDG1/qa112asm/datafile/system01.dbf
input datafile file number=00003 name=+OBTDG1/qa112asm/datafile/rbs01.dbf
input datafile file number=00002 name=+OBTDG1/qa112asm/datafile/sysaux01.dbf
input datafile file number=00004 name=+OBTDG1/qa112asm/datafile/temp01.dbf
input datafile file number=00005 name=+OBTDG1/qa112asm/datafile/tools01.dbf
input datafile file number=00006 name=+OBTDG1/qa112asm/datafile/users01.dbf
input datafile file number=00007 name=+OBTDG1/qa112asm/datafile/vindx.dbf
channel ORA_DISK_1: starting piece 1 at 22-JUL-10
channel ORA_DISK_1: finished piece 1 at 22-JUL-10
piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljcr97_1_1 tag=TAG20100722T011934 co
mment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 22-JUL-10
channel ORA_DISK_1: finished piece 1 at 22-JUL-10
piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back09ljcra0_1_1 tag=TAG20100722T011934 co
mment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 22-JUL-10
RMAN> shutdown immediate
Oracle instance shut down
RMAN> startup mount
connected to target database (not started)
Oracle instance started
database mounted
Total System Global Area 275615744 bytes
Fixed Size 2168944 bytes
Variable Size 184551312 bytes
Database Buffers 83886080 bytes
Redo Buffers 5009408 bytes
RMAN>run(
*run {*
set newname for datafile '+OBTDG1/QA112ASM/users01.dbf' to '+OBTDG1/QA112ASM/users02.dbf' ;
restore datafile '+OBTDG1/QA112ASM/users01.dbf';
recover datafile '+OBTDG1/QA112ASM/users01.dbf' noredo;
switch datafile '+OBTDG1/QA112ASM/users02.dbf' ;
RMAN>
2> 3> 4> 5> 6>
executing command: SET NEWNAME
Starting restore at 22-JUL-10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=137 device type=DISK
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00006 to +OBTDG1/QA112ASM/datafile/users02.dbf
channel ORA_DISK_1: reading from backup piece /qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljc
r97_1_1
channel ORA_DISK_1: piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljcr97_1_1 tag=T
AG20100722T011934
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 22-JUL-10
Starting recover at 22-JUL-10
using channel ORA_DISK_1
Finished recover at 22-JUL-10
datafile 6 switched to datafile copy
input datafile copy RECID=2 STAMP=724987222 file name=+OBTDG1/qa112asm/datafile/users02.dbf
RMAN> alter database open;
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 07/22/2010 01:20:23
ORA-01113: file 6 needs media recovery
ORA-01110: data file 6: '+OBTDG1/qa112asm/datafile/users02.dbf'
=======================================================
Edited by: user13310502 on Jul 23, 2010 4:49 AMas you can see..
RMAN> sql "alter tablespace andreas offline";
sql statement: alter tablespace andreas offline
RMAN> run
2> {
3> set newname for datafile 8 to '+FRA';
4> restore datafile 8;
5> recover datafile 8;
6> switch datafile 8;
7> }
executing command: SET NEWNAME
Starting restore at 23-JUL-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00008 to +FRA
channel ORA_DISK_1: reading from backup piece +FRA/remtest/backupset/2010_07_23/nnndf0_tag20100723t135242_0.3112.725118763
channel ORA_DISK_1: restored backup piece 1
piece handle=+FRA/remtest/backupset/2010_07_23/nnndf0_tag20100723t135242_0.3112.725118763 tag=TAG20100723T135242
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 23-JUL-10
Starting recover at 23-JUL-10
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:00
Finished recover at 23-JUL-10
datafile 8 switched to datafile copy
input datafile copy recid=7 stamp=725118807 filename=+FRA/remtest/datafile/andreas.3113.725118805
RMAN> sql "alter tablespace andreas online";
sql statement: alter tablespace andreas online
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 07/23/2010 13:53:33
RMAN-11003: failure during parse/execution of SQL statement: alter tablespace andreas online
ORA-01113: file 8 needs media recovery
ORA-01110: data file 8: '+FRA/remtest/datafile/andreas.3113.725118805'
RMAN> run
2> {
3> set newname for datafile 8 to '+FRA';
4> restore datafile 8;
5> switch datafile 8;
6> recover datafile 8;
7> }
executing command: SET NEWNAME
Starting restore at 23-JUL-10
using channel ORA_DISK_1
channel ORA_DISK_1: restoring datafile 00008
input datafile copy recid=8 stamp=725118807 filename=+DATA/remtest/datafile/andreas.349.725036143
destination for restore of datafile 00008: +FRA
channel ORA_DISK_1: copied datafile copy of datafile 00008
output filename=+FRA/remtest/datafile/andreas.3114.725118849 recid=9 stamp=725118849
Finished restore at 23-JUL-10
datafile 8 switched to datafile copy
input datafile copy recid=10 stamp=725118850 filename=+FRA/remtest/datafile/andreas.3114.725118849
Starting recover at 23-JUL-10
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:01
Finished recover at 23-JUL-10
RMAN> sql "alter tablespace andreas online";
sql statement: alter tablespace andreas online -
Import dimension and member via maxl, how to create data file and rule file
Hi
I have a task to import dimension and member into Essbase, for project requirement, I have to use text file or spreadsheet file.
I wonder which format can be imported into Essbase?
I tried to create them, failed.
Do you have any samples to help me? dimension file and rule file...
I search a lot in http://gerardnico.com/wiki/epm/essbase/dimension_build#about , but there are no samples.
Thanks in advance...
Best regards,
Samanthaimport database Sample.Basic data from data_file 'C:\TEMP\GENREF.txt' using rules_file 'C:\TEMP\GENREF.rul' on error append to 'C:\TEMP\logs\dimbuild.log';Here issue is not with rulefile but in reading the rule file.
I hope rule file is in the database directory (By default it will get saved there only)
Try with the below command
import database Sample.Basic data from data_file 'C:\TEMP\GENREF.txt' using server rules_file 'GENREF' on error append to 'C:\TEMP\logs\dimbuild.log';
Rule file also had one issue
Market, Product, Measures, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, DecHere I am seeing only four dimensions from the Sample.Basic database
Scenario is missing. So define Actual (Scenario Dimension member) in the rule file header definition.
All dimensions must be identified to parse one data file with rule file.
PS: Naming (GENREF) is also irrelevant if you are loading data. It is apt for dim load. -
OIM date format parsing error on reconciliation
Hi All,
I am using OIM 9.0.3 . When I do the recon , I am able to retrieve user from source and created in OIM ,but one of my field is DATE and which I have map to start date.
Recon Manager shows me that my date field having parsing error. I tried various date format ,but still the error is coming.
I don't know which format OIM expecting for date type data for I am missing something. Please tell me .
Thanks in Advance.Hi All,
I created a GTC connector with following configuration
Staging Directory (Parent identity data): /home/GTC
Archiving Directory: /home/GTC/archive
File Prefix: PLC
Specified Delimiter: |
File Encoding UTF8
Source Date Format yyyy/MM/dd hh:mm:ss z
Reconcile Deletion of Multivalued Attribute Data check box cleared
Reconciliation Type Full
In the Configuration Mapping, I created a Status varaible and mapped it to OIM Object Status and changed the Data type of Last Logon TimeStamp to Date.
The Layout of flat file PLC.csv.txt is like this:
Account Name|Full Name|Domain|Last Logon Timestamp|Description|GUID|Mail|Employee ID|First Name|Last Name
PLC\!alders|Steve Alder|PLC.COM|2007/01/10 11:16:27|Directory and Messaging Services|E109B9F8-40BD-4E72-B336-B46600A5B38E|||Steve|Alder
PLC\!lewisj|Jonathan Lewis|PLC.COM||Data Centre Scheduled Activities Team|1D580887-EDEB-4C87-A079-837AFBAA782F|||Jonathan|Lewis
I am facing same kind of issues in which I am getting following error on flat file reconciliation;
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,inside getProvider......2
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,validationProviderclassname:com.thortech.xl.gc.impl.validation.IsFloatValidatorProvider, name:IsFloat
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,nameIsFloat
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,inside getProvider......2
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,validationProviderclassname:com.thortech.xl.gc.impl.validation.IsDoubleValidatorProvider, name:IsDouble
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,nameIsDouble
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,inside getProvider......2
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,validationProviderclassname:com.thortech.xl.gc.impl.validation.IsInRangeValidatorProvider, name:IsInRange
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,nameIsInRange
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,inside getProvider......2
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,validationProviderclassname:com.thortech.xl.gc.impl.validation.MatchRegexpValidatorProvider, name:MatchRegularExpression
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,nameMatchRegularExpression
DEBUG,24 Aug 2009 19:49:38,211,http://XELLERATE.GC.PROVIDERREGISTRATION,inside getProvider......2
DEBUG,24 Aug 2009 19:49:38,212,http://XELLERATE.GC.PROVIDERREGISTRATION,validationProviderclassname:com.thortech.xl.gc.impl.validation.ValidateDateFormat, name:ValidateDateFormat
DEBUG,24 Aug 2009 19:49:38,212,http://XELLERATE.GC.PROVIDERREGISTRATION,nameValidateDateFormat
DEBUG,24 Aug 2009 19:49:38,212,http://XELLERATE.GC.PROVIDERREGISTRATION,come in validationName.equalsIgnoreCase(name)
DEBUG,24 Aug 2009 19:49:38,212,http://XELLERATE.GC.PROVIDERREGISTRATION,inside getProviderClassName. ..found transformation provider.....
DEBUG,24 Aug 2009 19:49:38,212,http://XELLERATE.GC.PROVIDERREGISTRATION,inside getProviderClassName....provider class name = ..com.thortech.xl.gc.impl.validation.ValidateDateFormat
DEBUG,24 Aug 2009 19:49:38,212,http://XELLERATE.GC.PROVIDERREGISTRATION, provider nameValidateDateFormat
DEBUG,24 Aug 2009 19:49:38,212,http://XELLERATE.GC.PROVIDERREGISTRATION, provider def attribnull
DEBUG,24 Aug 2009 19:49:38,212,http://XELLERATE.GC.PROVIDERREGISTRATION, provider resp codes{}
DEBUG,24 Aug 2009 19:49:38,212,http://XELLERATE.GC.PROVIDERREGISTRATION,inside getProviderClassName. ..found transformation provider.....com.thortech.xl.gc.impl.validation.ValidateDateFormat
DEBUG,24 Aug 2009 19:49:38,212,http://XELLERATE.ADAPTERS,Class/Method: tcADPClassLoader/getClassLoader entered.
DEBUG,24 Aug 2009 19:49:38,212,http://XELLERATE.ADAPTERS,Class/Method: tcADPClassLoader/getClassLoader left.
DEBUG,24 Aug 2009 19:49:38,212,http://XELLERATE.GC.PROVIDERREGISTRATION,Loading Provider Class -->com.thortech.xl.gc.impl.validation.ValidateDateFormat WARN,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.FRAMEWORKRECONCILIATION,Record failed on Validation and therefore would not be Reconciled*
+WARN,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.FRAMEWORKRECONCILIATION,Parent Data -->{Description=2029/03/07 09:01:11, Account Name=HRL\PUNEET, First Name=, Last Logon Timestamp=HRL1.CORP, Domain=Les, GUID=Hrl, Employee [email protected], Full Name=PUNEETKING, Mail=C7F1A30E-A0C7-444E-BA09-EC66E63831EB, Last Name=PUNEET}DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.SCHEDULER.TASK,Class/Method: SchedulerBaseTask/isStopped entered.+*
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.SCHEDULER.TASK,Class/Method: SchedulerBaseTask/isStopped left.
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,Class/Method: SharedDriveReconTransportProvider/getNextPage entered.
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,Class/Method: SharedDriveReconTransportProvider/getNextPage - Data: page size--> - Value: -1
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,pagesize-->-1
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,Class/Method: SharedDriveReconTransportProvider/end entered.
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,Class/Medthod: SharedDriveReconTransportProvider/end - Before calling: copyFilesToArchive(for Parent files)
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,Class/Method: SharedDriveReconTransportProvider/copyFilesToArchive entered.
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,Class/Method: SharedDriveReconTransportProvider/copyFilesToArchive - Data: src File--> - Value: LINUXRECON.COM.txt~
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,src File-->LINUXRECON.COM.txt~
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,Class/Method: SharedDriveReconTransportProvider/copyFilesToArchive - Data: stage Dir--> - Value: /home/GTC
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,stageDir-->/home/GTC
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,Class/Method: SharedDriveReconTransportProvider/copyFilesToArchive - Data: archive Dir--> - Value: /home/GTC/archive
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,archiveDir-->/home/GTC/archive
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,fis closed for /home/GTC/LINUXRECON.COM.txt~
DEBUG,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,fos closed for /home/GTC/archive/LINUXRECON.COM.txt~
INFO,24 Aug 2009 19:32:54,225,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,Info Data: file deleted --> - Value: true
WARN,24 Aug 2009 19:32:54,226,http://XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT,FILE SUCCESSFULLY ARCHIVED : /home/GTC/LINUXRECON.COM.txt~
I know the issue is with date format but I am not able to solve it after trying so many times with all kind of date formats.
Kindly help.
Thanks -
Say I have a fairly big file. Many megs, for example. My file can be formatted kind of the way I want, but it contains data in a key-value pair format, where the key is a long (ordered) and the value is a string of variable length.
So, for example, it could look something like this:
1blabla
2bobob
3gugugu
99910102923tututu
Now, I know I can get the value for a specific key by parsing the lines, reading a long when reading a string. This is fine.
But I'm trying to be somewhat smarter. Since I know my longs are ordered, I'm thinking I can implement a search algorithm that looks in the middle of an interval for the looked value, to eliminate half the remaining options per pass.
I can use randomaccessfile to get to some random point in the file. That's fine. But now, since I can be at any point of the file, I could be within the long, or somewhere within the string. What I'm looking for, and can't seem to figure out, is how to get back to the beginning of the long value, to read it correctly.
Any pointers appreciated!First reason is I'm trying to build something for unstructured data. Databases are usually good only for structured data. I could put everything in text, I suppose.
Second reason is databases are, in theory, slower than intelligent file-parsing. You have to generate the connection, have the dbms manipulate the data then return the data then have the driver translate it to something your programming language understands. I know, I Know, I'd have to work years to make something as efficient as an existing DB.
Third reason is databases usually require a database engine, so if I wanted to make a standalone application, with, say, a jar file, I could avoid requiring of my userd to install some database application. Yes, there are some embedded database thignies out there.
Fourth reason is curiosity. I want to see if I can do something like this because I've never done it before, and I'm interested in finding out if it's possible or not! -
BUFFERIMAGE AND VECTOR DATA FILE DRAWING PROBLEM
THERE IS A VECTOR DATA FILE OF A COUNTRY/REGION OF CERTAIN PORTION. THAT IS FILE CONTAINS ONLY DATA IN (X,Y,Z) FORMAT OR ITS COLOR CODING OR WHAT TYPE OF SHAPE IT IS GIVEN BELOW
shape: Line, Color: red
no of vertices: 3
(234,543,45)
(34,567,345)
(76,234,345)
like above. a vector file exists. file is very heavy with lot of information. one needs to read the file and draw in java.
My problem is: i am reading the file properly, in paint function i have created BufferedImgae, createGraphics all necessary actions. i have also used rubber binding. using rubber binding when i select few portion of the map i found it is taking
lots of time to draw. once it is drawn when next time i am using RUBBER BAND SELECTION EXCEPTION occurs saying HEAP OUT OF MEMORY like.
one more thing if i used affinetransform it is simply zooming completely distorting my map defeating entire purpose.
how i can solve above problem using bufferedimage such that i can draw vector data file which should be faster when redrawing also using rubber band as well.
thanks in Advance
RoyI have completely no idea what you mean by rubber banding. But you shouldn't be creating a BufferedImage and parsing a file inside of a gui component's paint function.
one more thing if i used affinetransform it is simply zooming completely distorting my map defeating entire purpose.AffineTransform is a transformation from one 2D coordinate system to another. It probably wont be as useful in a 3D environment such as your vector data file.
Maybe you are looking for
-
1680x1050 not working with ATI card
I can't seem to get the 1680x1050 native resolution of my LCD working with my ATI X1650 in Arch "current". I've tried configuring X with both: Xorg -configure and hwd -xa and adding the Modes line to xorg.conf manually and using both the ati and the
-
Will a new Mac allow you to boot from an external drive...specifically for windows programs?
-
Imy iPhone sounds are not working. Any help please
I have an iPhone 4s. I Powered it offhand when I opened it again all the sounds like the keyboard sounds and the sound u here when u unlock the phone. Even the music in games are not working. However, when I listen to music or watch videos on YouTube
-
XmlA Discover members of hierarchy time-dependent
Hello, I have a problem with xmla web service on BW 3.1. I've to retrieve the hierarchy members of a hierarchy time-dependant via xmla. The method Discover havn't any parameter like key date. On SAP Documentation I found out the note 834196 that sugg
-
Guys, Hope you all doing well. My question is about the undotable space. I am using oralce 9ir2 on Windows Plateform. The tablespace was auto created at database creation. The tablespace is in Auto undo Management mode. The Undotablespace has 10 Roll