Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to load multiple CSV files into oracle in one go.

977256Dec 10 2012 — edited Dec 11 2012
Hi,

I have project requirement like: I'll be getting one csv file as one record for the source table.

So i need to know is there any way by which I can load multiple csv in one go. I have searched a lot on net about external table.(but problem is I can only use one consolidate csv at a time)

and UTL_FILE same thing consolidate file is required here to load.

but in my scenario I'll have (1000+) csv files(as records) for the table and it'd be hectic thing to open each csv file,copy the record in it and paste in other file to make consolidate one.
Please help me ..it's very new thing for me...I have used external table for , one csv file in past but here I have to user many file.

Table description given below.
desc td_region_position

POSITION_KEY	        NUMBER	Primary key
POSITION_NAME  	VARCHAR2(20)	
CHANNEL	                VARCHAR2(20)	
LEVEL	                VARCHAR2(20)	
IS_PARTNER	        CHAR(1)	
MARKET_CODE	        VARCHAR2(20)

CSV file example:
POSITION_KEY|POSITION_NAME|CHANNEL|LEVEL|IS_PARTNER|MARKET_CODE
123002$$FLSM$$Sales$$Middle$$Y$$MDM2203


delimeter is --  $$
my database version as follows:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
"CORE	10.2.0.5.0	Production"
TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
NLSRTL Version 10.2.0.5.0 - Production
Edited by: 974253 on Dec 10, 2012 9:58 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2013
Added on Dec 10 2012
4 comments
4,530 views