Solved

import Excel sheets in to ORACLE

Posted on 2004-03-23
4
1,602 Views
Last Modified: 2008-03-17
hi
1) please help me in importing Many Excel Spreadsheets in to a Table of Oracle Database.
I dont want to do it Via MS Access.
Is there any direct way to import Excel Spread sheets into a Table.
2) Is there any way to import Spread sheets into Oracle Database via Visual Basic code.
by
brav
0
Comment
Question by:brav
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 2

Accepted Solution

by:
Carlovski earned 25 total points
ID: 10657260
Hmm,
You probably could link an oracle database to an excel spreadsheet using Oracle generic connectivity, but it is a bit of a hassle to set up, and would be a pain to actually use.
If you fancy the VB route, you could use an oracle odbc driver to connect to the database, and use ADO to insert the records you read in from the spreadsheet (Either by reading in the values into n external vb app, or by running vba in a macro within the spreadsheet).
It may be possible to drive this all from Excel, I've never tried it, I've got a couple of spreadsheets which are populated by connecting to oracle, but never the other way round.
To be honest though, I'd be more tempted to use SQL Loader to load in the spreadsheets, you would have to first save them as either fixed width text files, or csv and run a sqlload. You should be able to script it all fairly easily.
0
 
LVL 1

Assisted Solution

by:nparthi
nparthi earned 25 total points
ID: 10664681
Please take a look at the answers for the question I had posted:
http://www.experts-exchange.com/Databases/Oracle/Q_20907064.html

Even though I tried importing it directly from Excel by defining it as a table and importing it into oracle. But since my data was not properly formatted it didnt work.

I later tried using Perl and imported it my saving the Excel as a *.csv file. Perl is really powerful and I was amazed with the consistency when compared to importing it directly from Excel. I will post a sample code if you are interested.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question