Custom aggregate function inside a package
问题 I'm trying to write a custom aggregate function in Oracle and group that function inside a package together with some other functions that I have. As an example (to simulate the problem I have) suppose my custom aggregation to do a summation of numbers looks like: CREATE OR REPLACE TYPE SUM_AGGREGATOR_TYPE AS OBJECT ( summation NUMBER, STATIC FUNCTION ODCIAggregateInitialize(agg_context IN OUT SUM_AGGREGATOR_TYPE) RETURN NUMBER, MEMBER FUNCTION ODCIAggregateIterate(self IN OUT SUM_AGGREGATOR