Skip to content

Commit eb8e522

Browse files
committed
Example config of single instance on ASM
1 parent 2a31b0d commit eb8e522

File tree

1 file changed

+42
-107
lines changed

1 file changed

+42
-107
lines changed

group_vars/oraha

Lines changed: 42 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,122 +1,57 @@
11
---
2-
################ Generic Oracle OS info ################
3-
hostgroup: oraha # 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: false # (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: true # (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: true # (true/false). Should passwordless ssh be configured between clusternodes. Only applicable to RAC-installs
17-
configure_host_disks: true # (true/false). Should the specified directories be on their on devices -> (true), or do they live in the root-filesystem (/) -> (false). Mountpoints are described in host_fs_layout
18-
configure_cluster: false
19-
20-
21-
############### Generic Directory Structures ################
22-
oracle_stage: /u01/stage # All software is staged here
23-
oracle_psu_stage: "{{ oracle_stage }}/psu" # All psu's are staged here
24-
oracle_rsp_stage: "{{ oracle_stage }}/rsp" # All responsefiles are staged here (gi,db,dbca,asmca etc).
25-
oracle_base: /u01/app/oracle # Oracle Base for installations
26-
oracle_inventory_loc: /u01/app/oraInventory # Oracle Inventory location
27-
28-
################ Grid Infrastructure specifics ################
29-
oracle_install_option_gi: HA_CONFIG # Valid (tested) values are: CRS_CONFIG, HA_CONFIG. Valid (untested) values are: UPGRADE, CRS_SWONLY)
30-
oracle_install_version_gi: 12.1.0.2 # Oracle version to be installed.
31-
oracle_home_gi: "{{ oracle_base }}/{{ oracle_install_version_gi }}/grid" # ORACLE_HOME for Grid Infrastructure
32-
# oracle_profile_name_gi: ".profile_grid" # .profile that sets up the environment for Grid Infrastructure (Cluster or Single node)
33-
oracle_cluster_name: "" # Name of the cluster when setting up Clustered Grid Infrastructure
34-
oracle_sw_image_gi: # Files containing the installation media for Grid Infrastructure
35-
- { filename: linuxamd64_12102_grid_1of2.zip, version: 12.1.0.2 }
36-
- { filename: linuxamd64_12102_grid_2of2.zip, version: 12.1.0.2 }
37-
#- { filename: linuxamd64_12c_grid_1of2.zip, version: 12.1.0.1 }
38-
#- { filename: linuxamd64_12c_grid_2of2.zip, version: 12.1.0.1 }
39-
40-
41-
42-
################ Input for Grid Infrastructure responsefile ################
43-
oracle_password: Oracle123 # Password used for all Grid Infrastructure related resources (e.g ASM)
44-
oracle_scan: orarac-scan.discworld.net # Scan address for Clustered Grid Infrastructure
45-
oracle_vip: -vip # Suffix for the host VIP-addresses (e.g orarac01-vip)
46-
oracle_scan_port: 1521 # Listener port for scan-listener
47-
oracle_ic_net: 3.3.3.{{ ansible_all_ipv4_addresses[0].split(".")[-1] }} # Picks the last octet from the public ip to use for cluster-interconnect ip (e.g 3.3.3.51)
48-
oracle_cluster_mgmdb: true # Should the Grid Infrastructure Management database be created (only valid in 12.1.0.1)
49-
oracle_asm_crs_diskgroup: crs # The diskgroup that gets created initially when creating a cluster (contains voting/ocr etc) Also valid when setting up Stand Alone Grid Infrastructure
50-
51-
52-
################ Oracle databases and general config (ORACLE_BASE/HOME etc) ################
53-
54-
oracle_sw_image_db: # Installation files for the database installations
2+
oracle_sw_source_www: http://oladmin/orasw
3+
is_sw_source_local: false
4+
role_separation: false
5+
6+
oracle_install_version_gi: 12.1.0.2
7+
8+
configure_host_disks: true
9+
host_fs_layout:
10+
u01:
11+
{mntp: /u01, device: /dev/sdb, vgname: vgora, pvname: /dev/sdb1, lvname: lvora}
12+
13+
device_persistency: udev
14+
oracle_asm_init_dg: crs
15+
asm_diskgroups: # ASM Diskgroups used for DB-storage. Should map to dict asm_storage_layout.
16+
- crs
17+
- data
18+
- fra
19+
20+
asm_storage_layout: # Mapping between device & ASMlib label. If storage_type=ASM under oracle_databases, this is where the mapping between device/asm-disk is described
21+
crs:
22+
- {device: /dev/sdc, asmlabel: crs01}
23+
data:
24+
- {device: /dev/sdd, asmlabel: data01}
25+
fra:
26+
- {device: /dev/sde, asmlabel: fra01 }
27+
28+
oracle_dbf_dir_asm: "DATA" # If storage_type=ASM this is where the database is placed.
29+
oracle_reco_dir_asm: "FRA" # If storage_type=ASM this is where the fast recovery area is placed
30+
31+
oracle_sw_image_db:
5532
- { filename: linuxamd64_12102_database_1of2.zip, version: 12.1.0.2 }
5633
- { filename: linuxamd64_12102_database_2of2.zip, version: 12.1.0.2 }
5734
# - { filename: linuxamd64_12c_database_1of2.zip, version: 12.1.0.1 }
5835
# - { filename: linuxamd64_12c_database_2of2.zip, version: 12.1.0.1 }
36+
# - { filename: p13390677_112040_Linux-x86-64_1of7.zip, version: 11.2.0.4 }
37+
# - { filename: p13390677_112040_Linux-x86-64_2of7.zip, version: 11.2.0.4 }
5938

60-
oracle_databases: # Dictionary describing the databases to be installed
61-
hadb1: # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
39+
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
6242
oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
63-
oracle_db_name: hadb1 # Database name
43+
oracle_db_name: asmdb # Database name
6444
oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
6545
oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
6646
is_container: "false" # (true/false) Is the database a container database
47+
pdb_prefix: pdb
48+
num_pdbs: 1
6749
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: hadb_serv # Inital service to be created (not in use yet)
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)
7052
oracle_init_params: "open_cursors=300,processes=700" # Specific parameters to be set during installation. Comma-separated list
7153
oracle_db_mem_percent: 30 # Amount of RAM to be used for SGA
7254
oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
73-
oracle_version_db: 12.1.0.2 # Oracle version
74-
# hadb2:
75-
# oracle_edition: EE
76-
# oracle_db_name: hadb2
77-
# oracle_db_passwd: Oracle123
78-
# oracle_db_type: SI
79-
# is_container: "false"
80-
# is_racone: "false"
81-
# storage_type: ASM
82-
# service_name: hadb2_serv
83-
# oracle_init_params: "open_cursors=1000,processes=400"
84-
# oracle_db_mem_percent: 20
85-
# oracle_database_type: MULTIPURPOSE
86-
# oracle_version_db: 12.1.0.2
87-
88-
89-
################ Create database info, feeds into dbca responsefile (via oradb-create role) ################
90-
oracle_dbf_dir_fs: "/u01/oradata/" # If storage_type=FS this is where the database is placed.
91-
oracle_reco_dir_fs: "/u01/fra/" # If storage_type=FS this is where the fast recovery area is placed.
92-
oracle_dbf_dir_asm: "+DATA" # If storage_type=ASM this is where the database is placed.
93-
oracle_reco_dir_asm: "+FRA" # If storage_type=ASM this is where the fast recovery area is placed
94-
95-
################ Psu Information ################
96-
# oracle_psu_apply_db: false
97-
# oracle_psu_apply_gi: false
98-
# oracle_psu_num_gi: 18139660
99-
# oracle_psu_patch:
100-
# - p18139660_121010_Linux-x86-64.zip
101-
# oracle_ocm_rsp: ocm.rsp
102-
# oracle_opatch_patch: p6880880_121010_Linux-x86-64.zip
103-
104-
################ Storage/FS Layout ################
105-
host_fs_layout: # Sets up filesystem on host. If storage_type=FS under oracle_databases, this is where the mapping between device/fs is described
106-
u01:
107-
{mntp: /u01, device: /dev/sdb, vgname: vgora, pvname: /dev/sdb1, lvname: lvora}
108-
109-
asm_diskgroups: # ASM Diskgroups used for DB-storage. Should map to dict asm_storage_layout.
110-
- crs
111-
- data
112-
- fra
55+
redolog_size_in_mb: 100
56+
delete_db: false # Should the database be deleted? (Feeds into role: oradb-delete
11357

114-
asm_storage_layout: # Mapping between device & ASMlib label. If storage_type=ASM under oracle_databases, this is where the mapping between device/asm-disk is described
115-
crs:
116-
- {device: /dev/sdc, asmlabel: CRS01}
117-
data:
118-
- {device: /dev/sdd, asmlabel: DATA01}
119-
fra:
120-
- {device: /dev/sde, asmlabel: FRA01}
121-
122-

0 commit comments

Comments
 (0)