QUESTION NO: 277
A user named Arren is executing this query:
select table_name, operation, undo_sql from flashback_transaction_query t,
(select versions_xid as xid from employees versions between scn minvalue and maxvalue
where employee_id = 123) e
where t.xid = e.xid;
When the query runs, he receives an ORA-01031: insufficient privileges error. Since the user owns the
employees table, you know that it is not the problem. Which of the following SQL statements will correct
this problem?
A. GRANT SELECT ANY TRANSACTION TO ARREN;
B. GRANT SELECT ON FLASHBACK_TRANSACTION_QUERY TO ARREN;
C. GRANT SELECT_ANY_TRANSACTION TO ARREN;
D. GRANT FLASHBACK TO ARREN;
E. GRANT SELECT ANY VIEW TO ARREN;
Answer: A
The user needs to have the SELECT ANY TRANSACTION privilege granted to him. All of the other
choices are incorrect.
运行查询时,他收到ORA-01031:权限不够的错误。由于用户拥有员工表,你知道这不是问
题。下面的哪条SQL语句将纠正这个问题?