create table command fails when user has create table privilege
create table command fails when user has create table privilege
(OP)
selecting from dba_sys_privs shows the grantee with CREATE SESSION, CREATE TABLE, and UNLIMITED TABLESPACE permissions (the ADM column is NO)
The command :
create table s ( valkey varchar2(40), today float, primary key (valkey));
Fails with ORA-01031: insufficient privileges
What other privileges are necessary if CREATE TABLE is already granted?
The command :
create table s ( valkey varchar2(40), today float, primary key (valkey));
Fails with ORA-01031: insufficient privileges
What other privileges are necessary if CREATE TABLE is already granted?
RE: create table command fails when user has create table privilege
RE: create table command fails when user has create table privilege
Here is my transcript that duplicates your scenario:
CODE
So, everything seems to work satisfactorily given your specifications. Do you see any differences between my creation/specification of my user "SCB" and yours?
(aka Dave of Sandy, Utah, USA)
“People may forget what you say, but they will never forget how you made them feel."
RE: create table command fails when user has create table privilege
RE: create table command fails when user has create table privilege
(aka Dave of Sandy, Utah, USA)
“People may forget what you say, but they will never forget how you made them feel."
RE: create table command fails when user has create table privilege
setting current_schema to dvpp717
Session altered.
dvpp717> grant create session, create table, unlimited tablespace to ops$scb;
Grant succeeded.
Then, logging in as scb in a different xterm:
setting current_schema to dvpp717
Session altered.
dvpp717> create table s (valkey varchar2(40), today float, primary key (valkey));
create table s (valkey varchar2(40), today float, primary key (valkey))
*
ERROR at line 1:
ORA-01031: insufficient privileges
So although it appears that it should work my user still does not have sufficient privileges. I have also tried running the grant command without setting the current schema and that has the same results.
As the user who needs to be able to perform this task performs very specific functionality it was deemed acceptable to allow him DBA status which resolved the problem.
RE: create table command fails when user has create table privilege
CODE
RE: create table command fails when user has create table privilege
setting current_schema to dvpp717
Session altered.
dvpp717> select user from dual;
USER
------------------------------
OPS$SCB
RE: create table command fails when user has create table privilege
RE: create table command fails when user has create table privilege
(aka Dave of Sandy, Utah, USA)
“People may forget what you say, but they will never forget how you made them feel."