Oracle Database Vault provides a rich set of APIs, both in PL/SQL packages and in standalone procedures.
Topics:
The procedures and functions within the DBMS_MACADM
package allow you to write applications that configure the realms, factors, rule sets, command rules, secure application roles, and Oracle Label Security policies normally configured in Oracle Database Vault Administrator.
The DBMS_MACADM
package is available only for users who have been granted the DV_ADMIN
or DV_OWNER
role.
Table 20–1 lists the contents of the DBMS_MACADM
package.
Table 21-1 DBMS_MACADM PL/SQL Package Contents
Procedure or Function | Description |
---|---|
Realm APIs |
|
|
Authorizes a user or role to access a realm as an owner or a participant |
|
Registers a set of objects for realm protection |
|
Creates a realm |
|
Removes the authorization of a user or role to access a realm |
|
Removes a set of objects from realm protection |
|
Deletes a realm, including its related Database Vault configuration information that specifies who is authorized and what objects are protected |
|
Deletes a realm, including its related Database Vault configuration information that specifies who is authorized and what objects are protected |
|
Renames a realm. The name change takes effect everywhere the realm is used. |
|
Updates a realm |
|
Updates the authorization of a user or role to access a realm |
Rule Set APIs |
|
|
Creates a rule set |
|
Renames a rule set. The name change takes effect everywhere the rule set is used. |
|
Deletes a rule from a rule set |
|
Deletes a rule set |
|
Updates a rule set |
Rule APIs |
|
|
Creates a rule |
|
Adds a rule to a rule set |
|
Deletes a rule |
|
Renames a rule. The name change takes effect everywhere the rule is used. |
|
Updates a rule |
Command Rule APIs |
|
|
Creates a command rule, associates it with a rule set, and lets you enable the command rule for rule checking with a rule set |
|
Drops a command rule declaration |
|
Updates a command rule declaration |
Factor APIs |
|
|
Specifies a parent-child relationship for two factors |
|
Specifies that the label for a factor contributes to the Oracle Label Security label for a policy. |
|
Associates an identity with a different factor |
|
Updates the value of an identity |
|
Adds an Oracle Real Application Clusters (Oracle RAC) database node to the domain factor identities and labels it according to the Oracle Label Security policy. |
|
Creates a factor |
|
Creates a factor type |
|
Creates an identity |
|
Defines a set of tests that are used to derive the identity of a factor from the value of linked child factors (subfactors) |
|
Deletes a factor |
|
Removes a parent-child relationship for two factors |
|
Deletes a factor type |
|
Removes an identity |
|
Removes an identity map from a factor |
|
Removes an Oracle RAC database node from a domain |
|
Returns information from the |
|
Returns information from the |
|
Renames a factor. The name change takes effect everywhere the factor is used. |
|
Renames a factor type. The name change takes effect everywhere the factor type is used. |
|
Updates a factor |
|
Updates the description of a factor type |
|
Updates the trust level of a factor identity |
Database Vault Secure Application Role APIs |
|
|
Creates an Oracle Database Vault secure application role |
|
Deletes an Oracle Database Vault secure application role |
|
Renames an Oracle Database Vault secure application role. The name change takes effect everywhere the role is used. |
|
Updates a Oracle Database Vault secure application role |
Oracle Label Security APIs |
|
|
Specifies the algorithm that is used to merge labels when computing the label for a factor, or the Oracle Label Security Session label |
|
Labels an identity within an Oracle Label Security policy |
|
Deletes all Oracle Database Vault objects related to an Oracle Label Security policy. |
|
Removes the factor from contributing to the Oracle Label Security label |
|
Removes the label from an identity within an Oracle Label Security policy |
|
Specifies the algorithm that is used to merge labels when computing the label for a factor, or the Oracle Label Security Session label |
General Administrative APIs |
|
|
Adds a new language to Oracle Database Vault |
|
Authorizes a user to perform Oracle Data Pump operations when Oracle Database Vault is enabled |
|
Grants a user authorization to execute data definition language (DDL) statements |
|
Grants a proxy user authorization to proxy other user accounts |
|
Authorizes a user to schedule database jobs when Oracle Database Vault is enabled |
|
Authorizes a user to perform Oracle Data Pump transportable tablespace operations for a tablespace when Oracle Database Vault is enabled |
|
Revokes the authorization that was granted by the |
|
Revokes authorization from a user who was granted authorization to execute DDL statements through the |
|
Revokes authorization from a user who was granted proxy authorization from the |
|
Revokes authorization that was granted by the |
|
Revokes from authorization a user who had been granted authorization to perform Oracle Data Pump transportable tablespace operations for a tablespace when Oracle Database Vault is enabled |
|
Disables Oracle Database Vault |
|
Prevents users from logging into the |
|
Disables auditing of the |
|
Disables the use of the |
|
Enables Oracle Database Vault |
|
Enables users to log into the |
|
Enables auditing of the |
|
Enables the use of the |
The DBMS_MACSEC_ROLES
package provides one function and one procedure which enable to you to check and set Oracle Database Vault secure application roles. This package is available to the general database account population.
Table 20–2 lists the contents of the DBMS_MACSEC_ROLES
package.
Table 21-2 DBMS_MACSEC_ROLES PL/SQL Package Contents
Procedure or Function | Description |
---|---|
|
Checks whether the user invoking the method is authorized to use the specified Oracle Database Vault secure application role. Returns a |
|
Issues the |
The DBMS_MACUTL
PL/SQL package defines several constants and utility methods that are commonly used by other Oracle Database Vault packages, such as code/message lookup, error handling, data conversion, and privilege checks.
This package can be run by the general database account population. This allows for security developers to leverage the constants in scripted configuration files. Utility methods such as USER_HAS_ROLE
can also be used in Oracle Database Vault rules.
Table 20–3 lists the DBMS_MACUTL
package contents.
Table 21-3 DBMS_MACUTL PL/SQL Package Contents
Procedure or Function | Description |
---|---|
|
Verifies that public-packages are not being bypassed by users updating the Oracle Database Vault configuration |
|
Looks up the value for a code within a code group. |
|
Returns the seconds in Oracle SS format (00-59). Useful for rule expressions based on time data |
|
Returns the minute in Oracle MI format (00–59). Useful for rule expressions based on time data |
|
Returns the month in Oracle HH24 format (00–23). Useful for rule expressions based on time data |
|
Returns the day in Oracle DD format (01–31). Useful for rule expressions based on time data |
|
Returns the month in Oracle MM format (01–12). Useful for rule expressions based on time data |
|
Returns the year in Oracle YYYY format (0001–9999). Useful for rule expressions based on time data |
|
Checks whether the character is alphabetic |
|
Checks whether the character is numeric |
|
Determines whether a user is authorized to manage the Oracle Database Vault configuration |
|
Returns an indicator regarding whether Oracle Label Security is installed |
|
Returns an indicator regarding whether Oracle Label Security is installed |
|
Checks whether a user has a role privilege, directly or indirectly (through another role) |
|
Checks whether a user has a role privilege, directly or indirectly (through another role) |
|
Checks whether a user has a system privilege, directly or indirectly (through a role) |
See Also:
Chapter 19, "Oracle Database Vault Utility APIs" for details about this packageThe CONFIGURE_DV
configures the initial two Oracle Database user accounts, which are granted the DV_OWNER
and DV_ACCTMGR
roles, respectively.
See Also:
"Registering Oracle Database Vault with an Oracle Database" for how to use this procedure to register users
See for more information.
The DVF
schema provides a set of factor-related PL/SQL functions. The functions are then available to the general database account population through PL/SQL functions and standard SQL.
Table 21-4 lists the DVF
factor functions.
Table 21-4 DVF PL/SQL Interface Contents
Function | Description |
---|---|
|
Returns the IP address of the computer from which the client is connected |
|
Returns the domain of the database as specified in the |
|
Returns the host name of the computer on which the database instance is running |
|
Returns the database instance identification number of the current database instance |
|
Returns the IP address of the computer on which the database instance is running |
|
Returns the name of the database as specified in the |
|
Returns a named collection of physical, configuration, or implementation-specific factors in the run-time environment (for example, a networked IT environment or subset of it) that operates at a specific sensitivity level |
|
Returns the enterprise-wide identity for a user |
|
Returns the way the schema of a user was created in the database. Specifically, it reflects the |
|
Returns the ISO abbreviation for the language name, a shorter form than the existing |
|
Returns the language and territory currently used by your session, in |
|
Returns the computer (host) name for the database client that established the database session. |
|
Returns the network protocol being used for communication, as specified in the |
|
Returns the Oracle Internet Directory distinguished name (DN) when the proxy user is an enterprise user |
|
Returns the database user name by which the current user is authenticated |
See Also:
"Oracle Database Vault DVF PL/SQL Factor Functions" for detailed information about these functions