I'm trying to grant user1 permission to create (and alter) tables in other schemas. So far i've been able to create "simple" tables. But when it come to create tables with foreign keys got error
I have oracle database 12c with 2 users/schemas. User1 granted permissions to create tables in user2 schema:
grant create any table to user1
(ok, probably not the best solution but doesn't matter right now)
now when i'm trying to create table with foreign key i'm getting standard message
Error: ORA-01031: insufficient privileges
[Failed SQL: create tableā¦
i've been trying
grant references to user1
solution from this question
got
ORA-01924: role 'REFERENCES' not granted or does not exist
(ok, it's true, there is no role 'REFERENCES' but i don't need new role or i don't understand how it will help in this situation)
also
grant references on testTable to user1
works but i need to be able to grant permission to any table even for those that will be created in future