-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinsert_all_hash.sql
More file actions
executable file
·56 lines (43 loc) · 1.58 KB
/
insert_all_hash.sql
File metadata and controls
executable file
·56 lines (43 loc) · 1.58 KB
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
---------------------------------------------------
@@insert_all_privs_clean "T_HASH"
@@insert_all_privs_clean "T_FILES"
---------------------------------------------------
alter table T_HASH modify (code null, md5_enc null,sha1_enc null);
var v_table_cols clob
var v_table_id_cols clob
var v_print_cols clob
def v_table_name = "T_HASH"
--exec :v_table_cols := 'owner, name, type, origin_con_id, md5_enc, sha1_enc';
exec :v_table_cols := 'owner, name, type, sha1_enc';
exec :v_table_id_cols := 'owner, name, type, con_id, oraversion, hash_line_id';
def v_hash_col_id = "sha1_enc"
def v_print_table = "&&v_table_name."
exec :v_print_cols := 'owner, name_comp, type, con_id, sha1_enc';
def v_file_pref = 'db'
def v_srczip_pref = 'db'
@@insert_all_privs_code
@@change_all_hash_code
@@insert_all_privs_spool
-----------------------------
alter table T_FILES add (con_id number);
var v_table_cols clob
var v_table_id_cols clob
var v_print_cols clob
def v_table_name = "T_FILES"
exec :v_table_cols := 'path, sha256_enc';
exec :v_table_id_cols := 'path, con_id, oraversion, hash_line_id';
def v_hash_col_id = "sha256_enc"
def v_print_table = "&&v_table_name."
exec :v_print_cols := 'path, con_id, sha256_enc';
def v_file_pref = 'files'
def v_srczip_pref = 'files.all'
@@insert_all_privs_code
@@insert_all_privs_spool
-----------------------------
-----------------------------
-----------------------------
--def oraversion = "12.2.0.1"
--def oraversion = "12.1.0.2"
--def oraversion = "12.1.0.1"
--def oraversion = "11.2.0.4"
--@@insert_all_hash_spool