Access control method and system in database performance monitoring system

By using fuzzy clustering algorithm to dynamically combine permissions in the database performance monitoring system to form temporary roles, the problem of cumbersome dynamic role permission management in the existing technology is solved, and administrator efficiency and system standardization are improved.

CN117556445BActive Publication Date: 2024-08-27BEIJING XINSHU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311572710.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-23
Publication Date
2024-08-27
Estimated Expiration
2043-11-23

AI Technical Summary

Technical Problem

In the existing database performance monitoring system, the management of dynamic role permissions has the problems of cumbersome manual assignment, incomplete permissions, and the need for constant adjustment, which increases the administrator's burden and affects the standardization of the system.

Method used

The fuzzy clustering algorithm is used to add organizational management on the basis of users and roles. By clustering the usage statistics of resource permissions, permissions are dynamically combined to form temporary roles, which are named and managed by administrators.

Benefits of technology

It improves the convenience for administrators when adding roles, ensures the accuracy and rationality of permissions, and improves the standardization and management efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117556445B
    Figure CN117556445B
Patent Text Reader

Abstract

This invention proposes an access control method and system for database performance monitoring. Based on users and roles, it adds organizational management and defines user roles, permissions, and corresponding department information, strictly managing user permissions for different operations, thus improving the security of the database performance monitoring system. Based on the correlation between users' resource permissions, this invention designs a fuzzy clustering algorithm to dynamically combine resource permissions. Using this invention, highly correlated resource permissions used by users can be grouped together, and this group can be suggested as a dynamic role. When adding temporary roles, administrators can select and name them. This invention not only improves the convenience for administrators when adding roles but also ensures the accuracy and rationality of the permissions that should be included in a role. From a global perspective, it improves the standardization of the system, thereby increasing the efficiency of system management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an access control method and system in a database performance monitoring system, belonging to the field of database performance monitoring. Background Art

[0002] The database performance monitoring system can collect database key performance indicators 24 / 7, making it easy to detect abnormal situations in a timely manner, greatly improving the work efficiency of database operation and maintenance personnel. However, considering that there are many users of the database performance monitoring system, and different users may correspond to different permission levels, they can perform different operations accordingly.

[0003] In the database performance monitoring system, access control is mainly performed through users and roles. When adding a role, you need to provide the role name and department information, and specify the role's permissions, including function authorization, controlled database authorization, and host authorization; roles include static roles and dynamic roles; static roles are relatively fixed and will not change easily in the system, and role permissions are usually manually specified by the administrator. In addition to static roles, there is often a situation where there are some temporary users who need to temporarily use some resources in the database system, and during use, the scope and permissions of resources are often dynamically adjusted according to work needs. Therefore, the implementation of dynamic roles requires the establishment of a dynamic correspondence between roles and specific resource permissions, and this correspondence will also change dynamically over time.

[0004] In the prior art, dynamic roles are temporary roles, which are specially set up to meet the needs of users for temporary tasks such as system initialization and data maintenance. The permissions covered by dynamic roles are not fixed, and may be dynamically combined and changed according to the actual system situation and the needs of specific work. In the actual work process, permissions are often assigned to dynamic roles by manual designation. On the one hand, it increases the management burden of administrators, and on the other hand, the manually assigned permissions may not be complete and often need to be adjusted during the work process. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Figure 1 It is an organizational chart in a specific implementation manner.

[0006] Figure 2 A diagram of the relationships between users, roles, permissions, and organizations. Summary of the invention

[0007] The present invention discloses an access control system for a database performance monitoring system. The system adds organizational management on the basis of users and roles. The system includes a user management module, a role management module, a permission management module and an organizational management module. A clustering algorithm is used to add roles in the role management module. The specific clustering process is as follows:

[0008] 1. Initialization:

[0009] Assume that there are n different resource permissions as samples, each sample has m features, that is, the number of times m different users use the resource permissions. The sample set is represented as X = {x1, x2, ..., x n}, where the i-th sample can be expressed as x i ={x i1 ,x i2 ,...,x im}, 1≤i≤n, x ij Represents sample x i The value of the j-th feature, 1≤j≤m.

[0010] Initialize the fuzzy membership matrix U, whose elements u ci Represents sample x i The degree of membership to the cth category, 0≤u ci ≤1, where 1≤c≤C, C is the total number of categories, which is set manually.

[0011] Initialize the weight matrix W, where w ij Represents the jth feature pair sample x i The weight of ij ≤1.

[0012] The initialization parameters α and β, α>0, β>0, are used to adjust the clustering effect and stability of the algorithm respectively.

[0013] 2. Sample fuzzy clustering:

[0014] Calculate the centroid p of each category c c , denoted as p c ={p c1 ,p c2 ,...,p cm}, where p cj It represents the value of the centroid of category c on the jth feature, and its calculation formula is

[0015] Calculate for each sample x i The distance d to each category c ci , here we use the improved Euclidean distance, the calculation formula is

[0016] Calculate for each sample x i The specific calculation formula for the contribution of each category c is: When ci The larger the value, the greater the sample x i The farther the distance to category c is, the higher the probability of Gci The smaller the value of , and vice versa.

[0017] Update the membership, the membership calculation formula is Where 1≤k≤C.

[0018] 3. Update weights:

[0019] For the jth feature, calculate the sample x i Contribution of A ij , the calculation formula is Based on this, we can calculate the j-th feature pair sample x i The weight w ij , the calculation formula is

[0020] 4. Repeat steps 2 to 3 until the preset maximum number of iterations iter is reached max .

[0021] 5. According to the final membership, the samples are assigned to different categories.

[0022] Based on the above system, the present invention discloses an access control method for a database performance monitoring system. The method adds organizational management based on users and roles. The method can realize user management, role management, authority management and organizational management. A clustering algorithm is used to add roles in role management. The method is characterized in that: the specific clustering process is as follows:

[0023] 1. Initialization:

[0024] Assume that there are n different resource permissions as samples, each sample has m features, that is, the number of times m different users use the resource permissions. The sample set is represented as X = {x1, x2, ..., x n}, where the i-th sample can be expressed as x i ={x i1 ,x i2 ,...,x im}, 1≤i≤n, x ij Represents sample x i The value of the j-th feature, 1≤j≤m.

[0025] Initialize the fuzzy membership matrix U, whose elements u ci Represents sample x i The degree of membership to the cth category, 0≤u ci ≤1, where 1≤c≤C, C is the total number of categories, which is set manually.

[0026] Initialize the weight matrix W, where w ij Represents the jth feature pair sample x iThe weight of ij ≤1.

[0027] The initialization parameters α and β, α>0, β>0, are used to adjust the clustering effect and stability of the algorithm respectively.

[0028] 2. Sample fuzzy clustering:

[0029] Calculate the centroid p of each category c c , denoted as p c ={p c1 ,p c2 ,...,p cm}, where p cj It represents the value of the centroid of category c on the jth feature, and its calculation formula is

[0030] Calculate for each sample x i The distance d to each category c ci , here we use the improved Euclidean distance, the calculation formula is

[0031] Calculate for each sample x i The specific calculation formula for the contribution of each category c is: When ci The larger the value, the greater the sample x i The farther the distance to category c is, the higher the probability of G ci The smaller the value of , and vice versa.

[0032] Update the membership, the membership calculation formula is Where 1≤k≤C.

[0033] 3. Update weights:

[0034] For the jth feature, calculate the sample x i Contribution of A ij , the calculation formula is Based on this, we can calculate the j-th feature pair sample x i The weight w ij , the calculation formula is

[0035] 4. Repeat steps 2 to 3 until the preset maximum number of iterations iter is reached max .

[0036] 5. According to the final membership, the samples are assigned to different categories.

[0037] The above method can realize the dynamic combination of resource permissions and ensure the accuracy and rationality of the permissions that should be included in the role. The different categories obtained by the above clustering results represent different permission combinations and temporary roles. The information of each category is presented to the administrator. The administrator assigns different names to different categories based on the resource permission information contained in different categories. The name can represent the resource permission combination within the category and form a formal dynamic role.

[0038] The present invention adds organizational management on the basis of users and roles, defines user roles, permissions and corresponding department information, strictly manages the permissions of users for different operations, and is conducive to improving the security of the use of the database performance monitoring system. The present invention designs a fuzzy clustering algorithm based on the association between the resource permissions that users usually use, which can realize the dynamic combination of resource permissions. After adopting the present invention, the resource permissions with high correlation used by users can be divided into the same group, and the group is recommended as a dynamic role. When adding a temporary role, it can be selected by the administrator and the role can be named. The present invention not only improves the convenience of the administrator when adding roles, but also ensures the accuracy and rationality of the permissions that should be included in the role. From a global perspective, it can improve the standardization of the system, thereby improving the work efficiency in system management. DETAILED DESCRIPTION

[0039] The present invention discloses an access control method and system for a database performance monitoring system, which aims to define user roles, permissions and corresponding department information, strictly manage user permissions for different operations, and improve the security of the use of the database performance monitoring system.

[0040] The system of the present invention adds organizational management based on the current users and roles. The organizational structure has only two levels, the first level is the global department, and the second level is the department / subsidiary. It does not support multiple levels yet. For details, see Figure 1 .

[0041] Users, roles, permissions, and organization management are described as follows:

[0042] 1. User

[0043] 1) Username is unique;

[0044] 2) Each user belongs to one or more departments and has one or more roles;

[0045] 3) When adding a user, the user belongs to the global department by default. If no role is selected, the user is a common user by default;

[0046] 4) If a user belongs to a global department, he cannot belong to a secondary department. The two are mutually exclusive.

[0047] 5) Belonging to a global department or a secondary department does not mean that the user directly has all the resource permissions of the department. The user needs to be authorized to have some or all of the resource permissions of the department.

[0048] 6) Users are not directly assigned functional permissions, but only obtain functional permissions through their roles;

[0049] 2. Roles

[0050] 1) The role name must be unique within the department;

[0051] 2) The default roles are: Administrator, View Administrator, and Department Manager;

[0052] 3) Administrator and View Administrator are global department roles and cannot be assigned to users in secondary departments;

[0053] 4) Department head is a second-level department role and cannot be assigned to global department users;

[0054] 5) The department head is equivalent to the tenant administrator and has full resource permissions for the secondary department;

[0055] 6) The department head has all functional permissions within the department except for the special permissions of the administrator;

[0056] 7) A role corresponds to a permission set (functional permission). A user can have a functional permission set by having a role.

[0057] 8) The relationship between the new role and the department is n:1;

[0058] 3. Permissions

[0059] Permission management is divided into two parts: functional permission and resource permission management.

[0060] 1) Resource authority management includes controlled database authority management and host authority management;

[0061] 2) Ordinary users can obtain management rights through function authorization, but data is isolated. Only individuals, department heads and administrators can view, modify and delete personal operation data and operation history, which are not visible to other users;

[0062] 3) Ordinary users can only obtain viewing permissions through function authorization, and all user data is shared;

[0063] 4) Administrators have all functional permissions and all resource permissions;

[0064] 5) Department heads have all functional permissions except for the administrator's special permissions, and all resource permissions within the department

[0065] 4. Organization

[0066] 1) The organizational structure has only two levels: global department and secondary department;

[0067] 2) There is only one global department, which is the organization that uses the database performance monitoring system;

[0068] 3) The global department has the resource permission set of the secondary departments;

[0069] 4) Secondary departments have built-in roles: department head;

[0070] Figure 2 is a relationship diagram between users, roles, permissions, and organizations, consisting of Figure 2 It can be seen that only the relationship between organization and role is a one-to-many relationship, and the others are many-to-many relationships.

[0071] The system includes user management module, role management module, permission management module and organization management module. The specific functions of each module are as follows.

[0072] 1 User Management Module

[0073] 1.1 User List

[0074] Given a list of users, you can view user information, including the user's role, organization, and corresponding permissions.

[0075] 1.2 Add User

[0076] When adding a user, you need to fill in the user's basic information (including user name and password, etc.), role, and department. Among them, roles are selected through the list, and multiple selections are allowed; organizations are selected through the drop-down box, and multiple selections are allowed, but the global department and the secondary department are mutually exclusive and cannot be selected at the same time. The "global department" is selected by default in the department drop-down box.

[0077] 1.3 Edit User

[0078] When editing a user, the interface used is the same as adding a user, but the user name cannot be changed. By editing the user function, you can modify the password, role, department and other information.

[0079] 1.4 Deleting a User

[0080] This function can delete the specified user. Please note:

[0081] 1) Before the deletion operation is performed, a prompt "This operation will permanently delete the user, do you want to continue?" is required, and the user is prompted to make a choice;

[0082] 2) admin is a built-in user and cannot be deleted;

[0083] 1.5 Description

[0084] Only administrators have the rights to add, edit, and delete all users except built-in users. 2 Role Management Module

[0085] 2.1 Role List

[0086] A list of roles is given, and you can view the role information, including the organization to which the role belongs and the corresponding permissions. Note:

[0087] 1) A role can only belong to one department;

[0088] 2) The built-in roles of the global department include administrator and view administrator; the built-in roles of the secondary department include department head, who has the management authority over all resources within the department;

[0089] 2.2 Adding roles

[0090] When adding a role, you need to provide the role name and department information, and specify the role's permissions, including function authorization, controlled database authorization, and host authorization.

[0091] There are two types of roles here: one is a static role and the other is a dynamic role. Static roles are relatively fixed and will not change easily in the system. The administrator usually manually specifies the permissions of the role. However, in addition to static roles, there is often a situation where there are some temporary users who need to temporarily use some resources in the database system, and during the use process, the scope and permissions of the resources are often dynamically adjusted according to work needs. Therefore, the implementation of dynamic roles requires the establishment of a dynamic correspondence between roles and specific resource permissions, and this correspondence will also change dynamically over time.

[0092] In summary, a dynamic role is relatively a temporary role, which is a role specially set up to meet the temporary tasks of users such as system initialization and data maintenance. The permissions covered by the dynamic role are not fixed, and may be dynamically combined and changed according to the actual system conditions and the needs of specific work. The present invention designs a fuzzy clustering algorithm based on the correlation between the resource permissions that users usually use, which can realize the dynamic combination of resource permissions. The benefit is that the resource permissions with high correlation used by users can be divided into the same group, and the group is recommended as a dynamic role. When adding a temporary role, it can be selected by the administrator and the role can be named. This scheme not only improves the convenience of the administrator when adding roles, but also ensures the accuracy and rationality of the permissions that should be included in the role. From a global perspective, it can improve the standardization of the system, thereby improving the work efficiency of system management.

[0093] The specific clustering process is as follows:

[0094] 1. Initialization:

[0095] Assume that there are n different resource permissions as samples, each sample has m features, that is, the number of times m different users use the resource permissions. The sample set is represented as X = {x1, x2, ..., x n}, where the i-th sample can be expressed as x i ={x i1 ,x i2 ,...,x im}, 1≤i≤n, x ij Represents sample x i The value of the j-th feature, 1≤j≤m.

[0096] Initialize the fuzzy membership matrix U, whose elements u ci Represents sample x i The degree of membership to the cth category, 0≤u ci ≤1, where 1≤c≤C, C is the total number of categories, which is set manually.

[0097] Initialize the weight matrix W, where w ij Represents the jth feature pair sample x i The weight of ij ≤1.

[0098] The initialization parameters α and β, α>0, β>0, are used to adjust the clustering effect and stability of the algorithm respectively.

[0099] 2. Sample fuzzy clustering:

[0100] Calculate the centroid p of each category c c , denoted as p c ={p c1 ,p c2 ,...,p cm}, where p cj It represents the value of the centroid of category c on the jth feature, and its calculation formula is

[0101] Calculate for each sample x i The distance d to each category c ci , here we use the improved Euclidean distance, the calculation formula is

[0102] Calculate for each sample x i The specific calculation formula for the contribution of each category c is: When ci The larger the value, the greater the sample x i The farther the distance to category c, the higher the probability of G ci The smaller the value of , and vice versa.

[0103] Update the membership, the membership calculation formula is Where 1≤k≤C.

[0104] 3. Update weights:

[0105] For the jth feature, calculate the sample x i Contribution of A ij , the calculation formula is Based on this, we can calculate the j-th feature pair sample x i The weight w ij , the calculation formula is

[0106] 4. Repeat steps 2 to 3 until the preset maximum number of iterations iter is reached max .

[0107] 5. According to the final membership, the samples are assigned to different categories.

[0108] The different categories obtained at this time will represent different temporary roles. The information of each category will be presented to the administrator. The administrator will assign different names to different categories based on the resource permission information contained in different categories. The name can represent the resource permission combination within the category to form a formal dynamic role.

[0109] 2.3 Editing Roles

[0110] When editing a role, the interface used is the same as adding a role, but the role name cannot be changed. By editing the role function, you can modify information such as departments and permissions.

[0111] 2.4 Deleting a Role

[0112] This function can delete the specified role. Please note:

[0113] 1) Before the deletion operation is performed, a prompt "This operation will permanently delete the role, do you want to continue?" is required, and the user is prompted to make a choice;

[0114] 2) Built-in roles (Administrator, Built-in Administrator, Department Manager) cannot be deleted;

[0115] 2.5 Description

[0116] Only administrators have the rights to add, edit, and delete all roles except built-in roles. 3. Permission Management Module

[0117] 3.1 Permission Classification

[0118] The permissions for operations in the system are sorted out and divided into four categories. They are:

[0119] ① Operations that can be used only after authorization. Only when the corresponding permissions are granted can the corresponding operations be performed;

[0120] ② Operations that can be used without authorization, such as some display pages, are viewed by all users by default, that is, no permission control is performed;

[0121] 3.2 Description

[0122] 1. When creating a new role, you need to fill in the role name and select the operations that the role has permissions for.

[0123] 2. After adding the user, select the role name. One user can correspond to multiple roles.

[0124] 3. The user will have all the permissions of the role to which the user belongs.

[0125] 4. Users cannot set permissions directly. Permissions are controlled by roles. Therefore, to modify a user's permissions, you can only modify the permissions of the corresponding role, or add a role with the permission for the user.

[0126] 5. The permissions in the system are controlled based on URLs. One permission corresponds to one URL, that is, N permissions owned by a certain role correspond to N URLs in the database. For the case where there are parameters in the URL, such as http: / / localhost / dbmanage / dbinfo? starttime=2018, the part before the ? in the URL needs to be intercepted and then stored in the database. In actual use, the URL that the user is accessing (if it contains parameters, the part before the ? in the URL is also intercepted) is compared with the URL stored under the role corresponding to the user in the database. If they match, access is allowed; if they do not match, access is prohibited.

[0127] 4 Organization Management Module

[0128] 4.1 Organization List

[0129] Given a list of organizations, you can view department information, including departments and department heads. Note: Global departments are built-in departments and cannot be added, deleted, modified, or checked.

[0130] 4.2 Adding a department

[0131] When adding a department, you need to provide the department name and department supervisor, and specify the controlled database, host and other resources for the department. Note: You can select multiple supervisors.

[0132] 4.3 Editorial Department

[0133] The secondary department editing page is the same as the add department page. The department name, department head, and resource division can all be changed.

[0134] 4.4 Deleting a Department

[0135] This function can delete the specified department. Please note:

[0136] 1) Before the deletion operation is performed, a prompt "This operation will permanently delete the department, do you want to continue?" is required, and the user is prompted to make a choice;

[0137] 2) Built-in departments (global departments) cannot be deleted;

[0138] 5. Other access control strategies of the system

[0139] To ensure the security of system use, the following strategies are formulated for system access control:

[0140] 5.1 Identity Authentication

[0141] When a user logs in, the background automatically determines the role and permission details of the currently logged-in user and identifies and authenticates the user's identity.

[0142] 5.2 Access Control

[0143] Access control can protect systems and resources from unauthorized access and avoid security issues such as low-privilege users accessing high-privilege user information. Security design is mainly based on the following points:.

[0144] 1) Vertical unauthorized access control

[0145] All external interfaces in this system need to verify Token ticket information when receiving external access requests.

[0146] When the server processes a business request submitted by a user, it must first determine whether the current user role has the authority to use the business function. To prevent attackers with low-privilege roles from knowing the messages of users with high-privilege roles in advance and constructing and submitting requests on their own, access control cannot be performed solely by whether menu items are displayed.

[0147] 2) Parallel unauthorized access control

[0148] To prevent attackers from obtaining other people's data by modifying the user ID in the business request, when the server processes the business request submitted by the user, it must first determine whether the current user has the authority to request resources.

[0149] 5.3 Session Security

[0150] This system proposes the following security designs for session security:

[0151] 1) Session token creation verification must be implemented on the server side;

[0152] 2) The session identifier must not be exposed in the URL and must not be passed via GET.

[0153] 3) This system is configured with a timeout period. If the user does not perform any operation within the specified time, the current session will be terminated, the user will automatically log out, and all user authentication information will be cleared.

[0154] 4) When the user exits the system, ensure that the user cannot access the information system normally and handle business by going back or directly entering the access address.

[0155] More specifically, the dynamic character generation process is as follows:

[0156] 1. Initialization:

[0157] Assume that there are 50 different resource permissions (such as query permissions in Table 1, modification permissions in Table 1, query permissions in Table 2, modification permissions in Table 2, etc.) as samples, and each sample has 30 features, that is, the number of times 30 different users use resource permissions. Therefore, the 50×30 sample-feature matrix can be expressed as:

[0158]

[0159] In the above matrix, each row represents a sample, representing a resource permission, and each column represents a feature, representing different permissions of a certain user. The sample set is represented as X = {x1, x2, ..., x 50}, where the i-th sample can be expressed as x i ={x i1 ,x i2 ,...,x i30}, 1≤i≤50, x ij Represents sample x i The value of the j-th feature, 1≤j≤30.

[0160] Randomly initialize the fuzzy membership matrix U, whose elements u ci Represents sample x i The degree of membership in the c-th category, where 1≤c≤C, C is the total number of categories, C=5.

[0161] Randomly initialize the weight matrix W, where w ij Represents the jth feature pair sample x i The weight of .

[0162] The initialization parameters α and β, α=2, β=2, are used to adjust the clustering effect and stability of the algorithm respectively.

[0163] 2. Sample fuzzy clustering:

[0164] Calculate the centroid p of each category c c , denoted as p c ={p c1 ,p c2 ,...,p c30}, where p cj It represents the value of the centroid of category c on the jth feature, and its calculation formula is

[0165] Calculate for each sample x i The distance d to each category c ci , here we use the improved Euclidean distance, the calculation formula is where p cj Represents the value of the centroid of category c on the jth feature.

[0166] Calculate for each sample x i The specific calculation formula for the contribution of each category c is: When ci The larger the value, the greater the sample x i The farther the distance to category c, the higher the probability of G ci The smaller the value of , and vice versa.

[0167] Update the membership, the membership calculation formula is Where 1≤k≤5.

[0168] 3. Update weights:

[0169] For the jth feature, calculate the sample x i Contribution of A ij , the calculation formula is Based on this, we can calculate the j-th feature pair sample x i The weight w ij , the calculation formula is

[0170] 4. Repeat steps 2 and 3 until the preset maximum number of iterations iter is reached max =10.

[0171] 5. According to the final membership degree, the samples are divided into 5 categories. For example, one of the categories contains a total of 5 permissions, {Table 1 query, Table 1 modification, Table 3 query, Table 5 query, Table 8 query}, indicating that these 5 permissions are often used by a certain type of users. Therefore, these 5 permissions can be combined to form a dynamic role for allocation to temporary users.

Claims

1. An access control system for a database performance monitoring system, which adds organizational management on the basis of users and roles. The system includes a user management module, a role management module, a permission management module and an organizational management module. The role management module uses a clustering algorithm to add roles. The system is characterized by: The specific clustering process is as follows: (1) Initialization: Assume that there are n different resource permissions as samples, each sample has m features, that is, the number of times m different users use the resource permissions. The sample set is represented as X = {x1, x2, ..., x n }, where the i-th sample can be expressed as x i ={x i1 ,x i2 ,...,x im }, 1≤i≤n, x ij Represents sample x i The value of the jth feature, 1≤j≤m; Initialize the fuzzy membership matrix U, whose elements u ci Represents sample x i The degree of membership to the cth category, 0≤u ci ≤1, where 1≤c≤C, C is the total number of categories, which is set manually; Initialize the weight matrix W, where w ij Represents the jth feature pair sample x i The weight of ij ≤1; Initialization parameters α and β, α>0, β>0, are used to adjust the clustering effect and stability of the algorithm respectively; (2) Sample fuzzy clustering: Calculate the centroid p of each category c c , denoted as p c ={p c1 ,p c2 ,...,p cm }, where p cj It represents the value of the centroid of category c on the jth feature, and its calculation formula is Calculate for each sample x i The distance d to each category c ci , here we use the improved Euclidean distance, the calculation formula is Calculate for each sample x i The specific calculation formula for the contribution of each category c is: When ci The larger the value, the greater the sample x i The farther the distance to category c is, the higher the probability of G ci The smaller the value of , the lower the value of , and vice versa; Update the membership, the membership calculation formula is Where 1≤k≤C; (3) Update weights: For the jth feature, calculate the sample x i Contribution of A ij , the calculation formula is Based on this, we can calculate the j-th feature pair sample x i The weight w ij , the calculation formula is (4) Repeat steps 2 to 3 until the preset maximum number of iterations iter is reached. max ; (5) According to the final membership, the samples are assigned to different categories.

2. An access control method for a database performance monitoring system, which adds organizational management based on users and roles. The method can realize user management, role management, authority management and organizational management. In role management, a clustering algorithm is used to add roles. The method is characterized by: The specific clustering process is as follows: (1) Initialization: Assume that there are n different resource permissions as samples, each sample has m features, that is, the number of times m different users use the resource permissions. The sample set is represented as X = {x1, x2, ..., x n }, where the i-th sample can be expressed as x i ={x i1 ,x i2 ,...,x im }, 1≤i≤n, x ij Represents sample x i The value of the jth feature, 1≤j≤m; Initialize the fuzzy membership matrix U, whose elements u ci Represents sample x i The degree of membership to the cth category, 0≤u ci ≤1, where 1≤c≤C, C is the total number of categories, which is set manually; Initialize the weight matrix W, where w ij Represents the jth feature pair sample x i The weight of ij ≤1; Initialization parameters α and β, α>0, β>0, are used to adjust the clustering effect and stability of the algorithm respectively; (2) Sample fuzzy clustering: Calculate the centroid p of each category c c , denoted as p c ={p c1 ,p c2 ,...,p cm }, where p cj It represents the value of the centroid of category c on the jth feature, and its calculation formula is Calculate for each sample x i The distance d to each category c ci , here we use the improved Euclidean distance, the calculation formula is Calculate for each sample x i The specific calculation formula for the contribution of each category c is: When ci The larger the value, the greater the sample x i The farther the distance to category c is, the higher the probability of G ci The smaller the value of , the lower the value of , and vice versa; Update the membership, the membership calculation formula is Where 1≤k≤C; (3) Update weights: For the jth feature, calculate the sample x i Contribution of A ij , the calculation formula is Based on this, we can calculate the j-th feature pair sample x i The weight w ij , the calculation formula is (4) Repeat steps 2 to 3 until the preset maximum number of iterations iter is reached. max ; (5) According to the final membership, the samples are assigned to different categories.