Skip to Main Content

Oracle Database Discussions

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!

Query to find the name of the partition

USER101Apr 11 2014 — edited Apr 11 2014

Hello All,

I am bit surprised to see that there isn't a column I can use to query the name of the partition for a table, in case of Internval partition by day..

I am looking for a simple query to find the partition name for the say today's partition.. Am I missing something ?

Query something like..

Select partition_name from dba_Tab_partitions where table_name='XYZ' and TO_DATE(HIGH_VALUE,'DD-MON-YYYY') = '02-APR-2014'

High value being a long column, doesn't let you convert into DATE OR CHAR ??

Thanks in advance

This post has been answered by Hoek on Apr 11 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 9 2014
Added on Apr 11 2014
5 comments
826 views