This content has been marked as final. Show 2 replies
we have a requirement to save the data as CSV files on demand. My question, can we do this using ODSI 10gR3?Yes. But you have to write the java code to do it. Create a class with a static method that takes two arguments - an array of XmlObject (or of the specific type that extends XmlObject that is created by compiling the schema) and a filename - and writes the values of the children of the array elements into your CSV file.
Put that class in a jar and put the jar in DSP-INF/lib, then create a physical datasource -> Java from that method, make sure you specify that resulting datasource procedure is a libraryProcedure.
So you'll have to do a little homework on ODSI Java Functions with XmlObject arguments.
Thanks Mike, I undestand now it is not the out of the box feature. We can do it by using custom code.