Oracle database vault

Oracle Data Vault is the use of the Data Vault data warehousing methodology on Oracle Database by Oracle Corporation. It organizes data into Hubs (business keys), Links (relationships), and Satellites (descriptive history). It is designed for scalable, agile, and auditable enterprise data warehouses. Oracle tools like Oracle Data Integrator are commonly used to load and transform the data. It should not be confused with Oracle Database Vault, which is a security product.

oraclesqlsecurity-auditingv1.0.0
0 stars1 downloads29 views0 comments
By fathy • Created

Code

(123 lines)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
Vault Steps 
============

Step 1: Verify Prerequisites
====================================
- Ensure that Oracle Database 19c is already installed.
- Verify that your database is in ARCHIVELOG mode:

	SQL> SELECT log_mode FROM v$database;


- If it returns NOARCHIVELOG, switch to ARCHIVELOG mode:
	SQL> SHUTDOWN IMMEDIATE;
	SQL> STARTUP MOUNT;
	SQL> ALTER DATABASE ARCHIVELOG;
	SQL> ALTER DATABASE OPEN;

- Check if Oracle Label Security (OLS) is enabled, as Database Vault requires it, If it is not installed, you must enable it.

	SQL> SELECT * FROM dba_registry WHERE comp_id='OLS';





****************************************** DATABASE VAULT ************************************************************

Check whether DB Vault is enabled
___________________________________

1- select * from v$option where lower(PARAMETER) like '%vault%';

PARAMETER
----------------------------------------------------------------
VALUE                                                                CON_ID
---------------------------------------------------------------- ----------
Oracle Database Vault
FALSE                                                                     0



SQL> select * from dba_dv_status;

NAME
-------------------
STATUS
----------------------------------------------------------------
DV_APP_PROTECTION
NOT CONFIGURED

DV_CONFIGURE_STATUS
FALSE

DV_ENABLE_STATUS
FALSE

 SQL>Select * from dba_objects where status='INVALID';

no rows selected



Users to manage database vault:
_______________________________
create user c##dvowner identified by dvowner;
create user c##dvactmgr identified by dvactmgr;

BEGIN
 DVSYS.CONFIGURE_DV (
 dvowner_uname => 'c##dvowner',                       ===========> to set configuration for users 
 dvacctmgr_uname => 'c##dvactmgr');
END;
/
conn c##dvowner/dvowner

EXEC DBMS_MACADM.ENABLE_DV;
execute dvsys.dbms_macadm.enable_app_protection(NULL);         ==========> to enable database vault
EXEC DBMS_MACADM.DISENABLE_APP_PROTECTION;
EXEC DBMS_MACADM.ENABLE_APP_PROTECTION ('HRPDB');

conn / as sysdba

shutdown immediate											===============> restart database to confige database vault

startup

alter pluggable database all open;

select * from dba_dv_status;

conn c##dvowner/dvowner

16---BEGIN
DVSYS.DBMS_MACADM.CREATE_REALM(
 realm_name =>'ARABANK_REALM',
 description =>'Realm to protect tables ARABANK schema' ,
 enabled =>DBMS_MACUTL.G_YES, --realm enabled
 audit_options =>DBMS_MACUTL.G_REALM_AUDIT_FAIL); --audit enabled  	============>set a specific users with privilege 
END;
/


17---BEGIN
DVSYS.DBMS_MACADM.ADD_OBJECT_TO_REALM(
realm_name =>'ARABANK_REALM',
object_owner => 'ARABANK', 											============>set a specific table encrypt
object_name => 'pa_tran_monthly_dtl',
object_type =>'TABLE');
END;
/


18---BEGIN
DVSYS.DBMS_MACADM.ADD_AUTH_TO_REALM(
 realm_name =>'ARABANK_REALM',
 grantee =>'ARABANK',
 auth_options =>DBMS_MACUTL.G_REALM_AUTH_OWNER);					============>set a specific Users Access
end;
/



======================================================================================================================

General Comments(0)

Tip: Click on a line number in the code to add a line-specific comment

No general comments yet. Be the first to comment!