Oracle
  Home arrow Oracle arrow Page 3 - Loading Spread Sheet Data into Oracle ...
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Actuate Whitepapers 
VeriSign Whitepapers 
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? 
ORACLE

Loading Spread Sheet Data into Oracle 10G XE
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 24
    2006-07-26

    Table of Contents:
  • Loading Spread Sheet Data into Oracle 10G XE
  • Loading the XLS file into Oracle
  • Loading the Spread Sheet into Oracle XE
  • Continuing to Load

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Loading Spread Sheet Data into Oracle 10G XE - Loading the Spread Sheet into Oracle XE


    (Page 3 of 4 )

    The loaded data goes into a table and several things have to be declared. Loading takes place after you make the choices for the following four items, to which you will be guided step by step.

    • Target and method:
    • Data:
    • Table Properties:
    • PrimaryKey

    Target and method

    While loading you have the option to load into an existing table or create a new table. Also you can copy and paste (up to 30 KB) or upload a csv or tab separated file. Here a new table option with the copy/paste method was chosen, as shown in the next picture.

    Data

    When you click on the Next button in the screen shown above, you will be guided to the following window. Here you can paste the data from an Excel file in the text area box. While cutting and pasting there is a size limit of 30 KB. If this is exceeded you can use the file upload option in the previous screen.

     

    This is the copied area of the Excel spread sheet that is loaded. This screen does not show all the columns.

    When pasted it effectively becomes a tab delimited text file, as shown in the next picture.

    Table Properties

    When you click on the next button in the above screen, you will get to the stage where you need to make choices on the table, as shown in the next picture. You need to give a name to the table (with no white spaces). You can see all the defaults for the data brought in. Except for the Employee_ID, all the rest appears to be of type varchar2. Just accept the defaults and click on the next button. Here you may make changes as required: you may choose not to include certain columns in the loading, change the data size, and so forth. For the present, the defaults were accepted. You may now click on the Next button, which takes you to the next screen, where you make your Primary key choice.

    Primary Key

    Here you will have to make choices regarding the Primary Key. Basically you will need to choose whether you want to use the key from an existing column or create a new one. Here the one that is existing is used (EmployeeID). This attaches a constraint as shown. You also make your choice for Primary Key population by choosing the required sequence generation.

    When you click on the Load Data button after making the choices, you will see the next screen which shows the results of loading. TestNW1 came out with 9 successes and 0 failures. Since there were only 9 rows, all of them came through.

    Now if you click on the table hyperlink for TestNW1, you will see the schema of the table as shown in the next picture. You notice that the Birth Date and Hire Date columns came out as of data type varchar2, whereas in the original table they are of type date.

    More Oracle Articles
    More By Jayaram Krishnaswamy


       · Some of the more lucrative salaries for people who work with / on databases are in...
     

       

    ORACLE ARTICLES

    - 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...
    - Sub-templates and More with Oracle HTML DB
    - Focusing on Templates in Oracle HTML DB





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway