Question

I'm trying to allow an oracle user (userA) privileges to create a table on a cluster in another user's schema (userB). I can't find the relevant privilege to grant, and granting ALL PRIVILEGES on the cluster to userA complains that the table or view doesn't exist. Is what I'm trying to do possible? I also notice there isn't an ALL_CLU_COLUMNS dictionary table; is this related?

Was it helpful?

Solution

userA has to have the CREATE ANY TABLE privilege. Be sure to qualify the userB schema for both the table and cluster object references.

So, using the emp/dept example from Oracle's docs:

userB: CREATE CLUSTER emp_dept (deptno NUMBER(3));

userA: CREATE TABLE userB.dept ( deptno NUMBER(3) ) CLUSTER userB.emp_dept (deptno);

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top