SELECT parameter, value FROM V$OPTION WHERE PARAMETER = 'Oracle Database Vault';
The true/false value of the parameter will indicate whether or not it is enabled.
Source: Oracle Documentation>
Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies. When relevant, I also write about other technologies, like Linux or PostgreSQL. Many of the posts starts with "how to" since they derive directly from my own personal experience. My goal is to provide simple examples, so that they can be easily adapted to other situations.
SELECT parameter, value FROM V$OPTION WHERE PARAMETER = 'Oracle Database Vault';
SET LINES 200 -- NEW_VALUE in sqlplus specifies a variable to hold a column value COL tabspace_path FORMAT A50 NEW_VALUE path SELECT SUBSTR(FILE_NAME, 1, INSTR(FILE_NAME, '/', -1) -1) tabspace_path FROM DBA_DATA_FILES WHERE TABLESPACE_NAME = 'SYSTEM'; SELECT '&path' variable_value FROM DUAL; CREATE BIGFILE TABLESPACE test_tbspc DATAFILE '&path/&tablespace_name..dbf' SIZE 32M AUTOEXTEND ON NEXT 8M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO; exit
oracle@myserver:[testdb01]# sqlplus / as sysdba @test.sql Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP and Data Mining options TABSPACE_PATH -------------------------------------------------- /u02/oradata/testdb01 old 1: SELECT '&path' variable_value new 1: SELECT '/u02/oradata/testdb01' variable_value VARIABLE_VALUE --------------------- /u02/oradata/testdb01 Enter value for tablespace_name: mytablespace old 1: CREATE BIGFILE TABLESPACE mytablespace DATAFILE '&path/&tablespace_name..dbf' SIZE 32M AUTOEXTEND ON NEXT 8M MAXSIZE UNLIMITED new 1: CREATE BIGFILE TABLESPACE mytablespace DATAFILE '/u02/oradata/testdb01/mytablespace.dbf' SIZE 32M AUTOEXTEND ON NEXT 8M MAXSIZE UNLIMITED Tablespace created. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP and Data Mining options
administer key management set keystore open identified by software_keystore_password; alter tablespace TEST_TABSPC offline; alter tablespace TEST_TABSPC encryption offline decrypt; alter tablespace TEST_TABSPC online;
alter tablespace TEST_TABSPC encryption online decrypt file_name_convert = ('test_tabspc.dbf', 'test_tabspc_decrypted.dbf');For the online method to work, compatible should be set to 12.2, and there must be enough storage available for the database server that you can hold a copy of the entire tablespace to be decrypted.
sysctl -aor, to limit the search to kernel parameters that starts with "sem":
sysctl -a |grep shmExample output:
[root@myserver ~]# sysctl -a | grep sem kernel.sem = 250 32000 100 128
# WALLET_OVERRIDE is only applicable when using auto login, set to FALSE SQLNET.WALLET_OVERRIDE = FALSE SQLNET.AUTHENTICATION_SERVICES = (BEQ, TCPS) SSL_VERSION = 0 SSL_CLIENT_AUTHENTICATION = FALSE ENCRYPTION_WALLET_LOCATION = (SOURCE = (METHOD = FILE) (METHOD_DATA = (DIRECTORY = /u01/oracle/admin/proddb01/wallet) ) ) SSL_CIPHER_SUITES = (SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA)
yum list package_nameFor example:
[root@myserver ~]# yum list compat-libcap1 Loaded plugins: product-id, rhnplugin, search-disabled-repos, security This system is receiving updates from RHN Classic or RHN Satellite. Installed Packages compat-libcap1.x86_64 1.10-1 @test-rhel-x86_64-server-6 Available Packages compat-libcap1.i686 1.10-1