Oracle
  Home arrow Oracle arrow Page 2 - Importing a CSV Text File into Oracle 10G XE
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
ORACLE

Importing a CSV Text File into Oracle 10G XE
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 19
    2006-09-26


    Table of Contents:
  • Importing a CSV Text File into Oracle 10G XE
  • Exporting the Employees table from MS Access
  • Importing the EmployeesCsv.csv file into Oracle 10G XE
  • Providing details of the file

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Importing a CSV Text File into Oracle 10G XE - Exporting the Employees table from MS Access
    ( Page 2 of 4 )

    Click on the File menu and in the drop-down, click on Export... which opens the window Export Table 'Employees' To.... Click on the drop-down for Save As type: Text Files(*.txt;*.CSV;*.tab;*.asc) and then click on the button Export. You will have to type in the extension type from among the four choices shown; the default is *.txt. Again by default the file will be saved to the My Documents folder as shown.

    When the button Export All, which gets enabled, is clicked, the Export Text Wizard comes up as shown. It is already showing that a delimited character will separate the fields. Fixed width will be another option for the export process, if that restriction is acceptable. It also shows a sample of how the export looks, showing the columns.

    When you click on the Next button in the above screen you will shift to the next screen shown here, which comes up with the default choice selecting comma as the delimiter between the fields. Since column names are important for the table that will be created in Oracle 10G XE, make sure you place a check mark on the check box marked Include Field Names for First Row. Click on the Next button. The choice of what Text Qualifier to use is also important as discussed later.

    This brings you to the final screen showing that the EmployeesCsv.CSV file will be saved to the location shown in the Export to File: textbox.

    When you click on the Finish button, you get the final screen showing where you can find your file.

    The next picture shows a part of the exported EmployeesCsv.csv file opened using Notepad. Notice that all fields are enclosed in double quotes. The very first line has the names of the column. Also note the column values for the 'Photo' column are all empty. The picture shows text corresponding to only two rows in the original table. It will be useful to open this file using MS Excel to verify that the table is faithfully reproduced in the CSV file.



     
     
    >>> More Oracle Articles          >>> More By Jayaram Krishnaswamy
     

       

    ORACLE ARTICLES

    - Oracle's Turn to Play in the Sun
    - Implementing and Using Oracle`s Restore Poin...
    - Tuning PL/SQL Code
    - Debugging PL/SQL Code
    - Testing PL/SQL Code
    - Working With PL/SQL Code
    - Conditional Compilation for Oracle Database ...
    - Compile-Time Warnings for Oracle DB 10g
    - Compiling PL/SQL Code for an Oracle Database
    - Troubleshooting PL/SQL Code
    - Managing PL/SQL Code
    - Data Manipulation and More for HTML DB Appli...
    - Oracle Database Fundamentals
    - Adding Processes to HTML DB Applications
    - Adding Computations, Processes, and Validati...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek