LSC, Go ahead and use dynamic SQL in order to show literal data values to the optimizer at parse time in order to facilitate partition pruning. For data warehouse workloads, the proliferation of versions of the SQL statement due to usage of literals should not be so great as to overwhelm the Shared Pool; however, this might not be the case in an OLTP workload, so be cautious. Hope this helps... Tim Gorman consultant -> Evergreen Database Technologies, Inc. postal => P.O. Box 630791, Highlands Ranch CO 80163-0791 website => http://www.EvDBT.com/ email => Tim@xxxxxxxxx mobile => +1-303-885-4526 fax => +1-303-484-3608 Lost Data? => http://www.ora600.be/ for info about DUDE... LS Cheng wrote: Hi Nigel-- //www.freelists.org/webpage/oracle-l |