Import CSV into Oracle?

Is there a simple script or series of SQL statements to import a CSV into either a new table or an existing table rather than using a utility? There must be some way to do it in SQL or PL/SQL.

That's the problem with using tools, like TOAD etc. to help you do stuff, as it doesn't help you to learn the basics.
Once you know how to do stuff from SQL*Plus then, fine, use a tool to do nitty gritty for you. The key to learning such a vaste area of expertise is to have a really good understanding of the basics first. So many people just use tools and struggle to do things because they just don't understand the underlying basics.
External tables are almost as simple as creating a basic table but you specify where the data is coming from and what the layout of that flat file is. After that you can just query it.
;)

Similar Messages

  • How to Import vmdk into Oracle VM Manager 3.0.2

    Hi all
    I am running BIC2G in VM Box and OracleApps(BIC2G-LNX) in VMware Player.
    I want to run both in OVM 3.0.2.
    BIC2G is having 5 files one *.ovf* and 4 *.vmdk* files
    and OracleApps(BIC2G-LNX) is having one *.vmx* and many *.vmdk* files.
    Can anyone please tell me how to import these files into OVM 3.0.2
    Thanks
    Abhishek Anand
    Edited by: Abhishek-Anand on Dec 21, 2011 4:52 AM

    Abhishek-Anand wrote:
    Can anyone please tell me how to import these files into OVM 3.0.2http://blogs.oracle.com/virtualization/entry/migrating_from_hyper_v_and
    You need to be able to package your VM as an OVA to import it into Oracle VM. Check your VMware documentation on how to do that.

  • Error while importing data into Oracle 11gr2 with arcsde 9.3.1

    I am getting error while importing the data into oracle 11g r2. We are using arcsde 9.3.1
    It seems to be having some problem with spatial index creation.
    kindly help
    IMP-00017: following statement failed with ORACLE error 29855:
    "CREATE INDEX "A3032_IX1" ON "DGN_POLYLINE_2D" ("SHAPE" ) INDEXTYPE IS "MDS"
    "YS"."SPATIAL_INDEX""
    IMP-00003: ORACLE error 29855 encountered
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AAAT5pAA9AACIy5AAQ] in spatial indexing.
    ORA-13206: internal error [] while creating the spatial index
    ORA-13033: Invalid data in the SDO_ELEM_INFO_ARRAY in SDO_GEOMETRY object
    ORA-06512: at "MDSYS

    Guys,
    I am also getting the same error and also my issue is like I am not even to analyze for which indexes I am getting error. It does not hve any indx name before error.
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/DOMAIN_INDEX/INDEX
    ORA-39083: Object type INDEX failed to create with error:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfer]
    ORA-29400: data cartridge error
    ORA-12801: error signaled in parallel query server P000
    ORA-13249: Error in spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AA
    ORA-39083: Object type INDEX failed to create with error:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfer]
    ORA-29400: data cartridge error
    ORA-12801: error signaled in parallel query server P002
    ORA-13249: Error in spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AA
    ORA-39083: Object type INDEX failed to create with error:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfer]
    ORA-29400: data cartridge error
    stack cnt....
    How can I find for which indexes it is failing?
    Thank you,
    Myra

  • Import payments into Oracle

    Does anyone know a way to import payments that were made for a set of invoices that were imported through the Payables Open Interface into Oracle Payables through an API or any other kind of interface? Basically i need to import invoices and payments that were paid online through a third party site into Oracle Payables.
    I have searched - http://irep.oracle.com, but i have not found anything that will create a payment in Oracle Payables and mark the associated invoices as Paid.
    Here's some far fetched options i have come up with so far:
    Option 1:
    I want to take the process of Recording Manual Payments and Wire Transfers through the UI and automate this. However, i don't see that this functionality is available anywhere through an API. Is this available through an API? This manual process is documented here: https://csslxa03.hkcss.org.hk:16298/OA_HTML/jsp/fnd/fndhelp.jsp?dbc=/u01/oracle/fmprd/appl/fnd/11.5.0/secure/csslxa06_fmprd.dbc
    Option 2:
    OR another possiblity would be to create the Payment Batches for the imported invoices. Questions with this are: Is there a way to assign specific invoices to a Payment Batch? Is there a way to do this programatically? Can you assigned a Check Number to a Payment as well? Because these payments have already been made.
    Option 3:
    Edit the Oracle tables directly. Don't want to do this though and introduce the possiblity of corrupting data.
    Thanks,
    Scott

    I see that this is the functionality accomplished through the Manual Payments. However, we need to do this programatically on a batch basis because we need to do possbily a few hundred of these a day. We can't have a person keying these in.
    So does anyone have a good work around to getting this done programatically?
    What is Oracle's stance on editing the tables directly. I can hopefully quite easily figure out what tables are modified during the entry of a Manual Payment through the GUI and mimic this programatically, but this is not a good solution in my mind.
    Thanks,
    Scott

  • Can you import Access into Oracle 10g Express Edition?

    Hi all,
    I know you can import files from Access into some other versions of Oracle, but is it possible with 10g XE?
    I've been looking at all the tools in my browsers and none seem to do it.
    I guess I'll need to convert the tables into text, and then from text into Oracle?
    Thanks

    Why not give SQLDeveloper's migration a shot?
    You can get it for free here.
    http://www.oracle.com/technology/software/products/sql/index.html
    I've never personally done it, but it doesn't look to mind bending :)
    http://www.oracle.com/technology/obe/11gr1_db/appdev/msamigrate/msamigrate.htm
    Should work fine with XE.

  • Import Access into Oracle

    Hi,
    I have some access tables (may be nearly 60) in one Windows PC. I need to import all the data into Oracle Database. This has to run every day night. So I need your help to import the data into oracle the easier, faster way.

    Are you trying to do an incremental load every night? Or would you be able to do a full load from Access to Oracle every night?
    What operating system is Oracle running on? Can the Oracle database server connect to the Access database? If so, you could potentially use Heterogeneous Connectivity to create a database link from Access to Oracle and write PL/SQL that would extract data from Access and load it into Oracle.
    Justin

  • Import csv into iCal

    Is there any way to import a csv file into ical? You can import a csv into address book but not iCal. For example try putting this in your calendar. http://graphics.fansonly.com/schools/wash/graphics/csv/washfb_2009.csv

    You can use Applescript. Below is a sample that you can modify. Copy it into Script Editor and try it.
    AK
    <pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">--Convert CSV file to iCal events
    --Prompts for file, then processes
    --expects date,start time,end time,event name,xxxx,calendar name
    --eg 12/01/2006,20:30,22:00,Water Committee,,TestCal
    --change the various text item ns if data order in a file line is different
    --blank lines skipped
    --if other data present (eg location, notes ...) add a line in the tell calendar Calno loop
    --to include it eg set location to text item 5 of ThisLine
    set OldDelimiters to AppleScript's text item delimiters
    set LF to ASCII character 10
    set theFile to choose file with prompt "Select CSV calendar file"
    set theLines to read theFile
    set AppleScript's text item delimiters to {LF}
    set theLines to paragraphs of theLines
    set AppleScript's text item delimiters to {","}
    repeat with ThisLine in theLines
    if (count of ThisLine) > 0 then --ignore blanks
    set StartDate to date (text item 1 of ThisLine & " " & text item 2 of ThisLine)
    set EndDate to date (text item 1 of ThisLine & " " & text item 3 of ThisLine)
    set CalName to word 1 of text item 6 of ThisLine
    tell application "iCal"
    set CalList to title of every calendar
    if CalName is in CalList then
    repeat with CalNo from 1 to count of CalList
    if CalName is item CalNo of CalList then exit repeat
    end repeat
    else
    set NewOne to make new calendar at end of calendars with properties {title:CalName}
    set CalNo to 1 + (count of CalList)
    end if
    tell calendar CalNo
    set newItem to make new event at end of events with properties {start date:StartDate}
    set summary of newItem to text item 4 of ThisLine
    set end date of newItem to EndDate
    end tell --calendar
    end tell --iCal
    end if
    end repeat
    set AppleScript's text item delimiters to OldDelimiters</pre>

  • Import CSV into Numbers under European Settings?

    SUMMARY: Anyone know how to import a CSV into Numbers on the iPhone when under European settings?
    DETAIL:
    The iPhone version of numbers seems to have difficulties reading any CSV if the user's device is on a setting where the decimal separator is a comma (e.g. 12,00) (such as most of Europe). Interestingly the iPad version does not have this problem.
    For example HelloWorld.csv containing
    Hello,World
    imports as all one line rather than in two columns.
    UTF8 of UTF16 doesn't seem to make a difference.
    Changing the comma to a tab doesn't make a difference. (Numbers won't import .tsv files either.)
    Adding quotes to the fields doesn't help.
    Suggestions on creating a file that Numbers can import?

    On the iPhone, go to Settings, then General, then International, then Region Format. Set that to whatever it is on the iPad and then the CSV file should import the same on iPhone as it does on iPad. Not sure what else it will change, but if you have it changed on your iPad already, maybe it won't be a problem for the iPhone. And you can always change it back after importing the file I guess. Good luck.

  • Can anyine help me in importing data into oracle 9i

    Hi All ,
    I am very new to oracle 9i.I have created the dump of the database using exp command.
    exp system/manager file="testdb.dmp" owner=scott
    Now i want the same database to be imported to a new machine.I have installed oracle 9i with database global database name SID as stc .I am able to connect to the database "stc " using scott and tiger using sql plus.
    The import command that I used is
    imp scott/tiger file=testdb.dmp fromuser=scott touser=scott
    When I gave like this , it showed like "Invalid login name/password".
    But when I gave the command as
    imp scott/tiger file=testdb.dmp fromuser=scott touser=system
    It worked . But I am unable to loacate the tables.
    Also I want to import these tables into scott.So is there any better way so that I can copymy data from one machine to another . Or is there any tool which converts mysql tables scripts into oracle table scripts
    Thanking you in advance
    Diny

    Hi
    I tried giving the same but it is showing the same : oracle error 1017 encoountered . Logon denied.
    And it is asking for new login and password.
    Then I gave the login / pwd as scott / tiger . Then it started importing .
    We already had added around 150 tables in the database early. So is there any command so that we can delete all the tables entirely.
    Dinny

  • Import vmdk into Oracle VM Manager 3.0.2

    Hi,
    Can someone please tell me how I can import a vmware virtual machine into Oracle VM Manager 3.0.2
    Thanks
    Ger

    Hi,
    I have exported the vmware VM and places it in Assemblies
    When I try to create a template for it it does not show any names in "Assemebly Virtual Machines"
    "Refresh Selected Assembly" give the follwoing errors in /var/log/ovs-agent.log :
    [root@nldvnr01ovms01 ~]# [2011-11-24 23:38:02 15867] DEBUG (OVSServices:57) dispatch function get_assembly_config to server https://oracle:******@13.206.238.171:8899/api/1
    [2011-11-24 23:38:03 15868] DEBUG (OVSCommons:124) get_assembly_config: ('0004fb000003000058271d4af7a471b2', 'nldvnr01ux021')
    [2011-11-24 23:38:03 15868] ERROR (OVSCommons:143) catch_error: Cannot find OVF descriptor file.
    Traceback (most recent call last):
    File "/opt/ovs-agent-3.0/OVSCommons.py", line 141, in wrapper
    return func(*args)
    File "/opt/ovs-agent-3.0/vm.py", line 966, in get_assembly_config
    ovf_filename = find_ovf_descriptor(unpacked_path)
    File "/opt/ovs-agent-3.0/vm.py", line 948, in find_ovf_descriptor
    raise RuntimeError('Cannot find OVF descriptor file.')
    RuntimeError: Cannot find OVF descriptor file.
    [2011-11-24 23:38:03 15867] ERROR (OVSServices:61) dispatch error: get_assembly_config: <Fault 1: 'exceptions.RuntimeError:Cannot find OVF descriptor file.'>
    [2011-11-24 23:38:03 15867] ERROR (OVSCommons:143) catch_error: <Fault 1: 'exceptions.RuntimeError:Cannot find OVF descriptor file.'>
    Traceback (most recent call last):
    File "/opt/ovs-agent-3.0/OVSCommons.py", line 141, in wrapper
    return func(*args)
    File "/opt/ovs-agent-3.0/OVSServices.py", line 59, in dispatch
    return getattr(sp, func)(*args)
    File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1099, in __call__
    return self.__send(self.__name, args)
    File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1386, in __request
    verbose=self.__verbose
    File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1150, in request
    return self._parse_response(h.getfile(), sock)
    File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1289, in parseresponse
    return u.close()
    File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 746, in close
    raise Fault(**self._stack[0])
    Fault: <Fault 1: 'exceptions.RuntimeError:Cannot find OVF descriptor file.'>
    What's wrong ?
    Hope someone can help me.
    Thanks,
    Ger

  • Import data into oracle from a text file?

    hi guys,
    How can we import data into oracle9i release 1 from a text file with comma seperated or tab seperated delimeters?
    please help,
    Imran

    table is already created, just have to populate data into table through a dat or text file. As suggested, you would either:
    1). use SQL*Loader to load the data into this table.
    2). create external table on that data file and then do:
    INSERT INTO your_real_table
    SELECT * FROM that_external_table ;

  • Importing XML into oracle 11g database

    I am having some difficulty parsing an XML file into oracle 11g database.
    Currently using Oracle 11g Express Edition (XE)
    Here is how my XML file looks like:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <AccountMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <Accounts>
    - <AccountMapping>
    <AccountID>0000000000000-000</AccountID>
    <AccountName>XLS</AccountName>
    <AccountType>Excel</AccountType>
    <AccountOwner>System</AccountOwner>
    </AccountMapping>
    - <AccountMapping>
    <AccountID>0000000000000-001</AccountID>
    <AccountName>XLSS</AccountName>
    <AccountType>Excel2</AccountType>
    <AccountOwner>System2</AccountOwner>
    </AccountMapping>
    - <AccountMapping>
    and so on the file continues.. I have the xml file saved on my local hard disk
    I have created a package in SQL Developer
    create or replace
    PACKAGE XML_FILEHANDLER AS
    type TRecord is record (
    Account_ID varchar2(100)
    , AccountName varchar2(100)
    , AccountType varchar2(30)
    , AccountOwner varchar2(100)
    type TRecordTable is table of TRecord;
    function getRows (p_directory in varchar2, p_filename in varchar2) return TRecordTable pipelined;
    END XML_FILEHANDLER;
    -- BODY
    create or replace
    PACKAGE BODY XML_FILEHANDLER AS
    function getRows (p_directory in varchar2, p_filename in varchar2) return TRecordTable pipelined AS
    nb_rec NUMBER := 1;
    tmp_xml CLOB;
    tmp_file CLOB;
    rec TRecord;
    BEGIN
    dbms_lob.createtemporary(tmp_file, true);
    tmp_file := dbms_xslprocessor.read2clob(p_directory, p_filename);
    rec.Account_ID := regexp_replace(tmp_file, '.*<Account_ID>(.*)</Account_ID>.*', '\1', 1, 1, 'n');
    rec.AccountName := regexp_replace(tmp_file, '.*<AccountName>(.*)</AccountName>.*', '\1', 1, 1, 'n');
    rec.AccountType := regexp_replace(tmp_file, '.*<AccountType >(.*)</AccountType >.*', '\1', 1, 1, 'n');
    rec.AccountOwner := regexp_replace(tmp_file, '.*<AccountOwner>(.*)</AccountOwner>.*', '\1', 1, 1, 'n');
    loop
    -- this regexp finds occurrence(s) of this pattern : "<?xml ... ?><root_tag> ... </root_tag>"
    tmp_xml := regexp_substr(tmp_file, '<\?xml[^?]+\?>\s+<([^>]+)>.*?</\1>', 1, nb_rec, 'n');
    exit when length(tmp_xml) = 0;
    --dbms_output.put_line(tmp_rec);
    nb_rec := nb_rec + 1;
    SELECT Account_ID, AccountName, AccountType, AccountOwner
    into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
    from xmltable(
    'Accounts/AccountMapping' passing xmltype(tmp_xml) columns
    Account_ID varchar2(100) path 'Account_ID'
    , AccountName varchar2(100) path 'AccountName'
    , AccountType varchar2(30) path 'AccountType'
    , AccountOwner varchar2(100) path 'AccountOwner'
    pipe row ( rec );
    end loop;
    dbms_lob.freetemporary(tmp_file);
    END getRows;
    END XML_FILEHANDLER;
    -- I am calling my function using the following sql query
    select * from table(XML_FileHandler.getRows('XML', 'test.xml'));
    Here is the error I am receiving
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 536
    ORA-29283: invalid file operation
    ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 265
    ORA-06512: at "user.XML_FILEHANDLER", line 13
    29283. 00000 - "invalid file operation"
    *Cause:    An attempt was made to read from a file or directory that does
    not exist, or file or directory access was denied by the
    operating system.
    *Action:   Verify file and directory access privileges on the file system,
    and if reading, verify that the file exists.
    I have done the following
    - Provided appropriate access to user (read, write) including directory access rights
    - ensured that directory exists
    - ensured that file exists
    I have searched all over google and metalink but am unable to get this to run.. please help!

    >
    SELECT Account_ID, AccountName, AccountType, AccountOwner
    into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
    from xmltable(
    'Accounts/AccountMapping' passing xmltype(tmp_xml) columns
    Account_ID varchar2(100) path 'Account_ID'
    , AccountName varchar2(100) path 'AccountName'
    , AccountType varchar2(30) path 'AccountType'
    , AccountOwner varchar2(100) path 'AccountOwner'
    >
    change to
    SELECT Account_ID, AccountName, AccountType, AccountOwner
    into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
    from xmltable(
    'AccountMap/Accounts/AccountMapping' passing xmltype(tmp_xml) columns
    Account_ID varchar2(100) path 'Account_ID'
    , AccountName varchar2(100) path 'AccountName'
    , AccountType varchar2(30) path 'AccountType'
    , AccountOwner varchar2(100) path 'AccountOwner'
    SQL> SELECT Account_ID, AccountName, AccountType, AccountOwner
      2  --into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
      3  from xmltable(
      4  'AccountMap/Accounts/AccountMapping' passing
      5  xmltype('<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
      6  <AccountMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      7  <Accounts>
      8  <AccountMapping>
      9  <AccountID>0000000000000-000</AccountID>
    10  <AccountName>XLS</AccountName>
    11  <AccountType>Excel</AccountType>
    12  <AccountOwner>System</AccountOwner>
    13  </AccountMapping>
    14  <AccountMapping>
    15  <AccountID>0000000000000-001</AccountID>
    16  <AccountName>XLSS</AccountName>
    17  <AccountType>Excel2</AccountType>
    18  <AccountOwner>System2</AccountOwner>
    19  </AccountMapping>
    20  </Accounts>
    21  </AccountMap>')
    22  columns
    23  Account_ID varchar2(100) path 'Account_ID'
    24  , AccountName varchar2(100) path 'AccountName'
    25  , AccountType varchar2(30) path 'AccountType'
    26  , AccountOwner varchar2(100) path 'AccountOwner'
    27  );
    ACCOUNT_ID                                                                       ACCOUNTNAME                                                                      ACCOUNTTYPE                    ACCOUNTOWNER
                                                                                     XLS                                                                              Excel                          System
                                                                                     XLSS                                                                             Excel2                         System2
    SQL> for AccountID use AccountID not Account_ID
    Account_ID varchar2(100) path 'AccountID'Edited by: AlexAnd on Aug 9, 2012 12:35 AM

  • Import CSV into the Database Tables

    Hello All,
    I have a requirement to import the CSV coloum values into the backend table.
    It would be great if anyone could help me out with the procedure in APEX.
    Looking for response.
    Regards,
    Sandeep Reddy

    hi,
    i have tried a similar kind of stuff..,
    check the link_Import data in excel to database table for the process and steps..,
    for more information you can check the forums; http://forums.oracle.com/forums/thread.jspa?threadID=2206363&start=0&tstart=0
    i hope you get your solution there.
    Regards,
    Little Foot

  • Fastest way to load csv into oracle BE table

    I have csv file which is having 10 million records in it . what is the fastest approach to load this data to oracle BE table .
    I am using Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options .
    csv format
    first_name,last_name,occupation,address
    above all the fields are of varchar data type.
    I have tried to use external table while inserting its taking too much time .
    Thanks

    hi,
    You can use sql loader.
    options (skip=1)
    LOAD DATA
    INFILE 'csv file path'
    truncate /append
    INTO table table_name
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    trailing nullcols
    column name ,
    column name,
    column name
    {code}
    Create this file as ctl(control file.) on the lcoation where your csv file is.
    Execute it by goint to the path where your csv file resides.
    {code}
    cmd
    cd path where your csv file resides
    sqllder userid=username/password@database name control=your_control_file_name
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Importing CSV into table - problem with tab-deliminated files

    Hi All,
    I have written an application based on well-known Uploading excel sheet using Oracle Application Express (APEX) example from the following site:
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    All works as expected...
    However the code in the example assumes that the CSV file is really comma-delimited file:
    v_line := REPLACE (v_line, ',', ':');
    Now, I have noticed that when different people use "Save as CSV" function in Excel they sometimes get different results. For example sometimes you get a file which is semicolon delimited (';').
    However, I need to process a file which is tab-delimited file. Thinking is was quite simple task I simply change the above line of code to:
    v_line := REPLACE (v_line, chr(9), ':');
    where chr(9) is the ASCII code for horizontal TAB
    I was very surprised however to see that if I process the tab-delimited file with the above line I receive an extra character between EVERY CHARACTER. To give you an example:
    1) When processing a normal comma or semicolon delimited file using v_line := REPLACE (v_line, *','*, ':'); or v_line := REPLACE (v_line, *';'*, ':'); I receive correct results:
    SQL> select contract_value,dump(CONTRACT_VALUE) from sdpr_upload;
    CONTRACT_VALUE DUMP(CONTRACT_VALUE)
    354000 Typ=1 Len=6: 51,53,52,48,48,48
    555569 Typ=1 Len=6: 53,53,53,53,54,57
    2) When processing a TAB-DELIMITED file using v_line := REPLACE (v_line, chr(9), ':'); I get this:
    SQL> select contract_value,dump(CONTRACT_VALUE) from sdpr_upload;
    CONTRACT_VALUE DUMP(CONTRACT_VALUE)
    3 5 4 0 0 0 Typ=1 Len=13: 0,51,0,53,0,52,0,48,0,48,0,48,0
    5 5 5 5 6 9 Typ=1 Len=13: 0,53,0,53,0,53,0,53,0,54,0,57,0
    Now the BIG QUESTION ARE:
    Where do these 0's come from? How to get rid of them?
    Many thanks for any pointers!
    Pawel.

    Thanks for the tip, however the problem is to actually load the tabbed file.
    I think the issue lies somewhere else. I see some weird characters in the export file when viewing it in Linux vi. So I am guessing this could be some unnicode conversion problem rather than any issue with the application or script.
    Is there anyway one could upload a UNICODE text file into Apex?

Maybe you are looking for

  • Simultanious access to DB file by several applications

    I currently have Python application that deals with DBD XML database. That application is being used 2 ways: 1. Apache + mod_python + Python application 2. wxPython or console + Python application Web access is for read-only, so I don't really want t

  • Adobe Reader X Plug-In

    I am using Windows 7 Home Premium with Internet Explorer 9.0.4 and I am unable to open pdf in the browser.   I have tried going to the manage add-ons but it is not listed in any of the fields.  I really need to be able to open pdf's in the browser fo

  • Contacts & Calendars not updating

    Any additions or changes I make in these areas are not updating on the iPod. I am doing this through iTunes. In one case, I deleted a contact and re-entered that person with the new phone number which was the only new item. Still won't update. When I

  • DELL XPS 6000 with Audigy2ZS..No so

    <font face="Baskerville Old Face" size="5">?I have a Dell XPS 6000 Dimension desktop. Win XP. The sound card is a (Soundblaster 2ZS.) The integrated audio onboard is?(RealtekAC 97 Audio.)?I heard the Windows Startup theme,but when I play a song in Wi

  • Can I set it to have no bullet/blue icon for first line on Outline view?

    Goodgrief... After finally figuring out (kind-of) how to place my bullet points with hotkeys, 6 hours later I have iWork 09 with a great outline view! HA! Outline will be great if it is customizable. I need the first line to be set at a "normal" marg