Solved

import Excel sheets in to ORACLE

Posted on 2004-03-23
4
1,567 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Quick and High level SQL Server 2012 Performance check 8 52
understanding output of mysql version 2 60
Display multiple images in report 12 116
Update in Sql 7 37
In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
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…

785 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