You are on page 1of 1

Document 436106.

Pgina 1 de 1

Ora-01031: Insufficient Privileges, When Using The Flashback_time


Option with EXPDP/IMPDP Network_link (Doc ID 436106.1)
Modified: 12-Apr-2013

To Bottom

Type: PROBLEM

In this Document
Symptoms
Cause
Solution

APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.1.0.2 and later
Information in this document applies to any platform.
***Checked for relevance on 12-Apr-2013***

SYMPTOMS
When running datapump expdp/impdp via network_link or locally as another user other than SYS/SYSTEM
to export/import another schemas data from the source (export) instance, the process fails with following
errors if the FLASHBACK_TIME or FLASHBACK_SCN is used to get a consistent export/import.
ORA-31693: Table data object "SCOTT"."FLSHBK_EMP" failed to load/unload and is being skipped due to
error:
ORA-01031: insufficient privileges
ORA-02063: preceding line from FLASH_BK_EXPDP
The network_link references a valid dblink which is configured to connect to remote (export) instance as a
non SYS/SYSTEM schema that has been granted EXP_FULL_DATABASE.
When you connect to export instance as this same user via sqlplus you can query the export table but can
not query it using flashback query
SQL> connect <non SYS/SYSTEM user>/<password>
SQL> select count(*) from scott.emp;
COUNT(*)
---------14
SQL> select count(*) from scott.emp as of timestamp(sysdate);
select count(*) from scott.emp as of timestamp(sysdate)
*
ERROR at line 1:
ORA-01031: insufficient privileges

CAUSE
To use expdp/impdp FLASHBACK_TIME or FLASHBACK_SCN the network_link must connect to the remote
instance as user which has flashback query privileges granted on object to be exported/imported. Grant
FLASHBACK and SELECT privileges on specific objects to be accessed during export/import or grant the
FLASHBACK ANY TABLE privilege to allow export/import on all tables.
Granting the network_link user EXP_FULL_DATABASE and/or IMP_FULL_DATABASE role is not sufficient to
access other schema objects when using FLASHBACK_TIME or FLASHBACK_SCN via expdp/impdp
network_link.

https://support.oracle.com/epmos/faces/DocContentDisplay?_afrLoop=414220355758... 26/09/2015

You might also like