Re: How to prevent using shared pool with dynamic sql pivoting?
From: <scheffer_at_amis.nl>
Date: Fri, 20 Jun 2008 00:10:10 -0700 (PDT)
Message-ID: <24c038af-c4db-46fc-904c-9c9b4de4e266@p25g2000hsf.googlegroups.com>
Date: Fri, 20 Jun 2008 00:10:10 -0700 (PDT)
Message-ID: <24c038af-c4db-46fc-904c-9c9b4de4e266@p25g2000hsf.googlegroups.com>
Add the following to member function ODCITableClose
select object_id
into t_id
from user_objects
where object_name = 'PIVOTIMPL' -- name of your type!
and object_type = 'TYPE BODY';
-- invalidating of the type body forces that ODCITableDescribe is
executed for every call to the pivot function
-- and we do need that to make sure that any new columns are picked up
(= new values for the pivoting column)
dbms_utility.invalidate( t_id );
-- AntonReceived on Fri Jun 20 2008 - 02:10:10 CDT