How to convert ms-excel file to oracle table?

Answer Posted / arup ratan banerjee

By means of Sqlloader

steps
------
1) Save the excel file as .csv
2) Give proper column headings
3) create a file named sqlload.ctl where u will write

load data
infile 'C:\HR_EMP_LWP_TMP.csv'
REPLACE
into table HR_EMP_LWP_TMP
fields terminated by ','
(emp_NO,yr_mon,lwp)

4) Load Oracle Client 9i

From command prompt run

c:\oracle_client9i\bin\sqlldr <user/password@tnsname>
sqlload1.ctl

5) The excel file gets converted to Table in Oracle

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints

646


What has stored procedures in sql and how we can use it?

571


What do you think about pl/sql?

535


What is trigger in pl sql?

562


how can we optimize or increase the speed of a mysql select query? : Sql dba

514






Is sql easier than java?

528


Do stored procedures prevent sql injection?

552


What are tables and fields?

595


what is unique key constraint? : Sql dba

574


Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.

531


Why do we need cursor in pl sql?

651


Is t sql a programming language?

539


How is data stored in sql?

551


What is sql lookup?

516


Write a query to display the current date in sql?

518