├── .gitignore ├── handlers └── main.yml ├── tests ├── docker │ ├── oracle-11.2 │ │ ├── vars │ │ │ └── main.yml │ │ ├── roles.yml │ │ └── main.yml │ └── oracle-12.1 │ │ ├── vars │ │ └── main.yml │ │ ├── roles.yml │ │ └── main.yml ├── roles.yml ├── Vagrantfile └── main.yml ├── tasks ├── postinstall.yml ├── validate.yml ├── prepare-OracleLinux.yml ├── main.yml ├── install.yml └── prepare.yml ├── defaults └── main.yml ├── meta └── main.yml ├── vars ├── main.yml └── oracle-database.yml ├── README.md ├── LICENSE └── templates ├── db-install-11g.rsp.j2 └── db-install-12c.rsp.j2 /.gitignore: -------------------------------------------------------------------------------- 1 | roles/ 2 | .vagrant/ 3 | *.retry 4 | -------------------------------------------------------------------------------- /handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for oracle-database 3 | -------------------------------------------------------------------------------- /tests/docker/oracle-11.2/vars/main.yml: -------------------------------------------------------------------------------- 1 | base_image: syscomiddleware/oraclelinux:6.7 2 | -------------------------------------------------------------------------------- /tests/docker/oracle-12.1/vars/main.yml: -------------------------------------------------------------------------------- 1 | base_image: syscomiddleware/oraclelinux:6.7 2 | -------------------------------------------------------------------------------- /tests/roles.yml: -------------------------------------------------------------------------------- 1 | # Install a role from the Ansible Galaxy 2 | - src: https://github.com/jeqo/ansible-role-oracle-database 3 | name: oracle-database 4 | 5 | - src: https://github.com/jeqo/ansible-role-nfs 6 | name: nfs 7 | -------------------------------------------------------------------------------- /tests/docker/oracle-11.2/roles.yml: -------------------------------------------------------------------------------- 1 | # Install a role from the Ansible Galaxy 2 | - src: https://github.com/sysco-middleware/ansible-role-oracle-database 3 | name: sysco-middleware.oracle-database 4 | version: remotes/origin/develop 5 | -------------------------------------------------------------------------------- /tests/docker/oracle-12.1/roles.yml: -------------------------------------------------------------------------------- 1 | # Install a role from the Ansible Galaxy 2 | - src: https://github.com/sysco-middleware/ansible-role-oracle-database 3 | name: sysco-middleware.oracle-database 4 | version: remotes/origin/develop 5 | -------------------------------------------------------------------------------- /tasks/postinstall.yml: -------------------------------------------------------------------------------- 1 | 2 | - name: run post-installation scripts as root 3 | shell: "{{item}}" 4 | with_items: 5 | - "{{ oracle_database_inventory_location }}/orainstRoot.sh" 6 | - "{{ oracle_database_oracle_home }}/root.sh" 7 | -------------------------------------------------------------------------------- /defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for oracle-database 3 | # installation variables 4 | oracle_database_version: 11g # supported versions: [11g, 12c] 5 | oracle_database_edition: SE # supported editions: [SE,EE] 6 | # installers 7 | oracle_database_installer_directory: /srv/files/database 8 | -------------------------------------------------------------------------------- /tasks/validate.yml: -------------------------------------------------------------------------------- 1 | - name: validate oracle database is already installed 2 | stat: path="{{ oracle_database_oracle_home }}/bin/sqlplus" 3 | register: sqlplus 4 | become: yes 5 | 6 | - debug: 7 | msg: "oracle database is already installed here: {{ oracle_database_oracle_home }}" 8 | when: sqlplus.stat.exists 9 | 10 | - set_fact: 11 | oracle_database_already_installed: yes 12 | when: sqlplus.stat.exists 13 | -------------------------------------------------------------------------------- /meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | galaxy_info: 3 | author: Jorge Quilcate 4 | description: Ansible Role to install Oracle Database software and create and configure instances and listeners. 5 | company: Sysco AS 6 | 7 | license: MIT 8 | 9 | min_ansible_version: 2.0 10 | 11 | platforms: 12 | - name: EL 13 | versions: 14 | - 7 15 | 16 | galaxy_tags: 17 | - oracle 18 | - database 19 | - database:sql 20 | dependencies: [] 21 | -------------------------------------------------------------------------------- /vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for oracle-database 3 | oracle_database_user: oracle 4 | oracle_database_install_group: oinstall 5 | oracle_database_extra_groups: [] 6 | # oracle_database_os_group: oinstall 7 | # oracle_database_os_dba_group: dba 8 | 9 | oracle_database_inventory_location: "/home/oracle/oracle_inventory" 10 | oracle_database_oracle_base: "/home/oracle/product" 11 | oracle_database_oracle_home: "{{ oracle_database_oracle_base }}/oracle_home" 12 | 13 | oracle_database_already_installed: false 14 | -------------------------------------------------------------------------------- /tasks/prepare-OracleLinux.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # 3 | - name: install pre-installation package 4 | yum: name=oracle-rdbms-server-11gR2-preinstall 5 | when: oracle_database_version == "11g" 6 | 7 | - name: install pre-installation package 8 | yum: name=oracle-rdbms-server-12cR1-preinstall 9 | when: oracle_database_version == "12c" 10 | 11 | - file: 12 | path: "{{ item }}" 13 | state: directory 14 | owner: oracle 15 | group: oinstall 16 | with_items: 17 | - "{{ oracle_database_inventory_location }}" 18 | - "{{ oracle_database_oracle_base }}" 19 | - "{{ oracle_database_oracle_home }}" 20 | -------------------------------------------------------------------------------- /tests/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox' 4 | 5 | Vagrant.configure(2) do |config| 6 | config.vm.network "private_network", ip: "10.0.0.5" 7 | 8 | config.vm.synced_folder "/installers/oracle/db/11.2/database/11.2.0.4", "/srv/files" 9 | 10 | config.vm.provider "virtualbox" do |vb| 11 | vb.cpus = 1 12 | vb.memory = "1500" 13 | end 14 | 15 | config.vm.define "test01" do |node| 16 | node.vm.box = "jeqo/ansible-centos7" 17 | 18 | node.vm.provision "ansible" do |ansible| 19 | ansible.playbook = "main.yml" 20 | ansible.galaxy_role_file = "roles.yml" 21 | end 22 | end 23 | end 24 | -------------------------------------------------------------------------------- /tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for oracle-database 3 | - include: validate.yml 4 | when: not oracle_database_already_installed 5 | 6 | - debug: 7 | msg: "OS Family: {{ ansible_distribution }}" 8 | 9 | - include: prepare-OracleLinux.yml 10 | become: yes 11 | when: ansible_distribution == 'OracleLinux' and not oracle_database_already_installed 12 | 13 | - include: prepare.yml 14 | become: yes 15 | when: ansible_distribution != 'OracleLinux' and not oracle_database_already_installed 16 | 17 | - include: install.yml 18 | become: yes 19 | become_user: "{{ oracle_database_user }}" 20 | when: not oracle_database_already_installed 21 | 22 | - include: postinstall.yml 23 | become: yes 24 | become_user: root 25 | -------------------------------------------------------------------------------- /tests/docker/oracle-11.2/main.yml: -------------------------------------------------------------------------------- 1 | - hosts: 127.0.0.1 2 | connection: local 3 | vars_files: 4 | - vars/main.yml 5 | tasks: 6 | - name: create container 7 | docker: 8 | name: test-oracle-database-11.2 9 | image: "{{ base_image }}" 10 | command: sleep infinity 11 | volumes: 12 | - "/installers/oracle/db/11.2/database/11.2.0.4:/srv/files" 13 | state: started 14 | 15 | - add_host: 16 | name: test-oracle-database-11.2 17 | groups: docker 18 | ansible_connection: docker 19 | 20 | - hosts: test-oracle-database-11.2 21 | connection: docker 22 | roles: 23 | - role: sysco-middleware.oracle-database 24 | oracle_database_version: 11g 25 | oracle_database_edition: SE 26 | oracle_database_installer: /srv/files/database/runInstaller 27 | -------------------------------------------------------------------------------- /tests/docker/oracle-12.1/main.yml: -------------------------------------------------------------------------------- 1 | - hosts: 127.0.0.1 2 | connection: local 3 | vars_files: 4 | - vars/main.yml 5 | tasks: 6 | - name: create container 7 | docker: 8 | name: test-oracle-database-12.1 9 | image: "{{ base_image }}" 10 | command: sleep infinity 11 | volumes: 12 | - "/installers/oracle/db/12.1/database/12.1.0.2:/srv/files" 13 | state: started 14 | 15 | - add_host: 16 | name: test-oracle-database-12.1 17 | groups: docker 18 | ansible_connection: docker 19 | 20 | - hosts: test-oracle-database-12.1 21 | connection: docker 22 | roles: 23 | - role: sysco-middleware.oracle-database 24 | oracle_database_version: 12c 25 | oracle_database_edition: SE 26 | oracle_database_installer: /srv/files/database/runInstaller 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Oracle Database 2 | =============== 3 | 4 | Ansible Role to install and configure Oracle Database. 5 | 6 | Requirements 7 | ------------ 8 | 9 | Download installers defined in *files* directory depending on your [release]. 10 | 11 | Role Variables 12 | -------------- 13 | 14 | - **oracle_database_version**: 11g # supported versions: [11g] 15 | - **oracle_database_edition**: SE # supported editions: [SE,EE] 16 | 17 | Dependencies 18 | ------------ 19 | 20 | None. 21 | 22 | Example Playbook 23 | ---------------- 24 | 25 | ```yml 26 | - name: oracle database 11g (11.2.0.4) 27 | hosts: 127.0.0.1 28 | 29 | roles: 30 | - role: oracle-database 31 | oracle_database_version: 11g 32 | oracle_database_release: 11.2.0.4 33 | oracle_database_edition: SE 34 | ``` 35 | 36 | License 37 | ------- 38 | 39 | MIT 40 | 41 | Author Information 42 | ------------------ 43 | 44 | [http://jeqo.github.io/](http://jeqo.github.io/) 45 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Jorge Quilcate 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 | -------------------------------------------------------------------------------- /tasks/install.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: preparing database installation template 3 | template: src=db-install-{{ oracle_database_version }}.rsp.j2 dest=/tmp/db-install.rsp 4 | 5 | #- name: update required pre-requisites 6 | # shell: "sed -i -e 's///g' {{ oracle_database_installer_directory }}/stage/cvu/cvu_prereq.xml" 7 | 8 | - name: run installer 9 | shell: "{{ oracle_database_installer_directory }}/runInstaller -silent -waitforcompletion -ignoreSysPrereqs -responseFile /tmp/db-install.rsp" 10 | args: 11 | creates: "{{ oracle_database_oracle_home }}/bin/sqlplus" 12 | become: yes 13 | become_user: oracle 14 | register: command_result 15 | failed_when: "'Successfully Setup Software.' not in command_result.stdout_lines" 16 | 17 | - name: installation results 18 | debug: 19 | var: command_result 20 | 21 | - name: set oracle home 22 | lineinfile: 23 | dest: "/home/oracle/.bash_profile" 24 | regexp: "{{ item.regexp }}" 25 | line: "{{ item.line }}" 26 | insertbefore: "export PATH" 27 | with_items: 28 | - 29 | regexp: ^ORACLE_HOME= 30 | line: "ORACLE_HOME={{ oracle_database_oracle_home }}" 31 | - 32 | regexp: PATH=\$ORACLE_HOME/bin 33 | line: PATH=$ORACLE_HOME/bin:$PATH 34 | - 35 | regexp: ^export ORACLE_HOME 36 | line: export ORACLE_HOME 37 | -------------------------------------------------------------------------------- /tests/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: test create instance oracle database 11g (11.2.0.4) 3 | hosts: test01 4 | roles: 5 | #- role: nfs 6 | # nfs_mode: client 7 | # nfs_client_imports: 8 | # - 9 | # local: /srv/files 10 | # remote: /installers/oracle/db/11.2/database/11.2.0.4 11 | # server_host: 10.0.0.1 12 | - role: oracle-database 13 | # installation variables 14 | oracle_database_version: 11g # supported versions: [11g] 15 | oracle_database_release: 11.2.0.4 # supported releases: [11.2.0.4] 16 | oracle_database_edition: SE # supported editions: [SE,EE] 17 | # installers 18 | oracle_database_installer: /srv/files/database/runInstaller 19 | - role: sysco-middleware.oracle-database-instance 20 | oracle_database_version: 11g # supported versions: [11g] 21 | # instance variables 22 | oracle_database_sid: TESTDB 23 | oracle_database_global_name: TESTDB 24 | oracle_database_template_name: General_Purpose.dbc 25 | oracle_database_admin_password: welcome1 26 | oracle_database_auto_memory_mgnt: TRUE 27 | oracle_database_memory_percentage: 80 28 | oracle_database_memory_total: 1024 29 | oracle_database_type: MULTIPURPOSE 30 | # listener variables 31 | oracle_database_listener_name: LISTENER 32 | oracle_database_listener_port: 1521 33 | # avoid error in docker related with https://community.oracle.com/thread/2401396 34 | oracle_database_init_params: JAVA_JIT_ENABLED=FALSE 35 | -------------------------------------------------------------------------------- /vars/oracle-database.yml: -------------------------------------------------------------------------------- 1 | oracle_database_packages_list: 2 | - compat-libcap1 3 | - gcc 4 | - gcc-c++ 5 | - glibc 6 | - glibc.i686 7 | - glibc-devel 8 | - glibc-devel.i686 9 | - ksh 10 | - libaio.i686 11 | - libaio-devel 12 | - libaio-devel.i686 13 | #- libgcc.i686 14 | - libstdc++.i686 15 | - libstdc++-devel 16 | - libstdc++-devel.i686 17 | - libXi 18 | - libXi.i686 19 | - libXtst 20 | - libXtst.i686 21 | - sysstat 22 | - unixODBC 23 | - unzip 24 | 25 | oracle_database_kernel_params: 26 | # Shared memory and semaphore 27 | # look for document 226209.1 in oracle support for details 28 | kernel.sem: 250 32000 100 128 29 | kernel.shmmni: 4096 30 | # 1.5 GB Shared memory 500mb for linux kernel (for 2GB virtual machine) 31 | kernel.shmall: 393216 32 | # 1 GB Half of the physical memory (for 2GB virtual machine) 33 | kernel.shmmax: 4398046511104 34 | # For 1Gbps with 1ms latency 16MB buffer 35 | net.core.rmem_max: 16777216 36 | net.core.wmem_max: 16777216 37 | net.ipv4.tcp_rmem: 4096 87380 16777216 38 | net.ipv4.tcp_wmem: 4096 65536 16777216 39 | # Minimize swap file use 40 | vm.swappiness: 10 41 | vm.dirty_background_ratio: 5 42 | vm.dirty_ratio: 10 43 | # Max open file descriptors 512 * db processes + room for os 44 | fs.file-max: 409600 45 | # Shorten keep alive of connections 46 | net.ipv4.tcp_keepalive_time: 300 47 | net.ipv4.tcp_keepalive_intvl: 60 48 | net.ipv4.tcp_keepalive_probes: 10 49 | # maximize port range 50 | net.ipv4.ip_local_port_range: 9000 65500 51 | 52 | # Oracle user limits 53 | oracle_database_limits_soft_no_file: 4096 54 | oracle_database_limits_hard_no_file: 65536 55 | oracle_database_limits_soft_nproc: 2047 56 | oracle_database_limits_hard_nproc: 16384 57 | oracle_database_limits_soft_stack: 10240 58 | oracle_database_limits_hard_stack: 32768 59 | # mem lock 90% of RAM 60 | oracle_database_limits_soft_memlock: 1887437 61 | oracle_database_limits_hard_memlock: 1887437 62 | -------------------------------------------------------------------------------- /tasks/prepare.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - include_vars: "oracle-database.yml" 3 | 4 | - name: install required libraries 5 | yum: name={{ item }} state=present 6 | with_items: "{{ oracle_database_packages_list }}" 7 | 8 | - name: disable selinux 9 | selinux: state=disabled 10 | ignore_errors: yes 11 | 12 | - name: disable firewall deamon (firewalld) 13 | service: name=firewalld state=stopped enabled=no 14 | ignore_errors: yes 15 | 16 | - name: change kernel parameters 17 | sysctl: 18 | name: "{{ item.key }}" 19 | value: "{{ item.value }}" 20 | state: present 21 | with_dict: oracle_database_kernel_params 22 | 23 | - name: create groups 24 | group: name={{ oracle_database_install_group }} state=present 25 | 26 | - name: add extra groups 27 | group: name={{ item }} state=present 28 | with_items: "{{ oracle_database_extra_groups }}" 29 | 30 | - name: create user 31 | user: name={{ oracle_database_user }} group={{ oracle_database_install_group }} 32 | 33 | - name: add extra groups 34 | user: name={{ oracle_database_user }} groups={{ item }} append=yes 35 | with_items: "{{ oracle_database_extra_groups }}" 36 | 37 | - name: add oracle user limits 38 | lineinfile: 39 | dest: /etc/security/limits.conf 40 | line: "{{ oracle_database_user }} {{ item.limit }} {{ item.type}} {{ item.value }}" 41 | with_items: 42 | - { limit: 'soft', type: nofile, value: '{{ oracle_database_limits_soft_no_file }}' } 43 | - { limit: 'hard', type: nofile, value: '{{ oracle_database_limits_hard_no_file }}' } 44 | - { limit: 'soft', type: nproc, value: '{{ oracle_database_limits_soft_nproc }}' } 45 | - { limit: 'hard', type: nproc, value: '{{ oracle_database_limits_hard_nproc }}' } 46 | - { limit: 'soft', type: stack, value: '{{ oracle_database_limits_soft_stack }}' } 47 | - { limit: 'hard', type: stack, value: '{{ oracle_database_limits_hard_stack }}' } 48 | - { limit: 'soft', type: memlock, value: '{{ oracle_database_limits_soft_memlock }}' } 49 | - { limit: 'hard', type: memlock, value: '{{ oracle_database_limits_hard_memlock }}' } 50 | 51 | - name: create oracle base directory 52 | file: 53 | state: directory 54 | path: "{{ oracle_database_oracle_base }}" 55 | owner: "{{ oracle_database_user }}" 56 | group: "{{ oracle_database_install_group }}" 57 | -------------------------------------------------------------------------------- /templates/db-install-11g.rsp.j2: -------------------------------------------------------------------------------- 1 | #################################################################### 2 | ## Copyright(c) Oracle Corporation 1998,2011. 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 | oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0 17 | oracle.install.option=INSTALL_DB_SWONLY 18 | #ORACLE_HOSTNAME= 19 | UNIX_GROUP_NAME=oinstall 20 | INVENTORY_LOCATION={{ oracle_database_inventory_location }} 21 | SELECTED_LANGUAGES=en 22 | ORACLE_HOME={{ oracle_database_oracle_home }} 23 | ORACLE_BASE={{ oracle_database_oracle_base }} 24 | oracle.install.db.InstallEdition={{ oracle_database_edition }} 25 | oracle.install.db.EEOptionsSelection=false 26 | oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.3.0,oracle.oraolap:11.2.0.3.0,oracle.rdbms.dm:11.2.0.3.0,oracle.rdbms.dv:11.2.0.3.0,oracle.rdbms.lbac:11.2.0.3.0,oracle.rdbms.rat:11.2.0.3.0 27 | oracle.install.db.DBA_GROUP=oinstall 28 | oracle.install.db.OPER_GROUP=oinstall 29 | oracle.install.db.CLUSTER_NODES= 30 | oracle.install.db.isRACOneInstall= 31 | oracle.install.db.racOneServiceName= 32 | oracle.install.db.config.starterdb.type= 33 | oracle.install.db.config.starterdb.globalDBName= 34 | oracle.install.db.config.starterdb.SID= 35 | oracle.install.db.config.starterdb.characterSet=AL32UTF8 36 | oracle.install.db.config.starterdb.memoryOption=true 37 | oracle.install.db.config.starterdb.memoryLimit= 38 | oracle.install.db.config.starterdb.installExampleSchemas=false 39 | oracle.install.db.config.starterdb.enableSecuritySettings=true 40 | 41 | ############################################################################### 42 | # # 43 | # Passwords can be supplied for the following four schemas in the # 44 | # starter database: # 45 | # SYS # 46 | # SYSTEM # 47 | # SYSMAN (used by Enterprise Manager) # 48 | # DBSNMP (used by Enterprise Manager) # 49 | # # 50 | # Same password can be used for all accounts (not recommended) # 51 | # or different passwords for each account can be provided (recommended) # 52 | # # 53 | ############################################################################### 54 | oracle.install.db.config.starterdb.password.ALL= 55 | oracle.install.db.config.starterdb.password.SYS= 56 | oracle.install.db.config.starterdb.password.SYSTEM= 57 | oracle.install.db.config.starterdb.password.SYSMAN= 58 | oracle.install.db.config.starterdb.password.DBSNMP= 59 | oracle.install.db.config.starterdb.control=DB_CONTROL 60 | oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL= 61 | 62 | ############################################################################### 63 | # # 64 | # SPECIFY BACKUP AND RECOVERY OPTIONS # 65 | # ------------------------------------ # 66 | # Out-of-box backup and recovery options for the database can be mentioned # 67 | # using the entries below. # 68 | # # 69 | ############################################################################### 70 | oracle.install.db.config.starterdb.automatedBackup.enable=false 71 | oracle.install.db.config.starterdb.automatedBackup.osuid= 72 | oracle.install.db.config.starterdb.automatedBackup.ospwd= 73 | oracle.install.db.config.starterdb.storageType= 74 | oracle.install.db.config.starterdb.fileSystemStorage.dataLocation= 75 | oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation= 76 | oracle.install.db.config.asm.diskGroup= 77 | oracle.install.db.config.asm.ASMSNMPPassword= 78 | MYORACLESUPPORT_USERNAME= 79 | MYORACLESUPPORT_PASSWORD= 80 | SECURITY_UPDATES_VIA_MYORACLESUPPORT= 81 | DECLINE_SECURITY_UPDATES=true 82 | PROXY_HOST= 83 | PROXY_PORT= 84 | PROXY_USER= 85 | PROXY_PWD= 86 | PROXY_REALM= 87 | COLLECTOR_SUPPORTHUB_URL= 88 | oracle.installer.autoupdates.option=SKIP_UPDATES 89 | oracle.installer.autoupdates.downloadUpdatesLoc= 90 | AUTOUPDATES_MYORACLESUPPORT_USERNAME= 91 | AUTOUPDATES_MYORACLESUPPORT_PASSWORD= 92 | -------------------------------------------------------------------------------- /templates/db-install-12c.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_SWONLY 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= 39 | 40 | #------------------------------------------------------------------------------- 41 | # Specify the Unix group to be set for the inventory directory. 42 | #------------------------------------------------------------------------------- 43 | UNIX_GROUP_NAME=oinstall 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={{ oracle_database_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_database_oracle_home }} 92 | 93 | #------------------------------------------------------------------------------- 94 | # Specify the complete path of the Oracle Base. 95 | #------------------------------------------------------------------------------- 96 | ORACLE_BASE={{ oracle_database_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_database_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=oinstall 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 | 130 | oracle.install.db.OPER_GROUP=oinstall 131 | #------------------------------------------------------------------------------ 132 | # The BACKUPDBA_GROUP is the OS group which is to be granted OSBACKUPDBA privileges. 133 | #------------------------------------------------------------------------------ 134 | oracle.install.db.BACKUPDBA_GROUP=oinstall 135 | 136 | #------------------------------------------------------------------------------ 137 | # The DGDBA_GROUP is the OS group which is to be granted OSDGDBA privileges. 138 | #------------------------------------------------------------------------------ 139 | oracle.install.db.DGDBA_GROUP=oinstall 140 | 141 | #------------------------------------------------------------------------------ 142 | # The KMDBA_GROUP is the OS group which is to be granted OSKMDBA privileges. 143 | #------------------------------------------------------------------------------ 144 | oracle.install.db.KMDBA_GROUP=oinstall 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= 219 | 220 | #------------------------------------------------------------------------------- 221 | # Specify the Starter Database Global Database Name. 222 | #------------------------------------------------------------------------------- 223 | oracle.install.db.config.starterdb.globalDBName= 224 | 225 | #------------------------------------------------------------------------------- 226 | # Specify the Starter Database SID. 227 | #------------------------------------------------------------------------------- 228 | oracle.install.db.config.starterdb.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= 236 | 237 | #------------------------------------------------------------------------------- 238 | # Specify the Pluggable Database name for the pluggable database in Container Database. 239 | #------------------------------------------------------------------------------- 240 | oracle.install.db.config.PDBName= 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=AL32UTF8 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=true 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= 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= 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= 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= 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= 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= 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= 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= 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=true 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 | --------------------------------------------------------------------------------