Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 2 DBs T1BISYS T1BIAUD #1136

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;