Oracle® Database Vault Administrator's Guide 10g Release 2 (10.2) Part Number B25166-09 |
|
|
View PDF |
In this chapter:
You can modify your applications to use the procedures within the DVSYS.DBMS_MACSEC_ROLES
package to check the authorization for a user or to set an Oracle Database Vault secure application role. The DVSYS.DBMS_MACSEC_ROLES
package is available to all users.
Chapter 8, "Configuring Secure Application Roles for Oracle Database Vault" describes secure application roles in detail. See also Chapter 13, "Using the DVSYS.DBMS_MACUTL Package" for a set of general-purpose utility procedures that you can use with the secure application role procedures.
Table 12-1 lists the DVSYS.DBMS_MACSEC_ROLES
package function and procedure.
Table 12-1 DVS.DBMS_MACSEC_ROLES Oracle Label Security Configuration Procedures
Function or Procedure | Description |
---|---|
Checks whether the user invoking the method is authorized to use the specified Oracle Database Vault secure application role. Returns a |
|
Issues the |
This function checks whether the user invoking the method is authorized to use the specified Oracle Database Vault secure application role.
Syntax
CAN_SET_ROLE( p_role VARCHAR2) RETURNS BOOLEAN;;
Parameters
Table 12-2 CAN_SET_ROLE Parameter
Parameter | Description |
---|---|
|
Role name. To find existing secure application roles in the current database instance, query the |
Example
SET SERVEROUTPUT ON BEGIN IF DVSYS.DBMS_MACSEC_ROLES.SET_ROLE('SECTOR2_APP_MGR') THEN DBMS_OUTPUT.PUT_LINE('SECTOR2_APP_MGR' is enabled.') END IF; END;
This procedure issues the SET ROLE
statement for an Oracle Database Vault secure application role. If a rule set that is associated with the role evaluates to false, then the role is not set.
Syntax
SET_ROLE( p_role VARCHAR2);
Parameters
Table 12-3 SET_ROLE Parameter
Parameter | Description |
---|---|
|
Role name. To find existing secure application roles in the current database instance, query the |
Example
EXEC DVSYS.DBMS_MACSEC_ROLES.SET_ROLE('SECTOR2_APP_MGR');
You can enter the name of the role in any case, for example, Sector2_APP_MGR
.