How to convert ms-excel file to oracle table?

Answers were Sorted based on User's Feedback



How to convert ms-excel file to oracle table?..

Answer / 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

How to convert ms-excel file to oracle table?..

Answer / ts mishra dba

load data
infile 'c:\head.csv'
replace
into table allotment
field terminated by ',' optianally enclosed by '"'
trailing nullcols
(ALLOTMENT_ID,ALLOTMENT_DATE,DEMAND,MAGOR,SUB,MINOR,SCHEEM,S
EGMENT,OBJECT,DETAIL,AMOUNT,DDO_CODE)


run at run command this
sqlldr scott/tiger@ntts control=c:\head.ctl

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?

0 Answers   CTS,


who introduced sql?

0 Answers  


How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?

0 Answers  


Does sap use sql?

0 Answers  


what is the difference between implicit and explicit trigger

2 Answers   Tech Mahindra,






What is cursor status?

0 Answers  


How collections are improve the performance?

1 Answers   Polaris,


Can we use ddl commands in pl sql?

0 Answers  


What is secondary key?

0 Answers  


what is inline view?

15 Answers  


What are the types pl/sql code blocks?

0 Answers  


How do you run a query?

0 Answers  


Categories