关于grant授权问题

单表授权

grant select , insertupdatedelete on 表名 to 被授权用户名;

grant select , insertupdatedeletereferences , alterindex  on T_FIX_BIND_ROUTE  to  SPOS_USER3;

所有表授权

select ‘grant select, insert, update, delete on ‘ ||t.tname||‘ to 被授权用户名;‘

  from tab t

 where t.tabtype = ‘TABLE‘;

单序列授权

grant select on 序列名 to 被授权用户名;

grant select on nac_user.seq_l_tradelist_atuoid to spos_user3;

授权某用户下所有序列

select ‘grant select on ‘ ||t.sequence_name||‘ to 被授权用户名;‘

  from sys.dba_sequences t

 where sequence_owner = ‘授权用户名(大写)‘ ;

存储过程授权

grant execute on nac_posp to spos_user3;

赋给用户调试权限

grant debug session to 用户名

DBA收回权限

select ‘REVOKE ALL ON  WEB_USER.‘ || T.object_name || ‘ FROM NAC_USER;‘

from dba_objects t

where t.owner = ‘WEB_USER‘

AND T.object_type IN (‘TABLE‘ , ‘SEQUENCE‘ , ‘VIEW‘ , ‘PROCEDURE‘)  --对象类型

时间: 2024-07-29 13:15:52

关于grant授权问题的相关文章

在ASP.NET中基于Owin OAuth使用Client Credentials Grant授权发放Token

OAuth真是一个复杂的东东,即使你把OAuth规范倒背如流,在具体实现时也会无从下手.因此,Microsoft.Owin.Security.OAuth应运而生(它的实现代码在Katana项目中),帮助开发者偷了不少工,减了不少料. 这篇博文试图通过一个简单的示例分享一下如何基于Microsoft.Owin.Security.OAuth,使用Client Credentials Grant授权方式给客户端发放access token. Client Credentials Grant的授权方式就

Oracle菜鸟之grant授权

<pre name="code" class="sql">1.给数据库用户授权(对象为用户表) GRANT privilege[, ...] ON object[, ...] TO { PUBLIC | GROUP group| username} privilege: select:查询 insert:插入 update:更新 delete:删除 rule: all:所有 grant select,insert,update on tablename

mysql grant 授权

mysql grant 授权 授权格式如:grant 权限 to 数据库对象 on 用户 grant 授权用户增删改查权限: grant select, insert, update, delete on testdb.* to sky_user@'%' grant 数据库开发人员,创建表.索引.视图.存储过程.函数等权限.grant create on testdb.* to developer@'192.168.0.%';grant alter on testdb.* to develope

GRANT 授权

sys(管理员)身份登录,创建用户名zsta_new create user zsta_new identified by 密码 default tablespace ZSTA_DATA_TBS temporary tablespace TEMP profile DEFAULT; 给zsta_new用户授权(允许创建存储过程等): grant connect to zsta_new; grant resource to zsta_new; grant create any procedure t

mysql grant授权

MySQL 赋予用户权限命令的简单格式可概括为: grant 权限 on 数据库对象 to 用户 一.grant 普通数据用户,查询.插入.更新.删除 数据库中所有表数据的权利. grant select on testdb.* to [email protected]'%'grant insert on testdb.* to [email protected]'%'grant update on testdb.* to [email protected]'%'grant delete on 

理解 Oracle 多租户体系中(12c,18c,19c)Grant授权作用域范围

本篇探讨以下几个问题:你可提前猜测下面6个场景语句中,哪几个授权可以成功执行? 1. 在CDB级别中对用户进行授权,不带 container 子句的效果: 2. 在CDB级别中对用户进行授权,带 container=all 子句的效果: 3. 在CDB级别中对用户进行授权,带 container=current 子句的效果: 4. 在PDB级别中对用户进行授权,不带 container 子句的效果: 5. 在PDB级别中对用户进行授权,带 container=all 子句的效果: 6. 在PDB

Oracle drop table 和 truncate table对grant授权的影响

1.以sys登陆,建表赋予权限,准备测试表z2 [[email protected] ~]$ rlwrap sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Tue May 16 14:59:27 2017 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition

数据库grant 授权

命令 权限usage 无权限SELECT 查询表记录INSERT 插入表记录UPDATE 更新表记录DELETE 删除表记录CREATE 创建库.表DROP 删除库.表RELOAD 有重新载入授权 必须拥有reload权限,才可以执行flush [tables | logs | privileges] SHUTDOWN 允许关闭mysql服务 使用mysqladmin shutdown 来关闭mysqlPROCESS 允许查看用户登录数据库服务器的进程 ( show processlist; )

全文索引Sphinx+binlog日志+Grant用户授权+读写分离和主从复制

一.全文索引Sphinx 1.什么是Sphinx Sphinx是由俄罗斯人Andrew Aksyonoff开发的一个全文检索引擎.它是基于C语言开发出来的.中文翻译为斯芬克司斯芬克司. Sphinx最好的应用操作系统是Linux 2.Sphinx的优势 Sphinx是一个基于SQL的全文检索引擎,可以结合MySQL,PostgreSQL做全文搜索,它可以提供比数据库本身更专业的搜索功能,使得应用程序更容易实现专业化的全文检索.Sphinx特别为一些脚本语言设计搜索API接口,如PHP,Pytho