├── .gitignore ├── LICENSE ├── README.md ├── Vagrantfile ├── ansible.cfg ├── db-vars.yml ├── hosts ├── infra-vars.yml ├── oracle-db.yml ├── roles ├── linux-oracle │ ├── files │ │ └── disable_trans_hugepages.sh │ ├── tasks │ │ └── main.yml │ └── vars │ │ └── main.yml └── oracle-install │ ├── files │ ├── linuxamd64_12102_database_1of2.zip.sample │ ├── linuxamd64_12102_database_2of2.zip.sample │ └── start-pluggable-dbs.sh │ ├── tasks │ └── main.yml │ ├── templates │ ├── db_install.rsp.j2 │ ├── dbca.rsp.j2 │ ├── netca.rsp.j2 │ └── oradb.j2 │ └── vars │ └── main.yml └── secrets.yml /.gitignore: -------------------------------------------------------------------------------- 1 | roles/oracle-install/files/linuxamd64_12102_database_1of2.zip 2 | roles/oracle-install/files/linuxamd64_12102_database_2of2.zip 3 | .gitignore 4 | .vagrant 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | 341 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # oracledb-ansible 2 | Ansible playbook to configure a CentOS/RHEL/Oracle Linux 7 server with Oracle 12c R1 Enterprise Edition Database 3 | 4 | For run the playbook using the vagrant configuration for test it you need to: 5 | 6 | Download from Oracle support the Oracle installation files: 7 | - linuxamd64_12102_database_1of2.zip 8 | - linuxamd64_12102_database_1of2.zip 9 | and put them to folder roles/oracle-install/files inside checkout folder 10 | 11 | After go into checkout folder and execute : 12 | 13 | vagrant up 14 | 15 | After a few minutes a virtual machine with Oracle Database will be ready for you without any further configuration. You can access the Enterprise Manager Express using sys/sysdba and “oracle” as password. 16 | 17 | https://oradb3.private:5500/em 18 | 19 | You can shutdown the virtual machine using: 20 | 21 | vagrant halt 22 | 23 | You can destroy it (delete from disk) using: 24 | 25 | vagrant destroy 26 | 27 | password for Oracle Operating system user is welcome1 28 | 29 | more details at my article here: http://www.nodalpoint.com/devops-ansible-oracle-database-oraclelinux-7-vagrant/ 30 | -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | # All Vagrant configuration is done below. The "2" in Vagrant.configure 5 | # configures the configuration version (we support older styles for 6 | # backwards compatibility). Please don't change it unless you know what 7 | # you're doing. 8 | Vagrant.configure(2) do |config| 9 | # The most common configuration options are documented and commented below. 10 | # For a complete reference, please see the online documentation at 11 | # https://docs.vagrantup.com. 12 | 13 | # Every Vagrant development environment requires a box. You can search for 14 | # boxes at https://atlas.hashicorp.com/search. 15 | config.vm.box = "centos/7" 16 | 17 | # Disable automatic box update checking. If you disable this, then 18 | # boxes will only be checked for updates when the user runs 19 | # `vagrant box outdated`. This is not recommended. 20 | # config.vm.box_check_update = false 21 | 22 | config.vm.network "private_network", ip: "192.168.56.13" 23 | config.vm.hostname = "oradb3.private" 24 | 25 | config.hostmanager.enabled = true 26 | config.hostmanager.ignore_private_ip = false 27 | 28 | 29 | # Create a forwarded port mapping which allows access to a specific port 30 | # within the machine from a port on the host machine. In the example below, 31 | # accessing "localhost:8080" will access port 80 on the guest machine. 32 | # config.vm.network "forwarded_port", guest: 80, host: 8080 33 | # config.vm.define 'wls12c1' do |node| 34 | #config.hostmanager.manage_host = true 35 | # config.hostmanager.include_offline = false 36 | # Create a private network, which allows host-only access to the machine 37 | # using a specific IP. 38 | # config.vm.network "private_network", ip: "192.168.33.10" 39 | # node.vm.hostname = "wls12c1.private" 40 | # node.vm.network "private_network", ip: "192.168.56.12" 41 | # end 42 | # Create a public network, which generally matched to bridged network. 43 | # Bridged networks make the machine appear as another physical device on 44 | # your network. 45 | # config.vm.network "public_network" 46 | 47 | # Share an additional folder to the guest VM. The first argument is 48 | # the path on the host to the actual folder. The second argument is 49 | # the path on the guest to mount the folder. And the optional third 50 | # argument is a set of non-required options. 51 | # config.vm.synced_folder "../data", "/vagrant_data" 52 | 53 | # Provider-specific configuration so you can fine-tune various 54 | # backing providers for Vagrant. These expose provider-specific options. 55 | # Example for VirtualBox: 56 | # 57 | # config.vm.provider "virtualbox" do |vb| 58 | # # Display the VirtualBox GUI when booting the machine 59 | # vb.gui = true 60 | # 61 | # # Customize the amount of memory on the VM: 62 | # vb.memory = "1024" 63 | # end 64 | # 65 | # View the documentation for the provider you are using for more 66 | # information on available options. 67 | config.vm.provider "virtualbox" do |vb| 68 | vb.memory = "2048" 69 | vb.cpus = 2 70 | vb.name = "Oracle12c-3" 71 | end 72 | # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies 73 | # such as FTP and Heroku are also available. See the documentation at 74 | # https://docs.vagrantup.com/v2/push/atlas.html for more information. 75 | # config.push.define "atlas" do |push| 76 | # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME" 77 | # end 78 | 79 | # Enable provisioning with a shell script. Additional provisioners such as 80 | # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the 81 | # documentation for more information about their specific syntax and use. 82 | # config.vm.provision "shell", inline: <<-SHELL 83 | # sudo apt-get update 84 | # sudo apt-get install -y apache2 85 | # SHELL 86 | config.vm.provision "ansible" do |ansible| 87 | ansible.playbook = "oracle-db.yml" 88 | ansible.inventory_path = "./hosts" 89 | ansible.limit = 'all' 90 | #ansible.groups = { 91 | # "group1" => ["weblogic"] 92 | # } 93 | end 94 | end 95 | -------------------------------------------------------------------------------- /ansible.cfg: -------------------------------------------------------------------------------- 1 | [defaults] 2 | inventory = hosts 3 | remote_user = vagrant 4 | private_key_file = .vagrant/machines/default/virtualbox/private_key 5 | host_key_checking = False 6 | nocows = 1 7 | -------------------------------------------------------------------------------- /db-vars.yml: -------------------------------------------------------------------------------- 1 | installation_folder: '{{ oracle_base}}/installation' 2 | 3 | server_hostname: '{{ ansible_fqdn }}' -------------------------------------------------------------------------------- /hosts: -------------------------------------------------------------------------------- 1 | oradb ansible_ssh_host=192.168.56.13 ansible_ssh_port=22 2 | -------------------------------------------------------------------------------- /infra-vars.yml: -------------------------------------------------------------------------------- 1 | oracle_user: oracle 2 | oracle_install_group: oinstall 3 | extra_groups: 4 | - dba 5 | - oper 6 | oracle_base: /oracle/app 7 | 8 | installer_archives: 9 | - "linuxamd64_12102_database_1of2.zip" 10 | - "linuxamd64_12102_database_2of2.zip" 11 | 12 | oracle_install_version: "12102" 13 | dbhome_name: "dbhome_1" 14 | oracle_edition: "EE" 15 | oracle_dba_group: dba 16 | oracle_oper_group: oper 17 | oracle_database_type: "GENERAL_PURPOSE" 18 | oracle_globalname: "orcl.oradb3.private" 19 | oracle_sid: "orcl" 20 | create_container_database: "true" 21 | number_of_pdbs: "1" 22 | oracle_conf_as_container_db: "true" 23 | pdb_prefix: "db" 24 | oracle_pdb_name: "db01" 25 | oracle_charset: "AL32UTF8" 26 | oracle_memory_option: "false" 27 | # memory target 28 | oracle_memory_mb: 1536 29 | oracle_install_samples: "true" 30 | oracle_management_option: "DEFAULT" 31 | oracle_enable_recovery: "true" 32 | oracle_storage_type: "FILE_SYSTEM_STORAGE" 33 | oracle_dataloc: "{{ oracle_base }}/oradata" 34 | oracle_recoveryloc: "{{ oracle_base }}/recovery_area" 35 | oracle_decline_security_updates: "True" 36 | hugepages_nr: 578 37 | 38 | -------------------------------------------------------------------------------- /oracle-db.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Configure Oracle Linux 7 with Oracle Database 12c 3 | hosts: oradb 4 | become: True 5 | vars_files: 6 | # User defined variables for infrastructure 7 | - infra-vars.yml 8 | - db-vars.yml 9 | # User Passwords 10 | - secrets.yml 11 | roles: 12 | - role: linux-oracle 13 | - role: oracle-install 14 | become_user: '{{ oracle_user }}' 15 | 16 | pre_tasks: 17 | # ==> Fix hosts file. Remove hostname from local loop. A workaround for vagrant 18 | # adding hostname to local loop 19 | - name: fix host file 127.0.0.1 entry 20 | lineinfile: > 21 | dest=/etc/hosts 22 | regexp='^127\.0\.0\.1' 23 | line='127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4' 24 | owner=root group=root mode=0644 25 | -------------------------------------------------------------------------------- /roles/linux-oracle/files/disable_trans_hugepages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cat << EOF >> /etc/rc.local 3 | # Disable Transparent Hugepages 4 | if test -f /sys/kernel/mm/transparent_hugepage/enabled; then 5 | echo never > /sys/kernel/mm/transparent_hugepage/enabled 6 | fi 7 | if test -f /sys/kernel/mm/transparent_hugepage/defrag; then 8 | echo never > /sys/kernel/mm/transparent_hugepage/defrag 9 | fi 10 | EOF 11 | 12 | if test -f /sys/kernel/mm/transparent_hugepage/enabled; then 13 | echo never > /sys/kernel/mm/transparent_hugepage/enabled 14 | fi 15 | if test -f /sys/kernel/mm/transparent_hugepage/defrag; then 16 | echo never > /sys/kernel/mm/transparent_hugepage/defrag 17 | fi -------------------------------------------------------------------------------- /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 | # ==> Author: Christos Vezalis 5 | ################################################################################ 6 | 7 | # ==> Configure Linux 8 | - name: Install required libraries 9 | yum: name={{ item }} state=present 10 | with_items: "{{ packages_list }}" 11 | - name: Disable SELinux 12 | selinux: state=disabled 13 | - name: Disable Firewall Deamon (firewalld) 14 | service: name=firewalld state=stopped enabled=no 15 | - name: Change kernel parameters 16 | sysctl: name="{{ item.key }}" value="{{ item.value }}" state=present 17 | with_dict: "{{ kernel_params }}" 18 | 19 | # ==> Create users and groups 20 | - name: Create groups 21 | group: name={{ oracle_install_group }} state=present 22 | - name: add extra groups 23 | group: name={{ item }} state=present 24 | with_items: "{{ extra_groups }}" 25 | - name: Create user 26 | user: name={{ oracle_user }} group={{ oracle_install_group }} password={{ oracle_os_user_pass }} 27 | - name: Add extra groups 28 | user: name={{ oracle_user }} groups={{ item }} append=yes 29 | with_items: "{{ extra_groups }}" 30 | 31 | # ==> Add limits for oracle user 32 | - name: Add oracle user limits 33 | lineinfile: dest=/etc/security/limits.conf line='{{ oracle_user }} {{ item.limit }} {{ item.type}} {{ item.value }}' 34 | with_items: 35 | - { limit: 'soft', type: nofile, value: '{{ soft_no_file }}' } 36 | - { limit: 'hard', type: nofile, value: '{{ hard_no_file }}' } 37 | - { limit: 'soft', type: nproc, value: '{{ soft_nproc }}' } 38 | - { limit: 'hard', type: nproc, value: '{{ hard_nproc }}' } 39 | - { limit: 'soft', type: stack, value: '{{ soft_stack }}' } 40 | - { limit: 'hard', type: stack, value: '{{ hard_stack }}' } 41 | - { limit: 'soft', type: memlock, value: '{{ soft_memlock }}' } 42 | - { limit: 'hard', type: memlock, value: '{{ hard_memlock }}' } 43 | 44 | # ==> Create Base directories 45 | - name: Create Oracle Base directory 46 | file: state=directory path={{ oracle_base }} owner={{ oracle_user }} group={{ oracle_install_group }} 47 | 48 | # ==> Disable transparent hugepages 49 | - name: Copy script 50 | copy: src=disable_trans_hugepages.sh dest='~/disable_trans_hugepages.sh' mode=755 51 | - name: Disable Transparent Huge Pages 52 | shell: '~/disable_trans_hugepages.sh' 53 | 54 | # ==> Configure huge pages 55 | - name: configure kernel for hugepages 56 | sysctl: name="vm.nr_hugepages" value="{{ hugepages_nr }}" state=present 57 | tags: 58 | - hugepages 59 | -------------------------------------------------------------------------------- /roles/linux-oracle/vars/main.yml: -------------------------------------------------------------------------------- 1 | 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 | kernel_params: 25 | # Shared memory and semaphore 26 | # look for document 226209.1 in oracle support for details 27 | kernel.sem: 250 32000 100 128 28 | kernel.shmmni: 4096 29 | # 1.5 GB Shared memory 500mb for linux kernel (for 2GB virtual machine) 30 | kernel.shmall: 393216 31 | # 1 GB Half of the physical memory (for 2GB virtual machine) 32 | kernel.shmmax: 4398046511104 33 | # For 1Gbps with 1ms latency 16MB buffer 34 | net.core.rmem_max: 16777216 35 | net.core.wmem_max: 16777216 36 | net.ipv4.tcp_rmem: 4096 87380 16777216 37 | net.ipv4.tcp_wmem: 4096 65536 16777216 38 | # Minimize swap file use 39 | vm.swappiness: 10 40 | vm.dirty_background_ratio: 5 41 | vm.dirty_ratio: 10 42 | # Max open file descriptors 512 * db processes + room for os 43 | fs.file-max: 409600 44 | # Shorten keep alive of connections 45 | net.ipv4.tcp_keepalive_time: 300 46 | net.ipv4.tcp_keepalive_intvl: 60 47 | net.ipv4.tcp_keepalive_probes: 10 48 | # maximize port range 49 | net.ipv4.ip_local_port_range: 9000 65500 50 | 51 | # Oracle user limits 52 | soft_no_file: 4096 53 | hard_no_file: 65536 54 | soft_nproc: 2047 55 | hard_nproc: 16384 56 | soft_stack: 10240 57 | hard_stack: 32768 58 | # mem lock 90% of RAM 59 | soft_memlock: 1887437 60 | hard_memlock: 1887437 -------------------------------------------------------------------------------- /roles/oracle-install/files/linuxamd64_12102_database_1of2.zip.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cvezalis/oracledb-ansible/14656fab2c04769aeb796427b4d0cebb940e1772/roles/oracle-install/files/linuxamd64_12102_database_1of2.zip.sample -------------------------------------------------------------------------------- /roles/oracle-install/files/linuxamd64_12102_database_2of2.zip.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cvezalis/oracledb-ansible/14656fab2c04769aeb796427b4d0cebb940e1772/roles/oracle-install/files/linuxamd64_12102_database_2of2.zip.sample -------------------------------------------------------------------------------- /roles/oracle-install/files/start-pluggable-dbs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . /home/oracle/.bashrc 4 | 5 | sqlplus / as sysdba << EOF 6 | CREATE OR REPLACE TRIGGER startup_pluggable_dbs 7 | AFTER STARTUP ON DATABASE 8 | BEGIN 9 | EXECUTE IMMEDIATE 'alter pluggable database all open'; 10 | END; 11 | / 12 | EOF 13 | -------------------------------------------------------------------------------- /roles/oracle-install/tasks/main.yml: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # ==> Tasks for oracle-install role. This role installs the Oracle Database 3 | # ==> 12c software, configure a database, listener and ex express 4 | # ==> author: Christos Vezalis 5 | ################################################################################ 6 | 7 | - name: Create folder for installation files 8 | file: state=directory path={{ installation_folder }} 9 | # ==> Copy installer files 10 | - name: Copy installer files 11 | copy: src={{ item }} dest='{{ installation_folder }}/' 12 | with_items: '{{ installer_archives }}' 13 | 14 | # ==> extract files 15 | - name: Extract installation files 16 | command: 'unzip {{ installation_folder }}/{{ item }} -d {{ installation_folder }}/' 17 | with_items: '{{ installer_archives }}' 18 | 19 | # ==> generate response file 20 | - name: Generate the response file for software only installation 21 | template: src=db_install.rsp.j2 dest="{{ installation_folder }}/db_install.rsp" 22 | 23 | # ==> execute installation 24 | - name: Install Product 25 | command: "{{ installation_folder}}/database/runInstaller -silent -ignorePrereq -ignoreSysPrereqs -waitforcompletion -responseFile {{ installation_folder }}/db_install.rsp" 26 | 27 | # ==> execute Inventory command as root 28 | - name: Execute Inventoty root command 29 | command: '{{ inventory_location }}/orainstRoot.sh' 30 | become_user: root 31 | 32 | # ==> execute DB home command as root 33 | - name: Execute DB home rfoot command 34 | command: '{{ oracle_home }}/root.sh' 35 | become_user: root 36 | 37 | # ==> TODO: Create a new role for creating the database 38 | # ==> Create Listener TODO: Parameterize port, name etc 39 | - name: copy listener response file 40 | template: src=netca.rsp.j2 dest={{ installation_folder }}/netca.rsp 41 | 42 | - name: Create listener using netca 43 | command: '{{ oracle_home }}/bin/netca -silent -responseFile {{ installation_folder }}/netca.rsp' 44 | 45 | - name: copy response file for dbca 46 | template: src=dbca.rsp.j2 dest={{ installation_folder }}/dbca.rsp 47 | 48 | - name: create database 49 | command: '{{ oracle_home }}/bin/dbca -silent -responseFile {{ installation_folder }}/dbca.rsp' 50 | 51 | - name: create oracle home variable 52 | lineinfile: dest='/home/{{ oracle_user }}/.bashrc' line='export ORACLE_HOME={{ oracle_home }}' 53 | 54 | - name: create oracle sid variable 55 | lineinfile: dest='/home/{{ oracle_user }}/.bashrc' line='export ORACLE_SID={{ oracle_sid }}' 56 | 57 | - name: add oracle home bin folder 58 | lineinfile: dest='/home/{{ oracle_user }}/.bashrc' line='export PATH=$PATH:$ORACLE_HOME/bin' 59 | 60 | - name: change oratab 61 | lineinfile: dest='/etc/oratab' regexp='^{{ oracle_sid }}:{{ oracle_home }}:N' line='{{ oracle_sid }}:{{ oracle_home }}:Y' 62 | become_user: root 63 | 64 | - name: copy init.d oracle script to /etc/init.d 65 | template: src=oradb.j2 dest=/etc/init.d/oradb mode=750 66 | become_user: root 67 | 68 | - name: enable oradb script to run at startup 69 | command: 'chkconfig --add oradb' 70 | become_user: root 71 | 72 | # You can remove it for non vagrant server. 73 | #- name: reboot vagrant virtual machine 74 | # local_action: shell vagrant reload 75 | # sudo_user: '{{ host_username }}' 76 | # ignore_errors: yes 77 | # tags: 78 | # - reboot-vagrant 79 | 80 | - name: Create trigger for autostart pluggable db's 81 | copy: src=start-pluggable-dbs.sh dest={{ installation_folder }}/ mode=755 82 | tags: 83 | - start-pluggable 84 | 85 | - shell: '{{ installation_folder }}/start-pluggable-dbs.sh' 86 | tags: 87 | - start-pluggable 88 | -------------------------------------------------------------------------------- /roles/oracle-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-install/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= "UTF8" 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-install/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-install/templates/oradb.j2: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # chkconfig: 345 99 10 3 | # description: Oracle auto start-stop script. 4 | # 5 | # Change the value of ORACLE_HOME to specify the correct Oracle home 6 | # directory for your installation. 7 | 8 | ORACLE_HOME={{ oracle_home }} 9 | # 10 | # Change the value of ORACLE to the login name of the 11 | # oracle owner at your site. 12 | # 13 | ORACLE={{ oracle_user }} 14 | PATH=${PATH}:$ORACLE_HOME/bin 15 | export ORACLE_HOME PATH 16 | # 17 | case $1 in 18 | 'start') 19 | runuser -l $ORACLE -c '$ORACLE_HOME/bin/dbstart $ORACLE_HOME &' 20 | touch /var/lock/subsys/dbora 21 | ;; 22 | 'stop') 23 | runuser -l $ORACLE -c '$ORACLE_HOME/bin/dbshut $ORACLE_HOME' 24 | rm -f /var/lock/subsys/dbora 25 | ;; 26 | *) 27 | echo "usage: $0 {start|stop}" 28 | exit 29 | ;; 30 | esac 31 | # 32 | exit 33 | -------------------------------------------------------------------------------- /roles/oracle-install/vars/main.yml: -------------------------------------------------------------------------------- 1 | install_db: INSTALL_DB_SWONLY 2 | oracle_hostname: '{{ server_hostname }}' 3 | inventory_os_group: '{{ oracle_install_group }}' 4 | inventory_location: '{{ oracle_base }}/inventory' 5 | oracle_home: '{{ oracle_base }}/{{ oracle_user }}/product/{{ oracle_install_version }}/{{ dbhome_name }}' -------------------------------------------------------------------------------- /secrets.yml: -------------------------------------------------------------------------------- 1 | oracle_os_user_pass: '$6$P7jw3OaWKdR$tRSRPjTey.SPqhyLBxOKbm9k21MEYF6jHDUH2O03RPvISDVnkGqWNg1W6iJqZhqD3ErbdJZqUEuNnEuoAWHWO/' 2 | oracle_pass_all_users: oracle --------------------------------------------------------------------------------