Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Load Any CSV to Temporary table of OracleDB

Hi

I would to design a job that can take any csv file, and load in oracle database.

I tried to use tOracleBulkExe, but did not succeed to make it work.

Can someone helps me?

 

Sincerely

dgm

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

The DB Type will be varchar but your talend data type has to be dynamic.

0683p000009LthI.png

View solution in original post

8 Replies
vapukov
Master II
Master II

what it mean - any csv?

how look Your problem?

Anonymous
Not applicable
Author

Hi,

Here are some examples:

file1.csv

Name;Surname

Zan;Yan

DON;Peter

ERESH; Matthieu

 

File2.csv

Id; Cat;Qte

1, School; 23

3;Class; 56

 

File3.csv

Product;Age;Cost;owner

Pen;1;23;DANGA

...

The sepperator is ";"

 

I would like the job to identify the number of columns, guest the schema and load the data in table.

I will provide the name of the table as context

 

Thannks for your help

dgm

Anonymous
Not applicable
Author

Take a look at the dynamic schema option if you own the Talend enterprise edition.

You basically have to create a tFileInputDelimited Component which should have a single column with its datatype as dynamic.

Pretty useful and fits your use case very well assuming your source files have header.

Also, in your target db component you need to select the action on table as "Drop table if exists and create" (assuming you are using a temporary table of course).

0683p000009Lu24.png

 

Hope it helps. 

 

vapukov
Master II
Master II

If You use community version - it never Guess 🙂 all must be pre-defined

 

Subscription "support" dynamic schema. but it also have a lot of question - and it normal, because it unreal guess all possible cases (if not create all columns as VARCHAR)

 

and  tOracleBulkExec - not support dynamic schema

Anonymous
Not applicable
Author

Thanks ArvinRapt for your help

 

But I still have a problem.

It's ok for tFileDelimiterInput, but what should I put as schema for tOracleOutput?

 

One's more, thanks for your help


tOracleOutput.JPG
Anonymous
Not applicable
Author

Just a single column with data type defined as dynamic.

Let me know if it works. 

Anonymous
Not applicable
Author

For tFileInputDelimited_1, I've created a single column with type Dynamic. No problem with this component.

 

Please, can you check the below image?

 

0683p000009Lu8a.jpg

DB Type : Dynamic not available.

 

 

Anonymous
Not applicable
Author

The DB Type will be varchar but your talend data type has to be dynamic.

0683p000009LthI.png