.. _sys_seclabel(KES):

sys_seclabel
^^^^^^^^^^^^^^^^^^

\ ``sys_seclabel``\ 视图存储数据库对象上的安全标签。安全标签可以通过 ``SECURITY LABEL`` 命令操纵。简单的查看安全标签方法请见 :ref:`sys_seclabels(KES)` 。

同时请见 :ref:`sys_shseclabel(KES)` ，它对集簇共享的数据库对象的安全标签执行相似的功能。

.. table:: sys_seclabel列
      :widths: 2 1 3 
      :class: longtable

      +--------------+-------------+-------------------------------------------------------------------------------------+
      | 名称         | 类型        | 描述                                                                                |
      +==============+=============+=====================================================================================+
      | ``objoid``   | ``oid``     | 该安全标签依附的对象的oid                                                           |
      +--------------+-------------+-------------------------------------------------------------------------------------+
      | ``classoid`` | ``oid``     | 该对象所出现的系统表的oid                                                           |
      +--------------+-------------+-------------------------------------------------------------------------------------+
      | ``objsubid`` | ``integer`` | 对于一个在表列上的安全标签，这将是列号（\ ``objoid``\  和\ ``classoid``\ 指表本身） |
      |              |             |                                                                                     |
      |              |             | 对于所有其他对象类型，本列为0                                                       |
      +--------------+-------------+-------------------------------------------------------------------------------------+
      | ``provider`` | ``text``    | 与该标签相关的标签提供者                                                            |
      +--------------+-------------+-------------------------------------------------------------------------------------+
      | ``label``    | ``text``    | 应用于该对象的安全标签                                                              |
      +--------------+-------------+-------------------------------------------------------------------------------------+

**参考**

- :ref:`SECURITY LABEL(Oracle) <SECURITY LABEL(Oracle)>`
- :ref:`SECURITY LABEL(SQLServer) <SECURITY LABEL(SQLServer)>`
