473,395 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Import .xls file into oracle

Hi This is kapil,

I wanna import a excel file into my data base, i am using the oracle 9i. And PL/SQL as a front end. Would anybody can help me out.
May 24 '07 #1
2 20458
frozenmist
179 Expert 100+
Hi Kapil,
If its a csv file try this

LOAD DATA
INFILE '<location of file>'
APPEND
INTO TABLE <table_name>
FIELDS TERMINATED BY "<delimiter>"

I havent tried out .xls files. But can you try using UTL_FILE and SQL Loader

Hope u get the solution
Cheers
May 26 '07 #2
frozenmist
179 Expert 100+
Hi Kapil,
write this code in a .ctl (control) file.
LOAD DATA
INFILE '<location of file>'
APPEND
INTO TABLE <table_name>
FIELDS TERMINATED BY '<delimiter>'
optionally enclosed by'"'
trailing nullcols
(
<column names>
)


Then go to SQLLDR prompt.
Give command:
Sqlldr userid=<user_name@hoststring/password> control='path of the control file'
[log='path of the log file' errors=<number upto which the error can be allowed>,skip=<if the header is first line put 1, otherwise omit this option> ]

Try this out
Cheers.
May 28 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: R.A. Joemman | last post by:
Hi, We are migrating a database from Oracle 8.1.7.0.0 to Oracle 9.2.0.1.0 on AIX. Export as follows: exp ${user}/${pwd} compress=n file=${file} log=${log} owner=${schema} grants=y indexes=y...
1
by: M Bouloussa | last post by:
Hello, I have a little problem with an oracle import. My problem is : 1) I have a dump (file.dmp) contains a table T1 (just for this example) 2) I have an oracle schema (user=U1, pass=pass1)...
3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
1
by: Arti Potnis | last post by:
Hi, I want to import some tables from Oracle 9i to MS Access 2000. I'm able to import the table structures and data using File->Get External Data->Import . (I don't want to import links)...
0
by: jen78 | last post by:
Hi, I am new to Oracle administration and hope someone can help me out on this as i am struggling to make it work.... I am doing development work using oracle database on my own development...
4
cpiyush
by: cpiyush | last post by:
Hi.. We are using Oracle 9i. We have been given a dump file (mighty.dmp). We have created a new DB on our system & trying to import the given DB's data to the local Db. We are giving the...
0
by: msansari | last post by:
I am planning to migrate my oracle database from 8.1.7 to 9i. I done the full database export using the following command....
0
by: A3AN | last post by:
Hi. I receive a database backup on a daily basis. I then import this dump on another server which I use for software development. There is two db's being hosted on this server. We test software...
6
by: parapatil | last post by:
I have a .dmp file. This file was exported by someone else. The file was exported as the back up of a database. I know only the name of the database. I dont know the user account who actually...
3
by: sumanta123 | last post by:
Hi All, I am using this command exp dev/dev@uatdb file='C:\database\dbbackup.dmp' for export the data from my database.It is successfully export into the dbbackup.dmp file. While import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.