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

What are the different schemas objects that can be created using pl/sql?

720


Is progress software supports to ( pl/sql )?

712


How do you go back in sql?

694


How does an execution block start and end in pl sql?

673


Is keyword pl sql?

728






What do you mean by query optimization?

726


Define a temp table?

751


What is the use of <> sql?

736


Define select, insert, create, delete, update, drop keywords

776


How can we find duplicate records in a table?

660


What is a clob in sql?

728


Why do you partition data?

719


What is a table in a database?

780


Can we create foreign key without primary key?

705


What are data types in pl sql?

776