├── LICENSE ├── README.md ├── Vagrantfile ├── ansible.cfg ├── group_vars └── dbserver ├── host_vars ├── dbserver1 └── dbserver2 ├── oracle-db.yml ├── roles ├── disk_layout │ ├── defaults │ │ └── main.yml │ └── tasks │ │ └── main.yml ├── linux_oracle │ ├── tasks │ │ └── main.yml │ ├── templates │ │ └── logindconf.j2 │ └── vars │ │ └── main.yml ├── oracle_db_create │ ├── files │ │ ├── huge_pages_settings.sh │ │ └── start-pluggable-dbs.sh │ ├── handlers │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ └── templates │ │ ├── dbca.rsp.j2 │ │ ├── netca.rsp.j2 │ │ ├── oracle_profile.j2 │ │ └── oradb_service.j2 └── oracle_sw_install │ ├── tasks │ └── main.yml │ ├── templates │ └── db_install.rsp.j2 │ └── vars │ └── main.yml └── secrets.yml /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 nkadbi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # oracle-db-12c-vagrant-ansible 2 | Start using Vagrant and Ansible to get your Oracle Infrastructure up an running, CentOS 7.2, Oracle 12c 3 | ## Description: 4 | This projects includes an example Vagrantfile and Ansible playbook to setup two 5 | Virtual servers with CentOS 7.2 6 | 7 | Oracle Database 12.1.0.2 8 | 9 | - dbserver1 | IP 192.168.56.31 | DB1 | single-tenant | with additional disks a 8GB: dbserver1_disk_a.vdi,dbserver1_disk_b.vdi 10 | - dbserver2 | IP 192.168.56.32 | DB2 | CDB with PDB | with additional disks a 8GB: dbserver1_disk_a.vdi,dbserver1_disk_b.vdi 11 | 12 | 13 | ## Requirements 14 | Oracle VirtualBox 15 | 16 | Ansible 2.2.0.0, 17 | 18 | Vagrant 1.8.5 with plugin hostmanager [ vagrant plugin install vagrant-hostmanager ] 19 | 20 | Network Connection 21 | 22 | Space Requirements: 23 | 10 GB (including virtual disks and 2.6 GB for Oracle Binaries ) 24 | 25 | Tested on LAPTOP with 16 GB RAM, LINUX Kernel 4.4.0-57, SSD Disks, OracleVirtualBox 5.1.12, vagrant 1.8.5, ansible 2.2.0.0 26 | 27 | → takes about 20 minutes to bring up 2 virtual servers with installed DB 28 | 29 | More Details in my blog: Part 1 http://blog.dbi-services.com/vagrant-up-get-your-oracle-infrastructure-up-and-running/ 30 | and Part 2 http://blog.dbi-services.com/part2-vagrant-up-get-your-oracle-infrastructure-up-an-running/ 31 | 32 | ## USAGE 33 | checkout from github 34 | ```ruby 35 | git clone https://github.com/nkadbi/oracle-db-12c-vagrant-ansible 36 | ``` 37 | 38 | The Git Repository does not include the Oracle Software 39 | please copy Oracle software files into the download folder 40 | ```ruby 41 | linuxamd64_12102_database_1of2.zip 42 | linuxamd64_12102_database_2of2.zip 43 | ``` 44 | ## Custom variables 45 | you can adapt variables for your needs. 46 | 47 | General Variables for all Servers Containing Oracle Database 48 | ```ruby 49 | group_vars/dbserver 50 | ``` 51 | Varaibles specified for one server, including database name, characterset etc. 52 | These variables are used in response file to create database with dbca 53 | ```ruby 54 | host_vars/dbserver1, 55 | host_vars/dbserver2 56 | ``` 57 | ## start provisioning 58 | ```ruby 59 | vagrant up 60 | ``` 61 | connect to virtual server dbserver1 62 | ```ruby 63 | vagrant ssh dbserver1 64 | su - oracle (password welcome1) 65 | ``` 66 | 67 | 68 | ## Cleanup 69 | Delete VM’s and virtual disks 70 | go to directory my-ora-ansible-proj 71 | ```ruby 72 | vagrant destroy 73 | ``` 74 | 75 | ## Main Configutaion files 76 | 77 | ### Vagrantfile – used to configure setup of virtual servers with vagrant 78 | ```ruby 79 | ... 80 | using vm.box = "boxcutter/centos72" 81 | plungin hostmanger used: config.hostmanager.enabled = true 82 | # Use the same insecure key provided from box for each machine , !!! do not use for production !!!! 83 | config.ssh.insert_key = false 84 | ... 85 | ``` 86 | 87 | #### Ansible Playbook 88 | 89 | my-ora-ansible-proj with Roles: 90 | 91 | - disk_layout -> Partitioning and Filesystem Creation 92 | 93 | - linux_oracle -> Prepare Linux Server for Oracle Installation 94 | 95 | - oracle_sw_install -> install Oracle Home , template to create response file: db_install.rsp.j2 96 | 97 | - oracle_db_create -> creates database from seed template, creates listener, create oracle service 98 | -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi : set ft=ruby : 3 | 4 | Vagrant.configure(2) do |config| 5 | 6 | config.ssh.insert_key = false # Use the same insecure key provided from box for each machine 7 | config.vm.box = "boxcutter/centos72" 8 | config.vm.box_check_update = false # do not check for updates ( not recommended , just for demo ) 9 | config.vm.boot_timeout = 700 10 | config.hostmanager.enabled = true 11 | config.hostmanager.ignore_private_ip = false 12 | 13 | N = 2 14 | (1..N).each do |i| # do for each server i 15 | config.vm.define "dbserver#{i}" do |config| # do on node i 16 | config.vm.hostname = "dbserver#{i}" 17 | puts " dbserver#{i} " 18 | config.vm.network "private_network", ip: "192.168.56.3#{i}" 19 | config.vm.provider "virtualbox" do |v| # virtual box configuration 20 | v.memory = "3072" 21 | v.cpus = 2 22 | if ! File.exist?("dbserver#{i}_disk_a.vdi") # create disks only once 23 | v.customize ['createhd', '--filename', "dbserver#{i}_disk_a.vdi", '--size', 8192 ] 24 | v.customize ['createhd', '--filename', "dbserver#{i}_disk_b.vdi", '--size', 8192 ] 25 | v.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', "dbserver#{i}_disk_a.vdi"] 26 | v.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 2, '--device', 0, '--type', 'hdd', '--medium', "dbserver#{i}_disk_b.vdi"] 27 | end # create disks only once 28 | end # end virtual box configuration 29 | 30 | # Vagrant is designed for serial execution for multiple machines 31 | # if you want to take advantage from ansible parallel execution 32 | # look at www.vagrantup.com/docs/provisioning/ansible.html 33 | # we start provisioning only when all servers are up (i=N) 34 | if i == N 35 | config.vm.provision "ansible" do |ansible| # vm.provisioning 36 | #ansible.verbose = "v" 37 | ansible.playbook = "oracle-db.yml" 38 | ansible.groups = { "dbserver" => ["dbserver1","dbserver2"] } 39 | ansible.limit = 'all' 40 | end # end vm.provisioning 41 | end # end if 42 | 43 | end # do on node i 44 | end # for each server i 45 | 46 | end # end Vagrant.configure(2) 47 | -------------------------------------------------------------------------------- /ansible.cfg: -------------------------------------------------------------------------------- 1 | [defaults] 2 | nocows=1 3 | hostfile = .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory 4 | host_key_checking = False 5 | -------------------------------------------------------------------------------- /group_vars/dbserver: -------------------------------------------------------------------------------- 1 | selinux_mode: permissive # please chose: | disabled | permissive | enforcing 2 | 3 | oracle_user: oracle 4 | oracle_install_group: oinstall 5 | extra_groups: 6 | - dba 7 | 8 | oracle_base: /u01/app/oracle 9 | oracle_data: /u02/oradata 10 | oracle_fra: /u98/fra 11 | 12 | # adding additional disks -> look in Vagrantfile 13 | # list of oracle directories which will be created in role/linux_oracle 14 | oracle_directories: 15 | - "{{ oracle_base }}" 16 | - "{{ oracle_data }}" 17 | - "{{ oracle_fra }}" 18 | 19 | 20 | # You have to provide the ORACLE SOFTWARE zip files in my-ora-ansible-proj 21 | installer_archives: 22 | - 'linuxamd64_12102_database_1of2.zip' 23 | - 'linuxamd64_12102_database_2of2.zip' 24 | 25 | installation_folder: '{{ oracle_base}}/installation' 26 | 27 | # ORACLE_HOMES Naming Convention 28 | #example for CDB ORACLE_HOME to be able to unplug from ORACLE_HOME 12.1.0.1.1-> plug to ORACLE_HOME 12.1.0.1.2: 29 | # /u01/app/oracle/product/12.1.0/db_1_2: Oracle home directories for Oracle Database 12.1.0.1.2 30 | # /u01/app/oracle/product/12.1.0/db_2_1: Oracle home directories for Oracle Database 12.1.0.2.1 31 | db_release: '12.1.0' 32 | dbhome_name: 'db_2_1' 33 | oracle_home: '{{ oracle_base }}/product/{{ db_release }}/{{ dbhome_name }}' 34 | 35 | 36 | oracle_edition: 'EE' 37 | oracle_dba_group: dba 38 | oracle_oper_group: dba 39 | 40 | 41 | -------------------------------------------------------------------------------- /host_vars/dbserver1: -------------------------------------------------------------------------------- 1 | oracle_database_type: 'GENERAL_PURPOSE' 2 | oracle_globalname: 'db1.private' 3 | oracle_sid: 'db1' 4 | create_container_database: 'false' 5 | number_of_pdbs: '0' 6 | oracle_conf_as_container_db: 'false' 7 | pdb_prefix: 'pdb' 8 | oracle_pdb_name: 'pdb' 9 | oracle_charset: 'AL32UTF8' 10 | oracle_memory_option: 'false' 11 | # memory target 12 | oracle_memory_mb: 1536 13 | oracle_install_samples: 'false' 14 | oracle_management_option: 'DEFAULT' 15 | oracle_enable_recovery: 'true' 16 | oracle_storage_type: 'FILE_SYSTEM_STORAGE' 17 | oracle_dataloc: '{{ oracle_data }}' 18 | oracle_recoveryloc: '{{ oracle_fra }}' 19 | oracle_decline_security_updates: 'true' 20 | 21 | # Initial Value for Hugepages will be adjusted with running DB 22 | hugepages_nr: 578 23 | -------------------------------------------------------------------------------- /host_vars/dbserver2: -------------------------------------------------------------------------------- 1 | oracle_database_type: 'GENERAL_PURPOSE' 2 | oracle_globalname: 'db2.private' 3 | oracle_sid: 'db2' 4 | create_container_database: 'true' 5 | number_of_pdbs: '1' 6 | oracle_conf_as_container_db: 'true' 7 | pdb_prefix: 'pdb' 8 | oracle_pdb_name: 'pdb1' 9 | oracle_charset: 'AL32UTF8' 10 | oracle_memory_option: 'false' 11 | # memory target 12 | oracle_memory_mb: 1536 13 | oracle_install_samples: 'false' 14 | oracle_management_option: 'DEFAULT' 15 | oracle_enable_recovery: 'true' 16 | oracle_storage_type: 'FILE_SYSTEM_STORAGE' 17 | oracle_dataloc: '{{ oracle_data }}' 18 | oracle_recoveryloc: '{{ oracle_fra }}' 19 | oracle_decline_security_updates: 'true' 20 | 21 | hugepages_nr: 578 22 | -------------------------------------------------------------------------------- /oracle-db.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Configure Oracle Linux 7 with Oracle Database 12c 3 | hosts: dbserver 4 | become: True 5 | vars_files: 6 | # User Passwords hashed are stored here: 7 | - secrets.yml 8 | 9 | roles: 10 | - role: disk_layout 11 | - role: linux_oracle 12 | - role: oracle_sw_install 13 | become_user: '{{ oracle_user }}' 14 | - role: oracle_db_create 15 | become_user: '{{ oracle_user }}' 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /roles/disk_layout/defaults/main.yml: -------------------------------------------------------------------------------- 1 | disks: # Sets up filesystem on host. 2 | u02: 3 | {mntp: /u02, device: /dev/sdb, vgname: vg_ora2, pvname: /dev/sdb1, lvname: lv_ora2, fstype: ext4} 4 | u98: 5 | {mntp: /u98, device: /dev/sdc, vgname: vg_ora98, pvname: /dev/sdc1, lvname: lv_ora98, fstype: ext4} 6 | 7 | -------------------------------------------------------------------------------- /roles/disk_layout/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: filesystem | Create partition and pv 3 | ignore_errors: True 4 | shell: parted -a optimal {{ item.value.device }} "mklabel gpt mkpart primary 1 -1"; pvcreate {{ item.value.pvname }} 5 | args: 6 | creates: "{{ item.value.pvname }}" 7 | with_dict: " {{ disks }} " 8 | tags: hostfs 9 | 10 | - name: filesystem | Create vg 11 | ignore_errors: True 12 | lvg: vg={{ item.value.vgname }} pvs={{ item.value.pvname }} state=present 13 | with_dict: " {{ disks }} " 14 | tags: hostfs 15 | 16 | 17 | - name: filesystem | create lv 18 | ignore_errors: True 19 | lvol: vg={{ item.value.vgname }} lv={{ item.value.lvname }} size=100%FREE state=present shrink=no 20 | with_dict: " {{ disks }} " 21 | tags: hostfs 22 | 23 | - name: filesystem | create fs 24 | ignore_errors: True 25 | filesystem: fstype={{ item.value.fstype }} dev=/dev/{{ item.value.vgname }}/{{ item.value.lvname }} 26 | with_dict: " {{ disks }} " 27 | tags: hostfs 28 | 29 | - name: filesytem | mount dir 30 | mount: name={{ item.value.mntp }} src=/dev/{{ item.value.vgname }}/{{ item.value.lvname }} dump=0 passno=0 fstype={{ item.value.fstype }} state=mounted opts=rw,noatime 31 | with_dict: " {{ disks }} " 32 | tags: hostfs 33 | 34 | -------------------------------------------------------------------------------- /roles/linux_oracle/tasks/main.yml: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # ==> Task Required for Configure Linux to host Oracle Database 12c 3 | # ==> Supports version 12.1.0.2 4 | ################################################################################ 5 | 6 | # ==> Configure Linux 7 | - name: Install required packages 8 | yum: name={{ item }} state=present 9 | with_items: "{{ packages_list }}" 10 | tags: packages 11 | 12 | - name: disable SELinux 13 | selinux: state="{{ selinux_mode }}" 14 | when: selinux_mode == "disabled" 15 | tags: selinux 16 | 17 | - name: enable SELinux with policy targeted 18 | selinux: policy=targeted state="{{ selinux_mode }}" 19 | when: selinux_mode != "disabled" 20 | tags: selinux 21 | 22 | 23 | - name: Disable Firewall Deamon (firewalld) 24 | service: name=firewalld state=stopped enabled=no 25 | 26 | - name: enable chrony service 27 | service: name=chronyd state=restarted enabled=yes 28 | tags: chrony 29 | 30 | - name: enable Oracle tuned profile 31 | command: "tuned-adm profile oracle" 32 | tags: oracle_tuned 33 | 34 | - name: ensure tuned service is restarted and enabled 35 | service: name=tuned.service state=restarted enabled=yes 36 | tags: oracle_tuned 37 | 38 | - name: configure systemd-logind with RemoveIPC=no 39 | template: backup=yes src=logindconf.j2 dest=/etc/systemd/logind.conf 40 | tags: no_remove_ipc 41 | 42 | - name: ensure logind service is restarted and enable 43 | service: name=systemd-logind state=restarted enabled=yes 44 | 45 | - name: Create oinstall group 46 | group: name={{ oracle_install_group }} state=present 47 | 48 | - name: add additional groups if needed for role separation 49 | group: name={{ item }} state=present 50 | with_items: "{{ extra_groups }}" 51 | 52 | - name: Create oracle user 53 | user: name={{ oracle_user }} group={{ oracle_install_group }} password={{ oracle_os_user_pass }} 54 | 55 | - name: Add additional groups to oracle_user 56 | user: name={{ oracle_user }} groups={{ item }} append=yes 57 | with_items: "{{ extra_groups }}" 58 | 59 | - name: file /etc/security/limits.d/99-oracle-limits.conf 60 | file: path=/etc/security/limits.d/99-oracle-limits.conf state=touch mode=600 61 | 62 | - name: Set oracle user limits 63 | lineinfile: "dest=/etc/security/limits.d/99-oracle-limits.conf line='{{ oracle_user }} {{ item.limit }} {{ item.type}} {{ item.value }}'" 64 | with_items: 65 | - { limit: 'soft', type: nofile, value: '{{ soft_no_file }}' } 66 | - { limit: 'hard', type: nofile, value: '{{ hard_no_file }}' } 67 | - { limit: 'soft', type: nproc, value: '{{ soft_nproc }}' } 68 | - { limit: 'hard', type: nproc, value: '{{ hard_nproc }}' } 69 | - { limit: 'soft', type: stack, value: '{{ soft_stack }}' } 70 | - { limit: 'hard', type: stack, value: '{{ hard_stack }}' } 71 | - { limit: 'soft', type: memlock, value: '{{ soft_memlock }}' } 72 | - { limit: 'hard', type: memlock, value: '{{ hard_memlock }}' } 73 | 74 | 75 | - name: Create Oracle directory 76 | with_items: "{{ oracle_directories }}" 77 | file: "state=directory path={{ item }} owner={{ oracle_user }} group={{ oracle_install_group }}" 78 | 79 | - name: Create TNS Admin directory outside ORACLE_HOME 80 | file: "state=directory path={{ oracle_base }}/network/admin owner={{ oracle_user }} group={{ oracle_install_group }}" 81 | 82 | 83 | - name: Disable Transparent Hugepages (runtime) 84 | shell: if test -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabled; fi; 85 | tags: hugepages 86 | 87 | - name: configure kernel for hugepages 88 | sysctl: name="vm.nr_hugepages" value="{{ hugepages_nr }}" state=present 89 | tags: 90 | - hugepages 91 | 92 | -------------------------------------------------------------------------------- /roles/linux_oracle/templates/logindconf.j2: -------------------------------------------------------------------------------- 1 | RemoveIPC=no 2 | -------------------------------------------------------------------------------- /roles/linux_oracle/vars/main.yml: -------------------------------------------------------------------------------- 1 | packages_list: 2 | - "@base" 3 | - "@core" 4 | - binutils 5 | - compat-libcap1 6 | - compat-libstdc++-33 7 | - gcc 8 | - gcc-c++ 9 | - glibc 10 | - glibc-devel 11 | - ksh 12 | - libgcc 13 | - libstdc++ 14 | - libstdc++-devel 15 | - libaio 16 | - libaio-devel 17 | - libXext 18 | - libXtst 19 | - libX11 20 | - libXau 21 | - libxcb 22 | - libXi 23 | - make 24 | - sysstat 25 | - libXmu 26 | - libXt 27 | - libXv 28 | - libXxf86misc 29 | - libXxf86vm 30 | - nfs-utils 31 | - unzip 32 | - tuned-profiles-oracle 33 | # - xorg-x11-utils 34 | # - xorg-x11-xauth 35 | 36 | kernel_params: 37 | # System default settings live in /usr/lib/sysctl.d/00-system.conf. 38 | # To override those settings, enter new settings here, or in an /etc/sysctl.d/.conf file 39 | # For more information, see sysctl.conf(5) and sysctl.d(5). 40 | vm.swappiness: 10 41 | vm.dirty_background_ratio: 3 42 | vm.dirty_ratio: 80 43 | vm.dirty_expire_centisecs: 500 44 | vm.dirty_writeback_centisecs: 100 45 | # If intending to set SGA_MAX_SIZE to a value larger than 4 GB, set SHMMAX to a size 46 | # in bytes larger than the SGA_MAX_SIZE. If in doubt on how to properly set SHMMAX , a value of 47 | # 4398046511104 (4 TB) can be used. 48 | kernel.shmmax: 4398046511104 49 | # shmall is the maximum of total ammount of shared memory pages ; shmall = shmmax / PAGE_SIZE 50 | kernel.shmall: 1073741824 51 | # shmmni is the maximum total amount of shared memory segments 52 | kernel.shmmni: 4096 53 | kernel.sem: 250 32000 100 128 54 | # fs.file-max needs to be set to at least 6815744 for Oracle Installation. 55 | fs.file-max: 6815744 56 | fs.aio-max-nr: 1048576 57 | net.ipv4.ip_local_port_range: 9000 65500 58 | net.core.rmem_default: 262144 59 | net.core.rmem_max: 4194304 60 | net.core.wmem_default: 262144 61 | net.core.wmem_max: 1048576 62 | kernel.panic_on_oops: 1 63 | 64 | # Oracle user limits 65 | soft_nproc: 2047 66 | hard_nproc: 16384 67 | soft_no_file: 1024 68 | hard_no_file: 65536 69 | soft_stack: 10240 70 | hard_stack: 32768 71 | soft_memlock: 1887437 72 | hard_memlock: 1887437 73 | 74 | 75 | -------------------------------------------------------------------------------- /roles/oracle_db_create/files/huge_pages_settings.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # give oracle some time to start.... 3 | sleep 10 4 | UNIT=`grep Hugepagesize /proc/meminfo | awk '{print $3}'` 5 | # Find out the HugePage size 6 | HPG_SZ=`grep Hugepagesize /proc/meminfo | awk '{print $2}'` 7 | # Start from 1 pages to be on the safe side and guarantee 1 free HugePage 8 | NUM_PG=1 9 | # Cumulative number of pages required to handle the running shared memory segments 10 | for SEG_BYTES in `ipcs -m | awk '{print $5}' | grep "[0-9][0-9]*"` 11 | do 12 | MIN_PG=`echo "$SEG_BYTES/($HPG_SZ*1024)" | bc -q` 13 | if [ $MIN_PG -gt 0 ]; then 14 | NUM_PG=`echo "$NUM_PG+$MIN_PG+1" | bc -q` 15 | fi 16 | done 17 | # Finish with results 18 | case $UNIT in 19 | 'kB') MEM_LOCK=`echo "$NUM_PG*$HPG_SZ" | bc -q`; 20 | #echo "Recommended setting within the kernel boot command line: hugepages = $NUM_PG" 21 | echo "$NUM_PG" 22 | echo "oracle soft memlock $MEM_LOCK" >> /etc/security/limits.d/99-oracle-limits.conf 23 | echo "oracle hard memlock $MEM_LOCK" >> /etc/security/limits.d/99-oracle-limits.conf ;; 24 | *) echo "expecting Hugepagesize from /proc/meminfo in kB got $UNIT, please adapt script Exiting." ;; 25 | esac 26 | 27 | -------------------------------------------------------------------------------- /roles/oracle_db_create/files/start-pluggable-dbs.sh: -------------------------------------------------------------------------------- 1 | . ~/.bash_profile 2 | sqlplus / as sysdba << EOF 3 | CREATE OR REPLACE TRIGGER startup_pluggable_dbs 4 | AFTER STARTUP ON DATABASE 5 | BEGIN 6 | EXECUTE IMMEDIATE 'alter pluggable database all open'; 7 | END; 8 | / 9 | EOF 10 | -------------------------------------------------------------------------------- /roles/oracle_db_create/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: activate grub-config 3 | become_user: root 4 | shell: 'grub2-mkconfig -o /boot/grub2/grub.cfg' 5 | 6 | - name: reload systemd # -> to be tested in future : ansible version 2.2. has a new core module systemd 7 | become_user: root 8 | command: systemctl daemon-reload 9 | 10 | - name: enable dbora.service 11 | become_user: root 12 | command: systemctl enable dbora.service 13 | 14 | - name: check_pmon 15 | shell: "ps -ef |grep pmon |grep -v grep | wc -l" 16 | tags: 17 | - check_pmon 18 | register: psout 19 | ignore_errors: true 20 | 21 | - name: debug_pmon 22 | debug: msg=" count pmon processes is '{{ psout.stdout }}' " 23 | 24 | -------------------------------------------------------------------------------- /roles/oracle_db_create/tasks/main.yml: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # ==> Tasks for oracle_db_create role. This role installs the Oracle Database 3 | ################################################################################ 4 | 5 | # Skip db create tasks if SID found in /etc/oratab 6 | - name: Check if database already in oratab 7 | shell: grep "{{ oracle_sid }}:" /etc/oratab | wc -l 8 | ignore_errors: True 9 | register: check_db_already_exist 10 | 11 | #- debug: msg="check_db_already_exist.stdout is {{ check_db_already_exist.stdout }} " 12 | 13 | - name: copy listener response file 14 | template: src=netca.rsp.j2 dest={{ installation_folder }}/netca.rsp 15 | 16 | - name: Create listener using netca 17 | command: "{{ oracle_home }}/bin/netca -silent -responseFile {{ installation_folder }}/netca.rsp" 18 | 19 | - name: copy response file for dbca 20 | template: src=dbca.rsp.j2 dest={{ installation_folder }}/dbca.rsp 21 | when: check_db_already_exist.stdout == "0" 22 | 23 | - name: create database via dbca 24 | command: "{{ oracle_home }}/bin/dbca -silent -createDatabase -responseFile {{ installation_folder }}/dbca.rsp" 25 | when: check_db_already_exist.stdout == "0" 26 | register: created_db 27 | 28 | - name: change oratab to :Y 29 | lineinfile: state=present dest=/etc/oratab regexp='^{{ oracle_sid }}:{{ oracle_home }}:(\w(?!Y))' line='{{ oracle_sid }}:{{ oracle_home }}:Y' 30 | become_user: root 31 | tags: oratab=y 32 | 33 | - name: if dbi Database Management Kit is not installed adapt minimal environment profile # http://www.dbi-services.com/offering/products/database-management-kit-dmk/ 34 | template: src=oracle_profile.j2 dest="~/.bash_profile" owner={{ oracle_user }} group={{ oracle_install_group }} mode=775 backup=yes 35 | tags: dmk 36 | 37 | - name: Copy script to create trigger for autostart pluggable db's 38 | copy: src=start-pluggable-dbs.sh dest={{ installation_folder }}/ mode=755 39 | tags: 40 | - start-pluggable 41 | 42 | - name: Create startup trigger to start PDBs with CDB 43 | shell: "{{ installation_folder }}/start-pluggable-dbs.sh {{ oracle_sid }}" 44 | when: create_container_database == "true" and number_of_pdbs > 0 45 | tags: 46 | - start-pluggable 47 | 48 | - name: copy systemd ora service template into /etc/systemd/system/dbora.service 49 | template: src=oradb_service.j2 dest=/etc/systemd/system/dbora.service mode=664 50 | become_user: root 51 | tags: dbora.service 52 | notify: 53 | - reload systemd 54 | - enable dbora.service 55 | 56 | - name: stop dbora.service 57 | become_user: root 58 | command: systemctl stop dbora.service 59 | tags: stop dbora.service 60 | notify: 61 | - check_pmon 62 | - debug_pmon 63 | 64 | # TNS_ADMIN FILES 65 | - name: check listener.ora in TNS_ADMIN 66 | stat: path="{{ oracle_home }}/network/admin/listener.ora" 67 | register: listener_ora 68 | tags: tns_admin 69 | 70 | - debug: 71 | msg: "Path exists and is a symlink {{ oracle_home }}/network/admin/listener.ora" 72 | when: listener_ora.stat.islnk is defined and listener_ora.stat.islnk 73 | tags: tns_admin 74 | 75 | - debug: 76 | msg: "Path exists and isn't a symlink {{ oracle_home }}/network/admin/listener.ora" 77 | when: listener_ora.stat.islnk is defined and listener_ora.stat.islnk == False 78 | tags: tns_admin 79 | 80 | - name: move Network Files to TNS_ADMIN directory 81 | shell: "mv {{ oracle_home }}/network/admin/listener.ora {{ oracle_base }}/network/admin" 82 | when: listener_ora.stat.islnk is defined and listener_ora.stat.islnk == False 83 | tags: tns_admin 84 | 85 | - name: create symlink for listener.ora 86 | file: state=link src="{{ oracle_base }}/network/admin/listener.ora" dest="{{ oracle_home }}/network/admin/listener.ora" 87 | tags: tns_admin 88 | when: listener_ora.stat.islnk is defined and listener_ora.stat.islnk == False 89 | ignore_errors: True 90 | 91 | - name: check sqlnet.ora in TNS_ADMIN 92 | stat: path="{{ oracle_home }}/network/admin/sqlnet.ora" 93 | register: sqlnet 94 | tags: tns_admin 95 | 96 | - debug: 97 | msg: "Path exists and is a symlink {{ oracle_home }}/network/admin/sqlnet.ora" 98 | when: sqlnet.stat.islnk is defined and sqlnet.stat.islnk 99 | tags: tns_admin 100 | 101 | - debug: 102 | msg: "Path exists and isn't a symlink {{ oracle_home }}/network/admin/sqlnet.ora" 103 | when: sqlnet.stat.islnk is defined and sqlnet.stat.islnk == False 104 | tags: tns_admin 105 | 106 | - name: move Network Files to TNS_ADMIN directory 107 | shell: "mv {{ oracle_home }}/network/admin/sqlnet.ora {{ oracle_base }}/network/admin" 108 | when: sqlnet.stat.islnk is defined and sqlnet.stat.islnk == False 109 | tags: tns_admin 110 | 111 | - name: create symlink for sqlnet.ora 112 | file: state=link src="{{ oracle_base }}/network/admin/sqlnet.ora" dest="{{ oracle_home }}/network/admin/sqlnet.ora" 113 | tags: tns_admin 114 | when: sqlnet.stat.islnk is defined and sqlnet.stat.islnk == False 115 | 116 | #--- 117 | - name: check link to spfile in $ORACLE_BASE/admin/ exists 118 | stat: path="{{ oracle_home }}/dbs/spfile{{ oracle_sid }}.ora" 119 | register: spfile 120 | tags: dbs_links 121 | 122 | - name: move $ORACLE_HOME/dbs/spfile.ora files to $ORACLE_BASE/admin//pfile 123 | shell: "mv {{ oracle_home }}/dbs/spfile{{ oracle_sid }}.ora {{ oracle_base }}/admin/{{ oracle_sid }}/pfile" 124 | tags: dbs_links 125 | when: spfile.stat.islnk is defined and spfile.stat.islnk == False 126 | 127 | - name: create symlink for spfile.ora 128 | file: state=link src="{{ oracle_base }}/admin/{{ oracle_sid }}/pfile/spfile{{ oracle_sid }}.ora" dest="{{ oracle_home }}/dbs/spfile{{ oracle_sid }}.ora" 129 | when: spfile.stat.islnk is defined and spfile.stat.islnk == False 130 | tags: dbs_links 131 | 132 | - name: check link to passwordfile in $ORACLE_BASE/admin/ exists 133 | stat: path="{{ oracle_home }}/dbs/orapw{{ oracle_sid }}" 134 | register: pwfile 135 | tags: dbs_links 136 | 137 | - name: move passwordfile into $ORACLE_BASE/admin/ 138 | shell: ' mv {{ oracle_home }}/dbs/orapw{{ oracle_sid }} {{ oracle_base }}/admin/{{ oracle_sid }}/pfile' 139 | tags: dbs_links 140 | when: pwfile.stat.islnk is defined and pwfile.stat.islnk == False 141 | 142 | - name: create symlink for passwordfile 143 | file: state=link src="{{ oracle_base }}/admin/{{ oracle_sid }}/pfile/orapw{{ oracle_sid }}" dest="{{ oracle_home }}/dbs/orapw{{ oracle_sid }}" 144 | when: pwfile.stat.islnk is defined and pwfile.stat.islnk == False 145 | tags: dbs_links 146 | 147 | - name: start dbora.service 148 | become_user: root 149 | command: systemctl start dbora.service 150 | tags: start dbora.service 151 | notify: 152 | - check_pmon 153 | - debug_pmon 154 | 155 | 156 | - name: copy hugepages.sh script 157 | copy: src=huge_pages_settings.sh dest={{ installation_folder }}/ mode=755 158 | tags: hugepages 159 | 160 | - name: run hugepages.sh with running db to get best values for hugepages and memlock 161 | shell: '{{ installation_folder}}/huge_pages_settings.sh ' 162 | become_user: root 163 | register: hugepages_from_script 164 | notify: 165 | - check_pmon 166 | - debug_pmon 167 | tags: hugepages 168 | 169 | - name: get actual hugepages 170 | shell: " cat /proc/meminfo | grep -i hugepages_total | awk ' { print $2 } ' " 171 | register: hugepages_actual 172 | tags: hugepages 173 | 174 | - name: show optimized parameter for hugepages 175 | debug: msg="'{{ hugepages_from_script.stdout }} is the optimized value, actual found {{ hugepages_actual.stdout }}, be sure to check while DBs are db running '" 176 | tags: hugepages 177 | when: ' "{{ hugepages_actual.stdout }}" != " {{ hugepages_from_script.stdout }}" ' 178 | 179 | # ==> disable transparent hugepages and set value for hugepage persistently across reboots in /etc/default/grub 180 | #regexp test tool => https://regex101.com/ 181 | - name: configure startup with hugepages and transparent hugepages off in grub 182 | become_user: root 183 | lineinfile: dest=/etc/default/grub 184 | backup=True 185 | backrefs=True 186 | state=present 187 | regexp='(^GRUB_CMDLINE_LINUX="(?!numa=off transparent_hugepage=never hugepages=\d+))([\s\S]+"$)' 188 | line='\1numa=off transparent_hugepage=never hugepages={{ hugepages_from_script.stdout }} \2' 189 | tags: hugepages 190 | notify: activate grub-config 191 | 192 | -------------------------------------------------------------------------------- /roles/oracle_db_create/templates/dbca.rsp.j2: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | ## ## 3 | ## DBCA response file ## 4 | ## ------------------ ## 5 | ## Copyright 1998, 2014, Oracle Corporation. All Rights Reserved. ## 6 | ## ## 7 | ## Specify values for the variables listed below to customize Oracle ## 8 | ## Database Configuration installation. ## 9 | ## ## 10 | ## Each variable is associated with a comment. The comment identifies the ## 11 | ## variable type. ## 12 | ## ## 13 | ## Please specify the values in the following format : ## 14 | ## Type : Example ## 15 | ## String : "" ## 16 | ## Boolean : True or False ## 17 | ## Number : ## 18 | ## StringList : {"",""} ## 19 | ## ## 20 | ## Examples : ## 21 | ## 1. dbca -progress_only -responseFile ## 22 | ## Display a progress bar depicting progress of database creation ## 23 | ## process. ## 24 | ## ## 25 | ## 2. dbca -silent -responseFile ## 26 | ## Creates database silently. No user interface is displayed. ## 27 | ## ## 28 | ## 3. dbca -silent -createDatabase -cloneTemplate ## 29 | ## -responseFile ## 30 | ## Creates database silently with clone template. The template in ## 31 | ## responsefile is a clone template. ## 32 | ## ## 33 | ## 4. dbca -silent -deleteDatabase -responseFile ## 34 | ## Deletes database silently. ## 35 | ############################################################################## 36 | 37 | #----------------------------------------------------------------------------- 38 | # GENERAL section is required for all types of database creations. 39 | #----------------------------------------------------------------------------- 40 | [GENERAL] 41 | 42 | #----------------------------------------------------------------------------- 43 | # Name : RESPONSEFILE_VERSION 44 | # Datatype : String 45 | # Description : Version of the database to create 46 | # Valid values : "12.1.0" 47 | # Default value : None 48 | # Mandatory : Yes 49 | #----------------------------------------------------------------------------- 50 | RESPONSEFILE_VERSION = "12.1.0" 51 | 52 | #----------------------------------------------------------------------------- 53 | # Name : OPERATION_TYPE 54 | # Datatype : String 55 | # Description : Type of operation 56 | # Valid values : "createDatabase" \ "createTemplateFromDB" \ "createCloneTemplate" \ "deleteDatabase" \ "configureDatabase" \ "addInstance" (RAC-only) \ "deleteInstance" (RAC-only) \ "createPluggableDatabase" \ "unplugDatabase" \ "deletePluggableDatabase" \ "configurePluggableDatabase" 57 | # Default value : None 58 | # Mandatory : Yes 59 | #----------------------------------------------------------------------------- 60 | OPERATION_TYPE = "createDatabase" 61 | 62 | #-----------------------*** End of GENERAL section ***------------------------ 63 | 64 | #----------------------------------------------------------------------------- 65 | # CREATEDATABASE section is used when OPERATION_TYPE is defined as "createDatabase". 66 | #----------------------------------------------------------------------------- 67 | [CREATEDATABASE] 68 | 69 | #----------------------------------------------------------------------------- 70 | # Name : GDBNAME 71 | # Datatype : String 72 | # Description : Global database name of the database 73 | # Valid values : . - when database domain isn't NULL 74 | # - when database domain is NULL 75 | # Default value : None 76 | # Mandatory : Yes 77 | #----------------------------------------------------------------------------- 78 | GDBNAME = {{ oracle_globalname }} 79 | 80 | #----------------------------------------------------------------------------- 81 | # Name : DATABASECONFTYPE 82 | # Datatype : String 83 | # Description : database conf type as Single Instance, Real Application Cluster or Real Application Cluster One Nodes database 84 | # Valid values : SI\RAC\RACONENODE 85 | # Default value : SI 86 | # Mandatory : No 87 | #----------------------------------------------------------------------------- 88 | #DATABASECONFTYPE = "SI" 89 | 90 | #----------------------------------------------------------------------------- 91 | # Name : RACONENODESERVICENAME 92 | # Datatype : String 93 | # Description : Service is required by application to connect to RAC One 94 | # Node Database 95 | # Valid values : Service Name 96 | # Default value : None 97 | # Mandatory : No [required in case DATABASECONFTYPE is set to RACONENODE ] 98 | #----------------------------------------------------------------------------- 99 | #RACONENODESERVICENAME = 100 | 101 | #----------------------------------------------------------------------------- 102 | # Name : POLICYMANAGED 103 | # Datatype : Boolean 104 | # Description : Set to true if Database is policy managed and 105 | # set to false if Database is admin managed 106 | # Valid values : TRUE\FALSE 107 | # Default value : FALSE 108 | # Mandatory : No 109 | #----------------------------------------------------------------------------- 110 | #POLICYMANAGED = "false" 111 | 112 | #----------------------------------------------------------------------------- 113 | # Name : CREATESERVERPOOL 114 | # Datatype : Boolean 115 | # Description : Set to true if new server pool need to be created for database 116 | # if this option is specified then the newly created database 117 | # will use this newly created serverpool. 118 | # Multiple serverpoolname can not be specified for database 119 | # Valid values : TRUE\FALSE 120 | # Default value : FALSE 121 | # Mandatory : No 122 | #----------------------------------------------------------------------------- 123 | #CREATESERVERPOOL = "false" 124 | 125 | #----------------------------------------------------------------------------- 126 | # Name : SERVERPOOLNAME 127 | # Datatype : String 128 | # Description : Only one serverpool name need to be specified 129 | # if Create Server Pool option is specified. 130 | # Comma-separated list of Serverpool names if db need to use 131 | # multiple Server pool 132 | # Valid values : ServerPool name 133 | 134 | # Default value : None 135 | # Mandatory : No [required in case of RAC service centric database] 136 | #----------------------------------------------------------------------------- 137 | #SERVERPOOLNAME = 138 | 139 | #----------------------------------------------------------------------------- 140 | # Name : CARDINALITY 141 | # Datatype : Number 142 | # Description : Specify Cardinality for create server pool operation 143 | 144 | # Valid values : any positive Integer value 145 | # Default value : Number of qualified nodes on cluster 146 | # Mandatory : No [Required when a new serverpool need to be created] 147 | #----------------------------------------------------------------------------- 148 | #CARDINALITY = 149 | 150 | 151 | 152 | 153 | #----------------------------------------------------------------------------- 154 | # Name : FORCE 155 | # Datatype : Boolean 156 | # Description : Set to true if new server pool need to be created by force 157 | # if this option is specified then the newly created serverpool 158 | # will be assigned server even if no free servers are available. 159 | # This may affect already running database. 160 | # This flag can be specified for Admin managed as well as policy managed db. 161 | # Valid values : TRUE\FALSE 162 | # Default value : FALSE 163 | # Mandatory : No 164 | #----------------------------------------------------------------------------- 165 | #FORCE = "false" 166 | 167 | 168 | 169 | #----------------------------------------------------------------------------- 170 | # Name : PQPOOLNAME 171 | # Datatype : String 172 | # Description : Only one serverpool name needs to be specified 173 | # if create server pool option is specified. 174 | # Comma-separated list of serverpool names if use 175 | # server pool. This is required to 176 | # create Parallel Query (PQ) database. Applicable to Big Cluster 177 | # Valid values : Parallel Query (PQ) pool name 178 | # Default value : None 179 | # Mandatory : No [required in case of RAC service centric database] 180 | #----------------------------------------------------------------------------- 181 | #PQPOOLNAME = 182 | 183 | #----------------------------------------------------------------------------- 184 | # Name : PQCARDINALITY 185 | # Datatype : Number 186 | # Description : Specify Cardinality for create server pool operation. 187 | # Applicable to Big Cluster 188 | # Valid values : any positive Integer value 189 | # Default value : Number of qualified nodes on cluster 190 | # Mandatory : No [Required when a new serverpool need to be created] 191 | #----------------------------------------------------------------------------- 192 | #PQCARDINALITY = 193 | 194 | 195 | 196 | 197 | #----------------------------------------------------------------------------- 198 | # Name : SID 199 | # Datatype : String 200 | # Description : System identifier (SID) of the database 201 | # Valid values : Check Oracle12c Administrator's Guide 202 | # Default value : specified in GDBNAME 203 | # Mandatory : No 204 | #----------------------------------------------------------------------------- 205 | SID = {{ oracle_sid }} 206 | 207 | #----------------------------------------------------------------------------- 208 | # Name : CREATEASCONTAINERDATABASE 209 | # Datatype : boolean 210 | # Description : flag to create database as container database 211 | # Valid values : Check Oracle12c Administrator's Guide 212 | # Default value : false 213 | # Mandatory : No 214 | #----------------------------------------------------------------------------- 215 | CREATEASCONTAINERDATABASE = {{ create_container_database }} 216 | 217 | #----------------------------------------------------------------------------- 218 | # Name : NUMBEROFPDBS 219 | # Datatype : Number 220 | # Description : Specify the number of pdb to be created 221 | # Valid values : 0 to 252 222 | # Default value : 0 223 | # Mandatory : No 224 | #----------------------------------------------------------------------------- 225 | NUMBEROFPDBS = {{ number_of_pdbs }} 226 | 227 | #----------------------------------------------------------------------------- 228 | # Name : PDBNAME 229 | # Datatype : String 230 | # Description : Specify the pdbname/pdbanme prefix if one or more pdb need to be created 231 | # Valid values : Check Oracle12c Administrator's Guide 232 | # Default value : None 233 | # Mandatory : No 234 | #----------------------------------------------------------------------------- 235 | PDBNAME = {{ pdb_prefix }} 236 | 237 | #----------------------------------------------------------------------------- 238 | # Name : PDBADMINPASSWORD 239 | # Datatype : String 240 | # Description : PDB Administrator user password 241 | # Valid values : Check Oracle12c Administrator's Guide 242 | # Default value : None 243 | # Mandatory : No 244 | #----------------------------------------------------------------------------- 245 | PDBADMINPASSWORD = {{ oracle_pass_all_users }} 246 | 247 | #----------------------------------------------------------------------------- 248 | # Name : NODELIST 249 | # Datatype : String 250 | # Description : Comma-separated list of cluster nodes 251 | # Valid values : Cluster node names 252 | # Default value : None 253 | # Mandatory : No (Yes for RAC database-centric database ) 254 | #----------------------------------------------------------------------------- 255 | #NODELIST= 256 | 257 | #----------------------------------------------------------------------------- 258 | # Name : TEMPLATENAME 259 | # Datatype : String 260 | # Description : Name of the template 261 | # Valid values : Template file name 262 | # Default value : None 263 | # Mandatory : Yes 264 | #----------------------------------------------------------------------------- 265 | TEMPLATENAME = "General_Purpose.dbc" 266 | 267 | #----------------------------------------------------------------------------- 268 | # Name : OBFUSCATEDPASSWORDS 269 | # Datatype : Boolean 270 | # Description : Set to true if passwords are encrypted 271 | # Valid values : TRUE\FALSE 272 | # Default value : FALSE 273 | # Mandatory : No 274 | #----------------------------------------------------------------------------- 275 | #OBFUSCATEDPASSWORDS = FALSE 276 | 277 | 278 | #----------------------------------------------------------------------------- 279 | # Name : SYSPASSWORD 280 | # Datatype : String 281 | # Description : Password for SYS user 282 | # Valid values : Check Oracle12c Administrator's Guide 283 | # Default value : None 284 | # Mandatory : Yes 285 | #----------------------------------------------------------------------------- 286 | SYSPASSWORD = {{ oracle_pass_all_users }} 287 | 288 | #----------------------------------------------------------------------------- 289 | # Name : SYSTEMPASSWORD 290 | # Datatype : String 291 | # Description : Password for SYSTEM user 292 | # Valid values : Check Oracle12c Administrator's Guide 293 | # Default value : None 294 | # Mandatory : Yes 295 | #----------------------------------------------------------------------------- 296 | SYSTEMPASSWORD = {{ oracle_pass_all_users }} 297 | 298 | #----------------------------------------------------------------------------- 299 | # Name : SERVICEUSERPASSWORD 300 | # Datatype : String 301 | # Description : Password for Windows Service user 302 | # Default value : None 303 | # Mandatory : If Oracle home is installed with windows service user 304 | #----------------------------------------------------------------------------- 305 | #SERVICEUSERPASSWORD = "password" 306 | 307 | #----------------------------------------------------------------------------- 308 | # Name : EMCONFIGURATION 309 | # Datatype : String 310 | # Description : Enterprise Manager Configuration Type 311 | # Valid values : CENTRAL|DBEXPRESS|ALL|NONE 312 | # Default value : NONE 313 | # Mandatory : No 314 | #----------------------------------------------------------------------------- 315 | #EMCONFIGURATION = DBEXPRESS 316 | 317 | 318 | #----------------------------------------------------------------------------- 319 | # Name : EMEXPRESSPORT 320 | # Datatype : Number 321 | # Description : Enterprise Manager Configuration Type 322 | # Valid values : Check Oracle12c Administrator's Guide 323 | # Default value : NONE 324 | # Mandatory : No, will be picked up from DBEXPRESS_HTTPS_PORT env variable 325 | # or auto generates a free port between 5500 and 5599 326 | #----------------------------------------------------------------------------- 327 | #EMEXPRESSPORT = "5500" 328 | 329 | 330 | #----------------------------------------------------------------------------- 331 | # Name : RUNCVUCHECKS 332 | # Datatype : Boolean 333 | # Description : Specify whether to run Cluster Verification Utility checks 334 | # periodically in Cluster environment 335 | # Valid values : TRUE\FALSE 336 | # Default value : FALSE 337 | # Mandatory : No 338 | #----------------------------------------------------------------------------- 339 | #RUNCVUCHECKS = FALSE 340 | 341 | #----------------------------------------------------------------------------- 342 | # Name : DBSNMPPASSWORD 343 | # Datatype : String 344 | # Description : Password for DBSNMP user 345 | # Valid values : Check Oracle12c Administrator's Guide 346 | # Default value : None 347 | # Mandatory : Yes, if EMCONFIGURATION is specified or 348 | # the value of RUNCVUCHECKS is TRUE 349 | #----------------------------------------------------------------------------- 350 | #DBSNMPPASSWORD = "password" 351 | 352 | #----------------------------------------------------------------------------- 353 | # Name : OMSHOST 354 | # Datatype : String 355 | # Description : EM management server host name 356 | # Default value : None 357 | # Mandatory : Yes, if CENTRAL is specified for EMCONFIGURATION 358 | #----------------------------------------------------------------------------- 359 | #OMSHOST = 360 | 361 | #----------------------------------------------------------------------------- 362 | # Name : OMSPORT 363 | # Datatype : Number 364 | # Description : EM management server port number 365 | # Default value : None 366 | # Mandatory : Yes, if CENTRAL is specified for EMCONFIGURATION 367 | #----------------------------------------------------------------------------- 368 | #OMSPORT = 369 | 370 | #----------------------------------------------------------------------------- 371 | # Name : EMUSER 372 | # Datatype : String 373 | # Description : EM Admin username to add or modify targets 374 | # Default value : None 375 | # Mandatory : Yes, if CENTRAL is specified for EMCONFIGURATION 376 | #----------------------------------------------------------------------------- 377 | #EMUSER = 378 | 379 | #----------------------------------------------------------------------------- 380 | # Name : EMPASSWORD 381 | # Datatype : String 382 | # Description : EM Admin user password 383 | # Default value : None 384 | # Mandatory : Yes, if CENTRAL is specified for EMCONFIGURATION 385 | #----------------------------------------------------------------------------- 386 | #EMPASSWORD= 387 | 388 | 389 | #----------------------------------------------------------------------------- 390 | # Name : DVCONFIGURATION 391 | # Datatype : Boolean 392 | # Description : Specify "True" to configure and enable Oracle Database vault 393 | # Valid values : True/False 394 | # Default value : False 395 | # Mandatory : No 396 | #----------------------------------------------------------------------------- 397 | #DVCONFIGURATION = "True" 398 | 399 | #----------------------------------------------------------------------------- 400 | # Name : DVOWNERNAME 401 | # Datatype : String 402 | # Description : DataVault Owner 403 | # Valid values : Check Oracle12c Administrator's Guide 404 | # Default value : None 405 | # Mandatory : Yes, if DataVault option is chosen 406 | #----------------------------------------------------------------------------- 407 | #DVOWNERNAME = "dvsys" 408 | 409 | #----------------------------------------------------------------------------- 410 | # Name : DVOWNERPASSWORD 411 | # Datatype : String 412 | # Description : Password for DataVault Owner 413 | # Valid values : Check Oracle12c Administrator's Guide 414 | # Default value : None 415 | # Mandatory : Yes, if DataVault option is chosen 416 | #----------------------------------------------------------------------------- 417 | #DVOWNERPASSWORD = {{ oracle_pass_all_users }} 418 | 419 | #----------------------------------------------------------------------------- 420 | # Name : DVACCOUNTMANAGERNAME 421 | # Datatype : String 422 | # Description : DataVault Account Manager 423 | # Valid values : Check Oracle12c Administrator's Guide 424 | # Default value : None 425 | # Mandatory : No 426 | #----------------------------------------------------------------------------- 427 | #DVACCOUNTMANAGERNAME = "dvmanager" 428 | 429 | #----------------------------------------------------------------------------- 430 | # Name : DVACCOUNTMANAGERPASSWORD 431 | # Datatype : String 432 | # Description : Password for DataVault Account Manager 433 | # Valid values : Check Oracle12c Administrator's Guide 434 | # Default value : None 435 | # Mandatory : No 436 | #----------------------------------------------------------------------------- 437 | #DVACCOUNTMANAGERPASSWORD = {{ oracle_pass_all_users }} 438 | 439 | #----------------------------------------------------------------------------- 440 | # Name : OLSCONFIGURATION 441 | # Datatype : Boolean 442 | # Description : Specify "True" to configure and enable Oracle Label Security 443 | # Valid values : True/False 444 | # Default value : False 445 | # Mandatory : No 446 | #----------------------------------------------------------------------------- 447 | #OLSCONFIGURATION = "false" 448 | 449 | #----------------------------------------------------------------------------- 450 | # Name : DATAFILEJARLOCATION 451 | # Datatype : String 452 | # Description : Location of the data file jar 453 | # Valid values : Directory containing compressed datafile jar 454 | # Default value : None 455 | # Mandatory : No 456 | #----------------------------------------------------------------------------- 457 | #DATAFILEJARLOCATION = 458 | 459 | #----------------------------------------------------------------------------- 460 | # Name : DATAFILEDESTINATION 461 | # Datatype : String 462 | # Description : Location of the data file's 463 | # Valid values : Directory for all the database files 464 | # Default value : $ORACLE_BASE/oradata 465 | # Mandatory : No 466 | #----------------------------------------------------------------------------- 467 | DATAFILEDESTINATION = {{ oracle_dataloc }} 468 | 469 | #----------------------------------------------------------------------------- 470 | # Name : RECOVERYAREADESTINATION 471 | # Datatype : String 472 | # Description : Location of the data file's 473 | # Valid values : Recovery Area location 474 | # Default value : $ORACLE_BASE/flash_recovery_area 475 | # Mandatory : No 476 | #----------------------------------------------------------------------------- 477 | RECOVERYAREADESTINATION= {{ oracle_recoveryloc }} 478 | 479 | #----------------------------------------------------------------------------- 480 | # Name : STORAGETYPE 481 | # Datatype : String 482 | # Description : Specifies the storage on which the database is to be created 483 | # Valid values : FS (CFS for RAC), ASM 484 | # Default value : FS 485 | # Mandatory : No 486 | #----------------------------------------------------------------------------- 487 | #STORAGETYPE=FS 488 | 489 | #----------------------------------------------------------------------------- 490 | # Name : DISKGROUPNAME 491 | # Datatype : String 492 | # Description : Specifies the disk group name for the storage 493 | # Default value : DATA 494 | # Mandatory : No 495 | #----------------------------------------------------------------------------- 496 | #DISKGROUPNAME=DATA 497 | 498 | #----------------------------------------------------------------------------- 499 | # Name : ASMSNMP_PASSWORD 500 | # Datatype : String 501 | # Description : Password for ASM Monitoring 502 | # Default value : None 503 | # Mandatory : No 504 | #----------------------------------------------------------------------------- 505 | #ASMSNMP_PASSWORD="" 506 | 507 | #----------------------------------------------------------------------------- 508 | # Name : RECOVERYGROUPNAME 509 | # Datatype : String 510 | # Description : Specifies the disk group name for the recovery area 511 | # Default value : RECOVERY 512 | # Mandatory : No 513 | #----------------------------------------------------------------------------- 514 | #RECOVERYGROUPNAME=RECOVERY 515 | 516 | 517 | #----------------------------------------------------------------------------- 518 | # Name : CHARACTERSET 519 | # Datatype : String 520 | # Description : Character set of the database 521 | # Valid values : Check Oracle12c National Language Support Guide 522 | # Default value : "US7ASCII" 523 | # Mandatory : NO 524 | #----------------------------------------------------------------------------- 525 | CHARACTERSET = {{ oracle_charset }} 526 | 527 | #----------------------------------------------------------------------------- 528 | # Name : NATIONALCHARACTERSET 529 | # Datatype : String 530 | # Description : National Character set of the database 531 | # Valid values : "UTF8" or "AL16UTF16". For details, check Oracle12c National Language Support Guide 532 | # Default value : "AL16UTF16" 533 | # Mandatory : No 534 | #----------------------------------------------------------------------------- 535 | NATIONALCHARACTERSET= "AL16UTF16" 536 | 537 | #----------------------------------------------------------------------------- 538 | # Name : REGISTERWITHDIRSERVICE 539 | # Datatype : Boolean 540 | # Description : Specifies whether to register with Directory Service. 541 | # Valid values : TRUE \ FALSE 542 | # Default value : FALSE 543 | # Mandatory : No 544 | #----------------------------------------------------------------------------- 545 | #REGISTERWITHDIRSERVICE= TRUE 546 | 547 | #----------------------------------------------------------------------------- 548 | # Name : DIRSERVICEUSERNAME 549 | # Datatype : String 550 | # Description : Specifies the name of the directory service user 551 | # Mandatory : YES, if the value of registerWithDirService is TRUE 552 | #----------------------------------------------------------------------------- 553 | #DIRSERVICEUSERNAME= "name" 554 | 555 | #----------------------------------------------------------------------------- 556 | # Name : DIRSERVICEPASSWORD 557 | # Datatype : String 558 | # Description : The password of the directory service user. 559 | # You can also specify the password at the command prompt instead of here. 560 | # Mandatory : YES, if the value of registerWithDirService is TRUE 561 | #----------------------------------------------------------------------------- 562 | #DIRSERVICEPASSWORD= "password" 563 | 564 | #----------------------------------------------------------------------------- 565 | # Name : WALLETPASSWORD 566 | # Datatype : String 567 | # Description : The password for wallet to created or modified. 568 | # You can also specify the password at the command prompt instead of here. 569 | # Mandatory : YES, if the value of registerWithDirService is TRUE 570 | #----------------------------------------------------------------------------- 571 | WALLETPASSWORD= {{ oracle_pass_all_users }} 572 | 573 | #----------------------------------------------------------------------------- 574 | # Name : LISTENERS 575 | # Datatype : String 576 | # Description : Specifies list of listeners to register the database with. 577 | # By default the database is configured for all the listeners specified in the 578 | # $ORACLE_HOME/network/admin/listener.ora 579 | # Valid values : The list should be comma separated like "listener1,listener2". 580 | # Mandatory : NO 581 | #----------------------------------------------------------------------------- 582 | #LISTENERS = "listener1,listener2" 583 | 584 | #----------------------------------------------------------------------------- 585 | # Name : VARIABLESFILE 586 | # Datatype : String 587 | # Description : Location of the file containing variable value pair 588 | # Valid values : A valid file-system file. The variable value pair format in this file 589 | # is =. Each pair should be in a new line. 590 | # Default value : None 591 | # Mandatory : NO 592 | #----------------------------------------------------------------------------- 593 | #VARIABLESFILE = 594 | 595 | #----------------------------------------------------------------------------- 596 | # Name : VARIABLES 597 | # Datatype : String 598 | # Description : comma separated list of name=value pairs. Overrides variables defined in variablefile and templates 599 | # Default value : None 600 | # Mandatory : NO 601 | #----------------------------------------------------------------------------- 602 | #VARIABLES = 603 | 604 | #----------------------------------------------------------------------------- 605 | # Name : INITPARAMS 606 | # Datatype : String 607 | # Description : comma separated list of name=value pairs. Overrides initialization parameters defined in templates 608 | # Default value : None 609 | # Mandatory : NO 610 | #----------------------------------------------------------------------------- 611 | #INITPARAMS = 612 | 613 | #----------------------------------------------------------------------------- 614 | # Name : SAMPLESCHEMA 615 | # Datatype : Boolean 616 | # Description : Specifies whether or not to add the Sample Schemas to your database 617 | # Valid values : TRUE \ FALSE 618 | # Default value : FASLE 619 | # Mandatory : No 620 | #----------------------------------------------------------------------------- 621 | SAMPLESCHEMA={{ oracle_install_samples }} 622 | 623 | #----------------------------------------------------------------------------- 624 | # Name : MEMORYPERCENTAGE 625 | # Datatype : String 626 | # Description : percentage of physical memory for Oracle 627 | # Default value : None 628 | # Mandatory : NO 629 | #----------------------------------------------------------------------------- 630 | MEMORYPERCENTAGE = "80" 631 | 632 | #----------------------------------------------------------------------------- 633 | # Name : DATABASETYPE 634 | # Datatype : String 635 | # Description : used for memory distribution when MEMORYPERCENTAGE specified 636 | # Valid values : MULTIPURPOSE|DATA_WAREHOUSING|OLTP 637 | # Default value : MULTIPURPOSE 638 | # Mandatory : NO 639 | #----------------------------------------------------------------------------- 640 | #DATABASETYPE = "MULTIPURPOSE" 641 | 642 | #----------------------------------------------------------------------------- 643 | # Name : AUTOMATICMEMORYMANAGEMENT 644 | # Datatype : Boolean 645 | # Description : flag to indicate Automatic Memory Management is used 646 | # Valid values : TRUE/FALSE 647 | # Default value : TRUE 648 | # Mandatory : NO 649 | #----------------------------------------------------------------------------- 650 | AUTOMATICMEMORYMANAGEMENT = "FALSE" 651 | 652 | #----------------------------------------------------------------------------- 653 | # Name : TOTALMEMORY 654 | # Datatype : String 655 | # Description : total memory in MB to allocate to Oracle 656 | # Valid values : 657 | # Default value : 658 | # Mandatory : NO 659 | #----------------------------------------------------------------------------- 660 | TOTALMEMORY = {{ oracle_memory_mb }} 661 | 662 | 663 | #-----------------------*** End of CREATEDATABASE section ***------------------------ 664 | 665 | #----------------------------------------------------------------------------- 666 | # createTemplateFromDB section is used when OPERATION_TYPE is defined as "createTemplateFromDB". 667 | #----------------------------------------------------------------------------- 668 | [createTemplateFromDB] 669 | #----------------------------------------------------------------------------- 670 | # Name : SOURCEDB 671 | # Datatype : String 672 | # Description : The source database from which to create the template 673 | # Valid values : The format is :: 674 | # Default value : none 675 | # Mandatory : YES 676 | #----------------------------------------------------------------------------- 677 | SOURCEDB = "myhost:1521:orcl" 678 | 679 | #----------------------------------------------------------------------------- 680 | # Name : SYSDBAUSERNAME 681 | # Datatype : String 682 | # Description : A user with DBA role. 683 | # Default value : none 684 | # Mandatory : YES 685 | #----------------------------------------------------------------------------- 686 | SYSDBAUSERNAME = "system" 687 | 688 | #----------------------------------------------------------------------------- 689 | # Name : SYSDBAPASSWORD 690 | # Datatype : String 691 | # Description : The password of the DBA user. 692 | # You can also specify the password at the command prompt instead of here. 693 | # Default value : none 694 | # Mandatory : YES 695 | #----------------------------------------------------------------------------- 696 | #SYSDBAPASSWORD = "password" 697 | 698 | #----------------------------------------------------------------------------- 699 | # Name : TEMPLATENAME 700 | # Datatype : String 701 | # Description : Name for the new template. 702 | # Default value : None 703 | # Mandatory : Yes 704 | #----------------------------------------------------------------------------- 705 | TEMPLATENAME = "My Copy TEMPLATE" 706 | 707 | #-----------------------*** End of createTemplateFromDB section ***------------------------ 708 | 709 | #----------------------------------------------------------------------------- 710 | # createCloneTemplate section is used when OPERATION_TYPE is defined as "createCloneTemplate". 711 | #----------------------------------------------------------------------------- 712 | [createCloneTemplate] 713 | #----------------------------------------------------------------------------- 714 | # Name : SOURCEDB 715 | # Datatype : String 716 | # Description : The source database is the SID from which to create the template. 717 | # This database must be local and on the same ORACLE_HOME. 718 | # Default value : none 719 | # Mandatory : YES 720 | #----------------------------------------------------------------------------- 721 | SOURCEDB = "orcl" 722 | 723 | #----------------------------------------------------------------------------- 724 | # Name : SYSDBAUSERNAME 725 | # Datatype : String 726 | # Description : A user with DBA role. 727 | # Default value : none 728 | # Mandatory : YES, if no OS authentication 729 | #----------------------------------------------------------------------------- 730 | #SYSDBAUSERNAME = "sys" 731 | 732 | #----------------------------------------------------------------------------- 733 | # Name : SYSDBAPASSWORD 734 | # Datatype : String 735 | # Description : The password of the DBA user. 736 | # You can also specify the password at the command prompt instead of here. 737 | # Default value : none 738 | # Mandatory : YES 739 | #----------------------------------------------------------------------------- 740 | #SYSDBAPASSWORD = "password" 741 | 742 | #----------------------------------------------------------------------------- 743 | # Name : TEMPLATENAME 744 | # Datatype : String 745 | # Description : Name for the new template. 746 | # Default value : None 747 | # Mandatory : Yes 748 | #----------------------------------------------------------------------------- 749 | TEMPLATENAME = "My Clone TEMPLATE" 750 | 751 | #----------------------------------------------------------------------------- 752 | # Name : DATAFILEJARLOCATION 753 | # Datatype : String 754 | # Description : Location of the data file jar 755 | # Valid values : Directory where the new compressed datafile jar will be placed 756 | # Default value : $ORACLE_HOME/assistants/dbca/templates 757 | # Mandatory : NO 758 | #----------------------------------------------------------------------------- 759 | #DATAFILEJARLOCATION = 760 | 761 | #-----------------------*** End of createCloneTemplate section ***------------------------ 762 | 763 | #----------------------------------------------------------------------------- 764 | # DELETEDATABASE section is used when DELETE_TYPE is defined as "deleteDatabase". 765 | #----------------------------------------------------------------------------- 766 | [DELETEDATABASE] 767 | #----------------------------------------------------------------------------- 768 | # Name : SOURCEDB 769 | # Datatype : String 770 | # Description : The source database is the SID 771 | # This database must be local and on the same ORACLE_HOME. 772 | # Default value : none 773 | # Mandatory : YES 774 | #----------------------------------------------------------------------------- 775 | SOURCEDB = "orcl" 776 | 777 | #----------------------------------------------------------------------------- 778 | # Name : SYSDBAUSERNAME 779 | # Datatype : String 780 | # Description : A user with DBA role. 781 | # Default value : none 782 | # Mandatory : YES, if no OS authentication 783 | #----------------------------------------------------------------------------- 784 | #SYSDBAUSERNAME = "sys" 785 | 786 | #----------------------------------------------------------------------------- 787 | # Name : SYSDBAPASSWORD 788 | # Datatype : String 789 | # Description : The password of the DBA user. 790 | # You can also specify the password at the command prompt instead of here. 791 | # Default value : none 792 | # Mandatory : YES, if no OS authentication 793 | #----------------------------------------------------------------------------- 794 | #SYSDBAPASSWORD = "password" 795 | #-----------------------*** End of deleteDatabase section ***------------------------ 796 | 797 | #----------------------------------------------------------------------------- 798 | # GENERATESCRIPTS section 799 | #----------------------------------------------------------------------------- 800 | [generateScripts] 801 | #----------------------------------------------------------------------------- 802 | # Name : TEMPLATENAME 803 | # Datatype : String 804 | # Description : Name of the template 805 | # Valid values : Template name as seen in DBCA 806 | # Default value : None 807 | # Mandatory : Yes 808 | #----------------------------------------------------------------------------- 809 | TEMPLATENAME = "New Database" 810 | 811 | #----------------------------------------------------------------------------- 812 | # Name : GDBNAME 813 | # Datatype : String 814 | # Description : Global database name of the database 815 | # Valid values : . - when database domain isn't NULL 816 | # - when database domain is NULL 817 | # Default value : None 818 | # Mandatory : Yes 819 | #----------------------------------------------------------------------------- 820 | GDBNAME = "orcl12.us.oracle.com" 821 | 822 | #----------------------------------------------------------------------------- 823 | # Name : SCRIPTDESTINATION 824 | # Datatype : String 825 | # Description : Location of the scripts 826 | # Valid values : Directory for all the scripts 827 | # Default value : None 828 | # Mandatory : No 829 | #----------------------------------------------------------------------------- 830 | #SCRIPTDESTINATION = 831 | 832 | #----------------------------------------------------------------------------- 833 | # Name : EMCONFIGURATION 834 | # Datatype : String 835 | # Description : Enterprise Manager Configuration Type 836 | # Valid values : CENTRAL 837 | # Default value : NONE 838 | # Mandatory : No 839 | #----------------------------------------------------------------------------- 840 | #EMCONFIGURATION = "NONE" 841 | 842 | 843 | #----------------------------------------------------------------------------- 844 | # Name : OMSHOST 845 | # Datatype : String 846 | # Description : EM management server host name 847 | # Default value : None 848 | # Mandatory : Yes, if CENTRAL is specified for EMCONFIGURATION 849 | #----------------------------------------------------------------------------- 850 | #OMSHOST = 851 | 852 | #----------------------------------------------------------------------------- 853 | # Name : OMSPORT 854 | # Datatype : Number 855 | # Description : EM management server port number 856 | # Default value : None 857 | # Mandatory : Yes, if CENTRAL is specified for EMCONFIGURATION 858 | #----------------------------------------------------------------------------- 859 | #OMSPORT = 860 | 861 | #----------------------------------------------------------------------------- 862 | # Name : EMUSER 863 | # Datatype : String 864 | # Description : EM Admin username to add or modify targets 865 | # Default value : None 866 | # Mandatory : Yes, if CENTRAL is specified for EMCONFIGURATION 867 | #----------------------------------------------------------------------------- 868 | #EMUSER = 869 | 870 | #----------------------------------------------------------------------------- 871 | # Name : EMPASSWORD 872 | # Datatype : String 873 | # Description : EM Admin user password 874 | # Default value : None 875 | # Mandatory : Yes, if CENTRAL is specified for EMCONFIGURATION 876 | #----------------------------------------------------------------------------- 877 | #EMPASSWORD= 878 | 879 | #-----------------------*** End of deleteDatabase section ***------------------------ 880 | 881 | #----------------------------------------------------------------------------- 882 | # CONFIGUREDATABASE section is used when OPERATION_TYPE is defined as "configureDatabase". 883 | #----------------------------------------------------------------------------- 884 | [CONFIGUREDATABASE] 885 | 886 | #----------------------------------------------------------------------------- 887 | # Name : SOURCEDB 888 | # Datatype : String 889 | # Description : The source database is the SID 890 | # This database must be local and on the same ORACLE_HOME. 891 | # Default value : none 892 | # Mandatory : YES 893 | #----------------------------------------------------------------------------- 894 | #SOURCEDB = "orcl" 895 | 896 | #----------------------------------------------------------------------------- 897 | # Name : SYSDBAUSERNAME 898 | # Datatype : String 899 | # Description : A user with DBA role. 900 | # Default value : none 901 | # Mandatory : YES, if no OS authentication 902 | #----------------------------------------------------------------------------- 903 | #SYSDBAUSERNAME = "sys" 904 | 905 | 906 | #----------------------------------------------------------------------------- 907 | # Name : SYSDBAPASSWORD 908 | # Datatype : String 909 | # Description : The password of the DBA user. 910 | # You can also specify the password at the command prompt instead of here. 911 | # Default value : none 912 | # Mandatory : YES, if no OS authentication 913 | #----------------------------------------------------------------------------- 914 | #SYSDBAPASSWORD = 915 | 916 | #----------------------------------------------------------------------------- 917 | # Name : REGISTERWITHDIRSERVICE 918 | # Datatype : Boolean 919 | # Description : Specifies whether to register with Directory Service. 920 | # Valid values : TRUE \ FALSE 921 | # Default value : FALSE 922 | # Mandatory : No 923 | #----------------------------------------------------------------------------- 924 | #REGISTERWITHDIRSERVICE= TRUE 925 | 926 | #----------------------------------------------------------------------------- 927 | # Name : UNREGISTERWITHDIRSERVICE 928 | # Datatype : Boolean 929 | # Description : Specifies whether to unregister with Directory Service. 930 | # Valid values : TRUE \ FALSE 931 | # Default value : FALSE 932 | # Mandatory : No 933 | #----------------------------------------------------------------------------- 934 | #UNREGISTERWITHDIRSERVICE= TRUE 935 | 936 | #----------------------------------------------------------------------------- 937 | # Name : REGENERATEDBPASSWORD 938 | # Datatype : Boolean 939 | # Description : Specifies whether regenerate database password in OID/Wallet 940 | # Valid values : TRUE \ FALSE 941 | # Default value : FALSE 942 | # Mandatory : No 943 | #----------------------------------------------------------------------------- 944 | #REGENERATEDBPASSWORD= TRUE 945 | 946 | #----------------------------------------------------------------------------- 947 | # Name : DIRSERVICEUSERNAME 948 | # Datatype : String 949 | # Description : Specifies the name of the directory service user 950 | # Mandatory : YES, if the any of the reg/unreg/regenPasswd options specified 951 | #----------------------------------------------------------------------------- 952 | #DIRSERVICEUSERNAME= "name" 953 | 954 | #----------------------------------------------------------------------------- 955 | # Name : DIRSERVICEPASSWORD 956 | # Datatype : String 957 | # Description : The password of the directory service user. 958 | # You can also specify the password at the command prompt instead of here. 959 | # Mandatory : YES, if the any of the reg/unreg/regenPasswd options specified 960 | #----------------------------------------------------------------------------- 961 | #DIRSERVICEPASSWORD= "password" 962 | 963 | #----------------------------------------------------------------------------- 964 | # Name : WALLETPASSWORD 965 | # Datatype : String 966 | # Description : The password for wallet to created or modified. 967 | # You can also specify the password at the command prompt instead of here. 968 | # Mandatory : YES, if the any of the reg/unreg/regenPasswd options specified 969 | #----------------------------------------------------------------------------- 970 | #WALLETPASSWORD= "password" 971 | 972 | 973 | #----------------------------------------------------------------------------- 974 | # Name : ENABLESECURITYCONFIGURATION 975 | # Datatype : String 976 | # Description : Database Security Settings 977 | # Valid values : true|false 978 | # Default value : true 979 | # Mandatory : No 980 | #----------------------------------------------------------------------------- 981 | #ENABLESECURITYCONFIGURATION = "true" 982 | 983 | 984 | #----------------------------------------------------------------------------- 985 | # Name : DBSNMPPASSWORD 986 | # Datatype : String 987 | # Description : Password for DBSNMP user 988 | # Valid values : Check Oracle12c Administrator's Guide 989 | # Default value : None 990 | # Mandatory : Yes, if EMCONFIGURATION is specified 991 | #----------------------------------------------------------------------------- 992 | #DBSNMPPASSWORD = "password" 993 | 994 | 995 | #----------------------------------------------------------------------------- 996 | # Name : DVCONFIGURATION 997 | # Datatype : Boolean 998 | # Description : Specify "True" to configure and enable Oracle Database vault 999 | # Valid values : True/False 1000 | # Default value : False 1001 | # Mandatory : No 1002 | #----------------------------------------------------------------------------- 1003 | #DVCONFIGURATION = "false" 1004 | 1005 | #----------------------------------------------------------------------------- 1006 | # Name : DVOWNERNAME 1007 | # Datatype : String 1008 | # Description : DataVault Owner 1009 | # Valid values : Check Oracle12c Administrator's Guide 1010 | # Default value : None 1011 | # Mandatory : Yes, if DataVault option is chosen 1012 | #----------------------------------------------------------------------------- 1013 | #DVOWNERNAME = "" 1014 | 1015 | #----------------------------------------------------------------------------- 1016 | # Name : DVOWNERPASSWORD 1017 | # Datatype : String 1018 | # Description : Password for DataVault Owner 1019 | # Valid values : Check Oracle12c Administrator's Guide 1020 | # Default value : None 1021 | # Mandatory : Yes, if DataVault option is chosen 1022 | #----------------------------------------------------------------------------- 1023 | #DVOWNERPASSWORD = "" 1024 | 1025 | #----------------------------------------------------------------------------- 1026 | # Name : DVACCOUNTMANAGERNAME 1027 | # Datatype : String 1028 | # Description : DataVault Account Manager 1029 | # Valid values : Check Oracle12c Administrator's Guide 1030 | # Default value : None 1031 | # Mandatory : No 1032 | #----------------------------------------------------------------------------- 1033 | #DVACCOUNTMANAGERNAME = "" 1034 | 1035 | #----------------------------------------------------------------------------- 1036 | # Name : DVACCOUNTMANAGERPASSWORD 1037 | # Datatype : String 1038 | # Description : Password for DataVault Account Manager 1039 | # Valid values : Check Oracle12c Administrator's Guide 1040 | # Default value : None 1041 | # Mandatory : No 1042 | #----------------------------------------------------------------------------- 1043 | #DVACCOUNTMANAGERPASSWORD = "" 1044 | 1045 | #-----------------------*** End of CONFIGUREDATABASE section ***------------------------ 1046 | 1047 | 1048 | #----------------------------------------------------------------------------- 1049 | # ADDINSTANCE section is used when OPERATION_TYPE is defined as "addInstance". 1050 | #----------------------------------------------------------------------------- 1051 | [ADDINSTANCE] 1052 | 1053 | #----------------------------------------------------------------------------- 1054 | # Name : DB_UNIQUE_NAME 1055 | # Datatype : String 1056 | # Description : DB Unique Name of the RAC database 1057 | # Valid values : 1058 | # Default value : None 1059 | # Mandatory : Yes 1060 | #----------------------------------------------------------------------------- 1061 | DB_UNIQUE_NAME = "orcl12c.us.oracle.com" 1062 | 1063 | #----------------------------------------------------------------------------- 1064 | # Name : INSTANCENAME 1065 | # Datatype : String 1066 | # Description : RAC instance name to be added 1067 | # Valid values : Check Oracle12c Administrator's Guide 1068 | # Default value : + 1069 | # Mandatory : No 1070 | #----------------------------------------------------------------------------- 1071 | #INSTANCENAME = "orcl1" 1072 | 1073 | #----------------------------------------------------------------------------- 1074 | # Name : NODENAME 1075 | # Datatype : String 1076 | # Description : Node on which to add new instance 1077 | # (in 10gR2, instance addition is supported on 1 node at a time) 1078 | # Valid values : Cluster node name 1079 | # Default value : None 1080 | # Mandatory : Yes 1081 | #----------------------------------------------------------------------------- 1082 | NODENAME= 1083 | 1084 | #----------------------------------------------------------------------------- 1085 | # Name : OBFUSCATEDPASSWORDS 1086 | # Datatype : Boolean 1087 | # Description : Set to true if passwords are encrypted 1088 | # Valid values : TRUE\FALSE 1089 | # Default value : FALSE 1090 | # Mandatory : No 1091 | #----------------------------------------------------------------------------- 1092 | #OBFUSCATEDPASSWORDS = FALSE 1093 | 1094 | #----------------------------------------------------------------------------- 1095 | # Name : SYSDBAUSERNAME 1096 | # Datatype : String 1097 | # Description : A user with DBA role. 1098 | # Default value : none 1099 | # Mandatory : YES 1100 | #----------------------------------------------------------------------------- 1101 | SYSDBAUSERNAME = "sys" 1102 | 1103 | #----------------------------------------------------------------------------- 1104 | # Name : SYSDBAPASSWORD 1105 | # Datatype : String 1106 | # Description : The password of the DBA user. 1107 | # Default value : none 1108 | # Mandatory : YES 1109 | #----------------------------------------------------------------------------- 1110 | #SYSDBAPASSWORD = "password" 1111 | 1112 | #----------------------------------------------------------------------------- 1113 | # Name : SERVICEUSERPASSWORD 1114 | # Datatype : String 1115 | # Description : Password for Windows Service user 1116 | # Default value : None 1117 | # Mandatory : If Oracle home is installed with windows service user 1118 | #----------------------------------------------------------------------------- 1119 | #SERVICEUSERPASSWORD = "password" 1120 | 1121 | #-----------------------*** End of ADDINSTANCE section ***------------------------ 1122 | 1123 | 1124 | #----------------------------------------------------------------------------- 1125 | # DELETEINSTANCE section is used when OPERATION_TYPE is defined as "deleteInstance". 1126 | #----------------------------------------------------------------------------- 1127 | [DELETEINSTANCE] 1128 | 1129 | #----------------------------------------------------------------------------- 1130 | # Name : DB_UNIQUE_NAME 1131 | # Datatype : String 1132 | # Description : DB Unique Name of the RAC database 1133 | # Valid values : 1134 | # Default value : None 1135 | # Mandatory : Yes 1136 | #----------------------------------------------------------------------------- 1137 | DB_UNIQUE_NAME = "orcl12c.us.oracle.com" 1138 | 1139 | #----------------------------------------------------------------------------- 1140 | # Name : INSTANCENAME 1141 | # Datatype : String 1142 | # Description : RAC instance name to be deleted 1143 | # Valid values : Check Oracle12c Administrator's Guide 1144 | # Default value : None 1145 | # Mandatory : Yes 1146 | #----------------------------------------------------------------------------- 1147 | INSTANCENAME = "orcl12c" 1148 | 1149 | #----------------------------------------------------------------------------- 1150 | # Name : NODENAME 1151 | # Datatype : String 1152 | # Description : Node on which instance to be deleted (SID) is located 1153 | # Valid values : Cluster node name 1154 | # Default value : None 1155 | # Mandatory : No 1156 | #----------------------------------------------------------------------------- 1157 | #NODENAME= 1158 | 1159 | #----------------------------------------------------------------------------- 1160 | # Name : OBFUSCATEDPASSWORDS 1161 | # Datatype : Boolean 1162 | # Description : Set to true if passwords are encrypted 1163 | # Valid values : TRUE\FALSE 1164 | # Default value : FALSE 1165 | # Mandatory : No 1166 | #----------------------------------------------------------------------------- 1167 | #OBFUSCATEDPASSWORDS = FALSE 1168 | 1169 | #----------------------------------------------------------------------------- 1170 | # Name : SYSDBAUSERNAME 1171 | # Datatype : String 1172 | # Description : A user with DBA role. 1173 | # Default value : none 1174 | # Mandatory : YES 1175 | #----------------------------------------------------------------------------- 1176 | SYSDBAUSERNAME = "sys" 1177 | 1178 | #----------------------------------------------------------------------------- 1179 | # Name : SYSDBAPASSWORD 1180 | # Datatype : String 1181 | # Description : The password of the DBA user. 1182 | # Default value : none 1183 | # Mandatory : YES 1184 | #----------------------------------------------------------------------------- 1185 | #SYSDBAPASSWORD = "password" 1186 | 1187 | 1188 | #-----------------------*** End of DELETEINSTANCE section ***------------------------ 1189 | 1190 | #---------------------------------------------------------------------------------- 1191 | # CREATEPLUGGABLEDATABASE section is used when OPERATION_TYPE is defined as "createPluggableDatabase". 1192 | #---------------------------------------------------------------------------------- 1193 | [CREATEPLUGGABLEDATABASE] 1194 | #---------------------------------------------------------------------------------- 1195 | # Name : SOURCEDB 1196 | # Datatype : String 1197 | # Description : The source database is the SID 1198 | # This database must be local and on the same ORACLE_HOME. 1199 | # Default value : none 1200 | # Mandatory : YES 1201 | #----------------------------------------------------------------------------- 1202 | SOURCEDB = "orcl" 1203 | 1204 | #---------------------------------------------------------------------------------- 1205 | # Name : PDBNAME 1206 | # Datatype : String 1207 | # Description : The name of new pluggable database 1208 | # This pdb name must not be same as sourcedb name. 1209 | # Default value : none 1210 | # Mandatory : YES 1211 | #----------------------------------------------------------------------------- 1212 | PDBNAME = "PDB1" 1213 | 1214 | #---------------------------------------------------------------------------------- 1215 | # Name : CREATEASCLONE 1216 | # Datatype : Boolean 1217 | # Description : specify true or false for PDB to be create as Clone. 1218 | # : When "true" is passed a new PDB GUID is generated for the plugged in PDB 1219 | # Default value : true 1220 | # Mandatory : NO 1221 | #----------------------------------------------------------------------------- 1222 | # CREATEASCLONE = "TRUE" 1223 | 1224 | #---------------------------------------------------------------------------------- 1225 | 1226 | #---------------------------------------------------------------------------------- 1227 | # Name : CREATEPDBFROM 1228 | # Datatype : String 1229 | # Description : specify the source of pdb to be plugged 1230 | # Valid values : DEFAULT | FILEARCHIVE | RMANBACKUP | USINGXML 1231 | # Default value : DEFAULT 1232 | # Mandatory : NO 1233 | #----------------------------------------------------------------------------- 1234 | # CREATEPDBFROM = "DEFAULT" 1235 | 1236 | #---------------------------------------------------------------------------------- 1237 | # Name : PDBARCHIVEFILE 1238 | # Datatype : String 1239 | # Description : Full path and name for pdbArchive file 1240 | # Default value : None 1241 | # Mandatory : Mandatory when creating new PDB using FILEARCHIVE 1242 | #----------------------------------------------------------------------------- 1243 | # PDBARCHIVEFILE = "" 1244 | 1245 | #---------------------------------------------------------------------------------- 1246 | # Name : PDBBACKUPFILE 1247 | # Datatype : String 1248 | # Description : Full path and name for pdb back up file 1249 | # Default value : None 1250 | # Mandatory : Mandatory when creating new PDB using RMANBACKUP 1251 | #----------------------------------------------------------------------------- 1252 | # PDBBACKUPFILE = "" 1253 | 1254 | #---------------------------------------------------------------------------------- 1255 | # Name : PDBMETADATAFILE 1256 | # Datatype : String 1257 | # Description : Full path and name for pdb metadata file 1258 | # Default value : None 1259 | # Mandatory : Mandatory when creating new PDB using RMANBACKUP or USINGXML 1260 | #----------------------------------------------------------------------------- 1261 | # PDBMETADATAFILE = "" 1262 | 1263 | #---------------------------------------------------------------------------------- 1264 | # Name : PDBUSEMULTIPLEBACKUP 1265 | # Datatype : boolean 1266 | # Description : Flag that can used to create PDB from single or multiple backupsets 1267 | # Default value : true 1268 | # Mandatory : Optional when creating new PDB using RMANBACKUP or USINGXML 1269 | #----------------------------------------------------------------------------- 1270 | # PDBUSEMULTIPLEBACKUP = 1271 | 1272 | #---------------------------------------------------------------------------------- 1273 | # Name : PDBADMINUSERNAME 1274 | # Datatype : String 1275 | # Description : PDB Administrator user name 1276 | # Default value : None 1277 | # Mandatory : Mandatory only when creating new DEFAULT PDB 1278 | #----------------------------------------------------------------------------- 1279 | # PDBADMINUSERNAME = "" 1280 | 1281 | #---------------------------------------------------------------------------------- 1282 | # Name : PDBADMINPASSWORD 1283 | # Datatype : String 1284 | # Description : PDB Administrator user password 1285 | # Default value : None 1286 | # Mandatory : Mandatory only when creating new DEFAULT PDB 1287 | #----------------------------------------------------------------------------- 1288 | # PDBADMINPASSWORD = "" 1289 | 1290 | #---------------------------------------------------------------------------------- 1291 | # Name : CREATENEWPDBADMINUSER 1292 | # Datatype : String 1293 | # Description : When Plugging a pdb from FILEARCHIVE or RMANBACKUP 1294 | # a new PDB Administrator user can be created using this option 1295 | # This option should be given along with pdbadmin username and password 1296 | # Default value : False 1297 | # Mandatory : NO 1298 | #----------------------------------------------------------------------------- 1299 | # CREATENEWPDBADMINUSER = "" 1300 | 1301 | #---------------------------------------------------------------------------------- 1302 | # Name : SOURCEFILENAMECONVERT 1303 | # Datatype : String 1304 | # Description : This clause specifies how to locate files listed in an XML file 1305 | # describing a Pluggable Database if they reside in a location different 1306 | # from that specified in the XML file. 1307 | # This clause is valid when creating Pluggable database in USINGXML option 1308 | # Valid values : (, ,....) 1309 | # Default value : "NONE" 1310 | # Mandatory : NO 1311 | #----------------------------------------------------------------------------- 1312 | # SOURCEFILENAMECONVERT = "" 1313 | 1314 | #---------------------------------------------------------------------------------- 1315 | # Name : FILENAMECONVERT 1316 | # Datatype : String 1317 | # Description : This clause specifies how to generate names of files 1318 | # for the Pluggable Database being created using names of existing files 1319 | # This clause is valid when creating Pluggable database in USINGXML option 1320 | # Valid values : (, ,....) 1321 | # Default value : "NONE" 1322 | # Mandatory : NO 1323 | #----------------------------------------------------------------------------- 1324 | # FILENAMECONVERT = "" 1325 | 1326 | #---------------------------------------------------------------------------------- 1327 | # Name : COPYPDBFILES 1328 | # Datatype : Boolean 1329 | # Description : If COPY is specified, it will indicate that datafiles need to be copied. 1330 | # : This option can be true only when FILENAMECONVERT is specified or 1331 | # CDB files are Oracle Managed Files(OMF) 1332 | # Valid values : TRUE \ FALSE 1333 | # Default value : False 1334 | # Mandatory : NO 1335 | #----------------------------------------------------------------------------- 1336 | # COPYPDBFILES = "" 1337 | 1338 | #---------------------------------------------------------------------------------- 1339 | # Name : PDBDATAFILEDESTINATION 1340 | # Datatype : String 1341 | # Description : common location for PDB datafile area 1342 | # Default value : None 1343 | # Mandatory : NO 1344 | #----------------------------------------------------------------------------- 1345 | # PDBDATAFILEDESTINATION = "" 1346 | 1347 | #---------------------------------------------------------------------------------- 1348 | # Name : USEMETADATAFILELOCATION 1349 | # Datatype : Boolean 1350 | # Description : Specify true if datafile path defined in Meta datafile within PDB 1351 | # archive file is to be used to un-archive datafile. 1352 | # Valid values : TRUE \ FALSE 1353 | # Default value : FALSE 1354 | # Mandatory : NO 1355 | #----------------------------------------------------------------------------- 1356 | # USEMETADATAFILELOCATION = "" 1357 | 1358 | #----------------------------------------------------------------------------- 1359 | # Name : REGISTERWITHDIRSERVICE 1360 | # Datatype : Boolean 1361 | # Description : Specifies whether to register with Directory Service. 1362 | # Valid values : TRUE \ FALSE 1363 | # Default value : FALSE 1364 | # Mandatory : No 1365 | #----------------------------------------------------------------------------- 1366 | #REGISTERWITHDIRSERVICE= TRUE 1367 | 1368 | #----------------------------------------------------------------------------- 1369 | # Name : DIRSERVICEUSERNAME 1370 | # Datatype : String 1371 | # Description : Specifies the name of the directory service user 1372 | # Mandatory : YES, if the value of registerWithDirService is TRUE 1373 | #----------------------------------------------------------------------------- 1374 | #DIRSERVICEUSERNAME= "name" 1375 | 1376 | #----------------------------------------------------------------------------- 1377 | # Name : DIRSERVICEPASSWORD 1378 | # Datatype : String 1379 | # Description : The password of the directory service user. 1380 | # You can also specify the password at the command prompt instead of here. 1381 | # Mandatory : YES, if the value of registerWithDirService is TRUE 1382 | #----------------------------------------------------------------------------- 1383 | #DIRSERVICEPASSWORD= "password" 1384 | 1385 | #----------------------------------------------------------------------------- 1386 | # Name : WALLETPASSWORD 1387 | # Datatype : String 1388 | # Description : The password for wallet to created or modified. 1389 | # You can also specify the password at the command prompt instead of here. 1390 | # Mandatory : YES, if the value of registerWithDirService is TRUE 1391 | #----------------------------------------------------------------------------- 1392 | #WALLETPASSWORD= "password" 1393 | 1394 | #----------------------------------------------------------------------------- 1395 | # Name : LBACSYSPASSWORD 1396 | # Datatype : String 1397 | # Description : Password for LBACSYS user 1398 | # You can also specify the password at the command prompt instead of here. 1399 | # Mandatory : YES, if the value of registerWithDirService are TRUE 1400 | #----------------------------------------------------------------------------- 1401 | #LBACSYSPASSWORD= "password" 1402 | 1403 | #---------------------------------------------------------------------------------- 1404 | # Name : CREATEUSERTABLESPACE 1405 | # Datatype : Boolean 1406 | # Description : Specify true if a default user tablespace need to be created in new PDB 1407 | # 1408 | # Valid values : TRUE \ FALSE 1409 | # Default value : TRUE 1410 | # Mandatory : NO 1411 | #----------------------------------------------------------------------------- 1412 | # CREATEUSERTABLESPACE = "" 1413 | 1414 | #----------------------------------------------------------------------------- 1415 | # Name : DVCONFIGURATION 1416 | # Datatype : Boolean 1417 | # Description : Specify "True" to configure and enable Oracle Database vault 1418 | # Valid values : True/False 1419 | # Default value : False 1420 | # Mandatory : No 1421 | #----------------------------------------------------------------------------- 1422 | #DVCONFIGURATION = "false" 1423 | 1424 | #----------------------------------------------------------------------------- 1425 | # Name : DVOWNERNAME 1426 | # Datatype : String 1427 | # Description : DataVault Owner 1428 | # Valid values : Check Oracle12c Administrator's Guide 1429 | # Default value : None 1430 | # Mandatory : Yes, if DataVault option is chosen 1431 | #----------------------------------------------------------------------------- 1432 | #DVOWNERNAME = "" 1433 | 1434 | #----------------------------------------------------------------------------- 1435 | # Name : DVOWNERPASSWORD 1436 | # Datatype : String 1437 | # Description : Password for DataVault Owner 1438 | # Valid values : Check Oracle12c Administrator's Guide 1439 | # Default value : None 1440 | # Mandatory : Yes, if DataVault option is chosen 1441 | #----------------------------------------------------------------------------- 1442 | #DVOWNERPASSWORD = "" 1443 | 1444 | #----------------------------------------------------------------------------- 1445 | # Name : DVACCOUNTMANAGERNAME 1446 | # Datatype : String 1447 | # Description : DataVault Account Manager 1448 | # Valid values : Check Oracle12c Administrator's Guide 1449 | # Default value : None 1450 | # Mandatory : No 1451 | #----------------------------------------------------------------------------- 1452 | #DVACCOUNTMANAGERNAME = "" 1453 | 1454 | #----------------------------------------------------------------------------- 1455 | # Name : DVACCOUNTMANAGERPASSWORD 1456 | # Datatype : String 1457 | # Description : Password for DataVault Account Manager 1458 | # Valid values : Check Oracle12c Administrator's Guide 1459 | # Default value : None 1460 | # Mandatory : No 1461 | #----------------------------------------------------------------------------- 1462 | #DVACCOUNTMANAGERPASSWORD = "" 1463 | 1464 | #-----------------------*** End of createPluggableDatabase section ***------------------------ 1465 | 1466 | #---------------------------------------------------------------------------------- 1467 | # UNPLUGDATABASE section is used when OPERATION_TYPE is defined as "unplugDatabase". 1468 | #---------------------------------------------------------------------------------- 1469 | [UNPLUGDATABASE] 1470 | #---------------------------------------------------------------------------------- 1471 | # Name : SOURCEDB 1472 | # Datatype : String 1473 | # Description : The source database is the SID 1474 | # This database must be local and on the same ORACLE_HOME. 1475 | # Default value : none 1476 | # Mandatory : YES 1477 | #----------------------------------------------------------------------------- 1478 | SOURCEDB = "orcl" 1479 | 1480 | #---------------------------------------------------------------------------------- 1481 | # Name : PDBNAME 1482 | # Datatype : String 1483 | # Description : The name of new pluggable database 1484 | # This pdb name must not be same as sourcedb name. 1485 | # Default value : none 1486 | # Mandatory : YES 1487 | #----------------------------------------------------------------------------- 1488 | PDBNAME = "PDB1" 1489 | 1490 | #---------------------------------------------------------------------------------- 1491 | # Name : ARCHIVETYPE 1492 | # Datatype : String 1493 | # Description : The unplugged database datafile backup will in tar.gz or rman backup 1494 | # This pdb name must not be same as sourcedb name. 1495 | # Valid values : TAR | RMAN 1496 | # Default value : TAR 1497 | # Mandatory : NO 1498 | #----------------------------------------------------------------------------- 1499 | ARCHIVETYPE = "TAR" 1500 | 1501 | #---------------------------------------------------------------------------------- 1502 | # Name : PDBARCHIVEFILE 1503 | # Datatype : String 1504 | # Description : Full path and name for pdbArchive file 1505 | # Default value : None 1506 | # Mandatory : NO 1507 | #----------------------------------------------------------------------------- 1508 | # PDBARCHIVEFILE = "" 1509 | 1510 | #---------------------------------------------------------------------------------- 1511 | # Name : PDBBACKUPFILE 1512 | # Datatype : String 1513 | # Description : Full path and name for pdb back up file 1514 | # Default value : None 1515 | # Mandatory : No 1516 | #----------------------------------------------------------------------------- 1517 | # PDBBACKUPFILE = "" 1518 | 1519 | #---------------------------------------------------------------------------------- 1520 | # Name : PDBMETADATAFILE 1521 | # Datatype : String 1522 | # Description : Full path and name for pdb metadata file 1523 | # Default value : None 1524 | # Mandatory : No 1525 | #----------------------------------------------------------------------------- 1526 | # PDBMETADATAFILE = "" 1527 | 1528 | #----------------------------------------------------------------------------- 1529 | # Name : UNREGISTERWITHDIRSERVICE 1530 | # Datatype : Boolean 1531 | # Description : Specifies whether to unregister with Directory Service. 1532 | # Valid values : TRUE \ FALSE 1533 | # Default value : FALSE 1534 | # Mandatory : No 1535 | #----------------------------------------------------------------------------- 1536 | #UNREGISTERWITHDIRSERVICE= TRUE 1537 | 1538 | #----------------------------------------------------------------------------- 1539 | # Name : DIRSERVICEUSERNAME 1540 | # Datatype : String 1541 | # Description : Specifies the name of the directory service user 1542 | # Mandatory : YES, if the value of unregisterWithDirService is TRUE 1543 | #----------------------------------------------------------------------------- 1544 | #DIRSERVICEUSERNAME= "name" 1545 | 1546 | #----------------------------------------------------------------------------- 1547 | # Name : DIRSERVICEPASSWORD 1548 | # Datatype : String 1549 | # Description : The password of the directory service user. 1550 | # You can also specify the password at the command prompt instead of here. 1551 | # Mandatory : YES, if the value of unregisterWithDirService is TRUE 1552 | #----------------------------------------------------------------------------- 1553 | #DIRSERVICEPASSWORD= "password" 1554 | 1555 | #----------------------------------------------------------------------------- 1556 | # Name : WALLETPASSWORD 1557 | # Datatype : String 1558 | # Description : The password for wallet to created or modified. 1559 | # You can also specify the password at the command prompt instead of here. 1560 | # Mandatory : YES, if the value of unregisterWithDirService is TRUE 1561 | #----------------------------------------------------------------------------- 1562 | #WALLETPASSWORD= "password" 1563 | 1564 | #-----------------------*** End of unplugDatabase section ***------------------------ 1565 | 1566 | #---------------------------------------------------------------------------------- 1567 | # DELETEPLUGGABLEDATABASE section is used when OPERATION_TYPE is defined as "deletePluggableDatabase". 1568 | #---------------------------------------------------------------------------------- 1569 | [DELETEPLUGGABLEDATABASE] 1570 | #---------------------------------------------------------------------------------- 1571 | # Name : SOURCEDB 1572 | # Datatype : String 1573 | # Description : The source database is the SID 1574 | # This database must be local and on the same ORACLE_HOME. 1575 | # Default value : none 1576 | # Mandatory : YES 1577 | #----------------------------------------------------------------------------- 1578 | SOURCEDB = "orcl" 1579 | 1580 | #---------------------------------------------------------------------------------- 1581 | # Name : PDBNAME 1582 | # Datatype : String 1583 | # Description : The name of new pluggable database 1584 | # This pdb name must not be same as sourcedb name. 1585 | # Default value : none 1586 | # Mandatory : YES 1587 | #----------------------------------------------------------------------------- 1588 | PDBNAME = "PDB1" 1589 | 1590 | #-----------------------*** End of deletePluggableDatabase section ***------------------------ 1591 | 1592 | #---------------------------------------------------------------------------------- 1593 | # CONFIGUREPLUGGABLEDATABASE section is used when OPERATION_TYPE is defined as "configurePluggableDatabase". 1594 | #---------------------------------------------------------------------------------- 1595 | [CONFIGUREPLUGGABLEDATABASE] 1596 | #---------------------------------------------------------------------------------- 1597 | # Name : SOURCEDB 1598 | # Datatype : String 1599 | # Description : The source database is the SID 1600 | # This database must be local and on the same ORACLE_HOME. 1601 | # Default value : none 1602 | # Mandatory : YES 1603 | #----------------------------------------------------------------------------- 1604 | SOURCEDB = "orcl" 1605 | 1606 | #---------------------------------------------------------------------------------- 1607 | # Name : PDBNAME 1608 | # Datatype : String 1609 | # Description : The name of new pluggable database 1610 | # This pdb name must not be same as sourcedb name. 1611 | # Default value : none 1612 | # Mandatory : YES 1613 | #----------------------------------------------------------------------------- 1614 | PDBNAME = "PDB1" 1615 | 1616 | #----------------------------------------------------------------------------- 1617 | # Name : DVCONFIGURATION 1618 | # Datatype : Boolean 1619 | # Description : Specify "True" to configure and enable Oracle Database vault 1620 | # Valid values : True/False 1621 | # Default value : False 1622 | # Mandatory : No 1623 | #----------------------------------------------------------------------------- 1624 | #DVCONFIGURATION = "false" 1625 | 1626 | #----------------------------------------------------------------------------- 1627 | # Name : DVOWNERNAME 1628 | # Datatype : String 1629 | # Description : DataVault Owner 1630 | # Valid values : Check Oracle12c Administrator's Guide 1631 | # Default value : None 1632 | # Mandatory : Yes, if DataVault option is chosen 1633 | #----------------------------------------------------------------------------- 1634 | #DVOWNERNAME = "" 1635 | 1636 | #----------------------------------------------------------------------------- 1637 | # Name : DVOWNERPASSWORD 1638 | # Datatype : String 1639 | # Description : Password for DataVault Owner 1640 | # Valid values : Check Oracle12c Administrator's Guide 1641 | # Default value : None 1642 | # Mandatory : Yes, if DataVault option is chosen 1643 | #----------------------------------------------------------------------------- 1644 | #DVOWNERPASSWORD = "" 1645 | 1646 | #----------------------------------------------------------------------------- 1647 | # Name : DVACCOUNTMANAGERNAME 1648 | # Datatype : String 1649 | # Description : DataVault Account Manager 1650 | # Valid values : Check Oracle12c Administrator's Guide 1651 | # Default value : None 1652 | # Mandatory : No 1653 | #----------------------------------------------------------------------------- 1654 | #DVACCOUNTMANAGERNAME = "" 1655 | 1656 | #----------------------------------------------------------------------------- 1657 | # Name : DVACCOUNTMANAGERPASSWORD 1658 | # Datatype : String 1659 | # Description : Password for DataVault Account Manager 1660 | # Valid values : Check Oracle12c Administrator's Guide 1661 | # Default value : None 1662 | # Mandatory : No 1663 | #----------------------------------------------------------------------------- 1664 | #DVACCOUNTMANAGERPASSWORD = "" 1665 | 1666 | #----------------------------------------------------------------------------- 1667 | # Name : OLSCONFIGURATION 1668 | # Datatype : Boolean 1669 | # Description : Specify "True" to configure and enable Oracle Label Security 1670 | # Valid values : True/False 1671 | # Default value : False 1672 | # Mandatory : No 1673 | #----------------------------------------------------------------------------- 1674 | #OLSCONFIGURATION = "false" 1675 | 1676 | #----------------------------------------------------------------------------- 1677 | # Name : REGISTERWITHDIRSERVICE 1678 | # Datatype : Boolean 1679 | # Description : Specifies whether to register with Directory Service. 1680 | # Valid values : TRUE \ FALSE 1681 | # Default value : FALSE 1682 | # Mandatory : No 1683 | #----------------------------------------------------------------------------- 1684 | #REGISTERWITHDIRSERVICE= TRUE 1685 | 1686 | #----------------------------------------------------------------------------- 1687 | # Name : DIRSERVICEUSERNAME 1688 | # Datatype : String 1689 | # Description : Specifies the name of the directory service user 1690 | # Mandatory : YES, if the value of registerWithDirService is TRUE 1691 | #----------------------------------------------------------------------------- 1692 | #DIRSERVICEUSERNAME= "name" 1693 | 1694 | #----------------------------------------------------------------------------- 1695 | # Name : DIRSERVICEPASSWORD 1696 | # Datatype : String 1697 | # Description : The password of the directory service user. 1698 | # You can also specify the password at the command prompt instead of here. 1699 | # Mandatory : YES, if the value of registerWithDirService is TRUE 1700 | #----------------------------------------------------------------------------- 1701 | #DIRSERVICEPASSWORD= "password" 1702 | 1703 | #----------------------------------------------------------------------------- 1704 | # Name : WALLETPASSWORD 1705 | # Datatype : String 1706 | # Description : The password for wallet to created or modified. 1707 | # You can also specify the password at the command prompt instead of here. 1708 | # Mandatory : YES, if the value of registerWithDirService is TRUE 1709 | #----------------------------------------------------------------------------- 1710 | #WALLETPASSWORD= "password" 1711 | 1712 | #----------------------------------------------------------------------------- 1713 | # Name : LBACSYSPASSWORD 1714 | # Datatype : String 1715 | # Description : Password for LBACSYS user 1716 | # You can also specify the password at the command prompt instead of here. 1717 | # Mandatory : YES, if the value of olsConfiguration and registerWithDirService are TRUE 1718 | #----------------------------------------------------------------------------- 1719 | #LBACSYSPASSWORD= "password" 1720 | 1721 | 1722 | #----------------------------------------------------------------------------- 1723 | # Name : EMCONFIGURATION 1724 | # Datatype : String 1725 | # Description : Enterprise Manager Configuration Type 1726 | # Valid values : DBEXPRESS|NONE 1727 | # Default value : NONE 1728 | # Mandatory : No 1729 | #----------------------------------------------------------------------------- 1730 | #EMCONFIGURATION = "NONE" 1731 | 1732 | 1733 | #----------------------------------------------------------------------------- 1734 | # Name : EMEXPRESSPORT 1735 | # Datatype : Number 1736 | # Description : Enterprise Manager Configuration Type 1737 | # Valid values : Check Oracle12c Administrator's Guide 1738 | # Default value : NONE 1739 | # Mandatory : No, will be picked up from DBEXPRESS_HTTPS_PORT env variable 1740 | # or auto generates a free port between 5500 and 5599 1741 | #----------------------------------------------------------------------------- 1742 | #EMEXPRESSPORT = "" 1743 | 1744 | #-----------------------*** End of configurePluggableDatabase section ***------------------------ 1745 | -------------------------------------------------------------------------------- /roles/oracle_db_create/templates/netca.rsp.j2: -------------------------------------------------------------------------------- 1 | ###################################################################### 2 | ## Copyright(c) 1998, 2014 Oracle Corporation. All rights reserved. ## 3 | ## ## 4 | ## Specify values for the variables listed below to customize your ## 5 | ## installation. ## 6 | ## ## 7 | ## Each variable is associated with a comment. The comment ## 8 | ## identifies the variable type. ## 9 | ## ## 10 | ## Please specify the values in the following format: ## 11 | ## ## 12 | ## Type Example ## 13 | ## String "Sample Value" ## 14 | ## Boolean True or False ## 15 | ## Number 1000 ## 16 | ## StringList {"String value 1","String Value 2"} ## 17 | ## ## 18 | ###################################################################### 19 | ## ## 20 | ## This sample response file causes the Oracle Net Configuration ## 21 | ## Assistant (NetCA) to complete an Oracle Net configuration during ## 22 | ## a custom install of the Oracle12c server which is similar to ## 23 | ## what would be created by the NetCA during typical Oracle12c ## 24 | ## install. It also documents all of the NetCA response file ## 25 | ## variables so you can create your own response file to configure ## 26 | ## Oracle Net during an install the way you wish. ## 27 | ## ## 28 | ###################################################################### 29 | 30 | [GENERAL] 31 | RESPONSEFILE_VERSION="12.1" 32 | CREATE_TYPE="CUSTOM" 33 | 34 | #------------------------------------------------------------------------------- 35 | # Name : SHOW_GUI 36 | # Datatype : Boolean 37 | # Description: This variable controls appearance/suppression of the NetCA GUI, 38 | # Pre-req : N/A 39 | # Default : TRUE 40 | # Note: 41 | # This must be set to false in order to run NetCA in silent mode. 42 | # This is a substitute of "/silent" flag in the NetCA command line. 43 | # The command line flag has precedence over the one in this response file. 44 | # This feature is present since 10.1.0.3. 45 | #------------------------------------------------------------------------------- 46 | #SHOW_GUI=false 47 | 48 | #------------------------------------------------------------------------------- 49 | # Name : LOG_FILE 50 | # Datatype : String 51 | # Description: If present, NetCA will log output to this file in addition to the 52 | # standard out. 53 | # Pre-req : N/A 54 | # Default : NONE 55 | # Note: 56 | # This is a substitute of "/log" in the NetCA command line. 57 | # The command line argument has precedence over the one in this response file. 58 | # This feature is present since 10.1.0.3. 59 | #------------------------------------------------------------------------------- 60 | #LOG_FILE=""/oracle12cHome/network/tools/log/netca.log"" 61 | 62 | [oracle.net.ca] 63 | #INSTALLED_COMPONENTS;StringList;list of installed components 64 | # The possible values for installed components are: 65 | # "net8","server","client","aso", "cman", "javavm" 66 | INSTALLED_COMPONENTS={"server","net8","javavm"} 67 | 68 | #INSTALL_TYPE;String;type of install 69 | # The possible values for install type are: 70 | # "typical","minimal" or "custom" 71 | INSTALL_TYPE=""typical"" 72 | 73 | #LISTENER_NUMBER;Number;Number of Listeners 74 | # A typical install sets one listener 75 | LISTENER_NUMBER=1 76 | 77 | #LISTENER_NAMES;StringList;list of listener names 78 | # The values for listener are: 79 | # "LISTENER","LISTENER1","LISTENER2","LISTENER3", ... 80 | # A typical install sets only "LISTENER" 81 | LISTENER_NAMES={"LISTENER"} 82 | 83 | #LISTENER_PROTOCOLS;StringList;list of listener addresses (protocols and parameters separated by semicolons) 84 | # The possible values for listener protocols are: 85 | # "TCP;1521","TCPS;2484","NMP;ORAPIPE","IPC;IPCKEY","VI;1521" 86 | # A typical install sets only "TCP;1521" 87 | LISTENER_PROTOCOLS={"TCP;1521"} 88 | 89 | #LISTENER_START;String;name of the listener to start, in double quotes 90 | LISTENER_START=""LISTENER"" 91 | 92 | #NAMING_METHODS;StringList;list of naming methods 93 | # The possible values for naming methods are: 94 | # LDAP, TNSNAMES, ONAMES, HOSTNAME, NOVELL, NIS, DCE 95 | # A typical install sets only: "TNSNAMES","ONAMES","HOSTNAMES" 96 | # or "LDAP","TNSNAMES","ONAMES","HOSTNAMES" for LDAP 97 | NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"} 98 | 99 | #NOVELL_NAMECONTEXT;String;Novell Directory Service name context, in double quotes 100 | # A typical install does not use this variable. 101 | #NOVELL_NAMECONTEXT = ""NAMCONTEXT"" 102 | 103 | #SUN_METAMAP;String; SUN meta map, in double quotes 104 | # A typical install does not use this variable. 105 | #SUN_METAMAP = ""MAP"" 106 | 107 | #DCE_CELLNAME;String;DCE cell name, in double quotes 108 | # A typical install does not use this variable. 109 | #DCE_CELLNAME = ""CELL"" 110 | 111 | #NSN_NUMBER;Number;Number of NetService Names 112 | # A typical install sets one net service name 113 | NSN_NUMBER=1 114 | 115 | #NSN_NAMES;StringList;list of Net Service names 116 | # A typical install sets net service name to "EXTPROC_CONNECTION_DATA" 117 | NSN_NAMES={"EXTPROC_CONNECTION_DATA"} 118 | 119 | #NSN_SERVICE;StringList;Oracle12c database's service name 120 | # A typical install sets Oracle12c database's service name to "PLSExtProc" 121 | NSN_SERVICE={"PLSExtProc"} 122 | 123 | #NSN_PROTOCOLS;StringList;list of coma separated strings of Net Service Name protocol parameters 124 | # The possible values for net service name protocol parameters are: 125 | # "TCP;HOSTNAME;1521","TCPS;HOSTNAME;2484","NMP;COMPUTERNAME;ORAPIPE","VI;HOSTNAME;1521","IPC;IPCKEY" 126 | # A typical install sets parameters to "IPC;EXTPROC" 127 | NSN_PROTOCOLS={"TCP;HOSTNAME;1521"} 128 | 129 | #SERVICEUSERPASSWORD;String;Windows service user password 130 | # If the oracle home is installed as secure user, supply the password 131 | #SERVICEUSERPASSWORD=""svcpassword"" 132 | 133 | -------------------------------------------------------------------------------- /roles/oracle_db_create/templates/oracle_profile.j2: -------------------------------------------------------------------------------- 1 | ORACLE_BASE="{{ oracle_base }}" 2 | export ORACLE_BASE 3 | ORACLE_HOME="{{oracle_home}}" 4 | export ORACLE_HOME 5 | NLS_LANG=american_america.{{ oracle_charset }} 6 | export NLS_LANG 7 | SHLIB_PATH=$ORACLE_HOME/lib 8 | export SHLIB_PATH 9 | LD_LIBRARY_PATH=$ORACLE_HOME/lib 10 | export LD_LIBRARY_PATH 11 | ORACLE_SID={{ oracle_sid }} 12 | export ORACLE_SID 13 | export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS' 14 | 15 | 16 | 17 | export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH:$SQLPATH:$GG_HOME/ 18 | 19 | -------------------------------------------------------------------------------- /roles/oracle_db_create/templates/oradb_service.j2: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Oracle Database Service 3 | After=syslog.target network.target 4 | 5 | [Service] 6 | LimitMEMLOCK=infinity 7 | LimitNOFILE=65535 8 | Type=simple 9 | RemainAfterExit=yes 10 | User={{ oracle_user }} 11 | Group={{ oracle_install_group }} 12 | ExecStart={{ oracle_home }}/bin/dbstart {{ oracle_home }} 13 | ExecStop={{ oracle_home }}/bin/dbshut {{ oracle_home }} 14 | 15 | [Install] 16 | WantedBy=multi-user.target 17 | -------------------------------------------------------------------------------- /roles/oracle_sw_install/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - name: Check if ORACLE HOME is already installed 2 | stat: 3 | path: "{{ oracle_home }}" 4 | register: orah 5 | tags: check_db_sw_installed 6 | 7 | - debug: 8 | msg: oracle_home already exists is {{ orah.stat.exists }} 9 | tags: check_db_sw_installed 10 | 11 | - name: Create folder for installation files 12 | file: state=directory path={{ installation_folder }} 13 | 14 | - name: Copy and unzip Oracle Software files 15 | unarchive: src={{ item }} dest='{{ installation_folder }}/' 16 | with_items: '{{ installer_archives }}' 17 | when: not orah.stat.exists 18 | tags: check_db_sw_installed 19 | 20 | - name: Gerenerate the response file for software only installation 21 | template: src=db_install.rsp.j2 dest={{ installation_folder }}/db_install.rsp 22 | when: not orah.stat.exists 23 | 24 | - name: Install Oracle Software 25 | when: not orah.stat.exists 26 | command: '{{ installation_folder}}/database/runInstaller -silent -ignorePrereq -ignoreSysPrereqs -waitforcompletion -responseFile {{ installation_folder }}/db_install.rsp' 27 | register: db_sw_installed 28 | 29 | - name: Execute orainstRoot.sh as root 30 | command: '{{ inventory_location }}/orainstRoot.sh' 31 | become_user: root 32 | when: db_sw_installed|success 33 | 34 | - name: Execute root.sh as root 35 | command: '{{ oracle_home }}/root.sh' 36 | become_user: root 37 | when: db_sw_installed|success 38 | 39 | -------------------------------------------------------------------------------- /roles/oracle_sw_install/templates/db_install.rsp.j2: -------------------------------------------------------------------------------- 1 | #################################################################### 2 | ## Copyright(c) Oracle Corporation 1998,2014. All rights reserved.## 3 | ## ## 4 | ## Specify values for the variables listed below to customize ## 5 | ## your installation. ## 6 | ## ## 7 | ## Each variable is associated with a comment. The comment ## 8 | ## can help to populate the variables with the appropriate ## 9 | ## values. ## 10 | ## ## 11 | ## IMPORTANT NOTE: This file contains plain text passwords and ## 12 | ## should be secured to have read permission only by oracle user ## 13 | ## or db administrator who owns this installation. ## 14 | ## ## 15 | #################################################################### 16 | 17 | 18 | #------------------------------------------------------------------------------- 19 | # Do not change the following system generated value. 20 | #------------------------------------------------------------------------------- 21 | oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0 22 | 23 | #------------------------------------------------------------------------------- 24 | # Specify the installation option. 25 | # It can be one of the following: 26 | # - INSTALL_DB_SWONLY 27 | # - INSTALL_DB_AND_CONFIG 28 | # - UPGRADE_DB 29 | #------------------------------------------------------------------------------- 30 | oracle.install.option={{ install_db }} 31 | 32 | #------------------------------------------------------------------------------- 33 | # Specify the hostname of the system as set during the install. It can be used 34 | # to force the installation to use an alternative hostname rather than using the 35 | # first hostname found on the system. (e.g., for systems with multiple hostnames 36 | # and network interfaces) 37 | #------------------------------------------------------------------------------- 38 | ORACLE_HOSTNAME={{ oracle_hostname }} 39 | 40 | #------------------------------------------------------------------------------- 41 | # Specify the Unix group to be set for the inventory directory. 42 | #------------------------------------------------------------------------------- 43 | UNIX_GROUP_NAME={{ inventory_os_group }} 44 | 45 | #------------------------------------------------------------------------------- 46 | # Specify the location which holds the inventory files. 47 | # This is an optional parameter if installing on 48 | # Windows based Operating System. 49 | #------------------------------------------------------------------------------- 50 | INVENTORY_LOCATION={{ inventory_location }} 51 | #------------------------------------------------------------------------------- 52 | # Specify the languages in which the components will be installed. 53 | # 54 | # en : English ja : Japanese 55 | # fr : French ko : Korean 56 | # ar : Arabic es : Latin American Spanish 57 | # bn : Bengali lv : Latvian 58 | # pt_BR: Brazilian Portuguese lt : Lithuanian 59 | # bg : Bulgarian ms : Malay 60 | # fr_CA: Canadian French es_MX: Mexican Spanish 61 | # ca : Catalan no : Norwegian 62 | # hr : Croatian pl : Polish 63 | # cs : Czech pt : Portuguese 64 | # da : Danish ro : Romanian 65 | # nl : Dutch ru : Russian 66 | # ar_EG: Egyptian zh_CN: Simplified Chinese 67 | # en_GB: English (Great Britain) sk : Slovak 68 | # et : Estonian sl : Slovenian 69 | # fi : Finnish es_ES: Spanish 70 | # de : German sv : Swedish 71 | # el : Greek th : Thai 72 | # iw : Hebrew zh_TW: Traditional Chinese 73 | # hu : Hungarian tr : Turkish 74 | # is : Icelandic uk : Ukrainian 75 | # in : Indonesian vi : Vietnamese 76 | # it : Italian 77 | # 78 | # all_langs : All languages 79 | # 80 | # Specify value as the following to select any of the languages. 81 | # Example : SELECTED_LANGUAGES=en,fr,ja 82 | # 83 | # Specify value as the following to select all the languages. 84 | # Example : SELECTED_LANGUAGES=all_langs 85 | #------------------------------------------------------------------------------- 86 | SELECTED_LANGUAGES=en 87 | 88 | #------------------------------------------------------------------------------- 89 | # Specify the complete path of the Oracle Home. 90 | #------------------------------------------------------------------------------- 91 | ORACLE_HOME={{ oracle_home }} 92 | 93 | #------------------------------------------------------------------------------- 94 | # Specify the complete path of the Oracle Base. 95 | #------------------------------------------------------------------------------- 96 | ORACLE_BASE={{ oracle_base }} 97 | 98 | #------------------------------------------------------------------------------- 99 | # Specify the installation edition of the component. 100 | # 101 | # The value should contain only one of these choices. 102 | # - EE : Enterprise Edition 103 | 104 | #------------------------------------------------------------------------------- 105 | oracle.install.db.InstallEdition={{ oracle_edition }} 106 | 107 | ############################################################################### 108 | # # 109 | # PRIVILEGED OPERATING SYSTEM GROUPS # 110 | # ------------------------------------------ # 111 | # Provide values for the OS groups to which OSDBA and OSOPER privileges # 112 | # needs to be granted. If the install is being performed as a member of the # 113 | # group "dba", then that will be used unless specified otherwise below. # 114 | # # 115 | # The value to be specified for OSDBA and OSOPER group is only for UNIX based # 116 | # Operating System. # 117 | # # 118 | ############################################################################### 119 | 120 | #------------------------------------------------------------------------------ 121 | # The DBA_GROUP is the OS group which is to be granted OSDBA privileges. 122 | #------------------------------------------------------------------------------- 123 | oracle.install.db.DBA_GROUP={{ oracle_dba_group }} 124 | 125 | #------------------------------------------------------------------------------ 126 | # The OPER_GROUP is the OS group which is to be granted OSOPER privileges. 127 | # The value to be specified for OSOPER group is optional. 128 | #------------------------------------------------------------------------------ 129 | oracle.install.db.OPER_GROUP={{ oracle_oper_group }} 130 | 131 | #------------------------------------------------------------------------------ 132 | # The BACKUPDBA_GROUP is the OS group which is to be granted OSBACKUPDBA privileges. 133 | #------------------------------------------------------------------------------ 134 | oracle.install.db.BACKUPDBA_GROUP={{ oracle_dba_group }} 135 | 136 | #------------------------------------------------------------------------------ 137 | # The DGDBA_GROUP is the OS group which is to be granted OSDGDBA privileges. 138 | #------------------------------------------------------------------------------ 139 | oracle.install.db.DGDBA_GROUP={{ oracle_dba_group }} 140 | 141 | #------------------------------------------------------------------------------ 142 | # The KMDBA_GROUP is the OS group which is to be granted OSKMDBA privileges. 143 | #------------------------------------------------------------------------------ 144 | oracle.install.db.KMDBA_GROUP={{ oracle_dba_group }} 145 | 146 | ############################################################################### 147 | # # 148 | # Grid Options # 149 | # # 150 | ############################################################################### 151 | #------------------------------------------------------------------------------ 152 | # Specify the type of Real Application Cluster Database 153 | # 154 | # - ADMIN_MANAGED: Admin-Managed 155 | # - POLICY_MANAGED: Policy-Managed 156 | # 157 | # If left unspecified, default will be ADMIN_MANAGED 158 | #------------------------------------------------------------------------------ 159 | oracle.install.db.rac.configurationType= 160 | 161 | #------------------------------------------------------------------------------ 162 | # Value is required only if RAC database type is ADMIN_MANAGED 163 | # 164 | # Specify the cluster node names selected during the installation. 165 | # Leaving it blank will result in install on local server only (Single Instance) 166 | # 167 | # Example : oracle.install.db.CLUSTER_NODES=node1,node2 168 | #------------------------------------------------------------------------------ 169 | oracle.install.db.CLUSTER_NODES= 170 | 171 | #------------------------------------------------------------------------------ 172 | # This variable is used to enable or disable RAC One Node install. 173 | # 174 | # - true : Value of RAC One Node service name is used. 175 | # - false : Value of RAC One Node service name is not used. 176 | # 177 | # If left blank, it will be assumed to be false. 178 | #------------------------------------------------------------------------------ 179 | oracle.install.db.isRACOneInstall= 180 | 181 | #------------------------------------------------------------------------------ 182 | # Value is required only if oracle.install.db.isRACOneInstall is true. 183 | # 184 | # Specify the name for RAC One Node Service 185 | #------------------------------------------------------------------------------ 186 | oracle.install.db.racOneServiceName= 187 | 188 | #------------------------------------------------------------------------------ 189 | # Value is required only if RAC database type is POLICY_MANAGED 190 | # 191 | # Specify a name for the new Server pool that will be configured 192 | # Example : oracle.install.db.rac.serverpoolName=pool1 193 | #------------------------------------------------------------------------------ 194 | oracle.install.db.rac.serverpoolName= 195 | 196 | #------------------------------------------------------------------------------ 197 | # Value is required only if RAC database type is POLICY_MANAGED 198 | # 199 | # Specify a number as cardinality for the new Server pool that will be configured 200 | # Example : oracle.install.db.rac.serverpoolCardinality=2 201 | #------------------------------------------------------------------------------ 202 | oracle.install.db.rac.serverpoolCardinality= 203 | 204 | ############################################################################### 205 | # # 206 | # Database Configuration Options # 207 | # # 208 | ############################################################################### 209 | 210 | #------------------------------------------------------------------------------- 211 | # Specify the type of database to create. 212 | # It can be one of the following: 213 | # - GENERAL_PURPOSE 214 | # - DATA_WAREHOUSE 215 | # GENERAL_PURPOSE: A starter database designed for general purpose use or transaction-heavy applications. 216 | # DATA_WAREHOUSE : A starter database optimized for data warehousing applications. 217 | #------------------------------------------------------------------------------- 218 | oracle.install.db.config.starterdb.type={{ oracle_database_type }} 219 | 220 | #------------------------------------------------------------------------------- 221 | # Specify the Starter Database Global Database Name. 222 | #------------------------------------------------------------------------------- 223 | oracle.install.db.config.starterdb.globalDBName={{ oracle_globalname }} 224 | 225 | #------------------------------------------------------------------------------- 226 | # Specify the Starter Database SID. 227 | #------------------------------------------------------------------------------- 228 | oracle.install.db.config.starterdb.SID={{ oracle_sid }} 229 | 230 | #------------------------------------------------------------------------------- 231 | # Specify whether the database should be configured as a Container database. 232 | # The value can be either "true" or "false". If left blank it will be assumed 233 | # to be "false". 234 | #------------------------------------------------------------------------------- 235 | oracle.install.db.ConfigureAsContainerDB={{ oracle_conf_as_container_db }} 236 | 237 | #------------------------------------------------------------------------------- 238 | # Specify the Pluggable Database name for the pluggable database in Container Database. 239 | #------------------------------------------------------------------------------- 240 | oracle.install.db.config.PDBName={{ oracle_pdb_name }} 241 | 242 | #------------------------------------------------------------------------------- 243 | # Specify the Starter Database character set. 244 | # 245 | # One of the following 246 | # AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2, 247 | # EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257, 248 | # BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6, 249 | # AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8, 250 | # IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, 251 | # KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950, 252 | # ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258 253 | #------------------------------------------------------------------------------- 254 | oracle.install.db.config.starterdb.characterSet={{ oracle_charset }} 255 | 256 | #------------------------------------------------------------------------------ 257 | # This variable should be set to true if Automatic Memory Management 258 | # in Database is desired. 259 | # If Automatic Memory Management is not desired, and memory allocation 260 | # is to be done manually, then set it to false. 261 | #------------------------------------------------------------------------------ 262 | oracle.install.db.config.starterdb.memoryOption={{ oracle_memory_option }} 263 | 264 | #------------------------------------------------------------------------------- 265 | # Specify the total memory allocation for the database. Value(in MB) should be 266 | # at least 256 MB, and should not exceed the total physical memory available 267 | # on the system. 268 | # Example: oracle.install.db.config.starterdb.memoryLimit=512 269 | #------------------------------------------------------------------------------- 270 | oracle.install.db.config.starterdb.memoryLimit={{ oracle_memory_mb }} 271 | 272 | #------------------------------------------------------------------------------- 273 | # This variable controls whether to load Example Schemas onto 274 | # the starter database or not. 275 | # The value can be either "true" or "false". If left blank it will be assumed 276 | # to be "false". 277 | #------------------------------------------------------------------------------- 278 | oracle.install.db.config.starterdb.installExampleSchemas={{ oracle_install_samples }} 279 | 280 | ############################################################################### 281 | # # 282 | # Passwords can be supplied for the following four schemas in the # 283 | # starter database: # 284 | # SYS # 285 | # SYSTEM # 286 | # DBSNMP (used by Enterprise Manager) # 287 | # # 288 | # Same password can be used for all accounts (not recommended) # 289 | # or different passwords for each account can be provided (recommended) # 290 | # # 291 | ############################################################################### 292 | 293 | #------------------------------------------------------------------------------ 294 | # This variable holds the password that is to be used for all schemas in the 295 | # starter database. 296 | #------------------------------------------------------------------------------- 297 | oracle.install.db.config.starterdb.password.ALL={{ oracle_pass_all_users }} 298 | 299 | #------------------------------------------------------------------------------- 300 | # Specify the SYS password for the starter database. 301 | #------------------------------------------------------------------------------- 302 | oracle.install.db.config.starterdb.password.SYS= 303 | 304 | #------------------------------------------------------------------------------- 305 | # Specify the SYSTEM password for the starter database. 306 | #------------------------------------------------------------------------------- 307 | oracle.install.db.config.starterdb.password.SYSTEM= 308 | 309 | #------------------------------------------------------------------------------- 310 | # Specify the DBSNMP password for the starter database. 311 | #------------------------------------------------------------------------------- 312 | oracle.install.db.config.starterdb.password.DBSNMP= 313 | 314 | #------------------------------------------------------------------------------- 315 | # Specify the PDBADMIN password required for creation of Pluggable Database in the Container Database. 316 | #------------------------------------------------------------------------------- 317 | oracle.install.db.config.starterdb.password.PDBADMIN= 318 | 319 | #------------------------------------------------------------------------------- 320 | # Specify the management option to use for managing the database. 321 | # Options are: 322 | # 1. CLOUD_CONTROL - If you want to manage your database with Enterprise Manager Cloud Control along with Database Express. 323 | # 2. DEFAULT -If you want to manage your database using the default Database Express option. 324 | #------------------------------------------------------------------------------- 325 | oracle.install.db.config.starterdb.managementOption={{ oracle_management_option }} 326 | 327 | #------------------------------------------------------------------------------- 328 | # Specify the OMS host to connect to Cloud Control. 329 | # Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL 330 | #------------------------------------------------------------------------------- 331 | oracle.install.db.config.starterdb.omsHost= 332 | 333 | #------------------------------------------------------------------------------- 334 | # Specify the OMS port to connect to Cloud Control. 335 | # Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL 336 | #------------------------------------------------------------------------------- 337 | oracle.install.db.config.starterdb.omsPort= 338 | 339 | #------------------------------------------------------------------------------- 340 | # Specify the EM Admin user name to use to connect to Cloud Control. 341 | # Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL 342 | #------------------------------------------------------------------------------- 343 | oracle.install.db.config.starterdb.emAdminUser= 344 | 345 | #------------------------------------------------------------------------------- 346 | # Specify the EM Admin password to use to connect to Cloud Control. 347 | # Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL 348 | #------------------------------------------------------------------------------- 349 | oracle.install.db.config.starterdb.emAdminPassword= 350 | 351 | ############################################################################### 352 | # # 353 | # SPECIFY RECOVERY OPTIONS # 354 | # ------------------------------------ # 355 | # Recovery options for the database can be mentioned using the entries below # 356 | # # 357 | ############################################################################### 358 | 359 | #------------------------------------------------------------------------------ 360 | # This variable is to be set to false if database recovery is not required. Else 361 | # this can be set to true. 362 | #------------------------------------------------------------------------------- 363 | oracle.install.db.config.starterdb.enableRecovery={{ oracle_enable_recovery }} 364 | 365 | #------------------------------------------------------------------------------- 366 | # Specify the type of storage to use for the database. 367 | # It can be one of the following: 368 | # - FILE_SYSTEM_STORAGE 369 | # - ASM_STORAGE 370 | #------------------------------------------------------------------------------- 371 | oracle.install.db.config.starterdb.storageType={{ oracle_storage_type }} 372 | 373 | #------------------------------------------------------------------------------- 374 | # Specify the database file location which is a directory for datafiles, control 375 | # files, redo logs. 376 | # 377 | # Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE 378 | #------------------------------------------------------------------------------- 379 | oracle.install.db.config.starterdb.fileSystemStorage.dataLocation={{ oracle_dataloc }} 380 | 381 | #------------------------------------------------------------------------------- 382 | # Specify the recovery location. 383 | # 384 | # Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE 385 | #------------------------------------------------------------------------------- 386 | oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation={{ oracle_recoveryloc }} 387 | 388 | #------------------------------------------------------------------------------- 389 | # Specify the existing ASM disk groups to be used for storage. 390 | # 391 | # Applicable only when oracle.install.db.config.starterdb.storageType=ASM_STORAGE 392 | #------------------------------------------------------------------------------- 393 | oracle.install.db.config.asm.diskGroup= 394 | 395 | #------------------------------------------------------------------------------- 396 | # Specify the password for ASMSNMP user of the ASM instance. 397 | # 398 | # Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE 399 | #------------------------------------------------------------------------------- 400 | oracle.install.db.config.asm.ASMSNMPPassword= 401 | 402 | #------------------------------------------------------------------------------ 403 | # Specify the My Oracle Support Account Username. 404 | # 405 | # Example : MYORACLESUPPORT_USERNAME=abc@oracle.com 406 | #------------------------------------------------------------------------------ 407 | MYORACLESUPPORT_USERNAME= 408 | 409 | #------------------------------------------------------------------------------ 410 | # Specify the My Oracle Support Account Username password. 411 | # 412 | # Example : MYORACLESUPPORT_PASSWORD=password 413 | #------------------------------------------------------------------------------ 414 | MYORACLESUPPORT_PASSWORD= 415 | 416 | #------------------------------------------------------------------------------ 417 | # Specify whether to enable the user to set the password for 418 | # My Oracle Support credentials. The value can be either true or false. 419 | # If left blank it will be assumed to be false. 420 | # 421 | # Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true 422 | #------------------------------------------------------------------------------ 423 | SECURITY_UPDATES_VIA_MYORACLESUPPORT= 424 | 425 | #------------------------------------------------------------------------------ 426 | # Specify whether user doesn't want to configure Security Updates. 427 | # The value for this variable should be true if you don't want to configure 428 | # Security Updates, false otherwise. 429 | # 430 | # The value can be either true or false. If left blank it will be assumed 431 | # to be false. 432 | # 433 | # Example : DECLINE_SECURITY_UPDATES=false 434 | #------------------------------------------------------------------------------ 435 | DECLINE_SECURITY_UPDATES={{ oracle_decline_security_updates }} 436 | 437 | #------------------------------------------------------------------------------ 438 | # Specify the Proxy server name. Length should be greater than zero. 439 | # 440 | # Example : PROXY_HOST=proxy.domain.com 441 | #------------------------------------------------------------------------------ 442 | PROXY_HOST= 443 | 444 | #------------------------------------------------------------------------------ 445 | # Specify the proxy port number. Should be Numeric and at least 2 chars. 446 | # 447 | # Example : PROXY_PORT=25 448 | #------------------------------------------------------------------------------ 449 | PROXY_PORT= 450 | 451 | #------------------------------------------------------------------------------ 452 | # Specify the proxy user name. Leave PROXY_USER and PROXY_PWD 453 | # blank if your proxy server requires no authentication. 454 | # 455 | # Example : PROXY_USER=username 456 | #------------------------------------------------------------------------------ 457 | PROXY_USER= 458 | 459 | #------------------------------------------------------------------------------ 460 | # Specify the proxy password. Leave PROXY_USER and PROXY_PWD 461 | # blank if your proxy server requires no authentication. 462 | # 463 | # Example : PROXY_PWD=password 464 | #------------------------------------------------------------------------------ 465 | PROXY_PWD= 466 | 467 | #------------------------------------------------------------------------------ 468 | # Specify the Oracle Support Hub URL. 469 | # 470 | # Example : COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/ 471 | #------------------------------------------------------------------------------ 472 | COLLECTOR_SUPPORTHUB_URL= 473 | -------------------------------------------------------------------------------- /roles/oracle_sw_install/vars/main.yml: -------------------------------------------------------------------------------- 1 | install_db: INSTALL_DB_SWONLY 2 | oracle_hostname: '{{ ansible_fqdn }}' 3 | inventory_os_group: '{{ oracle_install_group }}' 4 | inventory_location: '{{ oracle_base }}/inventory' 5 | -------------------------------------------------------------------------------- /secrets.yml: -------------------------------------------------------------------------------- 1 | oracle_os_user_pass: '$6$P7jw3OaWKdR$tRSRPjTey.SPqhyLBxOKbm9k21MEYF6jHDUH2O03RPvISDVnkGqWNg1W6iJqZhqD3ErbdJZqUEuNnEuoAWHWO/' 2 | oracle_pass_all_users: oracle --------------------------------------------------------------------------------