Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ORA-01031: insufficient privileges when creating package

I'm getting ORA-01031: insufficient privileges when creating a package my own schema. Shouldn't I have complete control over my schema. If this is not the case, what privileges does my schema need?

like image 745
Igor Zelaya Avatar asked Sep 27 '08 17:09

Igor Zelaya


People also ask

How do I resolve ORA-01031 insufficient privileges?

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.

What do you mean by insufficient privileges?

You see the Insufficient Privileges error if you don't have the right access on different levels. For example, your profile prevents you from accessing the account object, or your role prevents you from accessing a case record.

What is the meaning of insufficient privileges in Oracle?

ORA-01031 Error Message “Insufficient Privileges” Error ORA-01031 means you are attempting to execute an operation for which you do not have appropriate privileges.

How do I grant execute immediate privileges to user?

0 - Production SQL> create user u identified by u; Utilisateur créé. SQL> grant create session to u; Autorisation de privilèges (GRANT) acceptée. SQL> connect u/u Connecté. SQL> declare n number; 2 begin 3 execute immediate 'select count(*) from dual' into n; 4 end; 5 / Procédure PL/SQL terminée avec succès.


1 Answers

You may need to have GRANT CREATE PROCEDURE TO USERNAME.

like image 53
user7116 Avatar answered Oct 08 '22 21:10

user7116