You may need to disable Oracle Database Vault to perform upgrade tasks or correct erroneous configurations. You can reenable Oracle Database Vault after you complete the corrective tasks.
Note:
Be aware that if you disable Oracle Database Vault, the privileges that were revoked from existing users and roles during installation remain in effect. See "Privileges That Are Revoked from Existing Users and Roles" for a listing of the revoked privileges.The following situations require you to disable Oracle Database Vault:
The Oracle Database Vault user accounts have been inadvertently locked or their passwords forgotten. (See the tip under "Oracle Database Vault Accounts" for a guideline for avoiding this problem in the future.)
A rule set associated with the CONNECT
role has been configured incorrectly. This is resulting in failed database logins for all accounts, including those with the DV_OWNER
or DV_ADMIN
role, who could correct this problem.
You must perform maintenance tasks on Oracle Database Vault.
You must install any of the Oracle Database optional products, such as Oracle Spatial Data Option, Oracle OLAP, or Oracle interMedia, by using Database Configuration Assistant (DBCA).
You are about to install a third-party product, install an Oracle product, or perform an Oracle patch update whose installation may be prevented if Oracle Database Vault is running.
You must archive the Oracle Database Vault audit trail.
You can check if Oracle Database Vault is enabled or disabled by querying the V$OPTION
data dictionary view. Any user can query this view. If Oracle Database Vault is enabled, the query returns TRUE
. Otherwise, it returns FALSE
.
Remember that the PARAMETER
column value is case sensitive. For example:
SELECT * FROM V$OPTION WHERE PARAMETER = 'Oracle Database Vault';
If Oracle Database Vault is enabled, the following output appears:
PARAMETER VALUE ----------------------------- ----------------------- Oracle Database Vault TRUE
Follow these steps to disable Oracle Database Vault on UNIX systems:
Turn off the software processes. Make sure that the environment variables, ORACLE_HOME
, ORACLE_SID
, and PATH
are correctly set.
For single-instance installations, shut down the database instance:
sqlplus SYS AS SYSOPER
Enter password: password
SHUTDOWN IMMEDIATE
EXIT
For Oracle Real Application Clusters (Oracle RAC) installations, shut down each database instance from a command line as follows:
srvctl stop database -d db_name -c "sys/sys_passwd as sysoper"
If you cannot connect to the database, then proceed to the next step.
Run the following commands at a command line to turn off the Oracle Database Vault option:
cd $ORACLE_HOME/rdbms/lib make -f ins_rdbms.mk dv_off cd $ORACLE_HOME/bin relink oracle
For Oracle RAC installations, run these commands on all nodes.
In SQL*Plus, start the database.
For single-instance database installations:
sqlplus SYS AS SYSOPER
Enter password: password
STARTUP
EXIT
For Oracle RAC installations, from a command line:
srvctl start database -d db_name -c "sys/sys_passwd as sysoper"
Connect as SYS
using the SYSDBA
privilege, and then run the following ALTER TRIGGER
statements:
CONNECT SYS / AS SYSDBA
Enter password: password
ALTER TRIGGER DVSYS.DV_BEFORE_DDL_TRG DISABLE;
ALTER TRIGGER DVSYS.DV_AFTER_DDL_TRG DISABLE;
Note:
After you disable Oracle Database Vault, you still can run the Oracle Database Vault API functions. In addition, after you disable Oracle Database Vault, theANY
privileges are available.At this stage, Oracle Database Vault is disabled. You can perform the following types of activities:
Use the Oracle Database Vault PL/SQL packages and functions. For example, to correct a login or CONNECT rule set error, use the DBMS_MACADM
PL/SQL package or the Oracle Database Vault Administrator interface.
Note:
If you are using Oracle Database Vault Administrator, then you must start thedbconsole
process. You can check the status of the dbconsole
process by entering the following command from the $ORACLE_HOME/bin
directory of the Oracle home in which you deployed Database Vault Administrator:
./emctl status dbconsole
To start dbconsole
:
./emctl start dbconsole
Use the SYSTEM or SYS accounts to perform tasks such as creating or changing passwords. In addition to modifying regular database and administrative user accounts, you can modify passwords and the lock status of any of the Oracle Database Vault-specific accounts, such as users who have been granted the DV_ADMIN
or DV_ACCTMGR
roles. (See the tip under "Oracle Database Vault Accounts" for a guideline for avoiding this problem in the future.)
Perform the installation, upgrade, or other tasks that require security protections to be disabled. If you must run Oracle Database Vault Configuration Assistant (DVCA), ensure that the Oracle Database listener is running. To start the listener, run the following command from the $ORACLE_HOME/bin
directory:
./lsnrctl start
Use the following steps to enable Oracle Database Vault on UNIX systems:
Log into SQL*Plus as SYS
using the SYSDBA
privilege, and then run the following ALTER TRIGGER
statements:
sqlplus sys as sysdba
Enter password: password
ALTER TRIGGER DVSYS.DV_BEFORE_DDL_TRG ENABLE;
ALTER TRIGGER DVSYS.DV_AFTER_DDL_TRG ENABLE;
Turn off the software processes. Make sure that the environment variables, ORACLE_HOME
, ORACLE_SID
, and PATH
are correctly set.
Shut down the database instance.
For single-instance installations:
sqlplus SYS AS SYSOPER
Enter password: password
SHUTDOWN IMMEDIATE
EXIT
For Oracle RAC installations, from a command line:
srvctl stop database -d db_name -c "sys/sys_passwd as sysoper"
Run the following commands to turn on the Oracle Database Vault option:
cd $ORACLE_HOME/rdbms/lib make -f ins_rdbms.mk dv_on cd $ORACLE_HOME/bin relink oracle
For Oracle RAC installations, run these commands on all nodes.
In SQL*Plus, start the database:
For single-instance database installations:
sqlplus SYS AS SYSOPER
Enter password: password
STARTUP
EXIT
For Oracle RAC installations, from a command line:
srvctl start database -d db_name -c "sys/sys_passwd as sysoper"
Restart the dbconsole
process. For both single-instance and Oracle RAC installations, use the following command:
emctl start dbconsole