473,406 Members | 2,769 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,406 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 20459
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.