How can I read a file directly please?

Hello everyone,
How can I read a file directly from a script please? I tried the insert into ... values but it does not work. I really have to read the file instead of entering the data via the interface. Does Oracle have a copy command? Each file line is split with tabs for each field in the line.
Finally how can I subdivide the strings in each field?
Thank you very much indeed and sorry for the basic questions.
André Luiz

SQL> create or replace directory data_dir as '/tmp';or
SQL> create or replace directory data_dir as 'c:\temp';Where /tmp or c:\temp are directories or folders on the server.
A full example of importing a tab delimited file is here.
Re: Using DML order to import a .xls file

Similar Messages

  • How can I read text files from LAN if I only know the hostname?

    I'm new in Java Developing, and dont know the written classes yet. I need help, how to do the following steps?
    <p>1. How can I read text files from LAN if I only know the hostname, or IP address?
    <p>2. How to read lines from text files without read all lines from the beginning of file, just seek to a position.
    (ex. how can I read the 120th line?)
    <p>Please help!
    <p>sorry for the bad english

    I'm new in Java Developing, and dont know the written classes yet. I need help, how to do the following steps?
    1. How can I read text files from LAN if I only know the hostname, or IP address?You need to know the URL of the file. You need to know the hostname, port, protocl and relative path.
    The hostname is server, not file.
    2. How to read lines from text files without read all lines from the beginning of file, just seek to a position.Use the seek() to get to a random byte.
    (ex. how can I read the 120th line?)The only way to find the 120th line is to read the first 120 lines. You can use other file formats to find the 120th line without reading the whole file but to need to be able to detremine where the 120th line is

  • How can I read pdf files from LabVIEW with different versions of Acrobat reader?

    How can I read pdf files from LabVIEW with different versions of Acrobat reader?
    I have made a LabVIEW program where I have possibility to read a PDF document.  When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
    It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
    The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
    Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
    This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
    Jan Inge Gustavsen
    Attachments:
    Show PDF-file - Adobe Reader 7-0-5 - LV61.vi ‏43 KB
    Read PDF file.jpg ‏201 KB
    Show PDF-file - Adobe Reader 5-0-5 - LV61.vi ‏42 KB

    hi there
    try the vi
    ..vi.lib\platform\browser.llb\Open Acrobat Document.vi
    it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • How can I read a file with ASCII Special Character into a SQL table using SSIS 2008?

    I've tried everything to read this file and am getting no where.   Help how can I read this file and load a SQL table?
    RS - AscII - 30  (Record Separator)
    GS - AscII - 29 (Group Separator)
    Thank you for your assistance - Covi
    Mark Covian

    We can use script component as source/transformation to read the text file and assign the contains to a string. Split the string by chr(30)  i.e RS and finally stored into an array or write to the output buffer of the script component.
    For example on how to use script component refer this link
    http://social.technet.microsoft.com/Forums/en-US/6ff2007d-d246-4107-b77c-624781baab38/how-to-use-substring-in-derived-column-in-ssis?forum=sqlintegrationservices
    Regards, RSingh

  • How can I read a file in a jar file and modify it?

    Hi,
    Now, there is a jar file which contains a file that I want to modify. How can I get the file. After I get the file, I will modify it and replace the file in jar file. How can I complete it? Thank you.

    there is no direct method of updateing files in ajar file
    u have to do it this way
    u have to first unjar the file in a particular folder
    using java code java.util.jar package
    than through FileReader and FileWriter class u update ur
    the file whichever u want to update
    and then gain through java.util.jar package
    u create ur jar file again

  • How can I read pdf files in linux?

    I know the pdf files can be read by Adodb acrobat,but i can not find the software for linux,How can I download the similar tools ?
    Thanks for advance.

    You can download AcrobatReader fro Linux from adobe.com like the versions of rother OS'es.
    however if you want a nicer UI than Acrobat consider using gv with ghostscript. They might already be installed on your system, since they are part of most Linux distributions.
    It's worthwhile to upgrade Ghostscript to the most recent version, othervise you will be unable to read pdf files that utilizes the newest fads from Adobe.

  • How can you read datalog files in LabVIEW?

    I have a VI that records time and waveform data and writes them as a cluster to a datalog file. I have been unable to read these files in any way, however. I have been working with the datalog examples in LabVIEW, but I have not been able to figure out how to use the Read Datalog File example effectively. Does anyone have any suggestions on how I can either use this example to read waveforms, or how I can design a VI to read datalog files in another way? Thanks.

    Hi,
    when you read from a datalog file you have to wire to the datalog type input of the Open File function a cluster of the same type as the clusters when you created the file; each cluster is a record.
    In the example Write Datalog File Example.vi you see that each record consists of a cluster containing a string and 1D array of DBL; in the Read Datalog File Example.vi a cluster of exactly the same type is wired to the datalog type inputs.
    You can use this example to read your datalog files but you must wire to the datalog type input a cluster containing the time data and a waveform data; pratically you have to tell how the data are saved in your file.
    I hope I have been clear enough, eventually if you tell me how you save the time data (string, numeric) I
    can modify the example to read your datalog files.
    Good luck,
    Alberto

  • How can I read different files in the file adapter

    Hi,
    I have a scenario like file(content conversion and FTP) to Proxy and need to read 2 files which have different structures.
    The file structures is as follows.
    FileA.txt
    EMPID, Designtion,code,DOB,dept,deptID and 13 fields etc..
    FileB.txt
    officercode, dept,workspecs,FLAGarm,FLAGfoot and 27 fields etc.
    Both files needs to be read by the file adapter at same time and should send to the proxy to feed in ECC.
    Please help me in designing the above scenario with or without BPM.
    Thanks
    Manmadha

    Hello,
    Since u want to combine the two files from sender , you need to use BPM for it.
    First of all create Mapping. In your mapping program go to messages tab and add the two source messages types and in the target add the target message type. Come to your design tab and design the mappings.
    BPM:
    -- Insert Fork with two branches necessary condition. In first branch insert Receive step and check start process checkbox.
    --In second branch insert Receive step and check start process checkbox.
    -- Insert Transformation step after Fork branch step.
    -- Insert Send step [the outcome of transformation step needs to be send]
    Design the above structure, if you have any doubts, dp reply back.
    Best regards,
    raj.

  • How can I undelete histiry files? Please

    How can I undelete the history files, or just view them?

    Not sure if you already tried this. Restart Entourage while holding down the option key and then choose rebuild.
    Might bring it back.
    Good luck!
    JL

  • How can I read the files in time capsule hard drive area thro my IPad or iPhone ?

    pls help
    I cannot found the way to read the files stored in capsule thru iPad or iPhone

    An App like Filebrowser will allow you to do this. More information is here:
    FileBrowser - Access files on remote computers for iPhone, iPod ...

  • How can I read CSV file in OS 10.6.8?

    Is there a download to do this?

    Is the file a true comma separated veriable file or a TAB delimited file? If the latter you can set tabs. There is no way to create the columns neatly, otherwise, unless you load the file into a table. It would be easier doing that with a spreadsheet. If you don't have Numbers or Excel, then you can try using the spreadsheet compoinent in Libre Office which is free.

  • How can one read ClarisWorks files with MS Word / Excel ?

    Somebody handed me this .cwk file, and wants to be using it in their Office program.
    Thanks for your time!

    Hi, Bruce. If you don't have access to any version of ClarisWorks or AppleWorks yourself, and the person who originated the .cwk file is unavailable to resave it in a more suitable format, MacLink Plus Deluxe can translate it into any of several Word formats.
    If you're in a position where you frequently receive files in a variety of formats that must be used by others who aren't conversant with all those formats, MLPDeluxe would be a very good investment for you.

  • Bup, dat, ifo, vob formats- how can I read these files?

    Hi- I have a MBP running Leopard and have a DVD of my grandson in utero that I want to play on my computer but these formats are not recognized by iDVD. Any ideas of what I can do? I am stumped. Thanks, Judy

    if you're simply looking to play the video try VLC.
    On the other hand if you want to incorporate the video into an iDvd presentation; that may be more complicated since you may require the help of a third party app in order to first convert the files to a QT recognizable format. Apps that do this well include but are not limited to:
    1. Visual Hub
    2. Mpegstreamclip
    3. Apple's QT Pro (which may also require additional QT playback components).
    4. Dvdxdv
    Your choice.
    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software / products that may be mentioned in this topic. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information above at your own discretion.
    Message was edited by: SDMacuser

  • How can I read a file in WEB-INF?

    I have a file under WEB-INF/classes/properties that I want a webapp to be able to read. I'm doing
    BufferedReader in = new BufferedReader(new InputStreamReader(fin));But I don't know what to set "fin" to.

    ner0 wrote:
    I'm not using a servlet. I ended up just doing creating a Properties class and doing a load using ClassName.class.getResourceAsStream("/properties/"+filename) and creating key value pairs inside the property file read from the properties class. I had a suggestion against me doing this so I was trying to find another way, but since this works I'll just use it.That's exactly what evnafets second suggestion does.
    I mentioned the static error because I was wondering if there was a static way to do it since all this is being done within a synchronized static method.You should know that the 'this' reference is unknown in a static context, simply because there is no instance of the current object.

  • How can i read a file into my program?

    Hi,
    I have a text file that I want to read in to the program and for it to print on the screen. I have the following code but it doesn't seem to work as it doesn't print anything to the screen although i get no errors. If anyone could correct me or elp me that would be great. Thanks in advance.
    public static void fileInput () throws IOException
    final FileReader inputFile = new FileReader("Database.txt");
    final BufferedReader inputBuffer = new BufferedReader(inputFile);
    String line = inputBuffer.readLine();
    }

    Java programmers who think that variables are subject
    to garbage collection should not go around calling
    themselves professionals. It's objects that
    are garbage collected.I agree,
    have you had a look to the "varibales" that i'm "nulling" in my code?
    What do you think, following "varibales" i declared, inherits from?
    FileInputStream
    DataInputStream
    StringOf course all of them inherits from java.lang.object - So they are objects...
    The only real flat "variable" i declared is a byte array and i agree that there's no need to "null" it. It's just "consuetude".
    And additional:
    To make the memory management complete there has to be a finalize() method at the end of your class to remove all of your OBJECTS from memory...
    We're programming a real high performance WebApplication using CORBA, Servlets, AJAX and Database Connections which handles up to 5 Million
    Datasets (using Hashes, Lists and so on) with just a simple click in this app and running at least 4 (up to unlimited spanned over different machines) Java Runtimes (CORBA Servers) which have different jobs AND will run (ok, should) 24h a day, 7 days a week and 365 days a year.
    In such an app (about 500.000 lines of code in the moment) you WILL recognize if you "null" an object and finalize it! If you won't do that they will "eat" your memory until you get an "OutOfMemory" error.

Maybe you are looking for

  • Speed (lack of) issues-Macbook pro post Maverick Install

    Hi all... long time browser first time poster... this maverick install is killing my life. Upgraded to Maverick, my computer was almost useless with spinning beach ball of death for everything I opened. I did the 'usual' useless stuff that someone at

  • Recovery from DVDs

    Hello, This is very frustrating!....... HP Pavillion DV6 Notebook Windows 7 Home Premium PC was hacked Tried to restore from recovery partition by pressing F11 and then following instructions for factory reset. It went through a lot of processes and

  • Problem with printing from new Epson CV16DTNF

    I have a new Epson CV16DTNF printer (with Multipurpose Tray 1 and additional bulk feed Tray2). I have set up presets in the normal way for A4 printing from bulk Tray 2 and DL envelope printing from Tray 1. Each works OK individually but if I try to p

  • How to send PLAIN text email from sp_send_dbmail using SQL Server 2008 R2?

    I have configured Database Mail in SQL Server 2008 R2 (64) and it sends emails just fine. However the destination is recieving the body of thes message as Base 64 encoding. Snippet: EXEC msdb..sp_send_dbmail @profile_name='Outmail', @recipients = @re

  • U2 20G is getting a weird error

    It has been acting up today so I brought it home to "restore." It is now telling me after i hit the "restore" key that "There was a problem downloading iPod software to the iPod. The requested resource was not found." Click on OK and nothing happens.