What is the difference between mandatory access to Oracle databases and DM?

Source: Internet
Author: User

The following is a detailed description of Oracle label security compared to the Mandatory Access Control Model of Oracle Database and DM. If you are interested in the practical application of this aspect, the following articles will provide you with relevant information.

Security element

(1) Mark components

There are three different components: Level, grid, and group.

A) level)

Level is used to identify the sensitivity level of the data. The more sensitive the data is, the higher the level. Each level is composed of numbers and characters. The value range is 0-99.

Oracle Database creation-level stored procedures:

The following is a reference clip:

 
 
  1. PROCEDURE CREATE_LEVEL (   
  2. policy_name IN VARCHAR2, 

Policy Name

 
 
  1. level_num IN INTEGER, 

Level number

 
 
  1. short_name IN VARCHAR2, 

Short Name

 
 
  1. long_name IN VARCHAR2); 

Long Name

B) lattice (compartment)

Cells are used for the sensitivity area of the data tag, and the cells have no level. The numbers and character forms of cells are similar to the level. The difference is that there is no sensitivity between cells. A grid can contain up to 10000 elements.

Storage process for creating cells:

The following is a reference clip:

 
 
  1. PROCEDURE CREATE_COMPARTMENT (   
  2. policy_name IN VARCHAR2, 

Oracle Database Policy Name

 
 
  1. comp_num IN INTEGER,  

Grid number

 
 
  1. short_name IN VARCHAR2,  

Short Name

 
 
  1. long_name IN VARCHAR2); 

Long Name

C) group)

A group is used to identify the organizational structure that owns or accesses data. Tags of data belonging to the same department can have the same group. Groups are classified. You can use groups to identify data based on your organizational structure. A group can contain up to 10000 elements.

Stored Procedure for creating a group:

The following is a reference clip:

 
 
  1. PROCEDURE CREATE_GROUP (   
  2. policy_name IN VARCHAR2, 

Policy Name

 
 
  1. group_num IN INTEGER, 

Group Number

 
 
  1. short_name IN VARCHAR2, 

Short Name

 
 
  1. long_name IN VARCHAR2, 

Long Name

 
 
  1. parent_name IN VARCHAR2 DEFAULT NULL);  

Parent group name

(1) Policy

A policy must contain one level component. A policy can contain at most one level and one group of components.

Create a policy stored procedure:

 
 
  1. PROCEDURE CREATE_POLICY (  
  2. policy_name IN VARCHAR2,   

Oracle Database Policy Name

 
 
  1. column_name IN VARCHAR2 DEFAULT NULL,  

The default name of the Flag column.

 
 
  1. default_options IN VARCHAR2 DEFAULT NULL); 

Default options

(2) mark

Tag Syntax:

 
 
  1. LEVEL:COMPARTMENT1,...,COMPARTMENTn:GROUP1,...,GROUPn 

The maximum length of a tag string is 4000 characters, including numbers, spaces, and underscores. The tag string is case-insensitive and displayed in uppercase/lowercase format.

When a valid tag is created, a numeric tag is associated with the tag string. This numeric identifier is stored in the table's tag column.

Create a tag stored procedure:

The following is a reference clip:

 
 
  1. PROCEDURE CREATE_LABEL (   
  2. policy_name IN VARCHAR2, 

Policy Name

 
 
  1. label_tag IN INTEGER, 

Mark Number

 
 
  1. label_value IN VARCHAR2,  

Tag Value

 
 
  1. data_label IN BOOLEAN DEFAULT TRUE); 

Indicates whether it is a data mark.

Article by: http://www.programbbs.com/doc/class10-1.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.