Page 1 of 1

Oracle Partitioned Table

Posted: Fri Sep 01, 2006 8:05 am
by mali_aydin
Hi,
I have a partitioned Oracle table that partitioned by the monthly. How can I read only one partition via the Parallel Job.



Best Regards
MAli

Posted: Fri Sep 01, 2006 8:14 am
by kduke
You can hard code this partition into the table name. You could also create a parameter which represents the name and feed it into the job.

But I doubt if that was what you were really asking.

Posted: Fri Sep 01, 2006 10:50 am
by seanc217
How about a where clause on the partition key column. This will be very efficient.

I have a partitioned table that is partitioned on column extract_date. When I select out of it I select where extract = YYYYMMDD.

Hope this helps.

Re: Oracle Partitioned Table

Posted: Sat Sep 02, 2006 12:55 am
by prabu
mali_aydin wrote:Hi,
I have a partitioned Oracle table that partitioned by the monthly. How can I read only one partition via the Parallel Job.
Best Regards
MAli
You need not specify the partition , if you have a "where clause" that confines your data within the partition. Say you have a month partition and your query has a "where clause" like month_id='AUG.2006", then the oracle optimizer is intelligent enough to access only that partition.

if your "where clause" doesnt have the month where clause, then specifiy the "PARTITION CLAUSE" in the select statement

regards,
Prabu

Posted: Mon Sep 04, 2006 9:46 pm
by rasi
Create user-defined sql query in the where clause assign a parameter with #month# and while running the job supply the month value. Oracle will then automatically does the magic...