Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
118 views

I have a regression test for a PostgreSQL database that checks to make sure a particular user cannot self-assign additional privileges to a particular schema. I do this by logging in as the user "...
Erik Knowles's user avatar
  • 1,015
0 votes
1 answer
251 views

Is there any way to create public client that supports refresh token grant type? If not, how can I refresh tokens in my single page application? I created spring boot authentication server spring ...
udith kavinda's user avatar
0 votes
0 answers
44 views

I'm using utPLSQL to perform unit testing in Oracle. Here are all the privileges I granted to the user in the utPLSQL schema: GRANT EXECUTE ON DBMS_LOCK TO utester; GRANT CREATE SESSION TO utester; ...
AnhCao's user avatar
  • 1
1 vote
1 answer
105 views

I have two server logins, OMEGACA and TEST, and an ALL SERVER for LOGON trigger: CREATE TRIGGER [OMEGACA_ACC] ON ALL SERVER WITH EXECUTE AS 'OMEGACA' FOR LOGON AS -- ............... OMEGACA has ...
altink's user avatar
  • 375
0 votes
1 answer
79 views

I have created the following view in my database, my schema CREATE VIEW [OMEGACA].[V_SYS_MANAGE_ACC] AS SELECT name, object_id, parent_class, parent_class_desc, parent_id, ...
altink's user avatar
  • 375
1 vote
1 answer
59 views

I want to use use VIEWS for column security. db<>fiddle create table users(user_id, first_name, create_time)as values (1, 'Adam', 'yesterday'::timestamptz) , (2, 'Bob' , 'today'); create ...
DanMossa's user avatar
  • 1,102
0 votes
1 answer
54 views

I have a problem with an Oracle stored procedure that dynamically creates some materialized views. The procedure first drops the materialized views if there are any with the same name of the ones that ...
ennezetaqu's user avatar
0 votes
1 answer
156 views

Using PostgreSQL, is it somehow possible to restrict the SELECT privilege of a certain user so that he can only select a certain limited number of rows from a certain table? For example, user joe ...
emkey08's user avatar
  • 6,471
1 vote
1 answer
400 views

I'm getting "ORA-27486: Insufficient privileges" error. What grants am I missing here? I'm executing an insert script using DBMS_PARALLEL_EXECUTE and I'm getting getting this error in ...
Ranjan's user avatar
  • 13
3 votes
1 answer
189 views

I've got a table with row level permissions enabled. I've got an insert policy for my user, and I've granted permissions for them on specific columns. I added a new column to track the id of whoever ...
Grumpkin's user avatar
1 vote
0 answers
303 views

Postgres 16 has user ingmar which is marked as superuser and has create role rights: CREATE ROLE ingmar WITH LOGIN SUPERUSER INHERIT CREATEDB CREATEROLE NOREPLICATION BYPASSRLS ...
Andrus's user avatar
  • 28.3k
0 votes
1 answer
576 views

I have a use case where I need to check for FUTURE grants on an input database and schema. If FUTURE grants are found and not match with Input Role then I want to revoke them and then assign the ...
NIKHIL SUTHAR's user avatar
0 votes
1 answer
343 views

I tried to create the quartz table with a user that has privilege as below. Privileges: [Select, Insert, Update, Delete, Create, Drop, File, Index, Alter, Show databases, Create temporary tables, Lock ...
Jimmy Chi Kin Chau's user avatar
1 vote
1 answer
978 views

I am currently creating a role for a particular database using the below sql script executed as master user (postgres). CREATE USER customrole WITH PASSWORD 'mypassword'; -- removed CREATE ...
Subhajit's user avatar
  • 904
0 votes
1 answer
79 views

In my oracle 23ai instance, as ADMIN user I created this user: CREATE USER IF NOT EXISTS USER000 IDENTIFIED BY MyHardP4ssword'; Then I granted him some privileges: GRANT RESOURCE, CONNECT, CREATE ...
Lev's user avatar
  • 843
2 votes
1 answer
2k views

I have to create a table in Postgres public schema for Airflow implementation. When I create a table with airflow user I get this error permission denied for schema public LINE 1: CREATE TABLE public....
Eliseo Di Folco's user avatar
0 votes
0 answers
56 views

I'm currently in the process of migrating a database, and dropping several schemas in the move. The schemas I'm excluding have grants on some of the schemas that are included. Like grant update on ...
Jamie's user avatar
  • 266
0 votes
1 answer
194 views

I have a use case where I want to create a user which should have access on select for public schema and Views Creation On public schema but not table creation User can create a new view but not table ...
Vishal's user avatar
  • 5
2 votes
1 answer
152 views

I am using FireDAC to access a MySQL database from within Delphi. When logging in into the database I give in the database user name, which is defined within MySQL and has certain access right. How ...
Peter van Schagen's user avatar
0 votes
0 answers
185 views

in supabase after creating role 'adminRole' then granting the role to an email through update auth.users set role = 'adminRole' where email='my email'; i checked the table and it did update. then ...
enn_kh's user avatar
  • 1
0 votes
1 answer
277 views

I'm looking for a solution where a user's only permission it to execute a procedure. In my example below, that procedure is lowlevel.ZipFile (Main Procedure). The problem is that the procedure itself ...
Soerman's user avatar
  • 304
0 votes
0 answers
67 views

403 Forbidden Issue with 'grant' (example: [email protected]) word in email ID if we send an email to multiple email IDs. When we send mail to a single email (including [email protected]) to anyone, it's ...
Sandeep Chaurasiya's user avatar
0 votes
1 answer
221 views

I need to grant all users with execution permissions to execute myprocedure I'm using this: grant execute on procedure myprocedure to '*'@'%%'; And I got this: SQL Error [1410] [42000]: You are not ...
Lev's user avatar
  • 843
-2 votes
1 answer
44 views

I don't have a superuser in mysql (v8.0, with Linux Mint) and I cannot log into any database or alter any record or table (including the Grant table) I've tried reinstalling mysql and deleting all ...
facundolubo's user avatar
0 votes
1 answer
2k views

I am getting the following error on postgresql 12: ERROR: permission denied for schema public even though I am logged in as postgres (who is superuser), and I have granted all on the schema, and on ...
Bart Friederichs's user avatar
1 vote
1 answer
107 views

My impression is that MySQL is generally not case-sensitive, especially in MS Windows. In MySQL 8.0.34, I ran the following statements and got an error for the last statement. The error message is &...
techfan's user avatar
  • 13
2 votes
1 answer
1k views

I have user 'administrator' with CREATEROLE privileges. I create new user like this: CREATE USER test_user; And then i grant privileges to the new user: GRANT administrator TO test_user; When i'm ...
Paincake-'s user avatar
1 vote
1 answer
252 views

I created package in schema CUST_DEV. In proc from my package I use proc from other package CUST_DS.CUST_CTL.proc(). When i recompile my package i received error: PLS-00201: CUST_DS.CUST_CTL.proc ...
Diana Oryol's user avatar
2 votes
1 answer
3k views

GRANT APPLICATION_PASSWORD_ADMIN,BACKUP_ADMIN,FLUSH_OPTIMIZER_COSTS,FLUSH_STATUS,FLUSH_TABLES,FLUSH_USER_RESOURCES, INNODB_REDO_LOG_ARCHIVE,PASSWORDLESS_USER_ADMIN,SHOW_ROUTINE I want to grant these ...
Luke J's user avatar
  • 23
1 vote
1 answer
184 views

I want to have an owner of a database that can create roles and do all administrative tasks for that db. All roles created by the db owner must have select on all tables in the public schema as well ...
Clodoaldo Neto's user avatar
1 vote
0 answers
330 views

I want to restrict the access rights of different users through the standard SQL permission control that comes with Hive, but I don't know that if you can batch authorize tables under a certain ...
cocdkl's user avatar
  • 11
0 votes
1 answer
391 views

We've created a database link from an Oracle 12.1 DB to Oracle APEX 21.2 (Oracle 19c) and have granted EXECUTE to a package and granted SELECT to all the listed tables inside the function that's used ...
Megaman's user avatar
  • 25
0 votes
1 answer
190 views

In MySQL database, If a DBA grant select to a user1 as well as with grant option, then this user1 grant select access to user 2, can the DBA revoke user2 but not affect user 1 permission? I tried ...
Steve Timb's user avatar
1 vote
1 answer
3k views

I have created a new table called db.public.newTable. Now I need to give this table access to the role developer in Snowflake. What will the correct query grant this table access to the role developer?...
Mukul Kumar's user avatar
0 votes
1 answer
263 views

I see a lot of GRANT and DENY records in table sys.database_permissions for a specific user. How can I delete/clear all these entries? I need to clear to run a script that will do the appropriate ...
igorjrr's user avatar
  • 912
0 votes
1 answer
115 views

We have implemented Column level encryption on CON_String column which has username/password based connection strings. We have been using following code in order to see the decrypted column values ...
Vishwanath Dalvi's user avatar
1 vote
1 answer
496 views

I'm executing the following sql Alter USER test_user2 GRANT CONNECT THROUGH test_user1 ROLE myTestRole1; in Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 database and running in to the ...
mounish's user avatar
  • 13
0 votes
1 answer
155 views

I am trying make an user for make backups in my database with the next privileges: GRANT SELECT, LOCK TABLES, SHOW VIEW, TRIGGER, EXECUTE, PROCESS ON mydatabase.* to op_backup@'localhost'; but i ...
Dark869's user avatar
0 votes
1 answer
158 views

I want to create users with different priviledges for example read and write and admin for just a database. I create users with grants but when I use \du it doesn't show me anything that I can use to ...
Ali Rezvani's user avatar
-1 votes
1 answer
608 views

I'm wondering do I need just SELECT FROM grant to select from SYS.DBMS_LOCK_ALLOCATED or there is some special role for it? I'm unable to grant SELECT FROM SYS.DBMS_LOCK_ALLOCATED to my test user, so ...
Alexander's user avatar
0 votes
0 answers
36 views

I have script to create user and grant all privileges for table in postgres create user dev_api with encrypted password 'xxx'; grant all privileges on database dev to dev_api; ALTER USER dev_api ...
lacaci3709's user avatar
0 votes
0 answers
83 views

I'm trying to build an application which will be accessed by three types of people, they are Admins, Managers, and Students. I have created three users in MySQL DB and restricted their access to the ...
Mohamed Sulaimaan's user avatar
1 vote
1 answer
687 views

Having run a grant command in an Oracle SQL script, is there any way to tell if it actually changed anything. Like an equivalent of SQL%ROWCOUNT or similar? I am writing an ansible module which will ...
Adam's user avatar
  • 6,812
1 vote
2 answers
5k views

I'm connected to a Postgres 14 instance with postgres role. I have created a new database called airflow and a new user/role called airflow too, who is the owner of the db. ...
moth's user avatar
  • 2,459
0 votes
1 answer
47 views

I have two procedures one defines and uses a CURSOR with table from another schema and it gives me an error of insufficient privileges; the other one, creates a table with a dynamic SQL, referencing ...
Marcello Manfredini's user avatar
1 vote
1 answer
198 views

I have a table called resources and a user/role called public_anonymous ... and as far as I can tell, the user doesn't have INSERT permissions on that table. Here's DBeaver showing as much: And here'...
machineghost's user avatar
0 votes
0 answers
434 views

I'm looking to GRANT all sorts of CREATE statements on specific schemas in my DB for specific members of a role; Here's my current setup, I have: Schema A Schema B Role A Role B SQL Login A SQL ...
djohnjohn's user avatar
1 vote
0 answers
422 views

I created a role and it worked. Then I dropped it, and when I try to recreate it it doesn't work anymore. I have to create a role, grant select to that role and grant that role to a user named user2, ...
Juansa Campoy's user avatar
1 vote
0 answers
123 views

how can I use the root command to grant permission to "media projection" or to another: "screen capture/screenshot"? maybe it's some kind of "activity" you need to run? I ...
007wan's user avatar
  • 11
0 votes
1 answer
390 views

I'm not a DB expert, my boss has retired and it's up to me now. He created a production database, and a test database on another server with same username/password and schema name test_SameAsOtherDB. ...
jochanan's user avatar

1
2 3 4 5
15