My Oracle Support Banner

Flashback Table To Scn Fails With ORA ORA-01031 (Doc ID 1956473.1)

Last updated on JUNE 10, 2021

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


On : version, Database Security

When attempting to flashback a table using a user A
the following error occurs.

ORA-00604: error occurred at recursive SQL level 1
ORA-01031: insufficient privileges

The issue can be reproduced at will with the following steps:

1) connect system/<password>

create user xxxxxx_xxx identified by xxxx;
grant connect,resource to xxxxxx_xxx;
create table xxxxxx_xxx.t (t number);
alter table xxxxxx_xxx.t enable row movement;
select current_scn from v$database;
insert into xxxxxx_xxx.t values (1);
create user a identified by <password>;
grant connect to a;
grant select, insert, update,delete, flashback on xxxxxx_xxx.t to a;

2)connect a/a

flashback table xxxxx_xxx.t to scn xxxxx;


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.