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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Clear table - Action on table doesnt work for toutput component for oracle db

Hello Guys,

 

I am need to Talend ETL, Can anyone help me to clear the table before inserting the record using toutput component for oracle db. I tried the action on the table , chose the 'Clear table' option. When I ran the job, it takes forever to run and it didn't do anything?

 

Thanks,

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Use "Truncate Table"

View solution in original post

8 Replies
manodwhb
Champion II
Champion II

@kal_2018,which version of Talend are you using? can you restart your machine and try?

Anonymous
Not applicable
Author

I am using Talend Open Studion for Data Integration (7.0.1).

Anonymous
Not applicable
Author

Use "Truncate Table"

Anonymous
Not applicable
Author

I did try Truncate table and Truncate table with resuable storage. It throws error as well. Do you guys know why clearing the table option takes so much time and it seems that it is not working.

Anonymous
Not applicable
Author

What error did you get?

Anil3
Contributor
Contributor

Here you go, It needs a little bit of Oracle DB knowledge for DELETE vs TRUNCATE to understand this.

Clear table --> This will run a DELETE statement on your table and it will be time consuming based on your data. For DELETE oracle will keep a copy of your data until you commit/rollback the transaction.

 

So, I would recommend you to use either Truncate table(I would prefer this) or Drop and create table(with this option you might loose all the grants on the table). 

Anonymous
Not applicable
Author

Thank you all for your time, I noticed it is because of the View(which has all the access to delete , update, insert) but still was not working. I changed the view to table then Clear, Truncate and everything started working.

Anonymous
Not applicable
Author

Thanks @rhall for your time, I guess it is because of the view.