Using EXPDM genrating text file
Dear All,
Is it possible using EXPDP (Data Pump) in Oracle 10g or 11g we can export tables data in ASCII/Text file? Or using ImpDP can we impot any text file into tables etc.
If any one yes then how?
Thanks
Data Pump provides an external tables access driver (ORACLE_DATAPUMP) that reads and writes files.
[http://download-west.oracle.com/docs/cd/B12037_01/server.101/b10825/dp_overview.htm#sthref19]
Similar Messages
-
<p>Also what are the limitations in terms of data size or performance related issues while using csv or text file?</p><p>Is it the best practice to use csv , text file to use as a datasource to improve performance?</p><p>Please Advice.... </p><p> </p>
<p>Hi,</p><p>Create Same Data Input for CSV and Text File ,Create 2 different reports one for CSV and One for Text ,run them one you have done that.</p><p>Go to Report Menu and Select Performance Information .Use the Data in that to check which one is good datasource to improve performance</p><p>Cheers</p><p>Rahul</p>
-
How to open saved files using 'read from text file' function
Hi everyone, I am having a hard time trying to solve the this particular problem ( probably because I am a newb to lanbview ). Anyway , I am able to save the acquired waveforms by using the 'Write to text file' icon. I did manually modify the block diagram of the 'Write to text file' icon and create the correct number of connector so as to make my program work. But now I have no idea on how to modify the block diagram of the 'Read from text file' block diagram to make my program 'open' my saved waveforms. Or i do not have to modify anything from the block diagram of the 'Read from text file'? Can anyone teach/help me connect up? Do i need the build array on the "open" page?
Here are some screenshots on part of my program
let me know if you guys would need more information / screenshots thank you!
Attachments:
ss_save.jpg 94 KB
ss_open.jpg 94 KB
modified_writetotextfile.jpg 99 KBOhmy, thanks altenbach. oh yeah i forgot about those sub VIs. will upload them now. Was rather demoralized after reading the comments and really struck me on how weak i'm at on labview really hope to get this done. But of course i have to study through and see how it works. Actually i am going to replace those 'signal generators sub vi' with ThoughtTechonology's sample code so i can obtain data waveforms real-time using Electrocardiography (ECG) ,Electromyography (EMG ) and Electroencephalography (EEG) hopefully i can find out how to connect the sample code.
( ps . cant connect it now unless my program is working otherwise labview will crash )
( p.s.s the encoder of my biofeedback trainer already acts as an DAQ so i wont need to place an DAQ assistant in my block diagram i suppose )
The sample code of ThoughtTechnology is named as attachment.ashx.vi. too bad i cant use it and present it as my project
Attachments:
frequency detactor.vi 53 KB
signal generator.vi 13 KB
attachment.ashx.vi 40 KB -
Using data in text file as indicator
hi all
i want to know is there a way to use a text file and use the data in it to represent and name as the label of the indicator ?
i have attached a sample text file , what i want to achieve is that as the first row of the text file is 2 3 4 6 , its should be represented in labview and also all the indicators representing the data should have the label as the data
so when numeric indicator is displaying a value 2 it should also name the indicator 2
also the file i am attaching has only 04 columns what if the number of columns are unknown , then how can i achieve the same thing .
i hope i am clear in describing what i want to achieve
with regards
Regards
Attachments:
TEXT FILE.txt 1 KBHi nolsqn,
what about reading the file as array of strings (ReadFromSpreadsheetFile as 2D array of strings) and display the content in a table? Here you could easily use the first row of the text file for the column headers...
Otherwise it would be a much harder job to "create" new indicators depending on the number of columns...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Im starting out with 3 different files of text saved as "tab delimited text" from excel, I open a document in ID with 107 pages and create 3 boxes in the master on top of a pdf. I then override all 107 pages so that the text I insert will flow to the next page and so on, once I paste the 2nd text file into the next text frame it skips the original 107 files and starts flowing into new pages. Im ready to pull my hair out, I have been trying to figure this out for 2 hours. I dont know what to do at this point. I think Im getting a migraine.
I would have done a data merge on 2 of the files but the third HAS to be text flow (which gives me the same problem above) because it has to be physically changed to fit each page.Are you Placing the text from an external file, or pasting it from the clipboard?
If Placing, move the loaded cursor inside one of the master frames on the first page, hold down the Shift key and click, being sure the cursor is not on any sort of guide. The entire text file will flow using the master text frames, and ID will add all the require pages to place all the text.
If pasting, you can either override the frame on the first page only, or make a temporary first frame on the pasteboard. Paste into this frame, which will result in a red plus sign in the bottom right corner of the text frame indicating overset text. Switch to the Selection tool (black arrow) and click on the plus sign to pick up the overset text. Hover the new loaded cursor over the frame on the second page, or over the first page as above if you used a temporary frame, hodl the Shift key and click. Delete the temporary frame, if you used one, and the text will reflow to start in the first real frame, but you may have to pick up overset again in the last frame due to the reflow. -
Is there a way to convert .cwk text files I saved from my iMac PPC so I can view them on my new iMac (intel chip)? I get a message when I try to open them now that says PowerPC applications are no longer supported.
1. Read Roger Wilmut's excellent series of articles: Abandoning Appleworks
2. Considering running Appleworks in Snow Leopard (with Rosetta) installed into Parallels for use in Lion or Mt. Lion
[click on image to enlarge] -
I would like to know if there is a way to populate a ring or enum control list using values maintained in a text file (or other format) outside of a VI. I have to be able to call this VI from TestStand or LabVIEW, and would like to be able to use the drop down interface to pick from the list of selections. As a result, the ring or enum list would need to be updated before the VI runs. I want to avoid just using a string to prevent typo's from creating errors. There would be several different VI's getting the list values from this text file. Is this possible, or am I way off base? Or does anyone have any other ideas or suggestions?
Thanks everyone,
q.Thanks for the replies. I had a chance to play with ring controls and updating the string array dynamically.
However, as I mentioned in my first post, one of the reasons I want to use dynamically updated lists is to have a readable drop down list in TestStand when you configure a step (i.e. Specify Module). This would help serve as a part of a hardware abstraction layer, and for maintainability purposes we don't want to split the hardware map among a number of VI's.
Unfortunately, TestStand doesn't seem to recognize the string list from a ring control. And as mentioned above, there are issues with updating Enums. Is it possible to accomplish a way of dynamically populating this list in such a way that TestStand will recognize it? Is there another control that would work better (e.g. list boxes, combo boxes, etc.)?
Thanks for your help,
q -
Executing methods using an input text file
Hello all,
I was just wondering if I could get a little help with giving the input commands to my program through a provided text file. I have already made a stack program and want to test it by feeding it a text file with commands in it. Here is an example of the text that it would contain:
bluePush 100
blueIsEmpty
print
bluePush 101
bluePush 102
bluePush 103
blueSize
bluePush 104
print
bluePop
print
redIsEmpty
Etc..
Problem is, I'm not really sure how to make my test file. I've never taken a text file as input before and once it's in, I'm not sure how to parse the commands.
Any help would be greatly appreciated.
Thanks,
TylerYou would open the file like such:
String fileName = "c:\path\to\file.txt";
BufferedReader input = new BufferedReader(
new FileReader(fileName));You would create a loop to read the text, line by line, something like this:
String line = null;
while ((line = input.readLine()) != null){
//... do processing here
}Inside the while loop, you would parse the string into command and value pairs. Maybe look into StringTokenizer... Something like this:
//inside while loop
StringTokenizer parser = new StringTokanizer(line, " ");
String command = parser.nextToken();
String value = null;
if (doesCommandHaveValue(command)) value = nextToken();
//Determine course of action based on command
//*** Then have the method doesCommandHaveValue...
// Returns true if "Push" is found inside of command,
// since it looks like only push statements have values after them
private boolean doesCommandHaveValue(String command) {
return (command.indexOf("Push") != -1);
}Then mabe do a series of ifs based on command, to call different methods, using the value read in. -
How Open And Print Proc C Genrated Text File Based Report ON Browser
Dear Sir
I have my old 6i forms from which i runs some Pro*c programmers with the help of HOST() command ,and then that generates a normal text file as a resultant report like file name "kha10"
which i can easily open with any text client ,,,
now what i want is that, to open this file on browser like web Report on my forms 10g like report builder 10g
can anyone help me as it will be a gr8 help otherwise i would have to develop approx 100 reports.....
any solution or any technique plzz help mebro my work is almost done apart from this virtual directory , how to make a virtual directory so that is dosent comes under
http://........../form/
i mean where to put my
<virtual-directory virtual-path="/procrepo" real-path="c:\" />
as my original file looks like bellow
<?xml version="1.0"?>
<!DOCTYPE orion-web-app PUBLIC "-//ORACLE//DTD OC4J Web Application 9.04//EN" "http://xmlns.oracle.com/ias/dtds/orion-web-9_04.dtd">
<orion-web-app
deployment-version="10.1.2.0.2"
jsp-cache-directory="./persistence"
temporary-directory="./temp"
servlet-webdir="/servlet/"
>
<context-param-mapping name="configFileName">D:\DevSuiteHome_1/forms/server/formsweb.cfg</context-param-mapping>
<virtual-directory virtual-path="/html" real-path="D:\DevSuiteHome_1/tools/web/html" />
<virtual-directory virtual-path="/java" real-path="D:\DevSuiteHome_1/forms/java" />
<virtual-directory virtual-path="/webutil" real-path="D:\DevSuiteHome_1/forms/webutil" />
<virtual-directory virtual-path="/jinitiator" real-path="D:\DevSuiteHome_1/jinit" />
<session-tracking cookies="disabled" />
<!-- Uncomment this element to control web application class loader behavior.
<web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
-->
<security-role-mapping name="administrators">
</security-role-mapping>
</orion-web-app>
plzzzzzzzzzzz help -
Deleting a column in a text file using LabVIEW
Hello all,
I'm trying to delete the first column of my tab delimited text file using LabVIEW and then save it under the same file name. Can someone show me a quick way to perform this operation. Is this even possible with LabVIEW? Any help would be much appreciated.
My purpose is to automate this operation for hundreds of daily text files containing data that needs processing. I'm currently using LabVIEW 8.2.
Thanks!
-noviceLabVIEWuserIf the file is relatively small:
Read the file using the Read from Spreadsheet File VI to get 2D array.
Remove the column from the 2D array.
Write out new 2D array to new file using Write to Spreadsheet File VI.
If the file is relatively large then you will likely run into memory issues. In this case you will need to read the file in chunks. You can decide how many lines to read at a time. Use a for-loop that's set to run for the number of chunks to read (based on the total number of lines and the number of lines you want to read at a time). Hint: Quotient & Remainder function. In the loop use the Read Text File VI to read your set number of lines. Convert the lines to a 2D array delete your column, and write out that chunk of data to the new file. Rinse and repeat. -
Text File Encoding used by TextEdit/OS X
Hi all folks,
does someone know the code page are used with the text file encoding "Western (EBCDIC US)"
available from the "Customize Encodings List" in the TextEdit "Plain Text File Encoding" Preferences.
The text file encoding "Western (EBCDIC Latin 1)" works well, but "EBCDIC US" does not,
the character set is very limited.
Thanks for any help,
LutzYeah unfortunately they're all listed as 0kb files. I guess that means the faulty hard drive didn't transfer them properly, even though the Mac did the copy confirmation sound.
Hundreds of folio files... all gone. ;___; -
Creating 2D Array with info from file and Saving it to a text file
what im trying to do is take my nice little data structure and put it into a 2D array which i can copy and paste as code into my compiler... it takes TDPoints(like Point2D except has z value) which are in Faces(an arraylist of points, each face also has a color value), which are in objects(arraylist of faces, + other attributes)
for my sake im only working with one object, here is my code:
private void saveArrayToTXT(String name) throws IOException
double X;
double Y;
double Z;
FileOutputStream xos = new FileOutputStream("C:/Program Files/Xinox Software/JCreatorV3LE/MyProjects/ThreeDRemake/Files/" + name + ".txt");
DataOutputStream fos = new DataOutputStream(xos);//ObjectOutputStream oos = new ObjectOutputStream(fos);
//oos.writeObject(myObject);
//for(int ob = 0; ob < ((ArrayList)myObject).size(); ob++)
ThreeDObject object = (ThreeDObject)(((ArrayList)myObject).get(0));
fos.writeChars("{");
for(int shape = 0; shape < object.getFaces().size(); shape++)
fos.writeChars("{");
ArrayList faces = object.getFaces();
for(int count = 0; count < ((Face)(faces.get(shape))).getPoints().size(); count++)
X = ((TDPoint)(((Face)(faces.get(shape))).getPoints().get(count))).getX();
Y = ((TDPoint)(((Face)(faces.get(shape))).getPoints().get(count))).getY();
Z = ((TDPoint)(((Face)(faces.get(shape))).getPoints().get(count))).getZ();
fos.writeChars("" + (int)X);
fos.writeChars(",");
fos.writeChars("" + (int)Y);
fos.writeChars(",");
fos.writeChars("" + (int)Z);
if(count != ((Face)(faces.get(shape))).getPoints().size()-1)
fos.writeChars(",");
if((count == ((Face)(faces.get(shape))).getPoints().size()-1) && (count < 5))
for(int lkj = count; lkj <5; lkj ++)
fos.writeChars(",");
fos.writeChars("" + (int)X);
fos.writeChars(",");
fos.writeChars("" + (int)Y);
fos.writeChars(",");
fos.writeChars("" + (int)Z);
fos.writeChars("}");
fos.writeChars("}");
fos.close();
xos.close();
} i happen to know for a fact that there are no faces with more than 6 points, so i used this line:if((count == ((Face)(faces.get(shape))).getPoints().size()-1) && (count < 5))and everything that follows to write ditto information(the last point) over and over again to fill up the array(i could even write a null value here if i wanted)
the problem im having is i seem to be missing two right brackets("}") and with all the information thats going through these loops its impossible to trace where and what is going wrong. can anyone point out any possible flaws to help me figure out what im doing wrong??
Message was edited by:
sosleepy
also, though its not important, when i do:fos.writeChars("...")//(i used writeChars(); to save myself the hassle of typeing writeChar((int)'char').)it writes a blankspace(spacebar) between each string i write, how can i prevent this from happening?
Message was edited by:
sosleepy
nvm i just realized what i was doing wrong... fixed the error, but a reply on the spaces between writes would be niceYou asked this same question a couple of months ago: http://forums.ni.com/t5/LabVIEW/Reading-Data-From-text-File/m-p/1756390#M612805
Well, you can use the Read Text file to read the file, and then just extract the lines... Ben64 showed you a method to use regular expressions. That's one way.
For Excel you can use the Report Generation Toolkit, or you can code it yourself using ActiveX. There's an example that ships with LabVIEW on writing a table to Excel.
For database operations you can use the Database Toolkit, or you can try to use LabSQL. -
Find and edit specific line in text file?
Hello I want to read a text file that could look in some different ways since the user choose file from a list. I then want to igonre all the lines that begin with a special character, for example %. I then want to find all the lines "words" that begin with TRY for example and put those "words" in a string or array. If there is one line that contains TRY100 and anoter line that contains TRY200 I want to find those words and display them. How do i do this?
First you read the entire file. Use the Read Text File. Right-click on it and select the option to Read Lines. The the count to read to -1 (read all). You will now have an array of strings, one item for each line of your file.
Now you need to play the filter game. I recommend using FOR loops with Autoindexing tunnels. Assuming you are using 2012 or later, have the output autoindexing tunnels use the conditional tunnel.
Give this a try and see where you can go. Post back with what you have tried and tell us where you are stuck.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Remote function module to download the text file
Hi Experts,
I have a requirement of text file should be downloaded from RFC connection by which function module.Can you please tell me whether this method is used to download text file (CALL METHOD cl_gui_frontend_services=>gui_upload).Hi Jaswanth,
FM used to upload the data from the non sap system to the SAP sytem is the GUI_UPLOAD ans GUI_DOWLOAD is downloading the data from SAP to the presentation server .This file can be xls,tab or space deliminatior ettxt fiel.
I think this was your requirement.
Pooja -
HOW TO IMPORT HUNDREDS OF TEXT FILE TO DATABASE AS TABLE
Hi,
I have hundreds of text files in my computer. Every text file includes records. I want to see these records in one table at the database. How can I do that?
thank you very much for help
ömer faruk akyüzlü
in TurkeyI have a standard template that my developers use for reading text files using External Tables . Each developer gets an external table to read in test data. The format the data in CSV format, but you could use others. The External Table points to a generic file name, such as "csv_data". They then just rename the file or create a link to it, depending on the OS.
My solution uses the Directory objects. The following can be put in a script and run passing the first argument as the developers name. It supports a csv file upto 15 columns, but you can expand it.
-- begin script
CREATE OR REPLACE DIRECTORY &1 as '/home/&1';
grant read on directory &1 to public;
alter session set current_schema=&1;
--drop table csv_data;
CREATE TABLE csv_data
col1 VARCHAR2(250),
col2 VARCHAR2(250),
col3 VARCHAR2(250),
col4 VARCHAR2(250),
col5 VARCHAR2(250),
col6 VARCHAR2(250),
col7 VARCHAR2(250),
col8 VARCHAR2(250),
col9 VARCHAR2(250),
col10 VARCHAR2(250),
col11 VARCHAR2(250),
col12 VARCHAR2(250),
col13 VARCHAR2(250),
col14 VARCHAR2(250),
col15 VARCHAR2(250)
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY &1
ACCESS PARAMETERS
(RECORDS DELIMITED BY newline
NOBADFILE
NODISCARDFILE
NOLOGFILE
SKIP 0
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY '"'
RTRIM
MISSING FIELD VALUES ARE NULL
REJECT ROWS WITH ALL NULL FIELDS
col1 CHAR, col2 char,col3 char,col4 char,col5 char,col6 char,col7 char,col8 char,col9 char,
col10 char,col11 char,col12 char,col13 char,col14 char,col15 char
LOCATION (&1:'csv_data')
REJECT LIMIT Unlimited
NOPARALLEL
NOMONITORING
--end script
Maybe you are looking for
-
Computer Freezes When Playing Certain DVD
I just bought my first Mac in the form of the new generation of Macbook Pros last week. There is one DVD that seems to always freeze in the same spot when playing in my computer. When I start playing from after that point, it plays normally for awhil
-
FAGLGVTR carry forward does not work with hard currency
I have a problem with carry forward with hard currency. I m running transaction FAGLGVTR when I click on to see the balance balance shhet accounts it only shows me balance in transaction currency and local currency but show me 0 (zero) in column of h
-
PRS-T1 Firmware update request
Good afternoon. I recently (about a month ago) bougth two PRS-T1 readers (one as a gift) and I was very happy. I wanted a reader since I first knew of them and a T1 since it came out. I got a job as an intern engineer for the summer and saved to fina
-
I have this 52" lcd tv and am toying with the thought of using it as a monitor with my laptop. Has anyone tried this setup, and if you did, does it funtion well. Thanks HP P2-1117BC x64 G460 HP dv7-1247cl X64 AMD 72 Windows 7 Home Premium AVIRA &Wind
-
Accessible Reports for JAWS Screen Reader
Hi there, I'm developing some Reporting Services reports to be deployed in SharePoint (Integration Mode). However about 30% of my user base are blind and therefore use JAW screen reader to access these reports. The only solution I found online was to