I wish to pass a bunch of 'unknown' values to an Oracle stored procedure from a spring java application. The data is somewhat structured, so currently we have a stored proc that has accepts 2 clobs what are key/value pairs of the data. The first clob represents a single record amd the second clob, represents many child records of clob 1.
This seems a very inefficient way to pass the data as we have to construct strings in java in the forst plave and then the data has to be parsed in the stored proc.
I have looked into Oracle record structures, however it appears as though you have to map each field in the record structure to a db table field. the problem with this approach is a) the data items that we send each time differ (although there is a core set of data that remains the same) and b) some of the data items are there for decision making purposes only and are not actualy persisted to the database.
So my question is: what is the most efficient vehicle to pass such data to the Oracle stored proc? We want to maintain the flexibilty of being able to send variable parameter sets along with having some semblance of structure around the data.
Thanks in advance.
Barry