当前位置: 首页 > news >正文

如何查网站pv公司网站开发项目外包方案

如何查网站pv,公司网站开发项目外包方案,wordpress配置微信支付,免费苏州企业名录如果表定义了Redaction Policy,导出时数据会脱敏吗?本文解答这个问题。 按照Oracle文档Advanced Security Guide第13章,13.6.5的Tutorial,假设表HR.jobs定义了Redaction Policy。 假设HR用户被授予了访问目录对象的权限&#xf…

如果表定义了Redaction Policy,导出时数据会脱敏吗?本文解答这个问题。

按照Oracle文档Advanced Security Guide第13章,13.6.5的Tutorial,假设表HR.jobs定义了Redaction Policy。

假设HR用户被授予了访问目录对象的权限:

grant read, write on directory data_pump_dir to hr;

此时导出出错:

$ expdp hr/Welcome1@orclpdb1 tables=jobs directory=data_pump_dirExport: Release 19.0.0.0.0 - Production on Fri Aug 11 16:04:01 2023
Version 19.3.0.0.0Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Starting "HR"."SYS_EXPORT_TABLE_01":  hr/********@orclpdb1 tables=jobs directory=data_pump_dir
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/COMMENT
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
ORA-31693: Table data object "HR"."JOBS" failed to load/unload and is being skipped due to error:
ORA-28081: Insufficient privileges - the command references a redacted object.Master table "HR"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for HR.SYS_EXPORT_TABLE_01 is:/opt/oracle/admin/ORCLCDB/dpdump/028F128E6BA24783E0630101007F820F/expdat.dmp
Job "HR"."SYS_EXPORT_TABLE_01" completed with 1 error(s) at Fri Aug 11 16:04:25 2023 elapsed 0 00:00:24

其中的关键错误信息为:

ORA-28081: Insufficient privileges - the command references a redacted object.

如果你用sys用户导出,就不会有错,因为SYS用户又豁免Data Redaction的权限。

我们如果赋予HR用户相应的权限,

grant DATAPUMP_EXP_FULL_DATABASE to hr;

然后导出成功:

$ expdp hr/Welcome1@orclpdb1 tables=jobs directory=data_pump_dirExport: Release 19.0.0.0.0 - Production on Fri Aug 11 16:22:25 2023
Version 19.3.0.0.0Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Starting "HR"."SYS_EXPORT_TABLE_01":  hr/********@orclpdb1 tables=jobs directory=data_pump_dir
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/RADM_POLICY
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/COMMENT
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
. . exported "HR"."JOBS"                                 7.109 KB      19 rows
Master table "HR"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for HR.SYS_EXPORT_TABLE_01 is:/opt/oracle/admin/ORCLCDB/dpdump/028F128E6BA24783E0630101007F820F/expdat.dmp
Job "HR"."SYS_EXPORT_TABLE_01" successfully completed at Fri Aug 11 16:22:50 2023 elapsed 0 00:00:23

总之,Data Redaction不是一个物理脱敏的方案,物理脱敏还需要靠DMS(Data Masking and Subsetting)。

那么,结论就是:

  • 对于启用了Redaction 策略的表,数据泵导出时数据不会脱敏
  • 但是会把策略也一并导出,然后在目标库可以用impdp导入。

实验做完了。收回hr的权限:

revoke read, write on directory data_pump_dir from hr;
revoke DATAPUMP_EXP_FULL_DATABASE from hr;

参考

  • 13.6.5 Tutorial: Creating and Sharing a Named Data Redaction Policy Expression
  • Data Redaction and Data Pump in #Oracle 12c
  • Data Redaction Error While Doing An Expdp: ORA-28081: Insufficient privileges - the command references a redacted object. (Doc ID 1631729.1)
  • Some examples of implementing Data Redaction using DBMS_REDACT (Doc ID 1588270.1)
http://www.yayakq.cn/news/818489/

相关文章:

  • 影视网站建设中国手机网站建设公司
  • 可以用AI做网站上的图吗惠州论坛网站建设
  • 常州做网站建设精品电商网站建设
  • 广西商城网站建设海外推广服务
  • 建立网站第一步是什么手机门户网站源码
  • 有什么网站可以做深圳初二的试卷练习晋城 网站建设
  • 佛山高端网站开发公司58同城网站建设推广排名
  • 大学生网站建设开题报告网站开发与维护的岗位特点职责
  • 一个专门做恐怖片的网站wordpress定时器
  • 网站平台建设总结每一天做网站
  • 建设银行杭州招聘网站做网站详细步骤
  • 綦江中国建设银行官网站专业的家居行业网站制作
  • 小企业网站建设源代码河北石家庄地图
  • 衡水哪儿专业做网站模板网免费
  • ppt模板网站大全西昌市住房与城乡建设厅网站
  • 建德广元建设有限公司网站腾讯云域名怎么使用
  • 做搜狗手机网站点击软国内网站不备案可以吗
  • 北海网站建设网做网站程序看什么书
  • 长沙网站建设报价企业建网站有这个必要吗
  • 渭南商铺网站建设微信怎么开店铺小程序
  • 网页设计与网站架设怎么做能让网站尽快收录
  • 绍兴网站制作报价wordpress json 输出
  • 免费的黄冈网站有哪些平台可以聊天呢哈尔滨市香坊区建设局网站
  • 河间网站制作备案不关闭网站怎么样
  • 市住房和城乡建设局网站大连做衣服类网站策划书
  • 有了域名之后怎么做网站福州公司网站开发方案
  • 门户网站html模板下载微信 存储wordpress
  • 网站优化公司效果无锡市太湖新城建设网站
  • 郑州网站优化多少钱专业的企业网站开发公司
  • 建站cms源码深圳景点