Skip to content

Commit 5a200e9

Browse files
committed
Added support for running more than 1 db from each ORACLE_HOME
1 parent cd54af8 commit 5a200e9

File tree

3 files changed

+125
-118
lines changed

3 files changed

+125
-118
lines changed

group_vars/orafs

Lines changed: 64 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,72 @@
11
---
2-
################ Generic Oracle OS info ################
3-
hostgroup: orafs # # Inventory group-alias This is used to populate cluster nodes for GI & RAC/RAC ONE DB installation
4-
oracle_user: oracle # User that will own the Oracle Installations. No support for separation of duties yet
5-
oracle_passwd: "$6$Udd3YYk2C2KGDOw4$jpfNsWXbgJ.IeKpEjIF4cVRhZi62xZT37G5oHHlHmGvAkkPHfukE9cgRyjdgui/oqtPodoYbUSSvTeFpwvN270" # Encrypted password for oracle_user
6-
oracle_user_home: "/home/{{ oracle_user }}" # Home directory for oracle_user. Needed for passing in ssh-keys, profiles etc
7-
oracle_group: dba # Primary group for oracle_user.
8-
oracle_user_id: 600 # uid for oracle_user
9-
oracle_group_id: 600 # gid for oracle_users's primary group
10-
oracle_sw_source_www: http://oladmin/orasw # address to all software if using the get_url module when putting software on the host(s)
11-
oracle_sw_source_local: /path/to/files/locally # Path to all software if using the copy module when putting software on the host(s)
12-
is_sw_source_local: true # (true/false). true -> all software is available on the controlmachine. false -> Available on web-server
13-
disable_numa_boot: true # (true/false) Sets numa=off in grub.conf
14-
percent_hugepages: 60 # Percentage (0-100) of total RAM to dedicate to hugepages, Configures vm.nr_hugepages & memlock settings in /etc/security/limits.conf.
15-
configure_interconnect: false # (true/false) Should the Interconnect network be configured by Ansible (setup IP-address. IP-address configurable by variable oracle_ic_net). Only applicable to RAC-installs
16-
configure_ssh: false # (true/false). Should passwordless ssh be configured between clusternodes. Only applicable to RAC-installs
17-
configure_host_disks: false # (true/false). Should the specified directories be on their own devices -> (true), or do they live in the root-filesystem (/) -> (false). Mountpoints are described in host_fs_layout
18-
configure_cluster: false
19-
20-
############### Generic Directory Structures ################
21-
oracle_stage: /u01/stage # All software is staged here
22-
oracle_psu_stage: "{{ oracle_stage }}/psu" # All psu's are staged here
23-
oracle_rsp_stage: "{{ oracle_stage }}/rsp" # All responsefiles are staged here (gi,db,dbca,asmca etc).
24-
oracle_base: /u01/app/oracle # Oracle Base for installations
25-
oracle_inventory_loc: /u01/app/oraInventory # Oracle Inventory location
2+
oracle_sw_source_www: http://oladmin/orasw
3+
# is_sw_source_local: false
264

5+
# oracle_sw_copy: true
6+
# oracle_sw_unpack: true
7+
# oracle_stage_remote: /mnt
8+
install_os_packages: true
279

28-
################ Oracle databases and general config (ORACLE_BASE/HOME etc) ################
29-
oracle_sw_image_db: # Installation files for the database installations
30-
- { filename: linuxamd64_12102_database_1of2.zip, version: 12.1.0.2 }
31-
- { filename: linuxamd64_12102_database_2of2.zip, version: 12.1.0.2 }
32-
#- { filename: linuxamd64_12c_database_1of2.zip, version: 12.1.0.1 }
33-
#- { filename: linuxamd64_12c_database_2of2.zip, version: 12.1.0.1 }
34-
35-
oracle_databases: # Dictionary describing the databases to be installed
36-
fsdb: # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
37-
oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
38-
oracle_db_name: fsdb # Database name
39-
oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
40-
oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
41-
is_container: "false" # (true/false) Is the database a container database
42-
is_racone: "false" # (true/false) Is the database a RAC ONE NODE Database
43-
storage_type: FS # Database storage to be used. ASM or FS.
44-
service_name: fsdb_serv # Inital service to be created (not in use yet)
45-
oracle_init_params: "open_cursors=300,processes=700" # Specific parameters to be set during installation. Comma-separated list
46-
oracle_db_mem_percent: 30 # Amount of RAM to be used for SGA
47-
oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
48-
oracle_version_db: 12.1.0.2 # Oracle version
49-
# testdb: # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
50-
# oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
51-
# oracle_db_name: testdb # Database name
52-
# oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
53-
# oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
54-
# is_container: "false" # (true/false) Is the database a container database
55-
# is_racone: "false" # (true/false) Is the database a RAC ONE NODE Database
56-
# storage_type: FS # Database storage to be used. ASM or FS.
57-
# service_name: testdb_serv # Inital service to be created (not in use yet)
58-
# oracle_init_params: "open_cursors=300,processes=700" # Specific parameters to be set during installation. Comma-separated list
59-
# oracle_db_mem_percent: 20 # Amount of RAM to be used for SGA
60-
# oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
61-
# oracle_version_db: 12.1.0.2 # Oracle version
10+
11+
configure_host_disks: false
12+
host_fs_layout:
13+
u01:
14+
{mntp: /u01, device: /dev/sdb, vgname: vgora, pvname: /dev/sdb1, lvname: lvora}
6215

6316

64-
################ Create database info, feeds into dbca responsefile (via oradb-create role) ################
65-
oracle_dbf_dir_fs: "/u02/oradata/" # If storage_type=FS this is where the database is placed.
66-
oracle_reco_dir_fs: "/u01/fra/" # If storage_type=FS this is where the fast recovery area is placed.
67-
oracle_dbf_dir_asm: "+DATA" # If storage_type=ASM this is where the database is placed.
68-
oracle_reco_dir_asm: "+FRA" # If storage_type=ASM this is where the fast recovery area is placed
17+
oracle_databases: # Dictionary describing the databases to be installed
18+
- home: fsdb04 # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
19+
oracle_version_db: 11.2.0.4 # Oracle versiono
20+
oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
21+
oracle_db_name: fsdb4a # Database name
22+
oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
23+
oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
24+
is_container: "false" # (true/false) Is the database a container database
25+
pdb_prefix: pdb
26+
num_pdbs: 1
27+
is_racone: "false" # (true/false) Is the database a RAC ONE NODE Database
28+
storage_type: FS # Database storage to be used. ASM or FS.
29+
service_name: fsdb_serv # Inital service to be created (not in use yet)
30+
oracle_init_params: "open_cursors=300,processes=500" # Specific parameters to be set during installation. Comma-separated list
31+
oracle_db_mem_percent: 30 # Amount of RAM to be used for SGA
32+
oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
33+
redolog_size_in_mb: 100
34+
delete_db: true # Should the database be deleted? (Feeds into role: oradb-delete
6935

70-
################ Psu Information ################
71-
# oracle_psu_apply_db: false
72-
# oracle_psu_apply_gi: false
73-
# oracle_psu_num_gi: 18139660
74-
# oracle_psu_patch:
75-
# - p18139660_121010_Linux-x86-64.zip
76-
# oracle_ocm_rsp: ocm.rsp
77-
# oracle_opatch_patch: p6880880_121010_Linux-x86-64.zip
36+
- home: fsdb04 # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
37+
oracle_version_db: 11.2.0.4 # Oracle versiono
38+
oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
39+
oracle_db_name: fsdb4b # Database name
40+
oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
41+
oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
42+
is_container: "false" # (true/false) Is the database a container database
43+
pdb_prefix: pdb
44+
num_pdbs: 1
45+
is_racone: "false" # (true/false) Is the database a RAC ONE NODE Database
46+
storage_type: FS # Database storage to be used. ASM or FS.
47+
service_name: fsdb_serv # Inital service to be created (not in use yet)
48+
oracle_init_params: "open_cursors=300,processes=500" # Specific parameters to be set during installation. Comma-separated list
49+
oracle_db_mem_percent: 30 # Amount of RAM to be used for SGA
50+
oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
51+
redolog_size_in_mb: 100
52+
delete_db: true # Should the database be deleted? (Feeds into role: oradb-delete
53+
54+
- home: fsdb02 # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
55+
oracle_version_db: 12.1.0.2 # Oracle versiono
56+
oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
57+
oracle_db_name: fsdb02 # Database name
58+
oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
59+
oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
60+
is_container: "false" # (true/false) Is the database a container database
61+
pdb_prefix: pdb
62+
num_pdbs: 1
63+
is_racone: "false" # (true/false) Is the database a RAC ONE NODE Database
64+
storage_type: FS # Database storage to be used. ASM or FS.
65+
service_name: fsdb_serv # Inital service to be created (not in use yet)
66+
oracle_init_params: "open_cursors=300,processes=500" # Specific parameters to be set during installation. Comma-separated list
67+
oracle_db_mem_percent: 30 # Amount of RAM to be used for SGA
68+
oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
69+
redolog_size_in_mb: 100
70+
delete_db: true # Should the database be deleted? (Feeds into role: oradb-delete
7871

79-
################ Storage/FS Layout ################
80-
host_fs_layout: # Sets up filesystem on host.
81-
u01:
82-
{mntp: /u01, device: /dev/sdb, vgname: vgorasw, pvname: /dev/sdb1, lvname: lvorasw}
83-
u02:
84-
{mntp: /u02, device: /dev/sdc, vgname: vgoradb, pvname: /dev/sdc1, lvname: lvoradb}
8572

86-
87-

group_vars/oraha

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
u01:
1111
{mntp: /u01, device: /dev/sdb, vgname: vgora, pvname: /dev/sdb1, lvname: lvora}
1212

13-
device_persistency: udev
13+
device_persistence: udev
1414
oracle_asm_init_dg: crs
1515
asm_diskgroups: # ASM Diskgroups used for DB-storage. Should map to dict asm_storage_layout.
1616
- crs
@@ -37,21 +37,39 @@
3737
# - { filename: p13390677_112040_Linux-x86-64_2of7.zip, version: 11.2.0.4 }
3838

3939
oracle_databases: # Dictionary describing the databases to be installed
40-
myhomeasm: # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
41-
oracle_version_db: 12.1.0.2 # Oracle versiono
42-
oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
43-
oracle_db_name: asmdb # Database name
44-
oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
45-
oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
46-
is_container: "false" # (true/false) Is the database a container database
47-
pdb_prefix: pdb
48-
num_pdbs: 1
49-
is_racone: "false" # (true/false) Is the database a RAC ONE NODE Database
50-
storage_type: ASM # Database storage to be used. ASM or FS.
51-
service_name: asmdb_serv # Inital service to be created (not in use yet)
52-
oracle_init_params: "open_cursors=300,processes=700" # Specific parameters to be set during installation. Comma-separated list
53-
oracle_db_mem_percent: 30 # Amount of RAM to be used for SGA
54-
oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
55-
redolog_size_in_mb: 100
56-
delete_db: false # Should the database be deleted? (Feeds into role: oradb-delete
40+
- home: myhomeasm # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
41+
oracle_version_db: 12.1.0.2 # Oracle versiono
42+
oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
43+
oracle_db_name: asmdb1 # Database name
44+
oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
45+
oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
46+
is_container: "false" # (true/false) Is the database a container database
47+
pdb_prefix: pdb
48+
num_pdbs: 1
49+
is_racone: "false" # (true/false) Is the database a RAC ONE NODE Database
50+
storage_type: ASM # Database storage to be used. ASM or FS.
51+
service_name: asmdb_serv # Inital service to be created (not in use yet)
52+
oracle_init_params: "open_cursors=300,processes=700" # Specific parameters to be set during installation. Comma-separated list
53+
oracle_db_mem_percent: 30 # Amount of RAM to be used for SGA
54+
oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
55+
redolog_size_in_mb: 100
56+
delete_db: false # Should the database be deleted? (Feeds into role: oradb-delete
57+
58+
- home: myhomeasm # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
59+
oracle_version_db: 12.1.0.2 # Oracle versiono
60+
oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
61+
oracle_db_name: asmdb2 # Database name
62+
oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
63+
oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
64+
is_container: "false" # (true/false) Is the database a container database
65+
pdb_prefix: pdb
66+
num_pdbs: 1
67+
is_racone: "false" # (true/false) Is the database a RAC ONE NODE Database
68+
storage_type: ASM # Database storage to be used. ASM or FS.
69+
service_name: asmdb_serv # Inital service to be created (not in use yet)
70+
oracle_init_params: "open_cursors=300,processes=700" # Specific parameters to be set during installation. Comma-separated list
71+
oracle_db_mem_percent: 30 # Amount of RAM to be used for SGA
72+
oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
73+
redolog_size_in_mb: 100
74+
delete_db: false # Should the database be deleted? (Feeds into role: oradb-delete
5775

0 commit comments

Comments
 (0)