是否可以将自定义元数据字段添加到Oracle Data Dictionary?
是否可以在列级(Oracle Data Dictionary)上添加元数据字段?
目的是持有一个标志,以识别表中单个数据项被匿名化的位置。
我是一名分析师(不是DBA),我正在使用Oracle SQL开发人员表面(并启用查询)column_name,data_type,nullable,data_default,column_id,data_default,column_id和我们的Oracle DB的元数据字段(请参阅PIC)。
我希望在此级别上添加另一个元数据字段(本质上是添加第二个“注释”字段)以保存“匿名”标志,以支持轻松查询我们标记的匿名数据。
如果有可能(建议 /支持),我将感谢任何建议描述启用此步骤所需的步骤,然后我可以与开发人员和DBA进行讨论。
Is it possible to add a metadata field at column-level (in the Oracle Data Dictionary)?
The purpose would be to hold a flag identifying where individual data items in a table have been anonymised.
I'm an analyst (not a DBA) and I'm using Oracle SQL Developer which surfaces (and enables querying of) the COLUMN_NAME, DATA_TYPE, NULLABLE, DATA_DEFAULT, COLUMN_ID, and COMMENTS metadata fields of our Oracle DB (see pic).
I'd be looking to add another metadata field at this level (essentially, to add a second 'COMMENTS' field) to hold the 'Anonymisation' flag, to support easy querying of our flagged-anonymised data.
If it's possible (and advisable / supportable), I'd be grateful for any advice for describing the steps required to enable this, which I can then discuss with our Developer and DBA.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
简短答案:否。,
但是您可以在哪里保留这些信息?
在您的数据模型中。
Oracle提供了免费的数据建模解决方案,Oracle SQL开发人员数据建模器。它提供了将表/视图列标记为敏感或PII的能力。
这些相同的型号可以存储在您的数据库中,因此可以通过SQL访问它们。
一旦您标记了所有敏感属性/列,然后将其存储回数据库,就可以将其查询。
免责声明:我为Oracle工作,我是Data Modeler的产品经理。
Short answer: NO.
But where could you keep that information?
In your data model.
Oracle provides a free data modeling solution, Oracle SQL Developer Data Modeler. It provides the ability to mark table/view columns as sensitive or PII.
Those same models can be stored back in your database so they can be accessed via SQL.
Once you've marked up all of your sensitive attributes/columns, and store it back into the database, you can query it back out.
Disclaimer: I work for Oracle, I'm the product manager for Data Modeler.
[TL; dr]不要这样做。找到另一种方式。
不要
修改数据字典; (除非Oracle Support告诉您)您可能会使您与Oracle的支持合同无效,并且可能会破坏数据库并使其无法使用。
请不要这样做。
如果您真的想尝试一下,那仍然不要。
请找到一个您不在乎的数据库(不在乎bit很重要!),并登录为
sysdba
user和:如果您真的很想尝试一下, 测试数据库是否断开(并且可能不会立即破裂,但以后在某个时候破裂),但是如果这样做,您几乎可以肯定的是,您不会从Oracle上获得任何支持。
我们是否说:“不要做” ...我们的意思是。
[TL;DR] Don't do it. Find another way.
NO
Never modify the data dictionary; (unless Oracle support tells you to) you are likely to invalidate your support contract with Oracle and may break the database and make it unusable.
Don't do this.
If you really want to try it then still don't.
If you really, really want to try it then find a database you don't care about (the don't care about bit is important!) and log on as a
SYSDBA
user and:Then you can test whether the database breaks (and it may not break immediately but at some point later), but if it does then you almost certainly will not get any support from Oracle in fixing it.
Did we say, "Don't do it"... we mean it.
如您所知,您不应该这样做。
但是,没有什么可以阻止您创建自己的表格,该表将包含这样的信息。
例如:
用一些数据填充它:
设置匿名标志:
当您要获取此类信息时(以及来自
user_tab_columns
的更多数据,请使用(ofter)(outer)加入:优势:您不会:打破数据库&您将拥有其他信息
:您必须手动维护表。
As you already know, you shouldn't do that.
But, nothing prevents you from creating your own table which will contain such an info.
For example:
Populate it with some data:
Set the anonymisation flag:
When you want to get such an info (along with some more data from
user_tab_columns
, use (outer) join:Advantages: you won't break the database & you'll have your additional info.
Drawbacks: you'll have to maintain the table manually.