12 DBA Operations in an Oracle Database Vault Environment
Database administrators can perform operations in an Oracle Database Vault environment, such as using Database Vault with products such as Oracle Data Pump.
- Using Oracle Database Vault with Oracle Enterprise Manager
Oracle Database Vault administrators can perform tasks in Oracle Enterprise Manager Cloud Control such as propagating polices to other databases. - Using Oracle Data Pump with Oracle Database Vault
Database administrators can authorize Oracle Data Pump users to work in a Database Vault environment. - Using Oracle Scheduler with Oracle Database Vault
Users who are responsible for scheduling database jobs must have Oracle Database Vault-specific authorization. - Using Information Lifecycle Management with Oracle Database Vault
Users who perform Information Lifecycle Management operations on an Oracle Database Vault-enabled database must be granted authorization to perform these operations. - Using Oracle Database Replay with Oracle Database Vault
Database administrators can authorize Oracle Database Replay users to work in a Database Vault environment. - Executing Preprocessor Programs with Oracle Database Vault
Users who execute preprocessor programs through external tables must have Oracle Database Vault-specific authorization. - Using Database Vault Operations Control to Restrict Multitenant Common User Access to Local PDB Data
You can control PDB access by CDB root common users, such as infrastructure database administrators. - Oracle Recovery Manager and Oracle Database Vault
You can use Recovery Manager (RMAN) in an Oracle Database Vault environment. - Privileges for Using XStream with Oracle Database Vault
If you want to use XStream in an Oracle Database Vault environment, then you must have the appropriate privileges. - Privileges for Using Oracle GoldenGate in with Oracle Database Vault
If you want to use Oracle GoldenGate in an Oracle Database Vault environment, then you must have the appropriate privileges. - Using Data Masking in an Oracle Database Vault Environment
You must have the correct authorization to perform data masking in an Oracle Database Vault environment. - Converting a Standalone Oracle Database to a PDB and Plugging It into a CDB
You can convert a standalone Oracle Database Release 12c or later database to a PDB, and then plug this PDB into a CDB. - Using the ORADEBUG Utility with Oracle Database Vault
TheORADEBUG
utility is used primarily by Oracle Support to diagnose problems that may arise with an Oracle database.
Using Oracle Database Vault with Oracle Enterprise Manager
Oracle Database Vault administrators can perform tasks in Oracle Enterprise Manager Cloud Control such as propagating polices to other databases.
- Propagating Oracle Database Vault Configurations to Other Databases
You can propagate Database Vault configurations (such as a realm configuration) to other Database Vault-protected databases. - Enterprise Manager Cloud Control Alerts for Oracle Database Vault Policies
To view Oracle Database Vault alerts, you must be granted theDV_OWNER
,DV_ADMIN
, orDV_SECANALYST
role. - Oracle Database Vault-Specific Reports in Enterprise Manager Cloud Control
From the Database Vault home page, you can find information about violations. - Changing the DBSNMP Account Password in a Database Vault Environment
Before you can change the password for theDBSNMP
user account, you must revoke theDV_MONITOR
role from this account.
Parent topic: DBA Operations in an Oracle Database Vault Environment
Propagating Oracle Database Vault Configurations to Other Databases
You can propagate Database Vault configurations (such as a realm configuration) to other Database Vault-protected databases.
-
Log in to Oracle Database Vault Administrator from Cloud Control as a user who has been granted the
DV_OWNER
orDV_ADMIN
role and theSELECT ANY DICTIONARY
privilege. Logging in to Oracle Database Vault from Oracle Enterprise Cloud Control explains how to log in. -
In the Database Vault home page, under Database Vault Policy Propagation, select Database Vault Policy Propagation.
The Available Policies area in the Policy Propagation subpage lists a summary of the Oracle Database Vault configurations that were created for the current database: that is, configurations that were created for realms, command rules, rule sets, and secure application roles. It does not list the Oracle Database Vault policies that were introduced in Oracle Database release 12c (12.2). From here, you can propagate these configurations to another database.
-
Under Available Policies, select each configuration that you want to propagate to another database.
Description of the illustration policy_propagation122.png -
Under Destination Databases, click the Add button.
-
Under Search and Select: Database Vault Enabled Destination Databases, search for the destination databases, and then select each database to which you want to propagate the configurations. Then click the Select button.
-
Under Destination Databases, do the following:
-
Under Apply credentials across destination database(s), enter the user name and password of the administrator of the Database Vault database that contains the configurations you want to propagate.
This feature applies the Database Vault administrator's user name and password to all of the selected destination databases.
-
Select each database to which you want to propagate the configurations.
-
Enter the Database Vault administrator user name and password for each database.
-
Click the Apply button.
-
-
In the Propagate Options page, select from the following options.
Any changes made to the seeded realms, command rules, rule sets, and so on will not be propagated to the destination databases. Only custom-created data are propagated.
-
Restore on failure: If the propagation operations encounters errors, then the propagation is rolled back. That is, the original policies on the destination database are restored. If you do not select this option, then the policy propagation on the destination database continues and ignores any errors.
-
Skip propagation if user defined policies exist: If the destination databases already have the user-defined configurations, then the propagation operation is not attempted. If you do not select this option, then regardless of whether user-defined policies exist on the destination database, all the existing configurations are cleared, and the configurations from the source database are applied to the destination database.
-
Propagate Enterprise Manager metric thresholds for database vault metrics: If the source database has Oracle Database Vault metric thresholds set, then these thresholds are also propagated to the destination databases. If you do not select this option, then only configurations are propagated and not the Oracle Database Vault thresholds.
-
-
Click the OK button.
-
In the Confirmation window, click OK.
A message indicating success or failure appears. If the propagation succeeds, then the configurations are active right away in their destination databases.
Enterprise Manager Cloud Control Alerts for Oracle Database Vault Policies
To view Oracle Database Vault alerts, you must be granted the DV_OWNER
, DV_ADMIN
, or DV_SECANALYST
role.
The alerts are as follows:
-
Database Vault Attempted Realm Violations. This alert helps the Oracle Database Vault security analyst (
DV_SECANALYST
role) to monitor violation attempts on the Database Vault database. This user can select the realms to be affected by the alert and filter these realms based on the different types of attempts by using error codes. You can enable this metric from the Metrics and Policy Settings page. By default, the attempted realm violations are collected every 24 hours. -
Database Vault Attempted Command Rule Violations. The functionality for this alert is the same as for Database Vault Attempted Realm Violations, except that it focuses on violations on command rules.
-
Database Vault Realm Configuration Issues. This metric tracks and raises an alert if users misconfigure realms. This metric is enabled when you install Oracle Database vault, and by default it collects data every one hour.
-
Database Vault Command Rule Configuration Issues. This functionality for this alert is that same as Database Vault Realm Configuration Issues, except that it focuses on configuration changes to command rules.
-
Database Vault Policy Changes. This metric raises an alert on any change to any Database Vault policy, such as policies for realms and command rules. It provides a detailed policy changes report.
Oracle Database Vault-Specific Reports in Enterprise Manager Cloud Control
From the Database Vault home page, you can find information about violations.
These violations are as follows:
-
Top five attempted violations on realm and command rule
-
Top five attempted violations by database users and client host
-
Time series-based graphical reports on attempted violations for more detailed analysis
To have full access to the Database Vault reports, you must log into Database Vault Administrator as a user who has been granted the DV_OWNER
, DV_ADMIN
, or DV_SECANALYST
role.
Related Topics
Changing the DBSNMP Account Password in a Database Vault Environment
Before you can change the password for the DBSNMP
user account, you must revoke the DV_MONITOR
role from this account.
In an Oracle Database Vault environment, the DBSNMP
user account is granted the DV_MONITOR
role. (The DBSNMP
user can change his or her own password directly, without having to have the DV_MONITOR
role revoked first.)
- Log into the database instance using an account that has been granted the
DV_OWNER
role. - Revoke the
DV_MONITOR
role from theDBSNMP
user account. - Connect as a user who has been granted the
DV_ACCTMGR
role and then change theDBSNMP
user account password. - Connect as the
DV_OWNER
user and then grant theDV_MONITOR
role back to theDBSNMP
user account.
Using Oracle Data Pump with Oracle Database Vault
Database administrators can authorize Oracle Data Pump users to work in a Database Vault environment.
- About Using Oracle Data Pump with Oracle Database Vault
Database administrators who use Oracle Data Pump in an Database Vault environment must have Database Vault-specific authorization to export and import data. - Authorizing Users or Roles for Data Pump Regular Export and Import Operations
You can use different authorization types for administrators who perform Oracle Data Pump export and import operations in a Database Vault environment. - Authorizing Users or Roles for Data Pump Transportable Export and Import Operations
You can grant authorization levels for users who must perform Oracle Data Pump transportable operations, either directly or through a role. - Guidelines for Exporting or Importing Data in a Database Vault Environment
After you grant the Oracle Data Pump database administrator the proper authorization, this user can perform any export or import operations that are necessary.
Parent topic: DBA Operations in an Oracle Database Vault Environment
About Using Oracle Data Pump with Oracle Database Vault
Database administrators who use Oracle Data Pump in an Database Vault environment must have Database Vault-specific authorization to export and import data.
This type of user must have Database Vault privileges in addition to the standard Oracle Data Pump privileges. If these users want to perform Oracle Data Pump transportable tablespace operations, then they must have special authorization. You can check a user's authorizations for using Data Pump in an Oracle Database Vault environment by querying the DBA_DV_DATAPUMP_AUTH
data dictionary view. You can grant this authorization to either individual users or to database roles.
See Also:
-
Oracle Database Utilities for detailed information about Oracle Data Pump
-
Oracle Database Administrator’s Guide for more information about transportable tablespaces
Parent topic: Using Oracle Data Pump with Oracle Database Vault
Authorizing Users or Roles for Data Pump Regular Export and Import Operations
You can use different authorization types for administrators who perform Oracle Data Pump export and import operations in a Database Vault environment.
- About Authorizing Users or Roles for Oracle Data Pump Regular Operations
Users who have Oracle Data Pump authorization can perform regular Oracle Data Pump operations in a Database Vault environment. - Levels of Database Vault Authorization for Oracle Data Pump Regular Operations
Oracle Database Vault provides several levels of authorization required for Oracle Data Pump regular operations in a Database Vault environment. - Authorizing Users or Roles for Oracle Data Pump Regular Operations in Database Vault
You can authorize a database administrator or a role to use Data Pump for regular operations in an Oracle Database Vault environment. - Revoking Oracle Data Pump Authorization from Users or Roles
You can revoke authorization from the database administrator or role who is using Oracle Data Pump for regular operations.
Parent topic: Using Oracle Data Pump with Oracle Database Vault
About Authorizing Users or Roles for Oracle Data Pump Regular Operations
Users who have Oracle Data Pump authorization can perform regular Oracle Data Pump operations in a Database Vault environment.
Full level Data Pump authorization enables these users to perform transportable export and import operations as well.
Levels of Database Vault Authorization for Oracle Data Pump Regular Operations
Oracle Database Vault provides several levels of authorization required for Oracle Data Pump regular operations in a Database Vault environment.
Table 12-1 describes these levels.
Table 12-1 Levels of Authorization for Oracle Data Pump Regular Operations
Scenario | Authorization Required |
---|---|
A database administrator wants to import data into another schema. |
You must grant this user (or a role) the |
A database administrator wants to export or import data in a schema that has no Database Vault protection. |
You only need to grant this user (or a role) the standard Oracle Data Pump privileges, which are the |
A database administrator wants to export or import data in a protected schema. |
In addition to the If the user wants to import data, also grant this user the |
A database administrator wants to export or import the contents of an entire database. |
In addition to the |
Footnote 1
The BECOME USER
privilege is part of the IMP_FULL_DATABASE
role by default, but in an Oracle Database Vault environment, this privilege is revoked.
Authorizing Users or Roles for Oracle Data Pump Regular Operations in Database Vault
You can authorize a database administrator or a role to use Data Pump for regular operations in an Oracle Database Vault environment.
Authorizing Users or Roles for Data Pump Transportable Export and Import Operations
You can grant authorization levels for users who must perform Oracle Data Pump transportable operations, either directly or through a role.
- About Authorizing Users for Oracle Data Pump Transportable Operations
You can grant users (either directly or through a role) different levels of transportable operation authorization. - Levels of Database Vault Authorization for Data Pump Transportable Operations
Oracle Database Vault provides levels of authorization required for users who must perform export and import transportable operations in a Database Vault environment. - Authorizing Users or Roles for Data Pump Transportable Operations in Database Vault
You can authorize users or roles to perform Oracle Data Pump transportable export or import operations in a Database Vault environment. - Revoking Transportable Tablespace Authorization from Users or Roles
You can revoke authorization from the database administrator who is using Data Pump.
Parent topic: Using Oracle Data Pump with Oracle Database Vault
About Authorizing Users for Oracle Data Pump Transportable Operations
You can grant users (either directly or through a role) different levels of transportable operation authorization.
If you want users to only have the authorization to perform transportable export and import operations, then you must grant users or roles the correct authorization, based on their tasks.
Levels of Database Vault Authorization for Data Pump Transportable Operations
Oracle Database Vault provides levels of authorization required for users who must perform export and import transportable operations in a Database Vault environment.
Table 12-2 describes these levels.
Table 12-2 Levels of Authorization for Oracle Data Pump Transporatable Operations
Scenario | Authorization Required |
---|---|
A database administrator wants to transportable export a tablespace or table that has no Database Vault protection. |
You only need to grant this user (or a role) the standard Oracle Data Pump privileges, which are the |
A database administrator wants to transportable export a tablespace where there is Database Vault protection (for example, realm or command rule for a table object residing on that tablespace). |
In addition to the Remember that users who have been granted full database level Oracle Data Pump authorization (through the |
A database administrator wants to transportable export a table within a tablespace where there is Database Vault protection (for example, a realm or command rule for a table object residing on the tablespace that contains the table to be exported). |
In addition to the Remember that users who have been granted full database level Oracle Data Pump authorization (from the |
A database administrator wants to transportable export the contents of an entire database. |
In addition to the |
A database administrator wants to use a network link to transportable import a tablespace or a table that has no Database Vault protection. |
In addition to the |
A database administrator wants to use a network link to transportable import a tablespace where there is Database Vault protection (for example, realm or command rule for a table object residing on that tablespace) |
In addition to the Remember that users that have been granted Database Vault-specific full database level Oracle Data Pump authorization (through the |
A database administrator wants to use a network link to import a table within a transportable tablespace where there is Database Vault protection (for example, realm or command rule for a table object residing on the tablespace that contains the table to be exported) |
In addition to the Remember that users who have been granted Database Vault-specific full database level Oracle Data Pump authorization (through the |
A database administrator wants to use a network link to transportable import the contents of an entire database. |
In addition to the |
Authorizing Users or Roles for Data Pump Transportable Operations in Database Vault
You can authorize users or roles to perform Oracle Data Pump transportable export or import operations in a Database Vault environment.
Guidelines for Exporting or Importing Data in a Database Vault Environment
After you grant the Oracle Data Pump database administrator the proper authorization, this user can perform any export or import operations that are necessary.
Before this user begins work, he or she should follow these guidelines:
-
Create a full backup of the database datafiles. This way, if you or other users do not like the newly-imported data, then you easily can revert the database to its previous state. This guideline is especially useful if an intruder had managed to modify Oracle Data Pump exported data to use his or her own policies.
-
Decide how to handle exporting and importing multiple schemas or tables. You cannot specify multiple schemas or tables in the
DBMS_MACADM.AUTHORIZE_DATAPUMP_USER
procedure, but you can use either of the following methods to accomplish this task:-
Run the
DBMS_MACADM.AUTHORIZE_DATAPUMP_USER
procedure for each schema or table, and then specify the list of these objects in theSCHEMAS
orTABLES
parameter of theEXPDP
andIMPDP
utilities. -
Perform a full database export or import operation. If so, see the next guideline.
-
-
When performing an export or import operation for an entire database, set the EXPDP or IMPDP FULL option to Y. Remember that this setting will capture the
DVSYS
schema, so ensure that the user or role has that you have authorized been granted theDV_OWNER
role.
Note the following:
-
You cannot use the legacy
EXP
andIMP
utilities with the direct path option (direct=y
) if Oracle Database Vault is enabled. -
Users, either through a direct grant or a role grant, that have been granted Database Vault-specific Oracle Data Pump authorization through the
DBMS_MACADM.AUTHORIZE_DATAPUMP_USER
procedure or transportable tablespace authorization through theDBMS_MACADM.AUTHORIZE_TTS_USER
procedure can export and import database objects, but they cannot perform other activities, such asSELECT
queries on schema tables to which they normally do not have access. Similarly, users are not permitted to perform Data Pump operations on objects outside the designated data objects. -
You must grant the
DV_OWNER
role to users who must export or import an entire database, because a full database export requires access to theDVSYS
schema, which stores the Oracle Database Vault policies. However, you cannot export theDVSYS
schema itself. Data Pump only exports the protection definitions. The target database must have theDVSYS
schema in it and Database Vault enabled before you can begin the import process.) Conversely, for a Data Pump import operation to apply the imported policies to the target database, it internally uses theDBMS_MACADM
PL/SQL package, which in turn requires the Data Pump user to have theDV_OWNER
role.
See Also:
Oracle Database Utilities for detailed information about Oracle Data PumpParent topic: Using Oracle Data Pump with Oracle Database Vault
Using Oracle Scheduler with Oracle Database Vault
Users who are responsible for scheduling database jobs must have Oracle Database Vault-specific authorization.
- About Using Oracle Scheduler with Oracle Database Vault
The level of authorization that you must grant depends on the schema in which the administrator wants to perform a task. - Granting a Job Scheduling Administrator Authorization for Database Vault
You can authorize a user to schedule database jobs in a Database Vault environment. - Revoking Authorization from Job Scheduling Administrators
You can revoke authorization from a user for scheduling database jobs.
Parent topic: DBA Operations in an Oracle Database Vault Environment
About Using Oracle Scheduler with Oracle Database Vault
The level of authorization that you must grant depends on the schema in which the administrator wants to perform a task.
Possible scenarios are as follows:
-
An administrator wants to schedule a job in his or her own schema. An administrator who has been granted privileges to schedule database jobs can continue to do so without any Oracle Database Vault-specific authorizations, unless this schema is protected by a realm. In that case, ensure that this user is authorized to access the realm.
-
An administrator wants to run a job in another schema, but this job does not access any Oracle Database Vault realm or command rule protected object. In this case, this user only needs job related system privileges, not the Oracle Database Vault privileges.
-
An administrator wants to run a job under the schema of another user, including any schema in the database or a remote database. If this job accesses an Oracle Database Vault realm or command rule protected object, then you must grant this user Database Vault-specific authorization by using the
DBMS_MACADM.AUTHORIZE_SCHEDULER_USER
procedure. This authorization applies to both background and foreground jobs. For background jobs, the authorization applies to the last user who created or modified the job. In addition, ensure that the schema owner (the protected schema in which the job is created) authorized to the realm.Later on, you can revoke this authorization by using the
DBMS_MACADM.UNAUTHORIZE_SCHEDULER_USER
procedure. If the schema is not protected by a realm, then you do not need to run theDBMS_MACADM.AUTHORIZE_SCHEDULER_USER
procedure for the user.
Related Topics
Parent topic: Using Oracle Scheduler with Oracle Database Vault
Granting a Job Scheduling Administrator Authorization for Database Vault
You can authorize a user to schedule database jobs in a Database Vault environment.
Related Topics
Parent topic: Using Oracle Scheduler with Oracle Database Vault
Revoking Authorization from Job Scheduling Administrators
You can revoke authorization from a user for scheduling database jobs.
Related Topics
Parent topic: Using Oracle Scheduler with Oracle Database Vault
Using Information Lifecycle Management with Oracle Database Vault
Users who perform Information Lifecycle Management operations on an Oracle Database Vault-enabled database must be granted authorization to perform these operations.
- About Using Information Lifecycle Management with Oracle Database Vault
You can grant authorization to and from users who are responsible for performing Information Lifecycle Management (ILM) operations on Oracle Database Vault realm- and command rule-protected objects. - Authorizing Users for ILM Operations in Database Vault
You can authorize a user to perform Information Lifecycle Management (ILM) operations in an Oracle Database Vault environment. - Revoking Information Lifecycle Management Authorization from Users
You can revoke authorization from users so that they cannot perform Information Lifecycle Management (ILM) operations in an Oracle Database Vault environment.
Parent topic: DBA Operations in an Oracle Database Vault Environment
About Using Information Lifecycle Management with Oracle Database Vault
You can grant authorization to and from users who are responsible for performing Information Lifecycle Management (ILM) operations on Oracle Database Vault realm- and command rule-protected objects.
You must first authorize users before they can perform the following SQL statements for ILM operations in a Database Vault-enabled database:
-
ALTER TABLE
-
ILM
-
FLASHBACK ARCHIVE
-
NO FLASHBACK ARCHIVE
-
-
ALTER TABLESPACE
-
FLASHBACK MODE
-
Authorizing Users for ILM Operations in Database Vault
You can authorize a user to perform Information Lifecycle Management (ILM) operations in an Oracle Database Vault environment.
Using Oracle Database Replay with Oracle Database Vault
Database administrators can authorize Oracle Database Replay users to work in a Database Vault environment.
- About Using Database Replay with Oracle Database Vault
You can grant Database Vault authorizations for users to perform both workload capture and workload replay operations with Oracle Database Replay. - Authorizing Users for Database Replay Operations
You can authorize Oracle Database Replay users for both workload capture and workload replay operations. - Revoking Database Replay Authorization from Users
You can remove authorization for both Oracle Database Replay workload capture and workload replay operations.
Parent topic: DBA Operations in an Oracle Database Vault Environment
About Using Database Replay with Oracle Database Vault
You can grant Database Vault authorizations for users to perform both workload capture and workload replay operations with Oracle Database Replay.
Parent topic: Using Oracle Database Replay with Oracle Database Vault
Authorizing Users for Database Replay Operations
You can authorize Oracle Database Replay users for both workload capture and workload replay operations.
- Authorizing Users for Workload Capture Operations
You can authorize a user to perform Oracle Database Replay workload capture operations in an Oracle Database Vault environment. - Authorizing Users for Workload Replay Operations
You can authorize a user to perform Oracle Database Replay workload replay operations in an Oracle Database Vault environment.
Parent topic: Using Oracle Database Replay with Oracle Database Vault
Authorizing Users for Workload Capture Operations
You can authorize a user to perform Oracle Database Replay workload capture operations in an Oracle Database Vault environment.
Related Topics
Parent topic: Authorizing Users for Database Replay Operations
Authorizing Users for Workload Replay Operations
You can authorize a user to perform Oracle Database Replay workload replay operations in an Oracle Database Vault environment.
Related Topics
Parent topic: Authorizing Users for Database Replay Operations
Revoking Database Replay Authorization from Users
You can remove authorization for both Oracle Database Replay workload capture and workload replay operations.
- Revoking Workload Capture Privileges
You can revoke authorization from users so that they cannot perform Oracle Database Replay workload capture operations in an Oracle Database Vault environment. - Revoking Workload Replay Privileges
You can revoke authorization from users so that they cannot perform Oracle Database Replay workload replay operations in an Oracle Database Vault environment.
Parent topic: Using Oracle Database Replay with Oracle Database Vault
Revoking Workload Capture Privileges
You can revoke authorization from users so that they cannot perform Oracle Database Replay workload capture operations in an Oracle Database Vault environment.
Related Topics
Parent topic: Revoking Database Replay Authorization from Users
Revoking Workload Replay Privileges
You can revoke authorization from users so that they cannot perform Oracle Database Replay workload replay operations in an Oracle Database Vault environment.
Related Topics
Parent topic: Revoking Database Replay Authorization from Users
Executing Preprocessor Programs with Oracle Database Vault
Users who execute preprocessor programs through external tables must have Oracle Database Vault-specific authorization.
- About Executing Preprocessor Programs with Oracle Database Vault
You can grant and revoke Database Vault authorizations for users to execute preprocessor programs through external tables. - Authorizing Users to Execute Preprocessor Programs
TheDBMS_MACADM.AUTHORIZE_PREPROCESSOR
procedure grants users authorization to execute preprocessor programs through external tables. - Revoking Execute Preprocessor Authorization from Users
TheDBMS_MACADM.UNAUTHORIZE_PREPROCESSOR
procedure revokes authorization from users so that they cannot execute preprocessor programs through external tables in an Oracle Database Vault environment.
Parent topic: DBA Operations in an Oracle Database Vault Environment
About Executing Preprocessor Programs with Oracle Database Vault
You can grant and revoke Database Vault authorizations for users to execute preprocessor programs through external tables.
Authorizing Users to Execute Preprocessor Programs
The DBMS_MACADM.AUTHORIZE_PREPROCESSOR
procedure grants users authorization to execute preprocessor programs through external tables.
Using Database Vault Operations Control to Restrict Multitenant Common User Access to Local PDB Data
You can control PDB access by CDB root common users, such as infrastructure database administrators.
- About Using Database Vault Operations Control
You can automatically restrict common users from accessing pluggable database (PDB) local data in autonomous, regular Cloud, or on-premise environments. - Enabling Database Vault Operations Control
To enable Database Vault operations control, use theDBMS_MACADM.ENABLE_APP_PROTECTION
PL/SQL procedure. - Adding Common Users and Packages to an Exception List
Common users and applications that must access PDB local data can be added to an exception list. - Deleting Common Users and Packages from an Exception List
Users and applications that no longer need to access PDB local data can be removed from the exception list. - Disabling Database Vault Operations Control
To disable Database Vault operations control, use theDBMS_MACADM.DISABLE_APP_PROTECTION
PL/SQL procedure.
Parent topic: DBA Operations in an Oracle Database Vault Environment
About Using Database Vault Operations Control
You can automatically restrict common users from accessing pluggable database (PDB) local data in autonomous, regular Cloud, or on-premise environments.
To accomplish this, you can use Oracle Database Vault operations control, which applies to common users (such as infrastructure database administrators and applications.
Database Vault operations control is useful for situations where a database administrator must log in to the CDB root as a highly privileged user, but still not be able to access PDB customer data. Database operations control does not block PDB database administrators. To block these users, enable Oracle Database Vault in the PDB and then use the Database Vault features such as realm control to block these users.
You can create an exception list for Database Vault operations control of common users and packages for situations where a common user or application must perform tasks that must access local data on a PDB. An example of the type of common user that you would specify for the exception list is the CTXSYS
application account, which is responsible for Oracle Text. Specifying a package in an exception list enables you to apply more fine-grained control instead of providing full access to a user in an exception list.
The general process for using Database Vault operations control is as follows:
- Enable Database Vault operations control and keep it enabled for the production environment.
- At this stage Database Vault operations control applies to all PDBs in the environment, regardless of whether the PDB has enabled Database Vault or not.
- To enable specific users and packages to have access to the local schemas of the PDBs, add them to an exception list. When the user or package no longer needs access, then you can remove them from the exception list. For example, if the database is using Oracle Text, then you can add the
CTXSYS
administrative user account and the package to the exception list.
Enabling Database Vault Operations Control
To enable Database Vault operations control, use the DBMS_MACADM.ENABLE_APP_PROTECTION
PL/SQL procedure.
Oracle recommends that if you elect to use Database Vault operations control for your multitenant production server, then you should keep Database Vault operations control enabled full time.
In most cases, you will enable Database Operations control for the entire CDB, not just a specific PDB. If you need to disable it for a specific PDB (for example, for troubleshooting purposes), then you can execute theDBMS_MACADM.DISABLE_APP_PROTECTION
procedure on the PDB. When you are finished troubleshooting the PDB, re-enable it for Database Vault operations control, as shown in the example in this topic.
SYS
with the SYSDBA
administrative privilege and then executing the SELECT * FROM DBA_DV_STATUS;
query. If specific trusted common users or packages must have access to the local schemas of these PDBs to perform special operations, then you can use the DBMS_MACADM.ADD_APP_EXCEPTION
procedure to add the user or package to an exception list for Database Vault operations control.
Adding Common Users and Packages to an Exception List
Common users and applications that must access PDB local data can be added to an exception list.
MDSYS
account to the exception list. MDSYS
requires access to customer PDB data for Oracle Spatial functions. To add a common user and a package to the Database Vault operations control exception list, you can use the DBMS_MACADM.ADD_APP_EXCEPTION
PL/SQL procedure. To find existing exceptions, you can query the DBA_DV_APP_EXCEPTION
data dictionary view.
Deleting Common Users and Packages from an Exception List
Users and applications that no longer need to access PDB local data can be removed from the exception list.
DBMS_MACADM.DELETE_APP_PROTECTION
PL/SQL procedure. To find existing exceptions, you can query the DBA_DV_APP_EXCEPTION
data dictionary view.
Disabling Database Vault Operations Control
To disable Database Vault operations control, use the DBMS_MACADM.DISABLE_APP_PROTECTION
PL/SQL procedure.
Oracle Recovery Manager and Oracle Database Vault
You can use Recovery Manager (RMAN) in an Oracle Database Vault environment.
The functionality of RMAN with Oracle Database Vault is the same as its functionality in a standard Oracle Database environment.
Privileges for Using XStream with Oracle Database Vault
If you want to use XStream in an Oracle Database Vault environment, then you must have the appropriate privileges.
These privileges are as follows:
-
You must be granted the
DV_XSTREAM_ADMIN
role in order to configure the XStream. -
Before you can apply changes to any tables that are protected by a realm, you must be authorized to have access to that realm. For example:
EXEC DBMS_MACADM.ADD_AUTH_TO_REALM('realm_name','username');
Privileges for Using Oracle GoldenGate in with Oracle Database Vault
If you want to use Oracle GoldenGate in an Oracle Database Vault environment, then you must have the appropriate privileges.
These privileges are as follows:
-
The user must be granted the
DV_GOLDENGATE_ADMIN
role in order to configure the Oracle GoldenGate. -
The user must be granted the
DV_GOLDENGATE_REDO_ACCESS
role if the user must use the Oracle GoldenGateTRANLOGOPTIONS DBLOGREADER
method to access redo logs.For example, to grant the
DV_GOLDENGATE_ADMIN
andDV_GOLDENGATE_REDO_ACCESS
roles to a user namedgg_admin
:GRANT DV_GOLDENGATE_ADMIN, DV_GOLDENGATE_REDO_ACCESS TO gg_admin;
-
The user must be granted the
DV_ACCTMGR
role before this user can create users on the replicated side. -
The user must perform extract operations in triggerless mode before attempting to perform procedural replication.
-
Before users can apply changes to any tables that are protected by a realm, they must be authorized to have access to that realm. For example:
EXEC DBMS_MACADM.ADD_AUTH_TO_REALM('realm_name','username');
-
The
SYS
user must be authorized to perform Data Definition Language (DDL) operations in theSYSTEM
schema, as follows:EXECUTE DVSYS.DBMS_MACADM.AUTHORIZE_DDL('SYS', 'SYSTEM');
-
The user must be granted authorization to the Oracle Default Component Protection Realm. For example, to grant this realm authorization to a user named
gg_admin
:BEGIN DVSYS.DBMS_MACADM.ADD_AUTH_TO_REALM( REALM_NAME => 'Oracle Default Component Protection Realm', GRANTEE => 'gg_admin', AUTH_OPTIONS => 1); END; /
Using Data Masking in an Oracle Database Vault Environment
You must have the correct authorization to perform data masking in an Oracle Database Vault environment.
- About Data Masking in an Oracle Database Vault Enabled Database
In an Oracle Database Vault-enabled database, only users who have Database Vault authorizations can mask data in Database Vault-protected database objects. - Adding Data Masking Users to the Data Dictionary Realm Authorizations
You can add data masking users to the Oracle Default Component Protection realm to give them data dictionary realm authorizations. - Giving Users Access to Tables or Schemas That They Want to Mask
To give users access to tables or schemas that they want to mask, you must authorize them for the appropriate realm. - Creating a Command Rule to Control Data Masking Privileges
You must have privileges to manage tables, packages, and triggers before you can use data masking in an Oracle Database Vault environment.
Parent topic: DBA Operations in an Oracle Database Vault Environment
About Data Masking in an Oracle Database Vault Enabled Database
In an Oracle Database Vault-enabled database, only users who have Database Vault authorizations can mask data in Database Vault-protected database objects.
In a non-Database Vault environment, users who have been granted the SELECT_CATALOG_ROLE
and DBA
roles can perform data masking. However, with Database Vault, users must have additional privileges. This section describes three ways that you can use to enable users to mask data in Database Vault-protected objects.
If users do not have the correct privileges, then the following errors can occur while creating the masking definition or when the job is executing:
ORA-47400: Command Rule violation for string on string ORA-47401: Realm violation for string on string. ORA-47408: Realm violation for the EXECUTE command ORA-47409: Command Rule violation for the EXECUTE command ORA-01301: insufficient privileges
Adding Data Masking Users to the Data Dictionary Realm Authorizations
You can add data masking users to the Oracle Default Component Protection realm to give them data dictionary realm authorizations.
The Oracle Data Dictionary controls access to the Oracle Database catalog schemas, such as SYS
and SYSTEM
. (See Default Realms for a full list of these schemas.) It also controls the ability to grant system privileges and database administrator roles. If you add users to the Oracle Default Component Protection realm, and assuming these users already have the privileges associated with the Oracle Data Dictionary, then these users will have these same privileges in a Database Vault environment. Therefore, if you do add a user to this realm, ensure that this user is a trusted user.
-
To add a user to the Oracle Default Component Protection realm, use the
DBMS_MACADM.ADD_AUTH_TO_REALM
procedure.
For example:
BEGIN DBMS_MACADM.ADD_AUTH_TO_REALM( realm_name => 'Oracle Default Component Protection Realm', grantee => 'DBA_JSMITH', auth_options => DBMS_MACUTL.G_REALM_AUTH_PARTICIPANT); END; /
Giving Users Access to Tables or Schemas That They Want to Mask
To give users access to tables or schemas that they want to mask, you must authorize them for the appropriate realm.
If the table or schema of a table that is to be data masked is in a realm, then you must add the user responsible for data masking to the realm authorization as a participant or owner. If the table or schema has dependent objects that are in other realm-protected tables, then you must grant the user participant or owner authorization for those realms as well.
-
To authorize users for data masking to a realm that protects the objects they want to data mask, use the
DBMS_MACADM.ADD_AUTH_TO_REALM
procedure.
The following example shows how to grant user DBA_JSMITH
authorization for the HR.EMPLOYEES
table, which is protected by a realm called Business Apps Realm:
BEGIN DBMS_MACADM.ADD_AUTH_TO_REALM( realm_name => 'Business Apps Realm', grantee => 'DBA_JSMITH', auth_options => DBMS_MACUTL.G_REALM_AUTH_PARTICIPANT; END; /
Creating a Command Rule to Control Data Masking Privileges
You must have privileges to manage tables, packages, and triggers before you can use data masking in an Oracle Database Vault environment.
For data masking, users must have the CREATE TABLE
, SELECT TABLE
, ALTER TABLE
, and DROP TABLE
privileges for the masking objects and if there are any dependent objects to be created, the user must have the appropriate privileges such as CREATE PACKAGE
, CREATE TRIGGER
, and so on.
You can create command rules to control data masking privileges at a granular level. To do so, create a command rule that can either prevent or allow the user access to objects that must have to be data masked. For example, you can create a command rule called Allow Data Masking that checks if the user is in a list of users who are responsible for data masking. If the user logging in is one of these users, then the command rule evaluates to true and the user is permitted to create the data mask for the protected object.
To create a command rule that controls data masking privileges:
Converting a Standalone Oracle Database to a PDB and Plugging It into a CDB
You can convert a standalone Oracle Database Release 12c or later database to a PDB, and then plug this PDB into a CDB.
Parent topic: DBA Operations in an Oracle Database Vault Environment
Using the ORADEBUG Utility with Oracle Database Vault
The ORADEBUG
utility is used primarily by Oracle Support to diagnose problems that may arise with an Oracle database.
You can control whether users can run the ORADEBUG
utility in an Oracle Database Vault-enabled environment.
Parent topic: DBA Operations in an Oracle Database Vault Environment