For v$ views you need to grant privilege to each v_$ directly
发表于:2024-09-30 作者:千家信息网编辑
千家信息网最后更新 2024年09月30日,最近在看Thomas Kyte的,在定制环境的时候,运行以下脚本,出现问题: scott@SHENZHEN> grant select any table to scott; scott@SHENZH
千家信息网最后更新 2024年09月30日For v$ views you need to grant privilege to each v_$ directly最近在看Thomas Kyte的<Expert Oracle.Database.Architecture.9i.and.10g>,在定制环境的时候,运行以下脚本,出现问题: scott@SHENZHEN> grant select any table to scott; scott@SHENZHEN> create or replace view stats as select 'STAT...' || a.name name, b.value from v$statname a, v$mystat b where a.statistic# = b.statistic# union all select 'LATCH.' || name, gets from v$latchlatch union all 9 select 'STAT...Elapsed Time', hsecs from v$timer; from v$statname a, v$mystat b *ERROR at line 3:ORA-01031: insufficient privileges[@more@]欲将这几个动态性能视图的select权限单独赋给Scott:sys@SHENZHEN> grant select on v$mystat to scott; grant select on v$mystat to scott *ERROR at line 1:ORA-02030: can only select from fixed tables/views查询后发现,原来v$对象,并不是视图,而是指向v_$视图的同义词,而视图是基于真正的v$视图创建的。还有X$表,这一部分表是Oracle数据库的运行基础,在数据库启动时由Oracle应用程序动态创建。这部分表对数据库来说至关重要,所以Oracle不允许SYSDBA之外的用户直接访问,显示授权不被允许。将select权限赋给4个v_$视图sys@SHENZHEN> grant select on v_$mystat to scott; Grant succeeded.sys@SHENZHEN> grant select on v_$statname to scott;Grant succeeded.sys@SHENZHEN> grant select on v_$latch to scott; Grant succeeded.sys@SHENZHEN> grant select on v_$timer to scott; Grant succeeded.scott@SHENZHEN> create or replace view stats 2 as select 'STAT...' || a.name name, b.value 3 from v$statname a, v$mystat b 4 where a.statistic# = b.statistic# 5 union all 6 select 'LATCH.' || name, gets 7 from v$latch 8 union all 9 select 'STAT...Elapsed Time', hsecs from v$timer;View created.问题解决!Reference:http://space.itpub.net/9252210/viewspace-591741http://www.orafaq.com/forum/t/72902/2/http://zhangsolomon.itpub.net/post/39913/488842http://blog.csdn.net/yang073402/archive/2010/04/13/5482987.aspxhttp://www.alidw.com/?p=263
视图
数据
数据库
动态
权限
问题
运行
重要
分表
同义词
基础
对象
应用程序
性能
指向
时候
环境
用户
程序
而是
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
数据库mysql下载
网络安全发展产业论坛
网络安全小知识及其解答
数据库数据源管理系统
照片数据转数据库
苏州生鲜电商软件开发
mc如何把最大服务器搞崩溃
复杂网络安全手抄报图片
自己组一台游戏服务器要多少钱
饥荒 云服务器
access数据库的容量
中信网络技术股份有限公司
不要密码的网络安全吗
建立优秀贫困生数据库的通知
我的数据库名
长宁区网络技术转让技术指导
龙华区正规网络技术开发诚信互利
作为计算机网络安全行为的准则
闵行区营销软件开发协议
行为管理服务器公司
网页如何调用数据库
db3 数据库
杭州计算机应用软件开发如何收费
网络安全法谁发布的
如何利用中国知网数据库
伟思信安网络安全隔离
网络安全法违反第44条规定
网络安全防护放光芒
网络安全管理法的核心内容
色盲派对服务器编号