问题反思

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wll_1017/article/details/81588617

需求:

同事需要导出我所管理生产数据库中的几张表,同步到测试库中

经过:

通过对几个表导出,发现 ORA-39181: Only partial table data may be exported due to fine grain access control

通过网上寻找答案:解决方法是: 给予用户权限EXEMPT ACCESS POLICY,本来是想先给用户加权限,然后再收回,可是导出完数据后,忘记收回权限的事情。

下班的时候,有人说VPD出问题了,我就协助处理,权限控制出现问题,不能到访问到数据的也访问到了。

甚至到晚上第三方介入处理,我也没有想起给予权限的事情,直到问题解决,多个权限,我意识到问题,需要反思。

反思:对于稳定的系统,在处理需求的时候可以想想其他的途径。而不是对已经稳定的系统去加权限,而是可以考虑换个用户,换个方法的方式。

[oracle@anetmsdb02 expdata]$ oerr ORA 39181
39181, 0000, "Only partial table data may be exported due to fine grain access control on %s"
// *Cause:  An unprivileged user has tried to export a table that has fine
//          grain access control. The table owner is subjected 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 will be 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 handle
//          exporting of this table.

猜你喜欢

转载自blog.csdn.net/wll_1017/article/details/81588617