I want to use Oracle SODA, but the user that connects to the DB from the java application cannot modify tables, for security reasons.
I did grant the "SODA_APP" to the schema, so the SODA java lib works (it calls the SODA pl/sql functions), but obviously fails to create collection with "insufficient privileges"
I can create the collection in a test DB, and copy the table structure. But I must also copy the metadata.
I know this because the doc says :
Do not use SQL to drop the database table that underlies a collection. In addition to the documents that are stored in its table, a collection has metadata, which is also persisted in Oracle Database. Dropping the collection table does not also drop the associated metadata.
ref: https://docs.oracle.com/cd/E56351_01/doc.30/e58124/soda_for_java.htm#ADSDA111
Does anyone know where the metadata of the collection is located / how I can create it (or copy) manually?
Thanks.
So, the metadata is located in this table:
There is a view for the current user
Which looks like the same view as the documented "user_soda_collections" view.