Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] ORACLE PARTITIONED TABLE

Hi!
I'm new and i want insert in a specific partion of a oracle table is possible with talend?
Thanks in advance
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

No that is not what I am tried to explain. tOracleOutput does not create new partitions - of course not.
You have to declare your partitions by your self, but you can declare as much as you need - also for the fare furture, because a empty partition in Oracle does not allocate space, it is only a configuration nothing else.
I suggest creating - per script - as much as your application lives for the next - let me say - 10 years and the real partition indeed will be created automatically if there are values for it.

View solution in original post

7 Replies
Anonymous
Not applicable
Author

Hi,
It is possible to use talend to take actions in a specific partition of a oracle table. As long as the JDBC and Oracle support the specific partition of a oracle table, talend support that too.
I think it is same that inserting data in a specific partition of a oracle table or do it in a ordinary table.
You can take a try for it. Pay more attention on your SQL language, as we known that there are some differences between ordinary table and specific partition of table.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi,
the only way that I have found is by tOracleRow Component using for example:
insert into t1 select * from tb2 where DT_timestamp >= DATE '2012-0101' and DT_timestamp < DATE '2013-0102'
there is another way?
Thanks,
Gino.
Anonymous
Not applicable
Author

Hi,
Perhaps the component tMap is another way for your job design. Set a filter condition in input source. But there is a concern about the performance.
The tMap will be slower than writing a equivalent SQL . Because Sql query is executed on the database engine directly.
By the way we provide ELT components to community users
For more details, please refer to: UsingSQLtemplates and ELT components. Hope it will help you.
Best regards
Sabrina
Anonymous
Not applicable
Author

Oracle it self organize where your data sets are stored. It is not necessary to change anything in your SQL statement - and therefore in the Talend job - to read or write from a partitioned table in Oarcle (unlike in PostgreSQL!).
Oracle handle partitions absolute transparent, speak simply to the table, that it.
Anonymous
Not applicable
Author

Hi jlolling,
you are telling me that if I run job without any where conditions the tOracleOutput components assolve his task?!?
For example: I want to insert in partitioned table ( DT_timestamp is the field used for partitionig),
if the data_set are with DT_timestamp='April/2013' and the last partition where I entered rows is March/2013,
tOracleOutput adds a new partition and insert the rows?
Thanks for your help!!!
For Sabrina,
I see the ELT components now i make a test, very helpfull!!!
Anonymous
Not applicable
Author

No that is not what I am tried to explain. tOracleOutput does not create new partitions - of course not.
You have to declare your partitions by your self, but you can declare as much as you need - also for the fare furture, because a empty partition in Oracle does not allocate space, it is only a configuration nothing else.
I suggest creating - per script - as much as your application lives for the next - let me say - 10 years and the real partition indeed will be created automatically if there are values for it.
Anonymous
Not applicable
Author

Ok I understand 0683p000009MACn.png!!! Thanks for help very helpfull...
Gino.