Skip to content

Commit

Permalink
Added 2 DBs T1BISYS T1BIAUD
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacedba committed Nov 27, 2024
1 parent cf7e676 commit 1153959
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ansible/group_vars/server_type_ncr_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,21 @@ grid_home: /u01/app/oracle/product/19c/gridhome_1

tns_entries:
t1:
- name: T1BISYS
port: 1521
host_list:
- t1-ncr-db-1-a.nomis-combined-reporting.hmpps-test.modernisation-platform.internal
service_name: T1BISYS
- name: T1BIPSYS
port: 1521
host_list:
- t1-ncr-db-1-a.nomis-combined-reporting.hmpps-test.modernisation-platform.internal
service_name: T1BIPSYS
- name: T1BIAUD
port: 1521
host_list:
- t1-ncr-db-1-a.nomis-combined-reporting.hmpps-test.modernisation-platform.internal
service_name: T1BIAUD
- name: T1BIPAUD
port: 1521
host_list:
Expand Down
21 changes: 21 additions & 0 deletions ansible/roles/ncr-db/templates/setup_T1BIAUD.sql.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
set echo on
spool {{ stage }}/setup_bipaud.log

create tablespace MISAUD_TS;

create profile nart
limit PASSWORD_REUSE_TIME unlimited
PASSWORD_LIFE_TIME unlimited;

create user BIP_AUDIT_OWNER identified by "{{ bip_audit_owner_password }}"
default tablespace MISAUD_TS
profile NART;
grant CONNECT, CREATE JOB, CREATE PROCEDURE, CREATE SEQUENCE, CREATE TABLE, CREATE TRIGGER, UNLIMITED TABLESPACE to BIP_AUDIT_OWNER;

create user BODS_IPS_AUDIT_OWNER identified by "{{ bods_ips_audit_password }}"
default tablespace MISAUD_TS
profile NART;
grant CONNECT, CREATE JOB, CREATE PROCEDURE, CREATE SEQUENCE, CREATE TABLE, UNLIMITED TABLESPACE to BODS_IPS_AUDIT_OWNER;

spool off
exit;
27 changes: 27 additions & 0 deletions ansible/roles/ncr-db/templates/setup_T1BISYS.sql.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
set echo on
spool {{ stage }}/setup_bipaud.log

create tablespace MISSYS_TS;
create tablespace BODIREP_TS;

create profile nart
limit PASSWORD_REUSE_TIME unlimited
PASSWORD_LIFE_TIME unlimited;

create user BIP_SYSTEM_OWNER identified by "{{ bip_system_owner_password }}"
default tablespace MISSYS_TS
profile NART;
grant CONNECT, CREATE PROCEDURE, CREATE TABLE, UNLIMITED TABLESPACE to BIP_SYSTEM_OWNER;

create user BODS_IPS_SYSTEM_OWNER identified by "{{ bods_ips_system_owner_password }}"
default tablespace MISSYS_TS
profile NART;
grant CONNECT, CREATE PROCEDURE, CREATE TABLE, UNLIMITED TABLESPACE to BODS_IPS_SYSTEM_OWNER;

create user BODS_REPO_OWNER identified by "{{ bods_repo_owner_password }}"
default tablespace BODIREP_TS
profile NART;
grant CONNECT, CREATE SEQUENCE, CREATE TABLE, CREATE VIEW, UNLIMITED TABLESPACE to BODS_REPO_OWNER;

spool off
exit;

0 comments on commit 1153959

Please sign in to comment.