Home > Database > Mysql Tutorial > body text

flashback_transaction_query查询权限

PHPz
Release: 2018-09-30 10:16:56
forward
1243 people have browsed it

flashback_transaction_query是事物查询的要用到的重要视图,在一次查询中出现用户没有权限查询该视图

SQL> select undo_sql ,START_TIMESTAMP,COMMIT_TIMESTAMP from flashback_transaction_query where table_name='TEST_FLASHBACK';
select undo_sql ,START_TIMESTAMP,COMMIT_TIMESTAMP from flashback_transaction_query where table_name='TEST_FLASHBACK'

 *ERROR at line 1:
ORA-01031: insufficient privileges

--查询该视图时报没有权限

看到报没有权限,我就给用户付权限,然后我尝试了给用户赋予一下权限

1. grant select on flashback_transaction_query to shao;--查询报同样的错

2. grant select any dictionary to shao;--查询报同样的错

3. grant select any table to shao;--依然报错

最后没有办法求助谷歌,终于找到解决方法grant select any transaction to shao;,赋予用户该权限后,用户能够访问flashback_transaction_query视图。

更多相关教程请访问 MySQL视频教程

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template