Hi all
I have a workspace that is managing a dynamic migration from one Oracle 11g database to Oracle 12c. The process is quite mature and has mainly be used to truncate and insert new data. We now have to extend this process to create tables if required.
The writer connection is a different user (USER1) to then one where the table is being created into (USER2). USER1 has heightened privileges and is used for all maintenance tasks. Grants include 'create any table', among others.
We have started to encountered exceptions when attempting to drop/create a table into the destination instance.
Using Feature Writer or a writer/Feature Type, when we try to 'drop/create' or 'Create if needed', we get the following exception raised:
"Cannot create table 'TABLE_FROM_FW' within schema 'USER2', when logged in user is 'USER1' ".
Full log with debug here:
I have tested with Oracle Spatial Object and Oracle Non-Spatial writers both withe same affect.
Interestingly as a test we used SQLExecutor to create the table using the same connection user and destination schema and it worked!
If i connect as USER2, the destination owner i do not get an exception but this is not an option for our process.
in SQL Developer if i connect as USER1, I can create a table into USER2 without issue.
My instinct was that this was a privileges issues but the fact I can create using other methods makes me doubt this.
I am working in 2018.1 due to the customer version but have tested in 2019.0 with the same affect.
Has anyone else seen behavior like this?
Many thanks in advance
Adrian