Oracle
  Home arrow Oracle arrow Page 3 - Loading Spread Sheet Data 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

Loading Spread Sheet Data into Oracle 10G XE
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 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:
      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


    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
     

       

    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 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek