Database DataWarehousing (MOSC)

MOSC Banner

How to select a partition dynamically

edited Jan 14, 2010 12:53AM in Database DataWarehousing (MOSC) 6 commentsAnswered
 Hi - I currently run procedures against hourly data.  I am using an oracle job that runs a prcedure to determine the specific partition that is ready for processing.  I then call another procedure with the specific hour as input.  This second procedure has a select against the entire table.  I want to modify the code to only select on the partition, i.e. FROM table-name partition (tbl_yyyymmddhh).  I am not able to use a bind variable here as I get an error.  Is there a way to do what I want to do or do I need to look at re-writing

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center