代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
PLSQL
】
oracle grant
作者:
Dezai.CN
/ 发布于
2012/6/27
/
757
oracle grant
<div>--select * from dba_users; 查询数据库中的所有用户 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --alter user TEST_SELECT account lock; 锁住用户 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --alter user TEST_SELECT account unlock; 给用户解锁 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --create user xujin identified by xujin; 建立用户 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --grant create tablespace to xujin; 授权 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --grant select on tabel1 to xujin; 授权查询 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --grant update on table1 to xujin; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --grant execute on procedure1 to xujin 授权存储过程 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --grant update on table1 to xujin with grant option; 授权更新权限转移给xujin用户,许进用户可以继续授权; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --收回权限 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --revoke select on table1 from xujin1; 收回查询select表的权限; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --revoke all on table1 from xujin; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> /*grant connect to xujin; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> revoke connect from xujin <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> grant select on xezf.cfg_alarm to xujin; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> revoke select on xezf.cfg_alarm from xujin;*/ <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --select table_name,privilege from dba_tab_privs where grantee='xujin' 查询一个用户拥有的对象权限 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --select * from dba_sys_privs where grantee='xujin' 查询一个用户拥有的系统权限 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --select * from session_privs --当钱会话有效的系统权限 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --角色 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --create role xujin1;--建立xujin1角色 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --grant insert on xezf.cfg_alarm to xujin1; 将插入表的信息 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --revoke insert on xezf.cfg_alarm from xujin1; 收回xujin1角色的权限 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --grant xujin1 to xujin ; 将角色的权限授权给xujin; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> -- create role xujin2; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --grant xujin1 to xujin2; 将角色xujin1授权给xujin2; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --alter user xujin default xujin1,xujin2; 修改用户默认角色 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> -- DROP ROLE xujin1;删除角色1; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --select * from role_sys_privs where role=xujin1; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --查看许进1角色下有什么系统权限; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --select granted_role,admin_option from role_role_privs where role='xujin2'; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --查看xujin1角色下面有什么角色权限 <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --select * from role_sys_privs where role='xujin2'; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --select table_name,privilege from role_tab_privs where role='xujin1'; <p style="margin: 0px; padding: 0px; line-height: 21px; font-family: 宋体,"Arial Narrow",arial,serif; font-size: 14px; list-style-type: none;"> --select * from dba_role_privs where grantee='xujin' --查看用户下面有多少个角色; </div>
试试其它关键字
oracle
grant
同语言下
.
查看某张表的表结构
.
oracle 集合操作
.
for 循环中倒序 用reverse
.
Oracle 临时表空间收缩
.
查看session及其对应运行的sql
.
Oracle常用查看表结构命令
.
Oracle Connect By Prior用法(实现递归查询)
.
重置排序 SEQUENCE
.
创建一个trigger
.
批量替换字段中的字符
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
Dezai.CN
贡献的其它代码
(
4037
)
.
多线程Socket服务器模块
.
生成随机密码
.
清除浮动样式
.
弹出窗口居中
.
抓取url的函数
.
使用base HTTP验证
.
div模拟iframe嵌入效果
.
通过header转向的方法
.
Session操作类
.
执行sqlite输入插入操作后获得自动编号的ID
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3