Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Insufficient Privileges when creating tables in Oracle SQL Developer

Tags:

sql

oracle

ddl

I have granted the user in my connection to create tables, triggers, procedures, and sequence using sql+ (grant create table to <my_user>); however, that still does not allow me to create a table in that schema showing the error message:

java.sql.sqlsyntaxerrorexception ora-01031 insufficient privileges

select * from session_privs; shows:

PRIVILEGE
UNLIMITED TABLESPACE
CREATE TABLE
CREATE CLUSTER
CREATE SEQUENCE
CREATE PROCEDURE
CREATE TRIGGER
CREATE TYPE
CREATE OPERATOR
CREATE INDEXTYPE

Does anybody know what I am doing wrong here? I am just setting up pl/sql developer at home, so everything is brand new. Does this have anything to do with TABLESPACE?

like image 381
user1683987 Avatar asked Oct 07 '13 02:10

user1683987


People also ask

How do I fix insufficient privileges error in SQL Developer?

ORA-01031: insufficient privileges Solution: Go to Your System User. then Write This Code: SQL> grant dba to UserName; //Put This username which user show this error message. Grant succeeded.

How do I grant permissions in SQL Developer?

column list. Use the ALL PRIVILEGES privilege type to grant all of the privileges to the user or role for the specified table. You can also grant one or more table privileges by specifying a privilege-list. Use the DELETE privilege type to grant permission to delete rows from the specified table.

How do I grant all privileges to a user in Oracle SQL Developer?

SQL> create user abc identified by xyz; here abc is user and xyz is password. SQL> grant all privileges to abc; grant succeeded.


1 Answers

Run the following command from a privileged user and re-connect with your user:

GRANT RESOURCE to my_user;

like image 187
Nipun Avatar answered Oct 18 '22 15:10

Nipun