Site icon IT Tutorial

ORA-39181: Only partial table data may be exported due to fine grain access control

I got ” ORA-39181: Only partial table data may be exported due to fine grain access control ”  error in Oracle database.

 

ORA-39181: Only partial table data may be exported due to fine grain access control

 

Details of error are as follows.

ORA-39181: Only partial table data may be exported due to fine grain access control on "xxxxx"

Cause This is expected behavior. ORA-39181 is caused by an unprivileged user who tries to 
export a table with a fine grain access control policiy applied. The table owner is
 subject to access control and may not be able to export all rows in the table.

Action: Only the rows that can be seen by that user are exported. In order to preserve
 integrity of the table, the user importing the table should have enough privilege to 
recreate the table with the security policies at import time. Action: It is strongly 
recommended that the database administrator handles the export of this table.



 

 

Only partial table data may be exported due to fine grain access control on “xxxxx”

This ORA-39181 error is related to the unprivileged user who tries to export a table with a fine grain access control policiy applied. The table owner is subject to access control and may not be able to export all rows in the table.

 

Only the rows that can be seen by that user are exported. In order to preserve integrity of the table, the user importing the table should have enough privilege to recreate the table with the security policies at import time. Action: It is strongly recommended that the database administrator handles the export of this table.

 

To solve this error, run the following grant.

 

SQL> GRANT EXEMPT ACCESS POLICY to <SCHEMA_NAME>;
GRANT EXEMPT ACCESS POLICY to System;

 

Once the export is done, you can revoke this privilige as follows.

revoke EXEMPT ACCESS POLICY  from system;

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

Exit mobile version