Compare commits
59 Commits
2020.09.10
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b748b13501 | ||
|
|
ac5998c959 | ||
|
|
daccd1d97a | ||
|
|
e92f4d3fde | ||
|
|
772c3f4bd6 | ||
|
|
8e8905b300 | ||
|
|
a263b6235d | ||
|
|
dcb2c170bb | ||
|
|
8d5a076892 | ||
|
|
6ce4923bd2 | ||
|
|
170e05a885 | ||
|
|
1a2c46662e | ||
|
|
e6a3f88726 | ||
|
|
55804709f0 | ||
|
|
dbe90cb8e2 | ||
|
|
fabc0e75e5 | ||
|
|
247488321d | ||
|
|
2b9d14067e | ||
|
|
34d6c9caac | ||
|
|
f64ddb503b | ||
|
|
9640a6e62a | ||
|
|
367a9e158a | ||
|
|
63fd3ec144 | ||
|
|
2e42b772ad | ||
|
|
f2e17b92c6 | ||
|
|
11fea62a3c | ||
|
|
bc640dd09f | ||
|
|
92411123b4 | ||
|
|
0b94cf60b7 | ||
|
|
4a0afa4d7e | ||
|
|
9e27ebb863 | ||
|
|
445116b682 | ||
|
|
c3a8d77855 | ||
|
|
af82746df2 | ||
|
|
807a590750 | ||
|
|
64f6496cdd | ||
|
|
8a5f607821 | ||
|
|
4934f4050a | ||
|
|
a123623fc4 | ||
|
|
35b0589d71 | ||
|
|
ca16c59e91 | ||
|
|
79f6da2af4 | ||
|
|
8bb91e266e | ||
|
|
ebd0b832b5 | ||
|
|
80b193740a | ||
|
|
99308466f6 | ||
|
|
e69447e8e9 | ||
|
|
f14719de5c | ||
|
|
5e42c925da | ||
|
|
24c4eba902 | ||
|
|
aa091143b3 | ||
|
|
985a431ecd | ||
|
|
36125b9dd3 | ||
|
|
50eb83789f | ||
|
|
bb6b7b0b96 | ||
|
|
652a49b2f7 | ||
|
|
23873bc203 | ||
|
|
8e8f5ebf43 | ||
|
|
1337e1b842 |
@@ -1,26 +0,0 @@
|
||||
ansible sur le poste à configurer
|
||||
s'inspirer de l'exemple screen !
|
||||
|
||||
===
|
||||
|
||||
yum install -y wget bzip2
|
||||
|
||||
wget https://github.com/ownport/portable-ansible/releases/download/v0.4.2/portable-ansible-v0.4.2-py2.tar.bz2
|
||||
tar xvfj portable-ansible-v0.4.2-py2.tar.bz2
|
||||
|
||||
ln -s ansible ansible-playbook
|
||||
|
||||
creer un fichier hosts.oracle avec le contenu suivant
|
||||
|
||||
[local]
|
||||
localhost ansible_connection=local
|
||||
|
||||
scp mes playbooks dans /root
|
||||
|
||||
merlin@Dell-E7440:~/scripts/configure_oracle $ scp -r * root@192.168.1.241:/root
|
||||
|
||||
ou rsync :
|
||||
merlin@Dell-E7440:~/scripts/configure_oracle $ rsync -av * root@192.168.1.241:/root
|
||||
|
||||
python ansible-playbook book-config-oel-6-7.yml -i hosts.oracle
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"folders":
|
||||
[
|
||||
{
|
||||
"path": "."
|
||||
},
|
||||
{
|
||||
"path": "/media/merlin/windows/Users/youmghar/Documents/3_Scripts/preparation/preparation_20190131"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -2,8 +2,10 @@
|
||||
- name: Host configuration
|
||||
hosts: all
|
||||
user: root
|
||||
|
||||
|
||||
roles:
|
||||
- { role: configure-host-oel6, when: "ansible_distribution_major_version == '6'" }
|
||||
- { role: configure-host-oel7, when: "ansible_distribution_major_version == '7'" }
|
||||
# - install-oracle-sw
|
||||
- { role: configure-host-oel7, when: "ansible_distribution_major_version >= '7'" }
|
||||
- install-oracle-sw
|
||||
|
||||
|
||||
@@ -5,19 +5,25 @@
|
||||
- name: Ajustement des paramètres du Kernel
|
||||
sysctl: name={{ item.name }} value="{{ item.value }}" state=present reload=yes ignoreerrors=yes
|
||||
with_items:
|
||||
- { name: kernel.shmall, value: "{{ ((0.4 * ansible_memtotal_mb)*1024)|round|int }}" }
|
||||
- { name: kernel.shmmax, value: "{{ ((0.5 * ansible_memtotal_mb)*1024)|round|int }}" }
|
||||
with_items:
|
||||
# shmall = 50% de la RAM pour les SGA Oracle, divisé par PAGE_SIZE (getconf PAGE_SIZE = 4096)
|
||||
# on suppose que 60% de la RAM sera affectée aux SGA
|
||||
- { name: kernel.shmall, value: "{{ ((0.6 * ansible_memtotal_mb)*1024*1024/4096)|round|int }}" }
|
||||
- { name: kernel.shmmax, value: "{{ ((0.8 * ansible_memtotal_mb)*1024*1024)|round|int }}" }
|
||||
# - { name: kernel.shmmax, value: 4398046511104 }
|
||||
- { name: kernel.shmmni, value: 4096 }
|
||||
- { name: kernel.sem, value: "250 32000 100 128" }
|
||||
- { name: fs.file-max, value: 6815744 }
|
||||
- { name: fs.aio-max-nr, value: 1048576 }
|
||||
- { name: net.ipv4.ip_local_port_range, value: "9000 65500" }
|
||||
- { name: net.ipv4.conf.all.rp_filter, value: 2 }
|
||||
- { name: net.ipv4.conf.default.rp_filter, value: 2 }
|
||||
- { name: net.core.rmem_default, value: 262144 }
|
||||
- { name: net.core.rmem_max, value: 4194304 }
|
||||
- { name: net.core.wmem_default, value: 262144 }
|
||||
- { name: net.core.wmem_max, value: 1048576 }
|
||||
- { name: vm.nr_hugepages, value: "{{ (((percent_hugepages/100) * ansible_memtotal_mb)/2)|round|int }}" }
|
||||
tags: sysconfig
|
||||
tags: sysctl
|
||||
|
||||
- name: Configuration PAM
|
||||
lineinfile: dest=/etc/pam.d/login state=present line="session required pam_limits.so"
|
||||
|
||||
@@ -101,10 +101,10 @@
|
||||
- sendmail
|
||||
- smartd
|
||||
- avahi-daemon
|
||||
- NetworkManager
|
||||
- rhnsd
|
||||
- firstboot
|
||||
- chronyd
|
||||
- ip6tables
|
||||
- iptables
|
||||
- firewalld
|
||||
# - NetworkManager
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
Role Name
|
||||
=========
|
||||
|
||||
A brief description of the role goes here.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- { role: username.rolename, x: 42 }
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||
@@ -1,26 +0,0 @@
|
||||
[epel]
|
||||
name=Extra Packages for Enterprise Linux 6 - $basearch
|
||||
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
|
||||
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
|
||||
failovermethod=priority
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
|
||||
|
||||
[epel-debuginfo]
|
||||
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
|
||||
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
|
||||
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
|
||||
failovermethod=priority
|
||||
enabled=0
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
|
||||
gpgcheck=1
|
||||
|
||||
[epel-source]
|
||||
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
|
||||
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
|
||||
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
|
||||
failovermethod=priority
|
||||
enabled=0
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
|
||||
gpgcheck=1
|
||||
Binary file not shown.
@@ -1,69 +0,0 @@
|
||||
[public_ol6_latest]
|
||||
name=Oracle Linux $releasever Latest ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
|
||||
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
|
||||
[public_ol6_ga_base]
|
||||
name=Oracle Linux $releasever GA installation media copy ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/
|
||||
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
[public_ol6_u1_base]
|
||||
name=Oracle Linux $releasever Update 1 installation media copy ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/$basearch/
|
||||
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
[public_ol6_u2_base]
|
||||
name=Oracle Linux $releasever Update 2 installation media copy ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/2/base/$basearch/
|
||||
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
[public_ol6_u3_base]
|
||||
name=Oracle Linux $releasever Update 3 installation media copy ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/3/base/$basearch/
|
||||
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
[public_ol6_u4_base]
|
||||
name=Oracle Linux $releasever Update 4 installation media copy ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/4/base/$basearch/
|
||||
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
[public_ol6_u5_base]
|
||||
name=Oracle Linux $releasever Update 5 installation media copy ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/5/base/$basearch/
|
||||
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
[public_ol6_UEK_latest]
|
||||
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/$basearch/
|
||||
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
|
||||
gpgcheck=1
|
||||
enabled=$uek
|
||||
|
||||
[public_ol6_UEKR3_latest]
|
||||
name=Unbreakable Enterprise Kernel Release 3 for Oracle Linux $releasever ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEKR3/latest/$basearch/
|
||||
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
|
||||
gpgcheck=1
|
||||
enabled=$uekr3
|
||||
|
||||
[public_ol6_UEK_base]
|
||||
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/$basearch/
|
||||
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
@@ -1,72 +0,0 @@
|
||||
[ol7_latest]
|
||||
name=Oracle Linux $releasever Latest ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
|
||||
[ol7_u0_base]
|
||||
name=Oracle Linux $releasever GA installation media copy ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/0/base/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
[ol7_u1_base]
|
||||
name=Oracle Linux $releasever Update 1 installation media copy ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/1/base/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
[ol7_UEKR3]
|
||||
name=Latest Unbreakable Enterprise Kernel Release 3 for Oracle Linux $releasever ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEKR3/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
|
||||
[ol7_optional_latest]
|
||||
name=Oracle Linux $releasever Optional Latest ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/optional/latest/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
[ol7_addons]
|
||||
name=Oracle Linux $releasever Add ons ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
[ol7_UEKR3_OFED20]
|
||||
name=OFED supporting tool packages for Unbreakable Enterprise Kernel on Oracle Linux 7 ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEKR3_OFED20/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
priority=20
|
||||
|
||||
[ol7_MySQL56]
|
||||
name=MySQL 5.6 for Oracle Linux 7 ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/MySQL56/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
[ol7_MySQL55]
|
||||
name=MySQL 5.5 for Oracle Linux 7 ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/MySQL55/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
|
||||
[ol7_spacewalk22_client]
|
||||
name=Spacewalk Client 2.2 for Oracle Linux 7 ($basearch)
|
||||
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/spacewalk22/client/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
||||
gpgcheck=1
|
||||
enabled=0
|
||||
|
||||
BIN
configure-host-oel7/files/rlwrap-0.42-1.el7.x86_64.rpm
Normal file
BIN
configure-host-oel7/files/rlwrap-0.42-1.el7.x86_64.rpm
Normal file
Binary file not shown.
BIN
configure-host-oel7/files/rlwrap-0.44-1.el8.x86_64.rpm
Normal file
BIN
configure-host-oel7/files/rlwrap-0.44-1.el8.x86_64.rpm
Normal file
Binary file not shown.
20
configure-host-oel7/files/z_bash_aliases
Normal file
20
configure-host-oel7/files/z_bash_aliases
Normal file
@@ -0,0 +1,20 @@
|
||||
# aliases bash
|
||||
alias egrep='egrep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
|
||||
alias l.='ls -d .* --color=auto'
|
||||
alias la='ls -latra'
|
||||
alias ll='ls -l --color=auto'
|
||||
alias ls='ls --color=auto'
|
||||
|
||||
alias tailf='tail -100f'
|
||||
|
||||
# alias oracle
|
||||
alias sqlplus='rlwrap sqlplus'
|
||||
alias rman='rlwrap rman'
|
||||
alias adrci='rlwrap adrci'
|
||||
alias asmcmd='rlwrap asmcmd'
|
||||
alias dgmgrl='rlwrap dgmgrl'
|
||||
alias tns='cd $ORACLE_HOME/network/admin'
|
||||
alias oh='cd $ORACLE_HOME'
|
||||
@@ -1,164 +1,23 @@
|
||||
#!/bin/bash
|
||||
#########################################################################
|
||||
#########################################################################
|
||||
## Fichier de configuration d'environnement Oracle
|
||||
## Pour infrastructure cluster ou standalone.
|
||||
## Versions testees: 12.1, 11.2 GI et SA, flex/normal
|
||||
##
|
||||
## 2014-08-13 YOM Correction de l'emplacement des journaux cluster vers ADR en 12c
|
||||
## 2014-08-13 YOM Correction concernant la détection Restart en 12c (olsnodes réponds...)
|
||||
## 2014-08-20 YOM Correction des alias crsstat et crsstati pour implémenter les variables ORA_CRS car elles ne doivent pas être laissées dans l'environnement
|
||||
## 2014-12-02 YOM Correction du prompt par défaut
|
||||
## 2014-12-03 YOM Suppression des alias crsstat et crsstati pour les transformer en scripts
|
||||
## 2014-12-04 YOM Ajout de l'alias OH pour un « cd $ORACLE_HOME »
|
||||
## 2015-01-21 YOM Test si le terminal est interractif pour éviter les erreurs TPUT en v7
|
||||
## 2016-02-15 YOM Ajout de l'alias « cdt » sur demande de PIL
|
||||
## 2016-02-16 YOM Paramétrage de la mise à niveau de l'invite de commande
|
||||
## 2016-02-25 YOM Modifications comportementales pour faciliter l'execution
|
||||
## 2016-03-29 YOM 12.2 : changement de la conf ulimit pour être OK préco (fonction ajustement_limites)
|
||||
## 2016-03-04 YOM . Modification du test de démarrage du cluster à cause de la 12c qui change le comportement olsnodes
|
||||
## . Ajout d'un critère supplémentaire lié à l'alias cdt si le cluster est arrêté
|
||||
## 2016-04-07 YOM . Ajout de l'alias SID pour la gestion facile de l'environnement
|
||||
## . Ajustement de la zone d'exploitation
|
||||
## 2016-06-28 YOM Rectification d'un problème si le cluster est arrêtée qui provoquait unn affichage d'erreur bash non voulu
|
||||
## 2016-09-05 YOM Changement de l'alias « alert » pour limiter la largeur de ligne d'affichage
|
||||
## 2016-09-16 YOM Utilisation des fichiers du vocabulaire RLWrap si ils sont présents (demande de THT)
|
||||
## 2017-05-16 YOM Modification de la présentation de fonction (retrait des ()) pour une meilleure compatibilité
|
||||
## 2017-08-23 YOM Création d'un fichier qui stocke la configuration repérée afin de ne pas systématiquement recalculer l'ensemble du paramétrage
|
||||
## 2019-01-08 THT Arret de l'utilisation de local dans la fonction charge pour la variable lNODE_INFO, car l'utilisation de local donnait toujours un code retour à 0
|
||||
## 2019-01-23 THT Ajout de opatch dans le PATH de grid et oracle
|
||||
#########################################################################
|
||||
|
||||
## Activation des echo pour DEBUG si mis à 1
|
||||
DEBUG=0
|
||||
|
||||
## Invite de commande sympa à activer (1 pour activé, 0 pour dormant) :
|
||||
ORAC_INV_C=1
|
||||
GRID_INV_C=1
|
||||
ROOT_INV_C=1
|
||||
|
||||
## Contexte
|
||||
APP_CTX=z_oracle.sh
|
||||
HOSTNAME_SIMPLE=`hostname -s`
|
||||
|
||||
## Shell interactif ou non ?
|
||||
fd=0
|
||||
if [[ $- = *i* ]]
|
||||
then
|
||||
INTERACTIF=OUI
|
||||
else
|
||||
INTERACTIF=NON
|
||||
fi
|
||||
|
||||
## Ajustement des limites (préconisations Oracle)
|
||||
function ajustement_limites {
|
||||
decho fonction ajustement limites
|
||||
if [ $SHELL = "/bin/ksh" ] ; then
|
||||
ulimit -p 16384
|
||||
ulimit -n 65536
|
||||
ulimit -s 32768
|
||||
else
|
||||
ulimit -u 16384 -n 65536
|
||||
fi
|
||||
ulimit -Hs 32768
|
||||
ulimit -Ss 10240
|
||||
}
|
||||
|
||||
## Affichage des messages de sortie de debug
|
||||
function decho {
|
||||
if [ $DEBUG -eq 1 ] ; then
|
||||
echo $APP_CTX: $*
|
||||
fi
|
||||
}
|
||||
|
||||
######## Préparation fichier d'historique des informations de contexte
|
||||
FICH_INFOS=/tmp/.z_oracle
|
||||
# Obsolescence parr défaut: 24h
|
||||
FICH_OBS=24
|
||||
## Gestion de l'obsolescence du fichier d'historique de configuration
|
||||
# Si il n'existe pas, aucun problème. Sinon, il faut traiter
|
||||
#ls -lrta $FICH_INFOS
|
||||
#ls -lrts /tmp/.z_oracle
|
||||
if [ -r $FICH_INFOS ] ; then
|
||||
# Si obsolete
|
||||
decho "Fichier $FICH_INFOS trouvé"
|
||||
NB_SEC_DEPUIS_EPOCH=`PATH=\`getconf PATH\` awk 'BEGIN{srand();print srand()}'`
|
||||
NB_SEC_DEPUIS_EPOCH_FICHIER=`stat -c %Y $FICH_INFOS`
|
||||
NB_SEC_ECOULEES_MOD=`expr $NB_SEC_DEPUIS_EPOCH - $NB_SEC_DEPUIS_EPOCH_FICHIER`
|
||||
HEURES_MOD=`expr $NB_SEC_ECOULEES_MOD / 3600`
|
||||
if [ $HEURES_MOD -ge $FICH_OBS ] ; then
|
||||
decho "Suppression $FICH_INFOS : obsolète (+${FICH_OBS}h)"
|
||||
rm -f $FICH_INFOS 1>/dev/null 2>&1
|
||||
touch $FICH_INFOS
|
||||
chmod 666 $FICH_INFOS
|
||||
fi
|
||||
else
|
||||
decho "fichier $FICH_INFOS non trouvé"
|
||||
touch $FICH_INFOS
|
||||
chmod 666 $FICH_INFOS
|
||||
fi
|
||||
|
||||
# Fonction qui charge une information, soit depuis le contexte, soit depuis le fichier d'infos
|
||||
function charge {
|
||||
# Premier paramètre: le nom de l'élément recherché, identique au nom de la variable d'env du script
|
||||
if [ $# -ne 1 ] ; then
|
||||
decho charge: manque de paramétrage
|
||||
exit 0
|
||||
fi
|
||||
# Afin d'éviter la globalisation des variables de recherche et ne pas alourdir "l'unset" final, utilisation de variables locales pour la recherche
|
||||
local __varRecherche=$1
|
||||
# Déjà connu via le fichier d'infos pour chargement rapide et pas reclacul
|
||||
if [ `egrep "^${1}=" $FICH_INFOS | wc -l` -eq 1 ] ; then
|
||||
# OUI
|
||||
local lRep=`egrep "^$1" $FICH_INFOS | cut -d= -f2`
|
||||
eval $__varRecherche="'$lRep'"
|
||||
else
|
||||
# NON : on calcule et on pérénise
|
||||
case $1 in
|
||||
NODE_INFO)
|
||||
lNODE_INFO=`$ORA_CRS_HOME/bin/olsnodes -l -n -a`
|
||||
if [ $? -ne 0 ] ; then
|
||||
# En cluster 11, on n'a pas de -a (mode cluster flex/normal)
|
||||
lNODE_INFO=`$ORA_CRS_HOME/bin/olsnodes -l -n`
|
||||
fi
|
||||
echo "NODE_INFO=$lNODE_INFO" >> $FICH_INFOS
|
||||
eval $__varRecherche="'$lNODE_INFO'"
|
||||
;;
|
||||
ORA_CRS_CLUSTER_NAME)
|
||||
local lORA_CRS_CLUSTER_NAME=`$ORA_CRS_HOME/bin/olsnodes -c`
|
||||
echo "ORA_CRS_CLUSTER_NAME=$lORA_CRS_CLUSTER_NAME" >> $FICH_INFOS
|
||||
eval $__varRecherche="'$lORA_CRS_CLUSTER_NAME'"
|
||||
;;
|
||||
ORA_CRS_ACTIVEVERSION)
|
||||
local lORA_CRS_ACTIVEVERSION=`$ORA_CRS_HOME/bin/crsctl query crs activeversion | cut -d[ -f2 | cut -d. -f1`
|
||||
echo "ORA_CRS_ACTIVEVERSION=$lORA_CRS_ACTIVEVERSION" >> $FICH_INFOS
|
||||
eval $__varRecherche="'$lORA_CRS_ACTIVEVERSION'"
|
||||
;;
|
||||
ORA_CRS_CLUSTERMODE)
|
||||
local lORA_CRS_CLUSTERMODE=`$ORA_CRS_HOME/bin/crsctl get cluster mode config |cut -d\" -f2`
|
||||
echo "ORA_CRS_CLUSTERMODE=$lORA_CRS_CLUSTERMODE" >> $FICH_INFOS
|
||||
eval $__varRecherche="'$lORA_CRS_CLUSTERMODE'"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
########
|
||||
|
||||
decho "Terminal en mode interactif: $INTERACTIF"
|
||||
|
||||
## On entre seulement pour certains utilisateurs.
|
||||
## root een fait partie pour la composante cluster, crsctl, ...
|
||||
if [ $USER = "SED_ORACLE_TARGET__" ] || [ $USER = "SED_GRID_TARGET__" ] || [ $USER = "root" ] ; then
|
||||
if [ $USER = "grid" ] || [ $USER = "oracle" ] || [ $USER = "root" ] ; then
|
||||
|
||||
decho $USER login profile
|
||||
|
||||
# Certaines operations ne sont pas a realiser pour root
|
||||
# les limites sont laissees par defaut
|
||||
# ainsi que le masque de creation de fichier ou le stty break.
|
||||
if [ $USER != "root" ] ; then
|
||||
ajustement_limites
|
||||
# ajustement des limites
|
||||
if [ $SHELL = "/bin/ksh" ] ; then
|
||||
ulimit -p 16384
|
||||
ulimit -n 65536
|
||||
ulimit -s 32768
|
||||
else
|
||||
ulimit -u 16384 -n 65536
|
||||
fi
|
||||
ulimit -Hs 32768
|
||||
ulimit -Ss 10240
|
||||
|
||||
decho umask et stty break
|
||||
# Masque de création des fichiers
|
||||
umask 022
|
||||
|
||||
@@ -166,269 +25,25 @@ if [ $USER = "SED_ORACLE_TARGET__" ] || [ $USER = "SED_GRID_TARGET__" ] || [ $US
|
||||
if [ -t 0 ]; then
|
||||
stty intr ^C
|
||||
fi
|
||||
fi
|
||||
|
||||
# préparation pour l'inventaire
|
||||
# Si l'installation a ete realisee, on a un inventaire accessible que l'on peut traiter
|
||||
OLR_LOC=/etc/oracle/olr.loc
|
||||
ORA_INVENTORY_CFFILE=/etc/oraInst.loc
|
||||
decho OLR: $OLR_LOC
|
||||
decho Inventaire: $ORA_INVENTORY_CFFILE
|
||||
|
||||
# Si l'installation n'est pas faite... on ignore cette partie
|
||||
if [ -f $ORA_INVENTORY_CFFILE ] ; then
|
||||
decho Installation trouvee
|
||||
# On recupere les informations de l'inventaire, pour traitement eventuel
|
||||
ORA_INVENTORY=`grep inventory_loc $ORA_INVENTORY_CFFILE | cut -d= -f2`
|
||||
ORA_INVENTORY_XMLFILE=$ORA_INVENTORY/ContentsXML/inventory.xml
|
||||
|
||||
# Recuperation de l'emplacement du répertoire prive de l'utilisateur premier oracle
|
||||
ORA_EXPL_DIR=SED_EXPL_REP__
|
||||
ORA_EXPL_BIN=$ORA_EXPL_DIR/bin
|
||||
ORA_EXPL_SQL=$ORA_EXPL_DIR/sql
|
||||
ORA_EXPL_TMP=$ORA_EXPL_DIR/tmp
|
||||
ORA_EXPL_RLWVOC=$ORA_EXPL_DIR/rlwrap_vocabulaire
|
||||
# Préparation des informations de complément pour RLWrap par rapport aux fichiers de vocabulaire, si présents
|
||||
if [ -r "$ORA_EXPL_RLWVOC/adrci" ] ; then
|
||||
RLW_COMP_ADRCI=" -i -f $ORA_EXPL_RLWVOC/adrci "
|
||||
fi
|
||||
if [ -r "$ORA_EXPL_RLWVOC/asmcmd" ] ; then
|
||||
RLW_COMP_ASMCMD=" -i -f $ORA_EXPL_RLWVOC/asmcmd "
|
||||
fi
|
||||
if [ -r "$ORA_EXPL_RLWVOC/dgmgrl" ] ; then
|
||||
RLW_COMP_DGMGRL=" -i -f $ORA_EXPL_RLWVOC/dgmgrl "
|
||||
fi
|
||||
if [ -r "$ORA_EXPL_RLWVOC/rman" ] ; then
|
||||
RLW_COMP_RMAN=" -i -f $ORA_EXPL_RLWVOC/rman "
|
||||
fi
|
||||
if [ -r "$ORA_EXPL_RLWVOC/sqlplus" -a -d "$ORA_EXPL_RLWVOC/sqlplus" ] ; then
|
||||
LISTE_COMPLEMENTS=`ls $ORA_EXPL_RLWVOC/sqlplus | sed -e "s|^| -f $ORA_EXPL_RLWVOC/sqlplus/|g" | tr '\n' ' '`
|
||||
RLW_COMP_SQLPLUS=" -i $LISTE_COMPLEMENTS "
|
||||
unset LISTE_COMPLEMENTS
|
||||
fi
|
||||
|
||||
# Test pour savoir si GI installée
|
||||
if [ -f $OLR_LOC ] ; then
|
||||
decho GI installee
|
||||
# Mise en place du pointeur de racine CRS
|
||||
export ORA_CRS_HOME=`grep crs_home /etc/oracle/olr.loc|cut -d= -f2`
|
||||
decho ORA_CRS_HOME = $ORA_CRS_HOME
|
||||
|
||||
# On utilise olsnodes qui "sors" rapidement pour aussi valider que la couche est UP
|
||||
# sinon on perds un temps phénoménal pour rien avec les timeout crsctl
|
||||
# La remarque n'est plus valable avec la 12C. Donc, ajout d'un test via la ressource ora.crsd
|
||||
$ORA_CRS_HOME/bin/crsctl stat res ora.crsd -init | grep STATE | grep ONLINE 1>/dev/null 2>&1
|
||||
if [ $? -eq 0 ] ; then
|
||||
# C'est démarré, on peut traiter.
|
||||
charge NODE_INFO
|
||||
export ORA_CRS_NODE_NUM=`echo $NODE_INFO | awk '{print $2}'`
|
||||
export ORA_CRS_NODE_TYPE=`echo $NODE_INFO | awk '{print $3}'`
|
||||
decho ORA_CRS_NODE_NUM = $ORA_CRS_NODE_NUM
|
||||
decho ORA_CRS_NODE_TYPE = $ORA_CRS_NODE_TYPE
|
||||
|
||||
charge ORA_CRS_CLUSTER_NAME
|
||||
decho ORA_CRS_CLUSTER_NAME=$ORA_CRS_CLUSTER_NAME
|
||||
|
||||
# Si le cluster n'a pas de nom, c'est que nous sommes en Oracle Restart. Donc pas de query activeversion!
|
||||
if [ "$ORA_CRS_CLUSTER_NAME" != "" ] ; then
|
||||
# Alias qui permet à partir du nom de la base de fixer dynamiquement le SID (depuis ORACLE_SID via oraenv)
|
||||
if [ "$USER" != "root" ] ; then
|
||||
# Ajout d'un alias pour adapter le nom de base vers le sid
|
||||
# le nom de la base est localisé dans le fichier oratab et le nom de l'instance dépend de la configuration
|
||||
alias sid='egrep "^$ORACLE_SID:" /etc/oratab 1>/dev/null 2>&1 && export ORACLE_SID=`LANG=C srvctl status instance -d $ORACLE_SID -n \`hostname -s\`| cut -d" " -f2`'
|
||||
fi
|
||||
charge ORA_CRS_ACTIVEVERSION
|
||||
if [ "$ORA_CRS_ACTIVEVERSION" -eq "12" ] ; then
|
||||
# On peut attendre un cluster flex ou non
|
||||
charge ORA_CRS_CLUSTERMODE
|
||||
# On raccourcis "standard" en "std" si besoin
|
||||
if [ "$ORA_CRS_CLUSTERMODE" = "standard" ] ; then
|
||||
export ORA_CRS_CLUSTERMODE=std
|
||||
fi
|
||||
else
|
||||
export ORA_CRS_CLUSTERMODE=std
|
||||
fi
|
||||
else
|
||||
ORA_CRS_CLUSTERMODE=rst
|
||||
fi
|
||||
decho Mode: $ORA_CRS_CLUSTERMODE
|
||||
|
||||
|
||||
else
|
||||
decho Clusterware OFFLINE.
|
||||
# Est-on en RESTART ???!!!
|
||||
if [ `cat /etc/oracle/ocr.loc | grep "local_only=TRUE" |wc -l` -eq 1 ] ; then
|
||||
decho certainement GI standalone pour RESTART
|
||||
ORA_CRS_CLUSTERMODE=rst
|
||||
fi
|
||||
fi
|
||||
|
||||
# Alias manipulation
|
||||
if [ $USER = "SED_ORACLE_TARGET__" ] ; then
|
||||
# pointeur facile pour crsctl...
|
||||
decho Alias crsctl cree
|
||||
alias crsctl='$ORA_CRS_HOME/bin/crsctl'
|
||||
elif [ $USER = "root" ] ; then
|
||||
decho Ajustement path user root
|
||||
# On ajoute le chemin du cluster dans le PATH
|
||||
export PATH=$ORA_CRS_HOME/bin:$ORA_EXPL_BIN:$PATH
|
||||
elif [ $USER = "SED_GRID_TARGET__" ] ; then
|
||||
decho environnement GI
|
||||
export ORACLE_HOME=$ORA_CRS_HOME
|
||||
export ORACLE_BASE=`$ORACLE_HOME/bin/orabase`
|
||||
export SQLPATH=$ORA_EXPL_SQL
|
||||
export PATH=$ORA_CRS_HOME/bin:$ORA_CRS_HOME/OPatch:$ORA_EXPL_BIN:$PATH
|
||||
if [ `ps -ef | grep -E 'pmon.*\+A' | grep -v grep | cut -d_ -f3- | wc -l` -gt 0 ] ; then
|
||||
export ORACLE_SID=`ps -ef | grep -E 'pmon.*\+A' | grep -v grep | cut -d_ -f3- | sort | tail -1`
|
||||
fi
|
||||
fi
|
||||
## Accès direct aux logs
|
||||
if [ "$INTERACTIF" = "OUI" ] ; then
|
||||
DRT_LI=`tput lines`
|
||||
else
|
||||
DRT_LI=100
|
||||
fi
|
||||
## On teste la présence de fichiers "11" hors ADR.
|
||||
if [ -r $ORA_CRS_HOME/log/$HOSTNAME_SIMPLE/ohasd/ohasd.log ] ; then
|
||||
## Configuration ancienne
|
||||
OHASD_LOG=$ORA_CRS_HOME/log/$HOSTNAME_SIMPLE/ohasd/ohasd.log
|
||||
CSSD_LOG=$ORA_CRS_HOME/log/$HOSTNAME_SIMPLE/cssd/ocssd.log
|
||||
CRSD_LOG=$ORA_CRS_HOME/log/$HOSTNAME_SIMPLE/crsd/crsd.log
|
||||
ALERT_LOG=$ORA_CRS_HOME/log/$HOSTNAME_SIMPLE/alert$HOSTNAME_SIMPLE.log
|
||||
else
|
||||
## Configuration nouvelle ADR pour les journaux cluster
|
||||
OB=`ORACLE_HOME=$ORA_CRS_HOME ${ORA_CRS_HOME}/bin/orabase`
|
||||
OHASD_LOG=$OB/diag/crs/$HOSTNAME_SIMPLE/crs/trace/ohasd.trc
|
||||
CSSD_LOG=$OB/diag/crs/$HOSTNAME_SIMPLE/crs/trace/ocssd.trc
|
||||
CRSD_LOG=$OB/diag/crs/$HOSTNAME_SIMPLE/crs/trace/crsd.trc
|
||||
ALERT_LOG=$OB/diag/crs/$HOSTNAME_SIMPLE/crs/trace/alert.log
|
||||
fi
|
||||
## Cluster Alert log
|
||||
alias alertgen="tail -${DRT_LI}f $ALERT_LOG"
|
||||
## LOG - OHASD
|
||||
alias ohasd="tail -${DRT_LI}f $OHASD_LOG"
|
||||
## LOG - CSSD
|
||||
alias cssd="tail -${DRT_LI}f $CSSD_LOG"
|
||||
## LOG - CRSD
|
||||
alias crsd="tail -${DRT_LI}f $CRSD_LOG"
|
||||
## Alert global watch
|
||||
|
||||
## Aucun intérêt dans un terminal non interactif
|
||||
if [ "$INTERACTIF" = "OUI" ] ; then
|
||||
DRT_LI=`expr $DRT_LI / 10 - 1`
|
||||
DRT_LI2=`expr $DRT_LI \* 3`
|
||||
DRT_LI6=`expr $DRT_LI \* 6`
|
||||
NORMAL=$(tput sgr0)
|
||||
ROUGE=$(tput setaf 1)
|
||||
alias alert="while :; do clear ; R=\`tput cols\` ; echo -e \"${ROUGE}ALERT********${NORMAL}\" ; tail -$DRT_LI $ALERT_LOG | cut -c -\$R ; echo -e \"${ROUGE}CRSD*********${NORMAL}\" ; tail -$DRT_LI2 $CRSD_LOG | cut -c -\$R ; echo -e \"${ROUGE}OCSSD********${NORMAL}\" ; tail -$DRT_LI6 $CSSD_LOG | cut -c -\$R ; echo -e \"${ROUGE}OHASD********${NORMAL}\" ; tail -$DRT_LI $OHASD_LOG | cut -c -\$R ; sleep 1; done"
|
||||
fi
|
||||
else
|
||||
decho GI non installee
|
||||
ORA_CRS_CLUSTERMODE=sa
|
||||
fi
|
||||
|
||||
# Alias CDT valable pour tous environnements
|
||||
# Attention, cluster ou non.
|
||||
if [ "$ORA_CRS_CLUSTERMODE" = "rst" -o "$ORA_CRS_CLUSTERMODE" = "sa" ] ; then
|
||||
# Sans GI ou en Restart
|
||||
if [ $USER = "SED_ORACLE_TARGET__" ] ; then
|
||||
alias cdt='cd $ORACLE_BASE/diag/rdbms/`echo $ORACLE_SID | tr [:upper:] [:lower:]`/$ORACLE_SID/trace'
|
||||
elif [ $USER = "SED_GRID_TARGET__" ] ; then
|
||||
alias cdt='cd $ORACLE_BASE/diag/asm/`echo $ORACLE_SID | tr [:upper:] [:lower:]`/$ORACLE_SID/trace'
|
||||
fi
|
||||
elif [ ! -z "$ORA_CRS_CLUSTERMODE" ] ; then
|
||||
# En cluster, donc
|
||||
if [ $USER = "SED_ORACLE_TARGET__" ] ; then
|
||||
alias cdt='cd $ORACLE_BASE/diag/rdbms/`echo ${ORACLE_SID%?} | tr [:upper:] [:lower:]`/$ORACLE_SID/trace'
|
||||
elif [ $USER = "SED_GRID_TARGET__" ] ; then
|
||||
alias cdt='cd $ORACLE_BASE/diag/asm/`echo ${ORACLE_SID%?} | tr [:upper:] [:lower:]`/$ORACLE_SID/trace'
|
||||
fi
|
||||
else
|
||||
decho "Type cluster non calculé"
|
||||
fi
|
||||
|
||||
# Env oracle avec ou hors GI
|
||||
if [ $USER = "SED_ORACLE_TARGET__" ] ; then
|
||||
export SQLPATH=$ORA_EXPL_SQL
|
||||
# Si 1 seul OH dans l'inventaire, on set. Non déterminable si GI non cluster (manque le CRS=true pour identifier)
|
||||
if [ `grep '<HOME NAME' $ORA_INVENTORY_XMLFILE | grep -v 'CRS' | grep -v "${ORA_CRS_HOME:-xxxxxxxxxx}" | wc -l` -eq 1 ] ; then
|
||||
export ORACLE_HOME=`grep '<HOME NAME' $ORA_INVENTORY_XMLFILE | grep -v 'CRS' | grep -v "${ORA_CRS_HOME:-xxxxxxxxxx}" | sed -e 's/.*LOC=//g' | cut -d'"' -f2`
|
||||
export ORACLE_BASE=`$ORACLE_HOME/bin/orabase`
|
||||
if [ "$ORACLE_HOME" = "$ORA_CRS_HOME" ] ; then
|
||||
# Installation en suspens
|
||||
unset ORACLE_HOME ORACLE_BASE
|
||||
else
|
||||
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORA_EXPL_BIN:$PATH
|
||||
decho ORACLE_HOME=$ORACLE_HOME
|
||||
# On va essayer de se positionner dans l'environnement de la première base dispo.
|
||||
DB_TARGET=`cat /etc/oratab | grep -Ev '^$|^#' | grep $ORACLE_HOME | cut -d: -f1 | head -1`
|
||||
decho DB_TARGET=$DB_TARGET
|
||||
if [ ! -z $DB_TARGET ] ; then
|
||||
# DB trouvée, on cherche l'instance
|
||||
if [ "$ORA_CRS_CLUSTERMODE" = "sa" ] ; then
|
||||
# Si c'est une install SA, on teste sans ID d'instance
|
||||
decho SA
|
||||
DEC_INST=`ps -ef | grep -E "pmon_${DB_TARGET}$" | grep -v grep | cut -d_ -f3-`
|
||||
else
|
||||
# Sinon, sans complément, on vois
|
||||
decho CL
|
||||
DEC_INST=`ps -ef | grep -E "pmon_${DB_TARGET}(\_*[0-9]|[0-9]|$)" | grep -v grep | cut -d_ -f3-`
|
||||
fi
|
||||
decho $DEC_INST
|
||||
if [ ! -z $DEC_INST ] ; then
|
||||
export ORACLE_SID=$DEC_INST
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Alias RL Wrap si disponible
|
||||
if [ `/bin/rpm -qa |grep -i rlwrap | wc -l` -eq 1 ] ; then
|
||||
alias sqlplus="rlwrap $RLW_COMP_SQLPLUS sqlplus"
|
||||
alias rman="rlwrap $RLW_COMP_RMAN rman"
|
||||
alias asmcmd="rlwrap $RLW_COMP_ASMCMD asmcmd"
|
||||
alias adrci="rlwrap $RLW_COMP_ADRCI adrci"
|
||||
alias dgmgrl="rlwrap $RLW_COMP_DGMGRL dgmgrl"
|
||||
fi
|
||||
|
||||
# Ajout d'un alias pour aller dans l'OH
|
||||
alias oh='cd $ORACLE_HOME'
|
||||
else
|
||||
decho NON INSTALLE
|
||||
fi
|
||||
# Mise en place d'un prompt sympa
|
||||
# Aucun intérêt hors d'un terminal interactif
|
||||
if [ "$INTERACTIF" = "OUI" ] ; then
|
||||
vert=$(tput setaf 2)
|
||||
bleu=$(tput setaf 4)
|
||||
gras=$(tput bold)
|
||||
rouge=$(tput setaf 1)
|
||||
reset=$(tput sgr0)
|
||||
fi
|
||||
|
||||
decho prompt set
|
||||
## Ici, on sait être oracle, grid ou root. On filtre donc selon le cas. Avec plusieurs utilisateurs oracle
|
||||
## Le filtrage a du être vu comme ça
|
||||
## Si on est grid et couleur => on change
|
||||
## Sinon si on est root et couleur ==> on change
|
||||
## Sinon on est alors forcément oracle. si couleur ==> on change
|
||||
if [ $USER = "SED_GRID_TARGET__" -a $GRID_INV_C -eq 1 ] || [ $USER = "root" -a $ROOT_INV_C -eq 1 ] || [ $ORAC_INV_C -eq 1 -a $USER != "SED_GRID_TARGET__" -a $USER != "root" ] ; then
|
||||
decho Invite en couleur
|
||||
if [ "$ORA_CRS_CLUSTERMODE" = "flex" ] ; then
|
||||
export PS1='[\[$bleu\]\u\[$reset\]@\[$vert\]\h\[$reset\] ($ORA_CRS_CLUSTERMODE $ORA_CRS_CLUSTER_NAME $ORA_CRS_NODE_TYPE:$ORA_CRS_NODE_NUM) \[$rouge\]${TWO_TASK:-$ORACLE_SID}\[$reset\] \W]\$ '
|
||||
elif [ "$ORA_CRS_CLUSTERMODE" = "std" ] ; then
|
||||
export PS1='[\[$bleu\]\u\[$reset\]@\[$vert\]\h\[$reset\] ($ORA_CRS_CLUSTERMODE $ORA_CRS_CLUSTER_NAME:$ORA_CRS_NODE_NUM) \[$rouge\]${TWO_TASK:-$ORACLE_SID}\[$reset\] \W]\$ '
|
||||
elif [ "$ORA_CRS_CLUSTERMODE" = "sa" -o "$ORA_CRS_CLUSTERMODE" = "rst" ] ; then
|
||||
export PS1='[\[$bleu\]\u\[$reset\]@\[$vert\]\h\[$reset\] ($ORA_CRS_CLUSTERMODE) \[$rouge\]${TWO_TASK:-$ORACLE_SID}\[$reset\] \W]\$ '
|
||||
else
|
||||
export PS1='[\[$bleu\]\u\[$reset\]@\[$vert\]\h\[$reset\] \[$rouge\]${TWO_TASK:-$ORACLE_SID}\[$reset\] \W]\$ '
|
||||
alias sqlplus="rlwrap sqlplus"
|
||||
alias rman="rlwrap rman"
|
||||
alias asmcmd="rlwrap asmcmd"
|
||||
alias adrci="rlwrap adrci"
|
||||
alias dgmgrl="rlwrap dgmgrl"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Mode eMacs d'édition de ligne par défaut. Possible de passer en mode vi si nécessaire.
|
||||
set -o emacs
|
||||
|
||||
fi
|
||||
|
||||
unset charge ajustement_limites decho APP_CTX HOSTNAME_SIMPLE DEBUG OLR_LOC ORA_INVENTORY ORA_INVENTORY_XMLFILE ORA_INVENTORY_CFFILE ORA_USER_HOME ORA_EXPL_DIR ORA_EXPL_BIN ORA_EXPL_SQL ORA_EXPL_TMP DRT_LI DRT_LI2 DRT_LI6 NODE_INFO DB_TARGET DEC_INST ORA_CRS_HOME INTERACTIF
|
||||
# prompt coloré
|
||||
rouge=$(tput setaf 1)
|
||||
vert=$(tput setaf 2)
|
||||
jaune=$(tput setaf 3)
|
||||
bleu=$(tput setaf 4)
|
||||
gras=$(tput bold)
|
||||
reset=$(tput sgr0)
|
||||
|
||||
export PS1='[\[$jaune\]\u\[$reset\]@\[$vert\]\h\[$reset\] \[$rouge\]${TWO_TASK:-$ORACLE_SID}\[$reset\] \W]\$ '
|
||||
|
||||
@@ -1,24 +1,25 @@
|
||||
---
|
||||
# création des répertoires Oracle
|
||||
#
|
||||
# exemple :
|
||||
# oracle_racine /u01/app
|
||||
# oracle_base /u01/app/oracle
|
||||
# oracle_home /u01/app/oracle/12.1.0.2.dbhome_1
|
||||
# grid_home /u01/app/12.1.0.2/grid
|
||||
# stage /u01/stage
|
||||
#
|
||||
# mkdir -p /u01/app/oracle
|
||||
# mkdir -p /u01/app/oraInventory
|
||||
# chown -R oracle:oinstall /u01/app/oracle
|
||||
# chown -R oracle:oinstall /u01/app/oraInventory
|
||||
# chmod -R 775 /u01/app
|
||||
|
||||
- name: Création du répertoire stage
|
||||
file: dest={{ oracle_stage }} mode=775 owner={{ oracle_user }} group={{ oracle_group }} state=directory
|
||||
tags: directoriesdb
|
||||
|
||||
- name: Création du répertoire ORACLE_BASE
|
||||
file: dest={{ oracle_base }} mode=775 owner={{ oracle_user }} group={{ oracle_group }} state=directory
|
||||
tags: directoriesdb
|
||||
|
||||
- name: Création du répertoire ORACLE_HOME
|
||||
file: dest={{ oracle_home }} mode=775 owner={{ oracle_user }} group={{ oracle_group }} state=directory
|
||||
with_items: oracle_databases
|
||||
# su - oracle
|
||||
# mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1
|
||||
# cd /u01/app/oracle/product/19.0.0/dbhome_1
|
||||
# unzip -q /tmp/db_home.zip
|
||||
# cd /u01/app/oracle/product/19.0.0/dbhome_1
|
||||
# ./runInstaller
|
||||
|
||||
- name: Création du répertoire oracle
|
||||
file: dest={{ item }} mode=775 owner=oracle group=oinstall state=directory recurse=yes
|
||||
with_items:
|
||||
- "{{ oracle_base }}"
|
||||
- "{{ oracle_inventory }}"
|
||||
- "{{ oracle_home }}"
|
||||
- "{{ oracle_sources }}"
|
||||
tags: directoriesdb
|
||||
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
# ---------------------------------------------------
|
||||
- name: Désactivation de Transparent Hugepages 1/2 (dans grub.conf)
|
||||
shell: grubby --grub2 --remove-args=transparent_hugepage --update-kernel=ALL
|
||||
tags: tphp
|
||||
tags: transparent_huge_page
|
||||
|
||||
- name: Désactivation de Transparent Hugepages 2/2 (dans grub.conf)
|
||||
shell: grubby --grub2 --args=transparent_hugepage=never --update-kernel=ALL
|
||||
tags: tphp
|
||||
tags: transparent_huge_page
|
||||
|
||||
- name: Désactivation de Numa 1/2 (dans grub.conf)
|
||||
shell: grubby --grub2 --remove-args=numa --update-kernel=ALL
|
||||
@@ -34,6 +34,3 @@
|
||||
shell: grubby --grub2 --remove-args=quiet --update-kernel=ALL
|
||||
tags: quiet
|
||||
|
||||
- name: Configuration du mode 3 comme mode de démarrage par défaut
|
||||
replace: dest=/etc/inittab regexp='id:5:initdefault:' replace='id:3:initdefault:'
|
||||
|
||||
|
||||
@@ -1,42 +1,44 @@
|
||||
---
|
||||
#------------------------------------------------------------------------------------
|
||||
# configuration Linux : Paramètres du kernel
|
||||
# pour Linux 7, on utilise un fichier de conf séparé /etc/sysctl.d/98-oracle.conf
|
||||
# au lieu du fichier par défaut /etc/sysctl.conf
|
||||
#------------------------------------------------------------------------------------
|
||||
- name: Ajustement des paramètres du Kernel
|
||||
# sysctl: name={{ item.name }} value="{{ item.value }}" state=present reload=yes ignoreerrors=yes sysctl_file=/etc/sysctl.d/98-oracle.conf
|
||||
- name: Ajustement des paramètres du Kernel sysctl.conf
|
||||
sysctl: name={{ item.name }} value="{{ item.value }}" state=present reload=yes ignoreerrors=yes sysctl_file=/etc/sysctl.conf
|
||||
with_items:
|
||||
- { name: kernel.shmall, value: "{{ ((0.4 * ansible_memtotal_mb)*1024*1024)|round|int }}" }
|
||||
- { name: kernel.shmmax, value: "{{ ((0.55 * ansible_memtotal_mb)*1024*1024)|round|int }}" }
|
||||
# shmall = 50% de la RAM pour les SGA Oracle, divisé par PAGE_SIZE (getconf PAGE_SIZE = 4096)
|
||||
# on suppose que 60% de la RAM sera affectée aux SGA
|
||||
- { name: kernel.shmall, value: "{{ ((0.6 * ansible_memtotal_mb)*1024*1024/4096)|round|int }}" }
|
||||
- { name: kernel.shmmax, value: "{{ ((0.8 * ansible_memtotal_mb)*1024*1024)|round|int }}" }
|
||||
# - { name: kernel.shmmax, value: 4398046511104 }
|
||||
- { name: kernel.shmmni, value: 4096 }
|
||||
- { name: kernel.sem, value: "250 32000 100 128" }
|
||||
- { name: fs.file-max, value: 6815744 }
|
||||
- { name: fs.aio-max-nr, value: 1048576 }
|
||||
- { name: net.ipv4.ip_local_port_range, value: "9000 65500" }
|
||||
- { name: net.ipv4.conf.all.rp_filter, value: 2 }
|
||||
- { name: net.ipv4.conf.default.rp_filter, value: 2 }
|
||||
- { name: net.core.rmem_default, value: 262144 }
|
||||
- { name: net.core.rmem_max, value: 4194304 }
|
||||
- { name: net.core.wmem_default, value: 262144 }
|
||||
- { name: net.core.wmem_max, value: 1048576 }
|
||||
tags: sysconfig
|
||||
tags: sysctl
|
||||
|
||||
- name: Configuration PAM
|
||||
lineinfile: dest=/etc/pam.d/login state=present line="session required pam_limits.so"
|
||||
tags: pamconfig
|
||||
|
||||
- name: Ajustement des limits pour Oracle
|
||||
- name: Ajustement des limits pour Oracle limits.conf
|
||||
lineinfile: dest=/etc/security/limits.conf state=present line="{{ item }}"
|
||||
with_items:
|
||||
- "* soft nproc 2047"
|
||||
- "* hard nproc 16384"
|
||||
- "* soft nofile 1024"
|
||||
- "* hard nofile 65536"
|
||||
- "* soft memlock {{ ((0.9 * ansible_memtotal_mb)*1024)|round|int }}"
|
||||
- "* hard memlock {{ ((0.9 * ansible_memtotal_mb)*1024)|round|int }}"
|
||||
- "* soft memlock {{ [((0.9 * ansible_memtotal_mb)*1024)|round|int,134217728] | max }}"
|
||||
- "* hard memlock {{ [((0.9 * ansible_memtotal_mb)*1024)|round|int,134217728] | max }}"
|
||||
- "* soft stack 10240"
|
||||
- "* hard stack 32768"
|
||||
- "* soft core unlimited"
|
||||
- "* hard core unlimited"
|
||||
- "* soft core unlimited"
|
||||
- "* hard core unlimited"
|
||||
tags: seclimit
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
|
||||
# - name: Vérification de la distribution, la version et le kernel
|
||||
# assert:
|
||||
# that: ansible_distribution_major_version == '7' and ansible_os_family == 'RedHat' and ansible_kernel >= '3.8.13'
|
||||
# tags: oscheck
|
||||
- name: Vérification de la distribution, la version et le kernel
|
||||
assert:
|
||||
that: ansible_distribution_major_version >= '7' and ansible_os_family == 'RedHat' and ansible_kernel >= '3.8.13'
|
||||
tags: oscheck
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration des packages necessaires pour Linux
|
||||
@@ -35,26 +35,32 @@
|
||||
# ---------------------------------------------------
|
||||
- name: Ajout du fichier z_oracle dans /etc/profile.d
|
||||
copy: src=z_oracle.sh dest=/etc/profile.d/z_oracle.sh owner=root mode=644
|
||||
tags: z_oracle
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration Linux : aliases bash & oracle
|
||||
# ---------------------------------------------------
|
||||
- name: Ajout du fichier z_bash_aliases dans /etc/profile.d
|
||||
copy: src=z_bash_aliases dest=/etc/profile.d/z_bash_aliases.sh owner=root mode=644
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration Linux : personnalisation rlwrap
|
||||
# ---------------------------------------------------
|
||||
- include: rlwrap.yml
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration Linux : Sécurisation
|
||||
# ---------------------------------------------------
|
||||
# - include: secure_configuration.yml
|
||||
- include: secure_configuration.yml
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration des packages necessaires pour Oracle
|
||||
# ---------------------------------------------------
|
||||
- name: Installation des packages pour Oracleeee
|
||||
- name: Installation des packages pour Oracle
|
||||
yum: name={{ packages }} state=installed skip_broken=true
|
||||
# with_items:
|
||||
vars:
|
||||
vars:
|
||||
packages:
|
||||
- bc
|
||||
- binutils
|
||||
- compat-libcap1
|
||||
- compat-libstdc++-33
|
||||
- compat-libstdc++-33*i686
|
||||
- elfutils-libelf-devel
|
||||
- gcc
|
||||
- gcc-c++
|
||||
@@ -69,7 +75,6 @@
|
||||
- libaio-devel
|
||||
- libaio-devel*i686
|
||||
- libgcc
|
||||
# - libgcc*i686
|
||||
- libstdc++
|
||||
- libstdc++*i686
|
||||
- libstdc++-devel
|
||||
@@ -95,18 +100,17 @@
|
||||
- sysstat
|
||||
- unixODBC
|
||||
tags: os_packages
|
||||
# when: install_os_packages and internet_connection
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration Linux : Création des répertoires Oracle
|
||||
# ---------------------------------------------------
|
||||
# - include: creation_repertoire.yml
|
||||
- include: creation_repertoire.yml
|
||||
|
||||
# ---------------------------------------------------
|
||||
# Securisation de cron
|
||||
# ---------------------------------------------------
|
||||
- name: Desactivation de la commande crontab -r
|
||||
lineinfile: dest=/etc/profile.d/you.sh
|
||||
lineinfile: dest=/etc/profile.d/z_crontab_r.sh
|
||||
line='crontab () { [[ $@ =~ -[iel]*r ]] && echo "option -r (remove) not allowed" || command crontab "$@" ;}'
|
||||
state=present
|
||||
create=yes
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
with_items:
|
||||
- { line: "options attempts:2" }
|
||||
- { line: "options timeout:1" }
|
||||
tags: resolv_conf
|
||||
|
||||
- name: Desactivation de IP v6 et ZeroConf (Doc ID 1161144.1)
|
||||
lineinfile: dest=/etc/sysconfig/network line="{{ item.line }}"
|
||||
@@ -28,6 +29,8 @@
|
||||
- { line: "NETWORKING_IPV6=no" }
|
||||
- { line: "IPV6INIT=no" }
|
||||
- { line: "NOZEROCONF=yes" }
|
||||
tags: ipv6
|
||||
|
||||
- name: desactivation permanente de ipv6
|
||||
copy: src=desactivation_ipv6.conf dest=/etc/modprobe.d/desactivation_ipv6.conf
|
||||
tags: ipv6
|
||||
|
||||
@@ -2,73 +2,57 @@
|
||||
# ---------------------------------------------------
|
||||
# configuration des packages necessaires pour Linux
|
||||
# ---------------------------------------------------
|
||||
- name: Installation du packet libselinux-python
|
||||
yum: name="libselinux-python" state=installed
|
||||
|
||||
# - name: Installation du RPM EPEL Repo pour Linux 7
|
||||
# yum: name="{{ epel_rpm }}" state=installed
|
||||
# tags: epelrepo
|
||||
|
||||
# - name: Copie du fichier repository public-yum si absent
|
||||
# copy: src=public-yum-ol7.repo dest=/etc/yum.repos.d/public-yum-ol7.repo
|
||||
# tags: publicyumrepo
|
||||
|
||||
- name: Installation des packages communs pour Linux
|
||||
yum: name={{ item }} state=installed
|
||||
tags: commonpackages
|
||||
with_items:
|
||||
- bind-utils
|
||||
- xdpyinfo
|
||||
- xauth
|
||||
- net-tools
|
||||
- ethtool
|
||||
- nscd
|
||||
- ntp
|
||||
- sysstat
|
||||
- tree
|
||||
- unzip
|
||||
- wget
|
||||
- vim
|
||||
# - htop
|
||||
# - rlwrap
|
||||
- lvm2
|
||||
- ncurses
|
||||
- nfs-utils
|
||||
- readline
|
||||
- xfsprogs
|
||||
- system-storage-manager
|
||||
yum: name={{ rpm_package }} state=installed
|
||||
# yum: name={{ item }} state=installed
|
||||
# tags: linux_packages
|
||||
# with_items:
|
||||
vars:
|
||||
rpm_package:
|
||||
- bind-utils
|
||||
- chrony
|
||||
- ethtool
|
||||
- lvm2
|
||||
- nc
|
||||
- ncurses
|
||||
- net-tools
|
||||
- nfs-utils
|
||||
- nscd
|
||||
- readline
|
||||
- sysstat
|
||||
- system-storage-manager
|
||||
- tree
|
||||
- unzip
|
||||
- vim
|
||||
- wget
|
||||
- xauth
|
||||
- xdpyinfo
|
||||
- xfsprogs
|
||||
tags: rpm_packages
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration Linux : Mode panic
|
||||
# ---------------------------------------------------
|
||||
- name: Configuratio du mode panic sur perte du /
|
||||
shell: free_form="tune2fs -e panic `df -P / |tail -1 | awk '{print $1}'`"
|
||||
tags: mode_panic
|
||||
|
||||
- name: Configuratio du mode panic sur bug du kernel
|
||||
sysctl: name=kernel.panic_on_oops value=1 state=present reload=yes ignoreerrors=yes
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration du serveur NTPD
|
||||
# ---------------------------------------------------
|
||||
- name: Modification de la configuration NTP configuration (ajout du flag -x)
|
||||
lineinfile: dest=/etc/sysconfig/ntpd
|
||||
regexp='^OPTIONS='
|
||||
line='OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid -g"'
|
||||
state=present
|
||||
create=yes
|
||||
|
||||
- name: restart ntpd
|
||||
service: name=ntpd state=started enabled=yes
|
||||
tags: mode_panic
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration Linux : Selinux
|
||||
# ---------------------------------------------------
|
||||
- name: Disactiver Selinux (de façon permanente)
|
||||
selinux: state=disabled
|
||||
tags: selinux
|
||||
register: selinux
|
||||
tags: selinux
|
||||
|
||||
- name: Disactiver Selinux (runtime)
|
||||
shell: setenforce 0
|
||||
tags: selinux
|
||||
ignore_errors: true
|
||||
tags: selinux
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration Linux : les services
|
||||
@@ -87,10 +71,8 @@
|
||||
- sendmail
|
||||
- smartd
|
||||
- avahi-daemon
|
||||
- NetworkManager
|
||||
- rhnsd
|
||||
- firstboot
|
||||
- chronyd
|
||||
- ip6tables
|
||||
- iptables
|
||||
- firewalld
|
||||
@@ -100,4 +82,5 @@
|
||||
# ---------------------------------------------------
|
||||
- name: configuration du démarrage en mode 3 par défaut
|
||||
command: systemctl set-default multi-user.target
|
||||
tags: init3
|
||||
|
||||
|
||||
22
configure-host-oel7/tasks/rlwrap.yml
Normal file
22
configure-host-oel7/tasks/rlwrap.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
# installation de l'utilitaire rlwrap pour oracle
|
||||
|
||||
- name: Copy du rpm rlwrap OL8 vers le serveur
|
||||
copy: src=rlwrap-0.44-1.el8.x86_64.rpm dest=/tmp/rlwrap.x86_64.rpm owner=root mode=644
|
||||
when: ansible_distribution_major_version == '8'
|
||||
tags: rlwrap
|
||||
|
||||
- name: Copy du rpm rlwrap OL7 vers le serveur
|
||||
copy: src=rlwrap-0.42-1.el7.x86_64.rpm dest=/tmp/rlwrap.x86_64.rpm owner=root mode=644
|
||||
when: ansible_distribution_major_version == '7'
|
||||
tags: rlwrap
|
||||
|
||||
- name: Install rlwrap rpm from a local file
|
||||
yum:
|
||||
name: /tmp/rlwrap.x86_64.rpm
|
||||
state: present
|
||||
tags: rlwrap
|
||||
|
||||
- name: suppression du rpm rlwrap du serveur
|
||||
file: path=/tmp/rlwrap.x86_64.rpm state=absent
|
||||
tags: rlwrap
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
- name: Sécurisation du vidage mémoire
|
||||
copy: src="00-vidage.conf" dest="/etc/security/limits.d/00-vidage.conf"
|
||||
tags: secu_vidage
|
||||
|
||||
- name: Application des paramètres de configuration sécurisée
|
||||
sysctl: name="{{ item.name }}"
|
||||
|
||||
@@ -5,26 +5,29 @@
|
||||
|
||||
- name: Creation des groupes
|
||||
group: name={{ item.group }} gid={{ item.gid }} state=present
|
||||
ignore_errors: true
|
||||
with_items:
|
||||
- { group: asmdba, gid: 1004 }
|
||||
- { group: asmoper, gid: 1005 }
|
||||
- { group: asmadmin, gid: 1003 }
|
||||
- { group: oinstall, gid: 1000}
|
||||
- { group: oinstall, gid: 1002}
|
||||
- { group: dba, gid: 1001 }
|
||||
- { group: backupdba, gid: 1006 }
|
||||
- { group: oper, gid: 1002 }
|
||||
- { group: oper, gid: 1009 }
|
||||
- { group: dgdba, gid: 1007 }
|
||||
- { group: kmdba, gid: 1008 }
|
||||
tags: group
|
||||
tags: create_group
|
||||
|
||||
- name: Creation du compte Oracle
|
||||
- name: Creation du compte Oracle et grid
|
||||
user: name={{ item.username }} group={{ item.primgroup }} groups={{ item.othergroups }} uid={{ item.uid }} generate_ssh_key=yes append=yes state=present password={{ item.passwd }}
|
||||
ignore_errors: true
|
||||
with_items:
|
||||
- { username: oracle, uid: 1001, primgroup: oinstall, othergroups: "dba,asmdba,backupdba,dgdba,kmdba,oper", passwd: "$6$0xHoAXXF$K75HKb64Hcb/CEcr3YEj2LGERi/U2moJgsCK.ztGxLsKoaXc4UBiNZPL0hlxB5ng6GL.gyipfQOOXplzcdgvD0" }
|
||||
- { username: grid, uid: 1000, primgroup: oinstall, othergroups: "asmadmin,asmdba,asmoper,dba", passwd: "$6$0xHoAXXF$K75HKb64Hcb/CEcr3YEj2LGERi/U2moJgsCK.ztGxLsKoaXc4UBiNZPL0hlxB5ng6GL.gyipfQOOXplzcdgvD0" }
|
||||
tags: user
|
||||
- { username: grid, uid: 1002, primgroup: oinstall, othergroups: "asmadmin,asmdba,asmoper,dba", passwd: "$6$0xHoAXXF$K75HKb64Hcb/CEcr3YEj2LGERi/U2moJgsCK.ztGxLsKoaXc4UBiNZPL0hlxB5ng6GL.gyipfQOOXplzcdgvD0" }
|
||||
tags: create_users
|
||||
|
||||
- name: Ajout du compte oracle et grid au sudoers
|
||||
ignore_errors: true
|
||||
template: src=sudoers.j2 dest=/etc/sudoers.d/{{ item }} owner=root mode=0600
|
||||
with_items:
|
||||
- oracle
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
---------------------------------------
|
||||
Welcome to {{ ansible_fqdn }}
|
||||
{{ ansible_distribution }} {{ ansible_distribution_version }} {{ ansible_userspace_architecture }}
|
||||
|
||||
FQDN: {{ ansible_fqdn }}
|
||||
IP: {{ ansible_default_ipv4.address }}
|
||||
|
||||
#cpu's: {{ ansible_processor_vcpus }}
|
||||
mem: {{ ansible_memtotal_mb }} MB
|
||||
Kernel: {{ ansible_kernel }}
|
||||
|
||||
---------------------------------------
|
||||
@@ -1,50 +0,0 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
spawn service oracleasm configure
|
||||
{% if role_separation==True %}
|
||||
expect {
|
||||
"Default user to own the driver interface*:"
|
||||
{
|
||||
send "{{ grid_install_user }}\r"
|
||||
exp_continue
|
||||
}
|
||||
"Default group to own the driver interface*:"
|
||||
{
|
||||
send "{{ asmdba_group }}\r"
|
||||
exp_continue
|
||||
}
|
||||
"Start Oracle ASM library driver on boot*:"
|
||||
{
|
||||
send "y\r"
|
||||
exp_continue
|
||||
}
|
||||
"Scan for Oracle ASM disks on boot*:"
|
||||
{
|
||||
send "y\r"
|
||||
exp_continue
|
||||
}
|
||||
}
|
||||
{% else %}
|
||||
expect {
|
||||
"Default user to own the driver interface*:"
|
||||
{
|
||||
send "{{ oracle_user }}\r"
|
||||
exp_continue
|
||||
}
|
||||
"Default group to own the driver interface*:"
|
||||
{
|
||||
send "{{ dba_group }}\r"
|
||||
exp_continue
|
||||
}
|
||||
"Start Oracle ASM library driver on boot*:"
|
||||
{
|
||||
send "y\r"
|
||||
exp_continue
|
||||
}
|
||||
"Scan for Oracle ASM disks on boot*:"
|
||||
{
|
||||
send "y\r"
|
||||
exp_continue
|
||||
}
|
||||
}
|
||||
{% endif %}
|
||||
@@ -1,110 +0,0 @@
|
||||
# Fichier de paramètres
|
||||
---
|
||||
|
||||
master_node: true
|
||||
os_family_supported: "RedHat"
|
||||
os_min_supported_version: "6.4"
|
||||
os_supported_version: "6"
|
||||
disable_numa_boot: true
|
||||
disable_selinux: true
|
||||
|
||||
internet_connection: true
|
||||
epel_rpm: "http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm"
|
||||
configure_epel_repo: false
|
||||
secure_configuration: false # faire une configuration securisee du system d exploitation
|
||||
|
||||
|
||||
|
||||
asmlib_rpm: "http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.4-1.el6.x86_64.rpm"
|
||||
ol6_repo_file: public-yum-ol6.repo
|
||||
repo_dir: /etc/yum.repos.d/
|
||||
|
||||
disable_numa_boot: true
|
||||
percent_hugepages: 50
|
||||
configure_interconnect: false
|
||||
configure_ssh: false
|
||||
configure_host_disks: false
|
||||
configure_etc_hosts: false
|
||||
configure_cluster: false
|
||||
device_persistence: asmlib
|
||||
install_os_packages: false
|
||||
disable_selinux: true
|
||||
|
||||
|
||||
# pramètres de configuation sécurisée :
|
||||
linux_secure_config:
|
||||
- { name: net.ipv4.conf.all.accept_redirects, value: 0 }
|
||||
- { name: net.ipv4.conf.default.accept_redirects, value: 0 }
|
||||
- { name: net.ipv4.conf.all.secure_redirects, value: 0 }
|
||||
- { name: net.ipv4.conf.default.secure_redirects, value: 0 }
|
||||
- { name: net.ipv4.ip_forward, value: 0 }
|
||||
- { name: net.ipv6.conf.all.accept_redirects, value: 0 }
|
||||
- { name: net.ipv6.conf.default.accept_redirects, value: 0 }
|
||||
- { name: net.ipv4.conf.default.accept_source_route, value: 0 }
|
||||
- { name: net.ipv4.conf.all.accept_source_route, value: 0 }
|
||||
- { name: net.ipv6.conf.default.accept_source_route, value: 0 }
|
||||
- { name: net.ipv6.conf.all.accept_source_route, value: 0 }
|
||||
- { name: net.ipv4.conf.all.log_martians, value: 1 }
|
||||
- { name: net.ipv4.conf.default.log_martians, value: 1 }
|
||||
- { name: net.ipv4.icmp_echo_ignore_broadcasts, value: 1 }
|
||||
- { name: net.ipv4.icmp_ignore_bogus_error_responses, value: 1 }
|
||||
- { name: net.ipv6.conf.all.accept_ra, value: 0 }
|
||||
- { name: net.ipv6.conf.default.accept_ra, value: 0 }
|
||||
|
||||
|
||||
# packages à installer pour Linux
|
||||
common_packages:
|
||||
- bc
|
||||
- bind-utils
|
||||
- btrfs-progs
|
||||
- cloog-ppl
|
||||
- compat-libcap1
|
||||
- ethtool
|
||||
- expect
|
||||
- git
|
||||
- htop
|
||||
- lvm2
|
||||
- make
|
||||
- module-init-tools
|
||||
- mpfr
|
||||
- multitail
|
||||
- ncurses-devel
|
||||
- ncurses-libs
|
||||
- nfs-utils
|
||||
- nscd
|
||||
- nss-softokn-freebl
|
||||
- ntp
|
||||
- openssh-clients
|
||||
- ppl
|
||||
- procps
|
||||
- readline
|
||||
- rlwrap
|
||||
- screen
|
||||
- sysstat
|
||||
- system-config-lvm
|
||||
- tigervnc-server
|
||||
- tree
|
||||
- twm
|
||||
- unzip
|
||||
- wget
|
||||
- vim
|
||||
- xfsprogs
|
||||
|
||||
# services Linux à désactiver :
|
||||
linux_services:
|
||||
- bluetooth
|
||||
- cups
|
||||
- gpm
|
||||
- hidd
|
||||
- hplip
|
||||
- isdn
|
||||
- sendmail
|
||||
- smartd
|
||||
- avahi-daemon
|
||||
- NetworkManager
|
||||
- rhnsd
|
||||
- firstboot
|
||||
- chronyd
|
||||
- ip6tables
|
||||
- iptables
|
||||
- firewalld
|
||||
@@ -3,24 +3,33 @@
|
||||
#----------------------------------------------------------------------
|
||||
# paramètres généraux
|
||||
#----------------------------------------------------------------------
|
||||
internet_connection: true
|
||||
configure_epel_repo: true
|
||||
epel_rpm: "http://mirrors.ircam.fr/pub/fedora/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm"
|
||||
|
||||
linux_version: "{{ ansible_distribution_major_version }}"
|
||||
|
||||
secure_configuration: false # faire une configuration securisee du system d exploitation
|
||||
disable_numa_boot: true
|
||||
configure_cluster: false
|
||||
install_os_packages: true
|
||||
disable_selinux: true
|
||||
|
||||
|
||||
oracle_base: "/u01/app/oracle"
|
||||
oracle_inventory: "/u01/app/oraInventory"
|
||||
oracle_home: "/u01/app/oracle/product/19.0.0/dbhome_1"
|
||||
oracle_sources: "/u01/sources"
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Groupes et utilisateurs
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
oracle_groups:
|
||||
- { group: asmdba, gid: 1004 }
|
||||
- { group: asmoper, gid: 1005 }
|
||||
- { group: asmadmin, gid: 1003 }
|
||||
- { group: oinstall, gid: 1000}
|
||||
- { group: dba, gid: 1001 }
|
||||
- { group: backupdba, gid: 1006 }
|
||||
- { group: oper, gid: 1002 }
|
||||
- { group: asmadmin, gid: 1003 }
|
||||
- { group: asmdba, gid: 1004 }
|
||||
- { group: asmoper, gid: 1005 }
|
||||
- { group: backupdba, gid: 1006 }
|
||||
- { group: dgdba, gid: 1007 }
|
||||
- { group: kmdba, gid: 1008 }
|
||||
|
||||
@@ -69,35 +78,22 @@
|
||||
- "* soft core unlimited"
|
||||
- "* hard core unlimited"
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# packages linux necessaires avant d'installer Oracle
|
||||
#----------------------------------------------------------------------
|
||||
oracle_packages:
|
||||
- binutils
|
||||
- compat-libcap1
|
||||
- gcc
|
||||
- gcc-c++
|
||||
- glibc
|
||||
- glibc-devel
|
||||
- libaio
|
||||
- libaio-devel
|
||||
- libgcc
|
||||
- libstdc++
|
||||
- libstdc++-devel
|
||||
- libXi
|
||||
- libXtst
|
||||
- make
|
||||
- sysstat
|
||||
- ksh
|
||||
- libXi*i686
|
||||
- libXtst*i686
|
||||
- libstdc++-devel*i686
|
||||
- libaio-devel*i686
|
||||
- libstdc++*i686
|
||||
- libgcc
|
||||
- libgcc*i686
|
||||
- libaio*i686
|
||||
- glibc-devel*i686
|
||||
- glibc*i686
|
||||
- unixODBC
|
||||
|
||||
# pramètres de configuation sécurisée :
|
||||
linux_secure_config:
|
||||
- { name: net.ipv4.conf.all.accept_redirects, value: 0 }
|
||||
- { name: net.ipv4.conf.default.accept_redirects, value: 0 }
|
||||
- { name: net.ipv4.conf.all.secure_redirects, value: 0 }
|
||||
- { name: net.ipv4.conf.default.secure_redirects, value: 0 }
|
||||
- { name: net.ipv4.ip_forward, value: 0 }
|
||||
- { name: net.ipv6.conf.all.accept_redirects, value: 0 }
|
||||
- { name: net.ipv6.conf.default.accept_redirects, value: 0 }
|
||||
- { name: net.ipv4.conf.default.accept_source_route, value: 0 }
|
||||
- { name: net.ipv4.conf.all.accept_source_route, value: 0 }
|
||||
- { name: net.ipv6.conf.default.accept_source_route, value: 0 }
|
||||
- { name: net.ipv6.conf.all.accept_source_route, value: 0 }
|
||||
- { name: net.ipv4.conf.all.log_martians, value: 1 }
|
||||
- { name: net.ipv4.conf.default.log_martians, value: 1 }
|
||||
- { name: net.ipv4.icmp_echo_ignore_broadcasts, value: 1 }
|
||||
- { name: net.ipv4.icmp_ignore_bogus_error_responses, value: 1 }
|
||||
- { name: net.ipv6.conf.all.accept_ra, value: 0 }
|
||||
- { name: net.ipv6.conf.default.accept_ra, value: 0 }
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
# Fichier de paramètres
|
||||
---
|
||||
|
||||
vars_files:
|
||||
- linux_settings.yml # tous les parametres de configuration pour Linux
|
||||
- oracle_users.yml # les comptes et groupes Oracle
|
||||
- oracle_settings.yml # les parametres kernel et packages Oracle à installer
|
||||
@@ -1,112 +0,0 @@
|
||||
# Fichier de paramètres
|
||||
---
|
||||
|
||||
|
||||
# les répertoires pour l'installation Oracle
|
||||
oracle_stage: /u01/stage
|
||||
oracle_rsp_stage: "{{ oracle_stage }}/rsp"
|
||||
oracle_version_db: 12.1.0.2
|
||||
oracle_base: /u01/app/oracle
|
||||
home: dbhome_1
|
||||
oracle_home: "{{ oracle_base }}/product/{{ oracle_version_db }}/{{ home }}"
|
||||
|
||||
|
||||
# paramètres du noyau
|
||||
oracle_sysconfig:
|
||||
- { name: kernel.shmall, value: "{{ ((0.4 * ansible_memtotal_mb)*1024)|round|int }}" }
|
||||
- { name: kernel.shmmax, value: "{{ ((0.5 * ansible_memtotal_mb)*1024)|round|int }}" }
|
||||
- { name: kernel.shmmni, value: 4096 }
|
||||
- { name: kernel.sem, value: "250 32000 100 128" }
|
||||
- { name: fs.file-max, value: 6815744 }
|
||||
- { name: fs.aio-max-nr, value: 1048576 }
|
||||
- { name: net.ipv4.ip_local_port_range, value: "9000 65500" }
|
||||
- { name: net.core.rmem_default, value: 262144 }
|
||||
- { name: net.core.rmem_max, value: 4194304 }
|
||||
- { name: net.core.wmem_default, value: 262144 }
|
||||
- { name: net.core.wmem_max, value: 1048576 }
|
||||
- { name: vm.nr_hugepages, value: "{{ (((percent_hugepages/100) * ansible_memtotal_mb)/2)|round|int }}" }
|
||||
|
||||
# Security limits
|
||||
oracle_seclimits:
|
||||
- "* soft nproc 2047"
|
||||
- "* hard nproc 16384"
|
||||
- "* soft nofile 1024"
|
||||
- "* hard nofile 65536"
|
||||
- "* soft memlock {{ ((0.9 * ansible_memtotal_mb)*1024)|round|int }}"
|
||||
- "* hard memlock {{ ((0.9 * ansible_memtotal_mb)*1024)|round|int }}"
|
||||
- "* soft stack 10240"
|
||||
- "* hard stack 32768"
|
||||
- "* soft core unlimited"
|
||||
- "* hard core unlimited"
|
||||
|
||||
|
||||
# Fichier de paramètres : packages ORACLE
|
||||
|
||||
oracle_packages:
|
||||
- bind-utils
|
||||
- binutils
|
||||
- btrfs-progs
|
||||
- cloog-ppl
|
||||
- compat-libcap1
|
||||
- compat-libstdc++*i686
|
||||
- compat-libstdc++-33
|
||||
- cpp
|
||||
- ethtool
|
||||
- gcc
|
||||
- gcc-c++
|
||||
- glibc
|
||||
- glibc*i686
|
||||
- glibc-devel
|
||||
- glibc-headers
|
||||
- kernel-headers
|
||||
- kmod-oracleasm
|
||||
- ksh
|
||||
- libX11
|
||||
- libX11*i686
|
||||
- libXau
|
||||
- libXau*i686
|
||||
- libXext
|
||||
- libXi
|
||||
- libXp
|
||||
- libXt
|
||||
- libXtst
|
||||
- libaio
|
||||
- libaio*i686
|
||||
- libaio-devel
|
||||
- libaio-devel*i686
|
||||
- libgcc
|
||||
- libselinux-python
|
||||
- libstdc++
|
||||
- libstdc++*i686
|
||||
- libstdc++-devel
|
||||
- libstdc++-devel*i686
|
||||
- libtool-ltdl
|
||||
- libxcb
|
||||
- libxcb*i686
|
||||
- make
|
||||
- module-init-tools
|
||||
- mpfr
|
||||
- ncurses-devel
|
||||
- ncurses-libs
|
||||
- nfs-utils
|
||||
- nscd
|
||||
- ntp
|
||||
- openssh-clients
|
||||
- oracleasm-support
|
||||
- parted
|
||||
- ppl
|
||||
- procps
|
||||
- readline
|
||||
- readline-devel
|
||||
- sysstat
|
||||
- twm
|
||||
- unixODBC
|
||||
- util-linux-ng
|
||||
- vim-enhanced
|
||||
- xdpyinfo
|
||||
- xfsprogs
|
||||
- xorg-x11-utils
|
||||
- xorg-x11-xauth
|
||||
- xorg-x11-xinit
|
||||
- xsetroot
|
||||
- xterm
|
||||
@@ -1,37 +0,0 @@
|
||||
# Fichier de paramètres : les comptes Oracle
|
||||
---
|
||||
|
||||
# Groupes et utilisateurs
|
||||
|
||||
oracle_groups:
|
||||
- { group: asmdba, gid: 1004 }
|
||||
- { group: asmoper, gid: 1005 }
|
||||
- { group: asmadmin, gid: 1003 }
|
||||
- { group: oinstall, gid: 1000}
|
||||
- { group: dba, gid: 1001 }
|
||||
- { group: backupdba, gid: 1006 }
|
||||
- { group: oper, gid: 1002 }
|
||||
- { group: dgdba, gid: 1007 }
|
||||
- { group: kmdba, gid: 1008 }
|
||||
|
||||
|
||||
oracle_users: # Passwd :Oracle123
|
||||
- { username: oracle, uid: 1001, primgroup: oinstall, othergroups: "dba,asmdba,backupdba,dgdba,kmdba,oper", passwd: "$6$0xHoAXXF$K75HKb64Hcb/CEcr3YEj2LGERi/U2moJgsCK.ztGxLsKoaXc4UBiNZPL0hlxB5ng6GL.gyipfQOOXplzcdgvD0" }
|
||||
|
||||
grid_users:
|
||||
- { username: grid, uid: 1000, primgroup: oinstall, othergroups: "asmadmin,asmdba,asmoper,dba", passwd: "$6$0xHoAXXF$K75HKb64Hcb/CEcr3YEj2LGERi/U2moJgsCK.ztGxLsKoaXc4UBiNZPL0hlxB5ng6GL.gyipfQOOXplzcdgvD0" }
|
||||
|
||||
role_separation: true
|
||||
oracle_user: oracle
|
||||
grid_user: grid
|
||||
configure_oracle_sudo: false
|
||||
|
||||
oracle_user_home: "/home/{{ oracle_user }}"
|
||||
grid_user_home: "/home/{{ grid_user }}"
|
||||
oracle_group: oinstall
|
||||
oper_group: oper
|
||||
dba_group: dba
|
||||
asmoper_group: asmoper
|
||||
asmdba_group: asmdba
|
||||
asmadmin_group: asmadmin
|
||||
|
||||
@@ -1,278 +0,0 @@
|
||||
# Fichier de paramètres
|
||||
---
|
||||
|
||||
master_node: true
|
||||
os_family_supported: "RedHat"
|
||||
os_min_supported_version: "6.4"
|
||||
os_supported_version: "6"
|
||||
disable_numa_boot: true
|
||||
disable_selinux: true
|
||||
|
||||
internet_connection: false
|
||||
epel_rpm: "http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm"
|
||||
configure_epel_repo: true
|
||||
secure_configuration: true # faire une configuration securisee du system d exploitation
|
||||
|
||||
|
||||
# Groupes et utilisateurs
|
||||
|
||||
oracle_groups:
|
||||
- { group: asmdba, gid: 1004 }
|
||||
- { group: asmoper, gid: 1005 }
|
||||
- { group: asmadmin, gid: 1003 }
|
||||
- { group: oinstall, gid: 1000}
|
||||
- { group: dba, gid: 1001 }
|
||||
- { group: backupdba, gid: 1006 }
|
||||
- { group: oper, gid: 1002 }
|
||||
- { group: dgdba, gid: 1007 }
|
||||
- { group: kmdba, gid: 1008 }
|
||||
|
||||
|
||||
oracle_users: # Passwd :Oracle123
|
||||
- { username: oracle, uid: 1001, primgroup: oinstall, othergroups: "dba,asmdba,backupdba,dgdba,kmdba,oper", passwd: "$6$0xHoAXXF$K75HKb64Hcb/CEcr3YEj2LGERi/U2moJgsCK.ztGxLsKoaXc4UBiNZPL0hlxB5ng6GL.gyipfQOOXplzcdgvD0" }
|
||||
|
||||
grid_users:
|
||||
- { username: grid, uid: 1000, primgroup: oinstall, othergroups: "asmadmin,asmdba,asmoper,dba", passwd: "$6$0xHoAXXF$K75HKb64Hcb/CEcr3YEj2LGERi/U2moJgsCK.ztGxLsKoaXc4UBiNZPL0hlxB5ng6GL.gyipfQOOXplzcdgvD0" }
|
||||
|
||||
role_separation: true
|
||||
oracle_user: oracle
|
||||
grid_user: grid
|
||||
configure_oracle_sudo: false
|
||||
|
||||
oracle_user_home: "/home/{{ oracle_user }}"
|
||||
grid_user_home: "/home/{{ grid_user }}"
|
||||
oracle_group: oinstall
|
||||
oper_group: oper
|
||||
dba_group: dba
|
||||
asmoper_group: asmoper
|
||||
asmdba_group: asmdba
|
||||
asmadmin_group: asmadmin
|
||||
|
||||
# les répertoires pour l'installation Oracle
|
||||
oracle_stage: /u01/stage
|
||||
oracle_rsp_stage: "{{ oracle_stage }}/rsp"
|
||||
oracle_version_db: 12.1.0.2
|
||||
oracle_base: /u01/app/oracle
|
||||
home: dbhome_1
|
||||
oracle_home: "{{ oracle_base }}/product/{{ oracle_version_db }}/{{ home }}"
|
||||
|
||||
ssh_keys:
|
||||
- /tmp/id_rsa
|
||||
- /tmp/id_rsa.pub
|
||||
- /tmp/authorized_keys
|
||||
|
||||
keyfile: /tmp/known_hosts
|
||||
|
||||
asmlib_rpm: "http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.4-1.el6.x86_64.rpm"
|
||||
ol6_repo_file: public-yum-ol6.repo
|
||||
repo_dir: /etc/yum.repos.d/
|
||||
|
||||
disable_numa_boot: true
|
||||
percent_hugepages: 50
|
||||
configure_interconnect: false
|
||||
oracle_ic_net: 3.3.3.{{ ansible_all_ipv4_addresses[0].split(".")[-1] }}
|
||||
configure_ssh: false
|
||||
configure_host_disks: false
|
||||
configure_etc_hosts: false
|
||||
configure_cluster: false
|
||||
device_persistence: asmlib
|
||||
install_os_packages: false
|
||||
disable_selinux: true
|
||||
|
||||
# paramètres du noyau
|
||||
oracle_sysconfig:
|
||||
- { name: kernel.shmall, value: "{{ ((0.4 * ansible_memtotal_mb)*1024)|round|int }}" }
|
||||
- { name: kernel.shmmax, value: "{{ ((0.5 * ansible_memtotal_mb)*1024)|round|int }}" }
|
||||
- { name: kernel.shmmni, value: 4096 }
|
||||
- { name: kernel.sem, value: "250 32000 100 128" }
|
||||
- { name: fs.file-max, value: 6815744 }
|
||||
- { name: fs.aio-max-nr, value: 1048576 }
|
||||
- { name: net.ipv4.ip_local_port_range, value: "9000 65500" }
|
||||
- { name: net.core.rmem_default, value: 262144 }
|
||||
- { name: net.core.rmem_max, value: 4194304 }
|
||||
- { name: net.core.wmem_default, value: 262144 }
|
||||
- { name: net.core.wmem_max, value: 1048576 }
|
||||
- { name: vm.nr_hugepages, value: "{{ (((percent_hugepages/100) * ansible_memtotal_mb)/2)|round|int }}" }
|
||||
|
||||
# Security limits
|
||||
oracle_seclimits:
|
||||
- "* soft nproc 2047"
|
||||
- "* hard nproc 16384"
|
||||
- "* soft nofile 1024"
|
||||
- "* hard nofile 65536"
|
||||
- "* soft memlock {{ ((0.9 * ansible_memtotal_mb)*1024)|round|int }}"
|
||||
- "* hard memlock {{ ((0.9 * ansible_memtotal_mb)*1024)|round|int }}"
|
||||
- "* soft stack 10240"
|
||||
- "* hard stack 32768"
|
||||
- "* soft core unlimited"
|
||||
- "* hard core unlimited"
|
||||
|
||||
# pramètres de configuation sécurisée :
|
||||
linux_secure_config:
|
||||
- { name: net.ipv4.conf.all.accept_redirects, value: 0 }
|
||||
- { name: net.ipv4.conf.default.accept_redirects, value: 0 }
|
||||
- { name: net.ipv4.conf.all.secure_redirects, value: 0 }
|
||||
- { name: net.ipv4.conf.default.secure_redirects, value: 0 }
|
||||
- { name: net.ipv4.ip_forward, value: 0 }
|
||||
- { name: net.ipv6.conf.all.accept_redirects, value: 0 }
|
||||
- { name: net.ipv6.conf.default.accept_redirects, value: 0 }
|
||||
- { name: net.ipv4.conf.default.accept_source_route, value: 0 }
|
||||
- { name: net.ipv4.conf.all.accept_source_route, value: 0 }
|
||||
- { name: net.ipv6.conf.default.accept_source_route, value: 0 }
|
||||
- { name: net.ipv6.conf.all.accept_source_route, value: 0 }
|
||||
- { name: net.ipv4.conf.all.log_martians, value: 1 }
|
||||
- { name: net.ipv4.conf.default.log_martians, value: 1 }
|
||||
- { name: net.ipv4.icmp_echo_ignore_broadcasts, value: 1 }
|
||||
- { name: net.ipv4.icmp_ignore_bogus_error_responses, value: 1 }
|
||||
- { name: net.ipv6.conf.all.accept_ra, value: 0 }
|
||||
- { name: net.ipv6.conf.default.accept_ra, value: 0 }
|
||||
|
||||
|
||||
# Sets up filesystem on host. If storage_type=FS under oracle_databases, this is where the mapping between device/fs is described
|
||||
host_fs_layout:
|
||||
u01:
|
||||
{mntp: /u01, device: /dev/sdb, vgname: vgora, pvname: /dev/sdb1, lvname: lvora, fstype: ext4}
|
||||
|
||||
# ASM Diskgroups used for DB-storage. Should map to dict asm_storage_layout.
|
||||
asm_diskgroups: # ASM Diskgroups used for DB-storage. Should map to dict asm_storage_layout.
|
||||
- crs
|
||||
- data
|
||||
- fra
|
||||
|
||||
# Mapping between device & ASMlib label. If storage_type=ASM under oracle_databases,
|
||||
# this is where the mapping between device/asm-disk is described
|
||||
asm_storage_layout:
|
||||
crs:
|
||||
- {device: /dev/sdc, asmlabel: CRS01}
|
||||
data:
|
||||
- {device: /dev/sdd, asmlabel: DATA01}
|
||||
fra:
|
||||
- {device: /dev/sde, asmlabel: FRA01 }
|
||||
|
||||
# packages à installer pour Linux
|
||||
common_packages:
|
||||
- bc
|
||||
- bind-utils
|
||||
- btrfs-progs
|
||||
- cloog-ppl
|
||||
- compat-libcap1
|
||||
- ethtool
|
||||
- expect
|
||||
- git
|
||||
- htop
|
||||
- lvm2
|
||||
- make
|
||||
- module-init-tools
|
||||
- mpfr
|
||||
- multitail
|
||||
- ncurses-devel
|
||||
- ncurses-libs
|
||||
- nfs-utils
|
||||
- nscd
|
||||
- nss-softokn-freebl
|
||||
- ntp
|
||||
- openssh-clients
|
||||
- ppl
|
||||
- procps
|
||||
- readline
|
||||
- rlwrap
|
||||
- screen
|
||||
- sysstat
|
||||
- system-config-lvm
|
||||
- tigervnc-server
|
||||
- tree
|
||||
- twm
|
||||
- unzip
|
||||
- wget
|
||||
- vim
|
||||
- xfsprogs
|
||||
|
||||
# services Linux à désactiver :
|
||||
linux_services:
|
||||
- bluetooth
|
||||
- cups
|
||||
- gpm
|
||||
- hidd
|
||||
- hplip
|
||||
- isdn
|
||||
- sendmail
|
||||
- smartd
|
||||
- avahi-daemon
|
||||
- NetworkManager
|
||||
- rhnsd
|
||||
- firstboot
|
||||
- chronyd
|
||||
- ip6tables
|
||||
- iptables
|
||||
- firewalld
|
||||
|
||||
# Fichier de paramètres : packages ORACLE
|
||||
|
||||
oracle_packages:
|
||||
- bind-utils
|
||||
- binutils
|
||||
- btrfs-progs
|
||||
- cloog-ppl
|
||||
- compat-libcap1
|
||||
- compat-libstdc++*i686
|
||||
- compat-libstdc++-33
|
||||
- cpp
|
||||
- ethtool
|
||||
- gcc
|
||||
- gcc-c++
|
||||
- glibc
|
||||
- glibc*i686
|
||||
- glibc-devel
|
||||
- glibc-headers
|
||||
- kernel-headers
|
||||
- kmod-oracleasm
|
||||
- ksh
|
||||
- libX11
|
||||
- libX11*i686
|
||||
- libXau
|
||||
- libXau*i686
|
||||
- libXext
|
||||
- libXi
|
||||
- libXp
|
||||
- libXt
|
||||
- libXtst
|
||||
- libaio
|
||||
- libaio*i686
|
||||
- libaio-devel
|
||||
- libaio-devel*i686
|
||||
- libgcc
|
||||
- libselinux-python
|
||||
- libstdc++
|
||||
- libstdc++*i686
|
||||
- libstdc++-devel
|
||||
- libstdc++-devel*i686
|
||||
- libtool-ltdl
|
||||
- libxcb
|
||||
- libxcb*i686
|
||||
- make
|
||||
- module-init-tools
|
||||
- mpfr
|
||||
- ncurses-devel
|
||||
- ncurses-libs
|
||||
- nfs-utils
|
||||
- nscd
|
||||
- ntp
|
||||
- openssh-clients
|
||||
- oracleasm-support
|
||||
- parted
|
||||
- ppl
|
||||
- procps
|
||||
- readline
|
||||
- readline-devel
|
||||
- sysstat
|
||||
- twm
|
||||
- unixODBC
|
||||
- util-linux-ng
|
||||
- vim-enhanced
|
||||
- xdpyinfo
|
||||
- xfsprogs
|
||||
- xorg-x11-utils
|
||||
- xorg-x11-xauth
|
||||
- xorg-x11-xinit
|
||||
- xsetroot
|
||||
- xterm
|
||||
208
install-oracle-sw/files/backup_rman.sh
Normal file
208
install-oracle-sw/files/backup_rman.sh
Normal file
@@ -0,0 +1,208 @@
|
||||
#!/bin/sh
|
||||
#------------------------------------------------------------------------------
|
||||
# ORACLE DATABASE : BACKUP RMAN DB + AL
|
||||
#------------------------------------------------------------------------------
|
||||
# Historique :
|
||||
# 14/09/2011 : YAO - Creation
|
||||
# 12/10/2015 : YAO - adaptation à l'ensemble des bases
|
||||
# 13/10/2015 : YAO - ajout des params en ligne de commande
|
||||
# 03/05/2016 : YAO - adaptation a l'environnement SOM
|
||||
# 04/05/2016 : YAO - ajout du niveau de sauvegarde : incrementale 0 ou 1
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# fonction init : c'est ici qu'il faut modifier toutes les variables liées
|
||||
# à l'environnement
|
||||
#------------------------------------------------------------------------------
|
||||
f_init() {
|
||||
|
||||
export ORACLE_OWNER=oracle
|
||||
|
||||
# les différents répertoires
|
||||
export SCRIPTS_DIR=/home/oracle/scripts
|
||||
export BKP_LOG_DIR=$SCRIPTS_DIR/logs
|
||||
export BKP_LOCATION=/orasave/$(hostname)_${ORACLE_SID}/backup_rman
|
||||
|
||||
# nombre de sauvegarde RMAN en ligne à garder
|
||||
export BKP_REDUNDANCY=1
|
||||
export DATE_JOUR=$(date +%Y.%m.%d-%H.%M)
|
||||
export BKP_LOG_FILE=${BKP_LOG_DIR}/backup_rman_${ORACLE_SID}_${BKP_TYPE}_${DATE_JOUR}.log
|
||||
export RMAN_CMD_FILE=${SCRIPTS_DIR}/rman_cmd_file_${ORACLE_SID}_${BKP_TYPE}.rman
|
||||
|
||||
# nombre de jours de conservation des logs de la sauvegarde
|
||||
export BKP_LOG_RETENTION=15
|
||||
|
||||
# nombre de jours de conservation des archivelog sur disque
|
||||
export ARCHIVELOG_RETENTION=1
|
||||
|
||||
# nombre de canaux à utiliser
|
||||
export PARALLELISM=3
|
||||
|
||||
} # f_init
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# fonction d'aide
|
||||
#------------------------------------------------------------------------------
|
||||
f_help() {
|
||||
|
||||
cat <<CATEOF
|
||||
syntax : $O -s ORACLE_SID -t DB|AL -l Full|Incr
|
||||
|
||||
-s ORACLE_SID
|
||||
|
||||
-t
|
||||
-t DB => backup full (database + archivelog)
|
||||
-t AL => backup des archivelog seulement
|
||||
|
||||
-l -t full => backup complet
|
||||
-t incr => backup incrementale 1
|
||||
|
||||
CATEOF
|
||||
exit $1
|
||||
|
||||
} #f_help
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# fonction d'affichage de la date ds les logs
|
||||
#------------------------------------------------------------------------------
|
||||
f_print()
|
||||
{
|
||||
echo "[`date +"%Y/%m/%d %H:%M:%S"`] : $1" >> $BKP_LOG_FILE
|
||||
} #f_print
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# fonction de traitement des options de la ligne de commande
|
||||
#------------------------------------------------------------------------------
|
||||
f_options() {
|
||||
|
||||
case ${BKP_TYPE} in
|
||||
DB)
|
||||
BKP_DB_PLUS_AL=TRUE;
|
||||
;;
|
||||
AL)
|
||||
BKP_DB_PLUS_AL=FALSE;
|
||||
;;
|
||||
*) f_help 2;
|
||||
;;
|
||||
esac
|
||||
|
||||
case ${BKP_LEVEL} in
|
||||
"FULL")
|
||||
BKP_FULL=TRUE;
|
||||
;;
|
||||
"INCR")
|
||||
BKP_FULL=FALSE;
|
||||
;;
|
||||
*) f_help 2;
|
||||
;;
|
||||
esac
|
||||
|
||||
} #f_options
|
||||
|
||||
|
||||
#----------------------------------------
|
||||
#------------ MAIN ----------------------
|
||||
#----------------------------------------
|
||||
|
||||
# s, l et t suivis des : => argument attendu
|
||||
# h => pas d'argument attendu
|
||||
while getopts s:t:l:h o
|
||||
do
|
||||
case $o in
|
||||
t) BKP_TYPE=$OPTARG;
|
||||
;;
|
||||
s) ORACLE_SID=$OPTARG;
|
||||
;;
|
||||
l) BKP_LEVEL=$OPTARG;
|
||||
;;
|
||||
h) f_help 0;
|
||||
;;
|
||||
*) f_help 2;
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# traitement de la ligne de commande
|
||||
|
||||
[ "${BKP_TYPE}" ] || f_help 2;
|
||||
[ "${BKP_LEVEL}" ] || BKP_LEVEL=FULL;
|
||||
[ "${ORACLE_SID}" ] || f_help 2;
|
||||
|
||||
BKP_LEVEL=$(echo ${BKP_LEVEL} | tr [a-z] [A-Z])
|
||||
BKP_TYPE=$(echo ${BKP_TYPE} | tr [a-z] [A-Z])
|
||||
|
||||
f_options
|
||||
|
||||
# positionner les variables d'environnement ORACLE
|
||||
export ORACLE_SID
|
||||
ORAENV_ASK=NO
|
||||
PATH=/usr/local/bin:$PATH
|
||||
. oraenv -s
|
||||
|
||||
# inititalisation des variables d'environnement
|
||||
f_init
|
||||
|
||||
# si ce n'est pas le user oracle qui lance le script, on quitte
|
||||
if (test `whoami` != $ORACLE_OWNER)
|
||||
then
|
||||
echo
|
||||
echo "-----------------------------------------------------"
|
||||
echo "Vous devez etre $ORACLE_OWNER pour lancer ce script"
|
||||
echo
|
||||
echo "-----------------------------------------------------"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# initialisation des chemins, s'ils n'existent pas ils seront créés par la commande install
|
||||
install -d ${BKP_LOCATION}
|
||||
install -d ${BKP_LOG_DIR}
|
||||
|
||||
# génération du script de la sauvegarde RMAN
|
||||
echo "
|
||||
run {
|
||||
CONFIGURE DEVICE TYPE DISK PARALLELISM $PARALLELISM ;
|
||||
CONFIGURE RETENTION POLICY TO REDUNDANCY ${BKP_REDUNDANCY};
|
||||
" > ${RMAN_CMD_FILE}
|
||||
|
||||
# si sauvegarde DB (-t db) on ajoute cette ligne
|
||||
if [ "${BKP_DB_PLUS_AL}" == "TRUE" ]; then
|
||||
|
||||
# si backup incrementale
|
||||
if [ "${BKP_FULL}" == "TRUE" ]; then
|
||||
echo "
|
||||
BACKUP DEVICE TYPE DISK FORMAT '${BKP_LOCATION}/data_%T_%t_%s_%p' TAG 'DATA_${DATE_JOUR}' as compressed backupset database;
|
||||
" >> ${RMAN_CMD_FILE}
|
||||
else
|
||||
echo "
|
||||
BACKUP INCREMENTAL LEVEL 1 DEVICE TYPE DISK FORMAT '${BKP_LOCATION}/data_%T_%t_%s_%p' TAG 'DATA_${DATE_JOUR}' as compressed backupset database;
|
||||
" >> ${RMAN_CMD_FILE}
|
||||
fi # if BKP_FULL
|
||||
|
||||
fi # if BKP_DB_PLUS_AL
|
||||
|
||||
# on continue avec la partie commune : backup des archivelog + spfile + controlfile
|
||||
echo "
|
||||
SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
|
||||
BACKUP DEVICE TYPE DISK FORMAT '${BKP_LOCATION}/arch_%T_%t_%s_%p' TAG 'ARCH_${DATE_JOUR}' AS COMPRESSED BACKUPSET ARCHIVELOG
|
||||
UNTIL TIME 'SYSDATE-${ARCHIVELOG_RETENTION}' ALL DELETE ALL INPUT;
|
||||
|
||||
BACKUP CURRENT CONTROLFILE FORMAT '${BKP_LOCATION}/control_%T_%t_%s_%p' TAG 'CTLFILE_${DATE_JOUR}';
|
||||
|
||||
DELETE NOPROMPT OBSOLETE;
|
||||
DELETE NOPROMPT EXPIRED BACKUPSET;
|
||||
|
||||
SQL 'ALTER DATABASE BACKUP CONTROLFILE TO TRACE';
|
||||
SQL \"CREATE PFILE=''${BKP_LOCATION}/pfile_${ORACLE_SID}_$(date +%Y.%m.%d).ora'' FROM SPFILE\";
|
||||
}
|
||||
" >> ${RMAN_CMD_FILE}
|
||||
|
||||
# Execution du script RMAN
|
||||
f_print "------------------------- DEBUT DE LA BACKUP -------------------------"
|
||||
${ORACLE_HOME}/bin/rman target / cmdfile=${RMAN_CMD_FILE} log=${BKP_LOG_FILE}
|
||||
|
||||
# Nettoyage auto des logs : durée de concervation déterminée par la variable : ${BKP_LOG_RETENTION}
|
||||
f_print "------------------------- NETTOYAGE DES LOGS -------------------------"
|
||||
find ${BKP_LOG_DIR} -type f -iname "backup_rman_${BKP_TYPE}*.log" -mtime +${BKP_LOG_RETENTION} -exec rm -fv "{}" \; >> $BKP_LOG_FILE
|
||||
|
||||
f_print "------------------------- BACKUP ${BKP_TYPE} TERMINE -------------------------"
|
||||
|
||||
799
install-oracle-sw/files/cvu_prereq.xml
Normal file
799
install-oracle-sw/files/cvu_prereq.xml
Normal file
@@ -0,0 +1,799 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- Copyright (c) 2004, 2014, Oracle and/or its affiliates.
|
||||
All rights reserved.-->
|
||||
|
||||
|
||||
<!-- ref host for linux -->
|
||||
|
||||
<HOST PLATID="226">
|
||||
<SYSTEM>
|
||||
<MEMORY>
|
||||
<PHYSICAL_MEMORY VALUE="1024" UNIT="MB" SEVERITY="IGNORABLE"/>
|
||||
<AVAILABLE_MEMORY VALUE="50" UNIT="MB" SEVERITY="IGNORABLE"/>
|
||||
<SWAP_SIZE SEVERITY="IGNORABLE">
|
||||
<STEPS>
|
||||
<MIN VALUE="1024" UNIT="MB"/>
|
||||
<MAX VALUE="16" UNIT="GB"/>
|
||||
<STEP NAME="PHYSICAL_MEMORY" ATLEAST="1024" ATMOST="2048" UNIT="MB" MULTIPLE="1.5"/>
|
||||
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="2048" UNIT="MB" MULTIPLE="1"/>
|
||||
</STEPS>
|
||||
</SWAP_SIZE>
|
||||
</MEMORY>
|
||||
<SPACE>
|
||||
<LOC VAR="RAC_HOME" SIZE="4.70" UNIT="GB" SEVERITY="IGNORABLE"/>
|
||||
<LOC VAR="TEMP_AREA" TEMP="true" SIZE="1" UNIT="GB" SEVERITY="IGNORABLE"/>
|
||||
</SPACE>
|
||||
<USERS_GROUPS>
|
||||
<USER VAR="INSTALL_USER">
|
||||
<GROUP VAR="INSTALL_GROUP"/>
|
||||
<GROUP VAR="DBA_GROUP"/>
|
||||
|
||||
</USER>
|
||||
<USER VAR="BACKUP_USER"/>
|
||||
</USERS_GROUPS>
|
||||
<RUNLEVEL>
|
||||
<LIST>
|
||||
<VALUE>3</VALUE>
|
||||
<VALUE>5</VALUE>
|
||||
</LIST>
|
||||
</RUNLEVEL>
|
||||
<!-- shell limit checks based on Seetha's inputs -->
|
||||
<SHELL_LIMIT_CHECKS>
|
||||
<CHOICE VAR="SHELL">
|
||||
<SELECTION VALUE="SH">
|
||||
<FILE_DESCRIPTORS>
|
||||
<HARDLIMIT VALUE="65536" SEVERITY="IGNORABLE"/>
|
||||
<SOFTLIMIT VALUE="1024" SEVERITY="IGNORABLE"/>
|
||||
</FILE_DESCRIPTORS>
|
||||
<MAXPROC>
|
||||
<HARDLIMIT VALUE="16384" SEVERITY="IGNORABLE"/>
|
||||
<SOFTLIMIT VALUE="2047" SEVERITY="IGNORABLE"/>
|
||||
</MAXPROC>
|
||||
<STACK>
|
||||
<SOFTLIMIT VALUE="10" UNIT="MB" OPERATOR="ATMOST" SEVERITY="IGNORABLE"/>
|
||||
</STACK>
|
||||
</SELECTION>
|
||||
<SELECTION VALUE="BASH">
|
||||
<FILE_DESCRIPTORS>
|
||||
<HARDLIMIT VALUE="65536" SEVERITY="IGNORABLE"/>
|
||||
<SOFTLIMIT VALUE="1024" SEVERITY="IGNORABLE"/>
|
||||
</FILE_DESCRIPTORS>
|
||||
<MAXPROC>
|
||||
<HARDLIMIT VALUE="16384" SEVERITY="IGNORABLE"/>
|
||||
<SOFTLIMIT VALUE="2047" SEVERITY="IGNORABLE"/>
|
||||
</MAXPROC>
|
||||
<STACK>
|
||||
<SOFTLIMIT VALUE="10" UNIT="MB" OPERATOR="ATMOST" SEVERITY="IGNORABLE"/>
|
||||
</STACK>
|
||||
</SELECTION>
|
||||
<SELECTION VALUE="KSH">
|
||||
<FILE_DESCRIPTORS>
|
||||
<HARDLIMIT VALUE="65536" SEVERITY="IGNORABLE"/>
|
||||
<SOFTLIMIT VALUE="1024" SEVERITY="IGNORABLE"/>
|
||||
</FILE_DESCRIPTORS>
|
||||
<MAXPROC>
|
||||
<HARDLIMIT VALUE="16384" SEVERITY="IGNORABLE"/>
|
||||
<SOFTLIMIT VALUE="2047" SEVERITY="IGNORABLE"/>
|
||||
</MAXPROC>
|
||||
<STACK>
|
||||
<SOFTLIMIT VALUE="10" UNIT="MB" OPERATOR="ATMOST" SEVERITY="IGNORABLE"/>
|
||||
</STACK>
|
||||
</SELECTION>
|
||||
<SELECTION VALUE="CSH">
|
||||
<FILE_DESCRIPTORS>
|
||||
<HARDLIMIT VALUE="65536" SEVERITY="IGNORABLE"/>
|
||||
</FILE_DESCRIPTORS>
|
||||
<MAXPROC>
|
||||
<HARDLIMIT VALUE="16384" SEVERITY="IGNORABLE"/>
|
||||
</MAXPROC>
|
||||
<STACK>
|
||||
<SOFTLIMIT VALUE="10" UNIT="MB" OPERATOR="ATMOST" SEVERITY="IGNORABLE"/>
|
||||
</STACK>
|
||||
</SELECTION>
|
||||
<SELECTION VALUE="TCSH">
|
||||
<FILE_DESCRIPTORS>
|
||||
<HARDLIMIT VALUE="65536" SEVERITY="IGNORABLE"/>
|
||||
</FILE_DESCRIPTORS>
|
||||
<MAXPROC>
|
||||
<HARDLIMIT VALUE="16384" SEVERITY="IGNORABLE"/>
|
||||
</MAXPROC>
|
||||
<STACK>
|
||||
<SOFTLIMIT VALUE="10" UNIT="MB" OPERATOR="ATMOST" SEVERITY="IGNORABLE"/>
|
||||
</STACK>
|
||||
</SELECTION>
|
||||
<SELECTION VALUE="ZSH">
|
||||
<FILE_DESCRIPTORS>
|
||||
<HARDLIMIT VALUE="65536" SEVERITY="IGNORABLE"/>
|
||||
</FILE_DESCRIPTORS>
|
||||
<MAXPROC>
|
||||
<HARDLIMIT VALUE="16384" SEVERITY="IGNORABLE"/>
|
||||
</MAXPROC>
|
||||
<STACK>
|
||||
<SOFTLIMIT VALUE="10" UNIT="MB" OPERATOR="ATMOST" SEVERITY="IGNORABLE"/>
|
||||
</STACK>
|
||||
</SELECTION>
|
||||
</CHOICE>
|
||||
</SHELL_LIMIT_CHECKS>
|
||||
<!-- This checks has the list of proceesses that should be running/off on the machine -->
|
||||
<PROCESS_CHECKS>
|
||||
<CONDITION VAR="OCFS">
|
||||
<PROCESS NAME="ncsd" EXISTS="TRUE"/>
|
||||
</CONDITION>
|
||||
</PROCESS_CHECKS>
|
||||
</SYSTEM>
|
||||
<CERTIFIED_SYSTEMS>
|
||||
<OPERATING_SYSTEM RELEASE="OEL5">
|
||||
<VERSION VALUE="3"/>
|
||||
<ARCHITECTURE VALUE="x86_64"/>
|
||||
<NAME VALUE="Linux"/>
|
||||
<VENDOR VALUE="enterprise"/>
|
||||
<KERNEL_VER VALUE="2.6.18"/>
|
||||
<KERNEL>
|
||||
<PROPERTY NAME="semmsl" NAME2="semmsl2" VALUE="250" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmns" VALUE="32000" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semopm" VALUE="100" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmni" VALUE="128" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmmax" SEVERITY="IGNORABLE">
|
||||
<STEPS>
|
||||
<MAX VALUE="4294967295" UNIT="B"/>
|
||||
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="1" UNIT="B" MULTIPLE="0.5"/>
|
||||
</STEPS>
|
||||
</PROPERTY>
|
||||
<PROPERTY NAME="shmmni" VALUE="4096" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmall" VALUE="2097152" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="file-max" VALUE="6815744" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="ip_local_port_range" ATLEAST="9000" ATMOST="65500" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_max" VALUE="4194304" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_max" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="aio-max-nr" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
</KERNEL>
|
||||
<PACKAGES>
|
||||
<!-- Packages for ASM -->
|
||||
<CONDITION VAR="ASM">
|
||||
<!-- Need to confirm version for following ASM packages -->
|
||||
<PACKAGE NAME="oracleasm-support" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasm-%KERNEL_RELEASE%" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasmlib" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<!-- Packages for OCFS2 -->
|
||||
<CONDITION VAR="OCFS2">
|
||||
<PACKAGE VAR="ocfs2" VALUE="1.2.9" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ocfs2-tools" VALUE="1.2.7" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<PACKAGE NAME="make" VALUE="3.81" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="binutils" VALUE="2.17.50.0.6" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio" VALUE="0.3.106" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc" VALUE="2.5-24" SEVERITY="CRITICAL" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="compat-libstdc++-33" VALUE="3.2.3" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="elfutils-libelf" VALUE="0.125" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="elfutils-libelf-devel" VALUE="0.125" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc-common" VALUE="2.5" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc-devel" VALUE="2.5" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc-headers" VALUE="2.5" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc-c++" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio-devel" VALUE="0.3.106" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libgcc" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++-devel" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="sysstat" VALUE="7.0.2" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ksh" VALUE="20060214" SEVERITY="IGNORABLE"/>
|
||||
</PACKAGES>
|
||||
<SYSTEM_FILES>
|
||||
<DHCP FILENAME="/etc/network_sysconfig"/>
|
||||
</SYSTEM_FILES>
|
||||
</OPERATING_SYSTEM>
|
||||
|
||||
<OPERATING_SYSTEM RELEASE="RHEL5">
|
||||
<VERSION VALUE="3"/>
|
||||
<ARCHITECTURE VALUE="x86_64"/>
|
||||
<NAME VALUE="Linux"/>
|
||||
<VENDOR VALUE="redhat"/>
|
||||
<KERNEL_VER VALUE="2.6.18"/>
|
||||
<KERNEL>
|
||||
<PROPERTY NAME="semmsl" NAME2="semmsl2" VALUE="250" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmns" VALUE="32000" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semopm" VALUE="100" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmni" VALUE="128" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmmax" SEVERITY="IGNORABLE">
|
||||
<STEPS>
|
||||
<MAX VALUE="4294967295" UNIT="B"/>
|
||||
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="1" UNIT="B" MULTIPLE="0.5"/>
|
||||
</STEPS>
|
||||
</PROPERTY>
|
||||
<PROPERTY NAME="shmmni" VALUE="4096" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmall" VALUE="2097152" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="file-max" VALUE="6815744" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="ip_local_port_range" ATLEAST="9000" ATMOST="65500" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_max" VALUE="4194304" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_max" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="aio-max-nr" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
</KERNEL>
|
||||
<PACKAGES>
|
||||
<!-- Packages for ASM -->
|
||||
<CONDITION VAR="ASM">
|
||||
<!-- Need to confirm version for following ASM packages -->
|
||||
<PACKAGE NAME="oracleasm-support" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasm-%KERNEL_RELEASE%" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasmlib" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<!-- Packages for OCFS2 -->
|
||||
<CONDITION VAR="OCFS2">
|
||||
<PACKAGE VAR="ocfs2" VALUE="1.2.9" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ocfs2-tools" VALUE="1.2.7" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<PACKAGE NAME="make" VALUE="3.81" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="binutils" VALUE="2.17.50.0.6" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio" VALUE="0.3.106" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc" VALUE="2.5-24" SEVERITY="CRITICAL" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="compat-libstdc++-33" VALUE="3.2.3" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="elfutils-libelf" VALUE="0.125" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="elfutils-libelf-devel" VALUE="0.125" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc-common" VALUE="2.5" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc-devel" VALUE="2.5" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc-headers" VALUE="2.5" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc-c++" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio-devel" VALUE="0.3.106" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libgcc" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++-devel" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="sysstat" VALUE="7.0.2" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ksh" VALUE="20060214" SEVERITY="IGNORABLE"/>
|
||||
</PACKAGES>
|
||||
<SYSTEM_FILES>
|
||||
<DHCP FILENAME="/etc/network_sysconfig"/>
|
||||
</SYSTEM_FILES>
|
||||
</OPERATING_SYSTEM>
|
||||
|
||||
<OPERATING_SYSTEM RELEASE="ASIANUX3">
|
||||
<VERSION VALUE="3"/>
|
||||
<ARCHITECTURE VALUE="x86_64"/>
|
||||
<NAME VALUE="Linux"/>
|
||||
<VENDOR VALUE="asianux"/>
|
||||
<KERNEL_VER VALUE="2.6.18"/>
|
||||
<KERNEL>
|
||||
<PROPERTY NAME="semmsl" NAME2="semmsl2" VALUE="250" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmns" VALUE="32000" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semopm" VALUE="100" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmni" VALUE="128" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmmax" SEVERITY="IGNORABLE">
|
||||
<STEPS>
|
||||
<MAX VALUE="4294967295" UNIT="B"/>
|
||||
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="1" UNIT="B" MULTIPLE="0.5"/>
|
||||
</STEPS>
|
||||
</PROPERTY>
|
||||
<PROPERTY NAME="shmmni" VALUE="4096" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmall" VALUE="2097152" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="file-max" VALUE="6815744" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="ip_local_port_range" ATLEAST="9000" ATMOST="65500" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_max" VALUE="4194304" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_max" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="aio-max-nr" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
</KERNEL>
|
||||
|
||||
<PACKAGES>
|
||||
<!-- Packages for ASM -->
|
||||
<CONDITION VAR="ASM">
|
||||
<PACKAGE NAME="oracleasm-support" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasm-%KERNEL_RELEASE%" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasmlib" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<!-- Packages for OCFS2 -->
|
||||
<CONDITION VAR="OCFS2">
|
||||
<PACKAGE VAR="ocfs2" VALUE="1.2.9" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ocfs2-tools" VALUE="1.2.7" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<PACKAGE NAME="make" VALUE="3.81" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="binutils" VALUE="2.17.50.0.6" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio" VALUE="0.3.106" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc" VALUE="2.5-24" SEVERITY="CRITICAL" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="compat-libstdc++-33" VALUE="3.2.3" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="elfutils-libelf" VALUE="0.125" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="elfutils-libelf-devel" VALUE="0.125" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc-common" VALUE="2.5" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc-devel" VALUE="2.5" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc-headers" VALUE="2.5" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc-c++" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio-devel" VALUE="0.3.106" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libgcc" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++-devel" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="sysstat" VALUE="7.0.2" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ksh" VALUE="20060214" SEVERITY="IGNORABLE"/>
|
||||
</PACKAGES>
|
||||
</OPERATING_SYSTEM>
|
||||
|
||||
<OPERATING_SYSTEM RELEASE="OEL4">
|
||||
<VERSION VALUE="3"/>
|
||||
<ARCHITECTURE VALUE="x86_64"/>
|
||||
<NAME VALUE="Linux"/>
|
||||
<VENDOR VALUE="enterprise"/>
|
||||
<KERNEL_VER VALUE="2.6.9"/>
|
||||
<KERNEL>
|
||||
<PROPERTY NAME="semmsl" NAME2="semmsl2" VALUE="250" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmns" VALUE="32000" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semopm" VALUE="100" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmni" VALUE="128" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmmax" SEVERITY="IGNORABLE">
|
||||
<STEPS>
|
||||
<MAX VALUE="4294967295" UNIT="B"/>
|
||||
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="1" UNIT="B" MULTIPLE="0.5"/>
|
||||
</STEPS>
|
||||
</PROPERTY>
|
||||
<PROPERTY NAME="shmmni" VALUE="4096" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmall" VALUE="2097152" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="file-max" VALUE="6815744" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="ip_local_port_range" ATLEAST="9000" ATMOST="65500" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_max" VALUE="4194304" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_max" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="aio-max-nr" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
</KERNEL>
|
||||
<PACKAGES>
|
||||
<!-- Packages for ASM -->
|
||||
<CONDITION VAR="ASM">
|
||||
<!-- Need to confirm version for following ASM packages -->
|
||||
<PACKAGE NAME="oracleasm-support" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasm-%KERNEL_RELEASE%" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasmlib" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
|
||||
<!-- Packages for OCFS2 -->
|
||||
<CONDITION VAR="OCFS2">
|
||||
<PACKAGE VAR="ocfs2" VALUE="1.2.9" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ocfs2-tools" VALUE="1.2.7" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<PACKAGE NAME="make" VALUE="3.80" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="binutils" VALUE="2.15.92.0.2" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc" VALUE="3.4.6" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio" VALUE="0.3.105" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio-devel" VALUE="0.3.105" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc" VALUE="2.3.4-2.41" SEVERITY="CRITICAL" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="compat-libstdc++-33" VALUE="3.2.3" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="elfutils-libelf" VALUE="0.97" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="elfutils-libelf-devel" VALUE="0.97" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc-common" VALUE="2.3.4" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc-devel" VALUE="2.3.4" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc-headers" VALUE="2.3.4" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc-c++" VALUE="3.4.6" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libgcc" VALUE="3.4.6" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++" VALUE="3.4.6" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++-devel" VALUE="3.4.6" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="sysstat" VALUE="5.0.5" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="pdksh" VALUE="5.2.14" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="expat" VALUE="1.95.7" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
</PACKAGES>
|
||||
<SYSTEM_FILES>
|
||||
<DHCP FILENAME="/etc/network_sysconfig"/>
|
||||
</SYSTEM_FILES>
|
||||
</OPERATING_SYSTEM>
|
||||
|
||||
<OPERATING_SYSTEM RELEASE="RHEL4">
|
||||
<VERSION VALUE="3"/>
|
||||
<ARCHITECTURE VALUE="x86_64"/>
|
||||
<NAME VALUE="Linux"/>
|
||||
<VENDOR VALUE="redhat"/>
|
||||
<KERNEL_VER VALUE="2.6.9"/>
|
||||
<KERNEL>
|
||||
<PROPERTY NAME="semmsl" NAME2="semmsl2" VALUE="250" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmns" VALUE="32000" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semopm" VALUE="100" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmni" VALUE="128" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmmax" SEVERITY="IGNORABLE">
|
||||
<STEPS>
|
||||
<MAX VALUE="4294967295" UNIT="B"/>
|
||||
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="1" UNIT="B" MULTIPLE="0.5"/>
|
||||
</STEPS>
|
||||
</PROPERTY>
|
||||
<PROPERTY NAME="shmmni" VALUE="4096" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmall" VALUE="2097152" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="file-max" VALUE="6815744" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="ip_local_port_range" ATLEAST="9000" ATMOST="65500" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_max" VALUE="4194304" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_max" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="aio-max-nr" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
</KERNEL>
|
||||
<PACKAGES>
|
||||
<!-- Packages for ASM -->
|
||||
<CONDITION VAR="ASM">
|
||||
<!-- Need to confirm version for following ASM packages -->
|
||||
<PACKAGE NAME="oracleasm-support" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasm-%KERNEL_RELEASE%" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasmlib" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
|
||||
<!-- Packages for OCFS2 -->
|
||||
<CONDITION VAR="OCFS2">
|
||||
<PACKAGE VAR="ocfs2" VALUE="1.2.9" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ocfs2-tools" VALUE="1.2.7" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<PACKAGE NAME="make" VALUE="3.80" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="binutils" VALUE="2.15.92.0.2" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc" VALUE="3.4.6" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio" VALUE="0.3.105" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc" VALUE="2.3.4-2.41" SEVERITY="CRITICAL" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="compat-libstdc++-33" VALUE="3.2.3" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="elfutils-libelf" VALUE="0.97" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="elfutils-libelf-devel" VALUE="0.97" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc-common" VALUE="2.3.4" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc-devel" VALUE="2.3.4" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc-headers" VALUE="2.3.4" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc-c++" VALUE="3.4.6" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio-devel" VALUE="0.3.105" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libgcc" VALUE="3.4.6" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++" VALUE="3.4.6" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++-devel" VALUE="3.4.6" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="sysstat" VALUE="5.0.5" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="pdksh" VALUE="5.2.14" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="expat" VALUE="1.95.7" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
</PACKAGES>
|
||||
<SYSTEM_FILES>
|
||||
<DHCP FILENAME="/etc/network_sysconfig"/>
|
||||
</SYSTEM_FILES>
|
||||
</OPERATING_SYSTEM>
|
||||
<OPERATING_SYSTEM RELEASE="SUSE10">
|
||||
<VERSION VALUE="10"/>
|
||||
<ARCHITECTURE VALUE="x86_64"/>
|
||||
<NAME VALUE="Linux"/>
|
||||
<VENDOR VALUE="SuSE"/>
|
||||
<KERNEL_VER VALUE="2.6.16.21"/>
|
||||
<KERNEL>
|
||||
<PROPERTY NAME="semmsl" NAME2="semmsl2" VALUE="250" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmns" VALUE="32000" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semopm" VALUE="100" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmni" VALUE="128" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmmax" SEVERITY="IGNORABLE">
|
||||
<STEPS>
|
||||
<MAX VALUE="4294967295" UNIT="B"/>
|
||||
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="1" UNIT="B" MULTIPLE="0.5"/>
|
||||
</STEPS>
|
||||
</PROPERTY>
|
||||
<PROPERTY NAME="shmmni" VALUE="4096" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmall" VALUE="2097152" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="file-max" VALUE="6815744" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="ip_local_port_range" ATLEAST="9000" ATMOST="65500" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_max" VALUE="4194304" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_max" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="aio-max-nr" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
</KERNEL>
|
||||
|
||||
<PACKAGES>
|
||||
<!-- Packages for ASM -->
|
||||
<CONDITION VAR="ASM">
|
||||
<PACKAGE NAME="oracleasm-support" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasm-%KERNEL_RELEASE%" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasmlib" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<CONDITION VAR="OCFS2">
|
||||
<PACKAGE VAR="ocfs2" VALUE="1.2.9" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ocfs2-tools" VALUE="1.2.3" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<PACKAGE NAME="make" VALUE="3.80" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="binutils" VALUE="2.16.91.0.5" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="gcc-c++" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio" VALUE="0.3.104" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc" SEVERITY="CRITICAL" ARCHITECTURE="x86_64">
|
||||
<RANGE ATLEAST="2.4-31.63">
|
||||
<EXCLUDE ATLEAST="2.5-18" ATMOST="2.5-23"/>
|
||||
</RANGE>
|
||||
</PACKAGE>
|
||||
<PACKAGE NAME="compat-libstdc++" VALUE="5.0.7" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc-devel" VALUE="2.4" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ksh" VALUE="93r-12.9" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="libaio-devel" VALUE="0.3.104" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="libelf" VALUE="0.8.5" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="libgcc" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++-devel" VALUE="4.1.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="sysstat" VALUE="8.0.4" SEVERITY="IGNORABLE"/>
|
||||
</PACKAGES>
|
||||
</OPERATING_SYSTEM>
|
||||
<OPERATING_SYSTEM RELEASE="SUSE11">
|
||||
<VERSION VALUE="11"/>
|
||||
<ARCHITECTURE VALUE="x86_64"/>
|
||||
<NAME VALUE="Linux"/>
|
||||
<VENDOR VALUE="SuSE"/>
|
||||
<KERNEL_VER VALUE="2.6.27.19"/>
|
||||
<KERNEL>
|
||||
<PROPERTY NAME="semmsl" NAME2="semmsl2" VALUE="250" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmns" VALUE="32000" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semopm" VALUE="100" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmni" VALUE="128" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmmax" SEVERITY="IGNORABLE">
|
||||
<STEPS>
|
||||
<MAX VALUE="4294967295" UNIT="B"/>
|
||||
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="1" UNIT="B" MULTIPLE="0.5"/>
|
||||
</STEPS>
|
||||
</PROPERTY>
|
||||
<PROPERTY NAME="shmmni" VALUE="4096" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmall" VALUE="2097152" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="file-max" VALUE="6815744" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="ip_local_port_range" ATLEAST="9000" ATMOST="65500" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_max" VALUE="4194304" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_max" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="aio-max-nr" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
</KERNEL>
|
||||
|
||||
<PACKAGES>
|
||||
<!-- Packages for ASM -->
|
||||
<CONDITION VAR="ASM">
|
||||
<PACKAGE NAME="oracleasm-support" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasm-%KERNEL_RELEASE%" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="oracleasmlib" VALUE="2.0" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<CONDITION VAR="OCFS2">
|
||||
<PACKAGE VAR="ocfs2" VALUE="1.2.9" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ocfs2-tools" VALUE="1.2.3" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<PACKAGE NAME="make" VALUE="3.81" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="binutils" VALUE="2.19" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc" VALUE="4.3" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="gcc-c++" VALUE="4.3" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio" VALUE="0.3.104" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc" VALUE="2.9" SEVERITY="CRITICAL"/>
|
||||
<PACKAGE NAME="glibc-devel" VALUE="2.9" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ksh" VALUE="93t" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="libaio-devel" VALUE="0.3.104" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="libstdc++33" VALUE="3.3.3" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="libstdc++43-devel" VALUE="4.3.3_20081022" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="libstdc++-devel" VALUE="4.3" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="sysstat" VALUE="8.1.5" SEVERITY="IGNORABLE"/>
|
||||
<CONDITION VAR="SUSE_PATCHLEVEL" TYPE="VERSION" LESS_THAN="2">
|
||||
<PACKAGE NAME="libstdc++43" VALUE="4.3.3_20081022" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="libgcc43" VALUE="4.3.3_20081022" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<CONDITION VAR="SUSE_PATCHLEVEL" TYPE="VERSION" ATLEAST="2">
|
||||
<PACKAGE NAME="libstdc++46" VALUE="4.6.1_20110701" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="libgcc46" VALUE="4.6.1_20110701" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
</PACKAGES>
|
||||
</OPERATING_SYSTEM>
|
||||
<OPERATING_SYSTEM RELEASE="OEL6">
|
||||
<VERSION VALUE="6"/>
|
||||
<ARCHITECTURE VALUE="x86_64"/>
|
||||
<NAME VALUE="Linux"/>
|
||||
<VENDOR VALUE="enterprise"/>
|
||||
<KERNEL_VER VALUE="2.6.32"/>
|
||||
<KERNEL>
|
||||
<PROPERTY NAME="semmsl" NAME2="semmsl2" VALUE="250" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmns" VALUE="32000" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semopm" VALUE="100" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmni" VALUE="128" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmmax" SEVERITY="IGNORABLE">
|
||||
<STEPS>
|
||||
<MAX VALUE="4294967295" UNIT="B"/>
|
||||
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="1" UNIT="B" MULTIPLE="0.5"/>
|
||||
</STEPS>
|
||||
</PROPERTY>
|
||||
<PROPERTY NAME="shmmni" VALUE="4096" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmall" VALUE="2097152" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="file-max" VALUE="6815744" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="ip_local_port_range" ATLEAST="9000" ATMOST="65500" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_max" VALUE="4194304" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_max" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="aio-max-nr" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
</KERNEL>
|
||||
<PACKAGES>
|
||||
<!-- Packages for OCFS2 -->
|
||||
<CONDITION VAR="OCFS2">
|
||||
<PACKAGE VAR="ocfs2" VALUE="1.2.9" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ocfs2-tools" VALUE="1.2.7" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
|
||||
|
||||
<PACKAGE NAME="binutils" VALUE="2.20.51.0.2" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="compat-libcap1" VALUE="1.10" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="compat-libstdc++-33" VALUE="3.2.3" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libgcc" VALUE="4.4.4" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++" VALUE="4.4.4" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++-devel" VALUE="4.4.4" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="sysstat" VALUE="9.0.4" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc" VALUE="4.4.4" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc-c++" VALUE="4.4.4" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ksh" VALUE="20100621" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="make" VALUE="3.81" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc" VALUE="2.12" SEVERITY="CRITICAL" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc-devel" VALUE="2.12" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio" VALUE="0.3.107" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio-devel" VALUE="0.3.107" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
</PACKAGES>
|
||||
<SYSTEM_FILES>
|
||||
<DHCP FILENAME="/etc/network_sysconfig"/>
|
||||
</SYSTEM_FILES>
|
||||
</OPERATING_SYSTEM>
|
||||
|
||||
<OPERATING_SYSTEM RELEASE="OL7">
|
||||
<VERSION VALUE="7"/>
|
||||
<ARCHITECTURE VALUE="x86_64"/>
|
||||
<NAME VALUE="Linux"/>
|
||||
<VENDOR VALUE="Oracle"/>
|
||||
<KERNEL_VER VALUE="3.8.0"/>
|
||||
<KERNEL>
|
||||
<PROPERTY NAME="semmsl" NAME2="semmsl2" VALUE="250" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmns" VALUE="32000" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semopm" VALUE="100" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmni" VALUE="128" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmmax" SEVERITY="IGNORABLE">
|
||||
<STEPS>
|
||||
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="1024" UNIT="MB" MULTIPLE="0.5"/>
|
||||
</STEPS>
|
||||
</PROPERTY>
|
||||
<PROPERTY NAME="shmmni" VALUE="4096" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmall" SEVERITY="IGNORABLE">
|
||||
<STEPS>
|
||||
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="1024" UNIT="MB" MULTIPLE="0.4"/>
|
||||
</STEPS>
|
||||
</PROPERTY>
|
||||
<PROPERTY NAME="file-max" VALUE="6815744" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="ip_local_port_range" ATLEAST="9000" ATMOST="65535" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_max" VALUE="4194304" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_max" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="aio-max-nr" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
</KERNEL>
|
||||
<PACKAGES>
|
||||
<!-- Packages for OCFS2 -->
|
||||
<CONDITION VAR="OCFS2">
|
||||
<PACKAGE VAR="ocfs2" VALUE="1.2.9" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ocfs2-tools" VALUE="1.2.7" SEVERITY="IGNORABLE"/>
|
||||
</CONDITION>
|
||||
<PACKAGE NAME="binutils" VALUE="2.23.52.0.1" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="compat-libcap1" VALUE="1.10" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="compat-libstdc++-33" VALUE="3.2.3" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libgcc" VALUE="4.8.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++" VALUE="4.8.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++-devel" VALUE="4.8.2" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="sysstat" VALUE="10.1.5" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc" VALUE="4.8.2" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc-c++" VALUE="4.8.2" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ksh" VALUE="..." SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="make" VALUE="3.82" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc" VALUE="2.17" SEVERITY="CRITICAL" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc-devel" VALUE="2.17" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio" VALUE="0.3.109" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio-devel" VALUE="0.3.109" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
</PACKAGES>
|
||||
<SYSTEM_FILES>
|
||||
<DHCP FILENAME="/etc/network_sysconfig"/>
|
||||
</SYSTEM_FILES>
|
||||
</OPERATING_SYSTEM>
|
||||
|
||||
<OPERATING_SYSTEM RELEASE="RHEL6">
|
||||
<VERSION VALUE="6"/>
|
||||
<ARCHITECTURE VALUE="x86_64"/>
|
||||
<NAME VALUE="Linux"/>
|
||||
<VENDOR VALUE="enterprise"/>
|
||||
<KERNEL_VER VALUE="2.6.32"/>
|
||||
<KERNEL>
|
||||
<PROPERTY NAME="semmsl" NAME2="semmsl2" VALUE="250" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmns" VALUE="32000" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semopm" VALUE="100" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="semmni" VALUE="128" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmmax" SEVERITY="IGNORABLE">
|
||||
<STEPS>
|
||||
<MAX VALUE="4294967295" UNIT="B"/>
|
||||
<STEP NAME="PHYSICAL_MEMORY" GREATER_THAN="1" UNIT="B" MULTIPLE="0.5"/>
|
||||
</STEPS>
|
||||
</PROPERTY>
|
||||
<PROPERTY NAME="shmmni" VALUE="4096" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="shmall" VALUE="2097152" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="file-max" VALUE="6815744" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="ip_local_port_range" ATLEAST="9000" ATMOST="65500" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="rmem_max" VALUE="4194304" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_default" VALUE="262144" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="wmem_max" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
<PROPERTY NAME="aio-max-nr" VALUE="1048576" SEVERITY="IGNORABLE"/>
|
||||
</KERNEL>
|
||||
<PACKAGES>
|
||||
|
||||
<PACKAGE NAME="binutils" VALUE="2.20.51.0.2" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="compat-libcap1" VALUE="1.10" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="compat-libstdc++-33" VALUE="3.2.3" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libgcc" VALUE="4.4.4" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++" VALUE="4.4.4" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libstdc++-devel" VALUE="4.4.4" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="sysstat" VALUE="9.0.4" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc" VALUE="4.4.4" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="gcc-c++" VALUE="4.4.4" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="ksh" VALUE="20100621" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="make" VALUE="3.81" SEVERITY="IGNORABLE"/>
|
||||
<PACKAGE NAME="glibc" VALUE="2.12" SEVERITY="CRITICAL" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="glibc-devel" VALUE="2.12" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio" VALUE="0.3.107" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
<PACKAGE NAME="libaio-devel" VALUE="0.3.107" SEVERITY="IGNORABLE" ARCHITECTURE="x86_64"/>
|
||||
</PACKAGES>
|
||||
</OPERATING_SYSTEM>
|
||||
|
||||
</CERTIFIED_SYSTEMS>
|
||||
<REFERENCE_DEVICES>
|
||||
<DEVICE VAR="DEVICES"/>
|
||||
<MOUNT_PARAMS NAME="nfs" VALUE="rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,noac,vers=3,timeo=600"/>
|
||||
<MOUNT_PARAMS NAME="ocfs" VALUE="rw,sid=5"/>
|
||||
<MOUNT_PARAMS NAME="ocfs2" VALUE="..."/>
|
||||
<MOUNT_PARAMS NAME="ofs" VALUE="...."/>
|
||||
<MOUNT_PARAMS NAME="raw" VALUE="..."/>
|
||||
<MOUNT_PARAMS NAME="asm" VALUE="..."/>
|
||||
<REDUNDANT_LOCS VAR="OCR_REDUND"/>
|
||||
<REDUNDANT_LOCS VAR="VDISK_REDUND"/>
|
||||
</REFERENCE_DEVICES>
|
||||
<SCRIPTS>
|
||||
<SCRIPT VAR="USER_SCRIPT"/>
|
||||
</SCRIPTS>
|
||||
<USER_INPUTS>
|
||||
<CLUSTERNAME VAR="CLUSTERNAME"/>
|
||||
<SID VAR="SID"/>
|
||||
<INSTALL_USER VAR="INSTALL_USER"/>
|
||||
<LOCS>
|
||||
<LOC VAR="OCR_LOC"/>
|
||||
<LOC VAR="OCR_MIRROR_LOC"/>
|
||||
<LOC VAR="VDISK_LOC"/>
|
||||
<LOC VAR="VDISK_LOC2"/>
|
||||
<LOC VAR="VDISK_LOC3"/>
|
||||
<LOC VAR="DB_FILE_STORAGE"/>
|
||||
<CONDITION VAR="OCFS">
|
||||
<LOC VAR="RPM_BASE_URL_OCFS"/>
|
||||
<LOC VAR="RPM_BASE_URL_OCFS_TOOLS"/>
|
||||
</CONDITION>
|
||||
<CONDITION VAR="RAW">
|
||||
<LOC VAR="DB_RAW_STORAGE"/>
|
||||
<LOC VAR="DB_REC_AREA_STORAGE"/>
|
||||
</CONDITION>
|
||||
</LOCS>
|
||||
</USER_INPUTS>
|
||||
<DIRS>
|
||||
<DIR VAR="INSTALL_BASE_DIR" WRITABLE="TRUE"/>
|
||||
</DIRS>
|
||||
<NETWORK>
|
||||
<NODELIST>
|
||||
<NODE NAME="PRIVATE_NODES" TYPE="PRIVATE" VAR="PRIVATE_NODES" IP_VAR="PRIVATE_NODES_IP"/>
|
||||
<NODE NAME="PUBLIC_NODES" TYPE="PUBLIC" VAR="PUBLIC_NODES" IP_VAR="PUBLIC_NODES_IP"/>
|
||||
<NODE NAME="VIRTUAL_NODES" TYPE="VIRTUAL" VAR="VIRTUAL_NODES" IP_VAR="VIRTUAL_NODES_IP"/>
|
||||
</NODELIST>
|
||||
<INTERCONNECTS VAR="NICS"/>
|
||||
<!-- This variable currently gives ':' seperated details for all interconnects -->
|
||||
</NETWORK>
|
||||
<ORACLE_HOME>
|
||||
<COMPATIBILITY_MATRIX>
|
||||
<ALLOW>
|
||||
<NEW_HOME/>
|
||||
</ALLOW>
|
||||
<DISALLOW>
|
||||
<COMP NAME="oracle.server" ATLEAST="8.1.0.0.0" ATMOST="9.2.0.9.0"/>
|
||||
<COMP NAME="oracle.server" ATLEAST="10.1.0.0.0" ATMOST="10.1.0.9.0"/>
|
||||
<COMP NAME="oracle.client" ATLEAST="8.1.0.0.0" ATMOST="9.2.0.9.0"/>
|
||||
<COMP NAME="oracle.iappserver.iapptop" ATLEAST="9.0.2.0.0" ATMOST="99.9.9.9.9"/>
|
||||
<COMP NAME="oracle.iappserver.infrastructure" ATLEAST="9.0.2.0.0" ATMOST="99.9.9.9.9"/>
|
||||
<COMP NAME="oracle.iappserver.devcorner " ATLEAST="9.0.2.0.0" ATMOST="99.9.9.9.9"/>
|
||||
<COMP NAME="oracle.ids.toplevel.development" ATLEAST="9.0.0.0.0" ATMOST="99.9.9.9.9"/>
|
||||
<COMP NAME="oracle.install.instcommon" ATLEAST="8.1.3.0.0" ATMOST="9.2.9.9.9"/>
|
||||
<COMP NAME="oracle.client" ATLEAST="10.1.0.0.0"/>
|
||||
<COMP NAME="oracle.crs" ATLEAST="10.1.0.0.0"/>
|
||||
<ORCA_HOME/>
|
||||
</DISALLOW>
|
||||
</COMPATIBILITY_MATRIX>
|
||||
<!-- EXISTENCE_MATRIX>
|
||||
<COMP NAME="oracle.crs" DESC="Oracle Cluster Ready Services (CRS) 11gR2" EXISTS="FALSE" ATLEAST="10.1.0.0.0" ATMOST="11.1.9.9.9"/>
|
||||
<COMP NAME="oracle.server" DESC="Oracle Real Application Cluster (RAC) 11gR2" EXISTS="FALSE" ATLEAST="9.2.0.0.0" ATMOST="11.1.9.9.9"/>
|
||||
</EXISTENCE_MATRIX -->
|
||||
</ORACLE_HOME>
|
||||
</HOST>
|
||||
112
install-oracle-sw/tasks/install_database.yml
Normal file
112
install-oracle-sw/tasks/install_database.yml
Normal file
@@ -0,0 +1,112 @@
|
||||
---
|
||||
#
|
||||
# installation des binaires ORACLE
|
||||
#
|
||||
|
||||
- name: Création des répertoires
|
||||
file: dest={{ item.dir }} mode={{ item.mode }} owner={{ item.owner }} group={{ item.group }} state=directory
|
||||
with_items:
|
||||
- { dir: "{{ oracle_base }}", owner: "{{ db_user }}", group: "{{ oracle_group }}", mode: 755 }
|
||||
- { dir: "{{ oracle_inventory_loc }}", owner: "{{ db_user }}", group: "{{ oracle_group }}", mode: 755 }
|
||||
- { dir: "{{ db_home }}", owner: "{{ db_user }}", group: "{{ oracle_group }}", mode: 775 }
|
||||
- { dir: "{{ oracle_stage }}", owner: "{{ db_user }}", group: "{{ oracle_group }}", mode: 775 }
|
||||
tags: createdir
|
||||
|
||||
- name: vérification de l espace disque disponible sur oracle_racine
|
||||
action: shell df -P {{ oracle_racine }} | awk 'END { print $4 }'
|
||||
register: u01size
|
||||
failed_when: u01size.stdout|int < {{ u01_free_space_gb }} * 1024 * 1024
|
||||
tags: diskfreespace
|
||||
|
||||
- name: vérification de l espace disque disponible sur /tmp
|
||||
action: shell df -P /tmp | awk 'END { print $4 }'
|
||||
register: tmpsize
|
||||
failed_when: tmpsize.stdout|int < {{ tmp_free_space_gb }} * 1024 * 1024
|
||||
tags: diskfreespace
|
||||
|
||||
- name: Vérifier si une installation existe ...
|
||||
shell: grep "{{ db_home }}" "{{ oracle_inventory_loc }}/ContentsXML/inventory.xml" | wc -l
|
||||
register: checkdbswinstall
|
||||
failed_when: checkdbswinstall.stdout != "0"
|
||||
tags: checkifexists
|
||||
|
||||
- name: Extraction des binaires Oracle
|
||||
unarchive: src={{ item[0].filename }} dest={{ oracle_stage }}
|
||||
with_nested:
|
||||
- "{{ db_software }}"
|
||||
- "{{ db_version }}"
|
||||
when: item[0].version == db_version
|
||||
sudo: yes
|
||||
sudo_user: "{{ db_user }}"
|
||||
tags: transfert
|
||||
|
||||
- name: Linux 7 - application du pacth 19404309 pour installer 11.2 sur Linux 7
|
||||
# https://updates.oracle.com/Orion/Services/download?type=readme&aru=17984752
|
||||
# cela consiste à copier le fichier cvu_prereq.xml dans le répertoire d'install
|
||||
copy: src=cvu_prereq.xml dest={{ oracle_stage }}/database/stage/cvu owner={{ db_user }} group={{ oracle_group }} mode=644
|
||||
sudo: yes
|
||||
sudo_user: "{{ db_user }}"
|
||||
tags: patch_p19404309
|
||||
when: ansible_distribution_major_version == '7' and db_version == "11.2.0.4"
|
||||
|
||||
- name: Copie du fichier de réponse pour installation silencieuse
|
||||
template: src=db_install_{{ db_version }}.j2 dest={{ oracle_stage }}/{{ db_response_file }}
|
||||
sudo: yes
|
||||
sudo_user: "{{ db_user }}"
|
||||
tags: responsefile
|
||||
|
||||
- name: Création du script d installation silencieuse
|
||||
template: src=run_db_install.sh.j2 dest={{ oracle_stage }}/run_db_install.sh mode=755
|
||||
sudo: yes
|
||||
sudo_user: "{{ db_user }}"
|
||||
tags: responsefile
|
||||
|
||||
- name: Installation des binaires Oracle
|
||||
shell: "{{ oracle_stage }}/run_db_install.sh"
|
||||
sudo: yes
|
||||
sudo_user: "{{ db_user }}"
|
||||
register: oradbinstall
|
||||
tags: orainstall
|
||||
|
||||
- debug: var=oradbinstall.stdout_lines
|
||||
# with_items: oradbinstall.results
|
||||
tags: orainstall
|
||||
|
||||
- name: Vérification de l existance du fichier orainstRoot.sh
|
||||
stat: path="{{ oracle_inventory_loc }}/orainstRoot.sh"
|
||||
register: orainstRoot
|
||||
|
||||
- name: Exécution du script orainstRoot.sh
|
||||
shell: "{{ oracle_inventory_loc }}/orainstRoot.sh"
|
||||
sudo: yes
|
||||
sudo_user: root
|
||||
when: orainstRoot.stat.exists
|
||||
tags: runroot
|
||||
|
||||
- name: Exécution du script root.sh
|
||||
shell: "{{ db_home }}/root.sh"
|
||||
sudo: yes
|
||||
sudo_user: root
|
||||
tags: runroot
|
||||
|
||||
- name: Résultat de l installation via OPatch
|
||||
shell: "{{ db_home }}/OPatch/opatch lsinventory"
|
||||
sudo: yes
|
||||
sudo_user: "{{ db_user }}"
|
||||
register: opatchls
|
||||
tags: opatch
|
||||
|
||||
- debug: var=opatchls.stdout_lines
|
||||
# with_items: opatchls.results
|
||||
tags: opatch
|
||||
|
||||
# suppression des binaires, du fichier de réponse et du script d'install
|
||||
- name: suppression du repertoire des fichiers decompressés
|
||||
file: path={{ oracle_stage }}/database state=absent
|
||||
|
||||
- name: suppression du fichier de réponse
|
||||
file: path={{ oracle_stage }}/{{ db_response_file }} state=absent
|
||||
|
||||
- name: suppression du script d'installation
|
||||
file: path={{ oracle_stage }}/run_db_install.sh state=absent
|
||||
|
||||
136
install-oracle-sw/tasks/install_grid_infra.yml
Normal file
136
install-oracle-sw/tasks/install_grid_infra.yml
Normal file
@@ -0,0 +1,136 @@
|
||||
---
|
||||
#
|
||||
# installation des binaires ORACLE
|
||||
#
|
||||
|
||||
- name: Création des répertoires
|
||||
file: dest={{ item.dir }} mode={{ item.mode }} owner={{ item.owner }} group={{ item.group }} state=directory
|
||||
with_items:
|
||||
- { dir: "{{ oracle_racine }}", owner: "{{ gi_user }}", group: "{{ oracle_group }}", mode: 775 }
|
||||
- { dir: "{{ oracle_base }}", owner: "{{ db_user }}", group: "{{ oracle_group }}", mode: 755 }
|
||||
- { dir: "{{ oracle_racine }}/{{ gi_user }}", owner: "{{ gi_user }}", group: "{{ oracle_group }}", mode: 755 }
|
||||
- { dir: "{{ gi_home }}", owner: "{{ gi_user }}", group: "{{ oracle_group }}", mode: 775 }
|
||||
- { dir: "{{ oracle_stage }}", owner: "{{ gi_user }}", group: "{{ oracle_group }}", mode: 775 }
|
||||
tags: createdir
|
||||
|
||||
- name: vérification de l espace disque disponible sur oracle_racine
|
||||
action: shell df -P {{ oracle_racine }} | awk 'END { print $4 }'
|
||||
register: u01size
|
||||
failed_when: u01size.stdout|int < {{ u01_free_space_gb }} * 1024 * 1024
|
||||
tags: diskfreespace
|
||||
|
||||
- name: vérification de l espace disque disponible sur /tmp
|
||||
action: shell df -P /tmp | awk 'END { print $4 }'
|
||||
register: tmpsize
|
||||
failed_when: tmpsize.stdout|int < {{ tmp_free_space_gb }} * 1024 * 1024
|
||||
tags: diskfreespace
|
||||
|
||||
- name: Vérifier si une installation existe ...
|
||||
shell: grep "{{ gi_home }}" "{{ oracle_inventory_loc }}/ContentsXML/inventory.xml" | wc -l
|
||||
register: checkdbswinstall
|
||||
failed_when: checkdbswinstall.stdout != "0"
|
||||
tags: checkifexists
|
||||
|
||||
- name: Extraction des binaires Oracle
|
||||
unarchive: src={{ item[0].filename }} dest={{ oracle_stage }}
|
||||
with_nested:
|
||||
- "{{ gi_software }}"
|
||||
- "{{ gi_version }}"
|
||||
when: item[0].version == gi_version
|
||||
sudo: yes
|
||||
sudo_user: "{{ gi_user }}"
|
||||
tags: transfert
|
||||
|
||||
- name: Linux 7 - application du pacth 19404309 pour installer 11.2 sur Linux 7
|
||||
# https://updates.oracle.com/Orion/Services/download?type=readme&aru=17984752
|
||||
# cela consiste à copier le fichier cvu_prereq.xml dans le répertoire stage
|
||||
copy: src=cvu_prereq.xml dest={{ oracle_stage }}/grid/stage/cvu owner={{ gi_user }} group={{ oracle_group }} mode=644
|
||||
sudo: yes
|
||||
sudo_user: "{{ gi_user }}"
|
||||
tags: patch_p19404309
|
||||
when: ansible_distribution_major_version == '7' and db_version == "11.2.0.4"
|
||||
|
||||
- name: Copie du fichier de réponse pour installation silencieuse
|
||||
template: src=gi_install_{{ gi_version }}.j2 dest={{ oracle_stage }}/{{ gi_response_file }}
|
||||
sudo: yes
|
||||
sudo_user: "{{ gi_user }}"
|
||||
tags: responsefile
|
||||
|
||||
- name: Création du script d installation silencieuse
|
||||
template: src=run_gi_install.sh.j2 dest={{ oracle_stage }}/run_gi_install.sh mode=755
|
||||
sudo: yes
|
||||
sudo_user: "{{ gi_user }}"
|
||||
tags: responsefile
|
||||
|
||||
- name: Installation des binaires Oracle
|
||||
shell: "{{ oracle_stage }}/run_gi_install.sh"
|
||||
sudo: yes
|
||||
sudo_user: "{{ gi_user }}"
|
||||
register: oradbinstall
|
||||
tags: orainstall
|
||||
|
||||
- debug: var=oradbinstall.stdout_lines
|
||||
tags: orainstall
|
||||
|
||||
- name: Vérification de l existance du fichier orainstRoot.sh
|
||||
stat: path="{{ oracle_inventory_loc }}/orainstRoot.sh"
|
||||
register: orainstRoot
|
||||
|
||||
- name: Exécution du script orainstRoot.sh
|
||||
shell: "{{ oracle_inventory_loc }}/orainstRoot.sh"
|
||||
sudo: yes
|
||||
sudo_user: root
|
||||
when: orainstRoot.stat.exists
|
||||
tags: runroot
|
||||
|
||||
- name: Exécution du script root.sh
|
||||
shell: "{{ gi_home }}/root.sh"
|
||||
sudo: yes
|
||||
sudo_user: root
|
||||
register: rootsh
|
||||
tags: runroot
|
||||
|
||||
- debug: var=rootsh.stdout_lines
|
||||
tags: runroot
|
||||
|
||||
- name: Résultat de l installation via OPatch
|
||||
shell: "{{ gi_home }}/OPatch/opatch lsinventory"
|
||||
sudo: yes
|
||||
sudo_user: "{{ gi_user }}"
|
||||
register: opatchls
|
||||
tags: opatchgi
|
||||
|
||||
- debug: var=opatchls.stdout_lines
|
||||
tags: opatchgi
|
||||
|
||||
- name: Configuration GI standalone
|
||||
shell: "{{ gi_home }}/perl/bin/perl {{ gi_home }}/crs/install/roothas.pl"
|
||||
sudo: yes
|
||||
sudo_user: root
|
||||
register: roothas
|
||||
tags: roothas
|
||||
|
||||
- debug: var=roothas.stdout_lines
|
||||
tags: roothas
|
||||
|
||||
- name: Ajout de export ORACLE_HOME dans le bash_profile de grid
|
||||
lineinfile: dest=/home/grid/.bash_profile line="export ORACLE_HOME={{ gi_home }}" state=present create=yes
|
||||
tags: gi_bash_profile
|
||||
|
||||
- name: Ajout de export ORACLE_SID dans le bash_profile de grid
|
||||
lineinfile: dest=/home/grid/.bash_profile line="export ORACLE_SID={{ gi_user }}" state=present create=yes
|
||||
tags: gi_bash_profile
|
||||
|
||||
- name: Ajout de export PATH dans le bash_profile de grid
|
||||
lineinfile: dest=/home/grid/.bash_profile line="export PATH=$ORACLE_HOME/bin:$PATH" state=present create=yes
|
||||
tags: gi_bash_profile
|
||||
|
||||
# suppression des binaires, du fichier de réponse et du script d'install
|
||||
- name: suppression du repertoire des fichiers decompressés
|
||||
file: path={{ oracle_stage }}/grid state=absent
|
||||
|
||||
- name: suppression du fichier de réponse
|
||||
file: path={{ oracle_stage }}/{{ gi_response_file }} state=absent
|
||||
|
||||
- name: suppression du script d'installation
|
||||
file: path={{ oracle_stage }}/run_gi_install.sh state=absent
|
||||
18
install-oracle-sw/tasks/main.yml
Normal file
18
install-oracle-sw/tasks/main.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
#
|
||||
# installation des binaires ORACLE : grid infra et/ou database
|
||||
#
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration Linux : Utilisateurs et groupes
|
||||
# ---------------------------------------------------
|
||||
# - include: users_configuration.yml
|
||||
# when: install_grid_infra or install_database
|
||||
#
|
||||
# - include: install_grid_infra.yml
|
||||
# when: install_grid_infra
|
||||
#
|
||||
# - include: install_database.yml
|
||||
# when: install_database
|
||||
|
||||
- include: scripts_exploitation.yml
|
||||
30
install-oracle-sw/tasks/scripts_exploitation.yml
Normal file
30
install-oracle-sw/tasks/scripts_exploitation.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
# ---------------------------------------------------
|
||||
# ajout de script oracle pour les backups rman
|
||||
# ---------------------------------------------------
|
||||
|
||||
- name: Copie du script backup_rman.sh dans /home/oracle/scripts
|
||||
copy: src=backup_rman.sh dest=/home/oracle/scripts/ owner=oracle group=oinstall mode=755
|
||||
tags: rman_backup
|
||||
|
||||
# ---------------------------------------------------
|
||||
# copy du fichier oracledb dans /etc/init.d pour redémmarage auto
|
||||
# ---------------------------------------------------
|
||||
- name: Copie du script de démarrage auto des bases Oracle
|
||||
template: src=dbora_initd.j2 dest=/etc/init.d/dbora owner=root mode=755
|
||||
|
||||
- name: Activation par chkconfig du script de démarrage auto des bases Oracle
|
||||
service: name=dbora enabled=yes
|
||||
|
||||
- debug: msg="Le script /etc/init.d/dbora est postionné pour démarrer et arrêter les bases au reboot"
|
||||
- debug: msg="Pensez à mettre Y au lieu de N dans /etc/oratab pour les bases à démarreage automatique"
|
||||
- debug: msg="Pensez aussi à activier le script par chkconfig ou systemd"
|
||||
tags: dbora_init
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration Linux : config oracle pour logrotate
|
||||
# ---------------------------------------------------
|
||||
- name: Copie du fichier de configuration pour logrotate
|
||||
template: src=logrotate_oracle.j2 dest=/etc/logrotate.d/oracle mode=644 owner=root
|
||||
tags: logrotate
|
||||
|
||||
30
install-oracle-sw/tasks/users_configuration.yml
Normal file
30
install-oracle-sw/tasks/users_configuration.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
# ---------------------------------------------------
|
||||
# configuration Linux : Utilisateurs et groupes
|
||||
# ---------------------------------------------------
|
||||
|
||||
- name: Création des groupes
|
||||
group: name={{ item.group }} gid={{ item.gid }} state=present
|
||||
with_items: "{{ oracle_groups }}"
|
||||
tags: group
|
||||
|
||||
- name: Création du compte Oracle
|
||||
user:
|
||||
name={{ item.username }} group={{ item.primgroup }}
|
||||
groups={{ item.othergroups }} uid={{ item.uid }}
|
||||
generate_ssh_key=yes append=yes state=present password={{ item.passwd }}
|
||||
with_items: "{{ oracle_users }}"
|
||||
ignore_errors: true
|
||||
tags: user
|
||||
|
||||
- name: Création du compte grid
|
||||
user:
|
||||
name={{ item.username }} group={{ item.primgroup }}
|
||||
groups={{ item.othergroups }} uid={{ item.uid }}
|
||||
generate_ssh_key=yes append=yes state=present password={{ item.passwd }}
|
||||
with_items: "{{ grid_users }}"
|
||||
when: role_separation
|
||||
ignore_errors: true
|
||||
tags: user
|
||||
|
||||
|
||||
482
install-oracle-sw/templates/db-install.rsp.11.2.0.3.j2
Normal file
482
install-oracle-sw/templates/db-install.rsp.11.2.0.3.j2
Normal file
@@ -0,0 +1,482 @@
|
||||
# {{ ansible_managed }}
|
||||
####################################################################
|
||||
## Copyright(c) Oracle Corporation 1998,2013. All rights reserved.##
|
||||
## ##
|
||||
## Specify values for the variables listed below to customize ##
|
||||
## your installation. ##
|
||||
## ##
|
||||
## Each variable is associated with a comment. The comment ##
|
||||
## can help to populate the variables with the appropriate ##
|
||||
## values. ##
|
||||
## ##
|
||||
## IMPORTANT NOTE: This file contains plain text passwords and ##
|
||||
## should be secured to have read permission only by oracle user ##
|
||||
## or db administrator who owns this installation. ##
|
||||
## ##
|
||||
####################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Do not change the following system generated value.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the installation option.
|
||||
# It can be one of the following:
|
||||
# - INSTALL_DB_SWONLY
|
||||
# - INSTALL_DB_AND_CONFIG
|
||||
# - UPGRADE_DB
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.option=INSTALL_DB_SWONLY
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the hostname of the system as set during the install. It can be used
|
||||
# to force the installation to use an alternative hostname rather than using the
|
||||
# first hostname found on the system. (e.g., for systems with multiple hostnames
|
||||
# and network interfaces)
|
||||
#-------------------------------------------------------------------------------
|
||||
ORACLE_HOSTNAME={{ ansible_hostname }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Unix group to be set for the inventory directory.
|
||||
#-------------------------------------------------------------------------------
|
||||
UNIX_GROUP_NAME={{ oracle_group }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the location which holds the inventory files.
|
||||
# This is an optional parameter if installing on
|
||||
# Windows based Operating System.
|
||||
#-------------------------------------------------------------------------------
|
||||
INVENTORY_LOCATION={{ oracle_inventory_loc }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the languages in which the components will be installed.
|
||||
#
|
||||
# en : English ja : Japanese
|
||||
# fr : French ko : Korean
|
||||
# ar : Arabic es : Latin American Spanish
|
||||
# bn : Bengali lv : Latvian
|
||||
# pt_BR: Brazilian Portuguese lt : Lithuanian
|
||||
# bg : Bulgarian ms : Malay
|
||||
# fr_CA: Canadian French es_MX: Mexican Spanish
|
||||
# ca : Catalan no : Norwegian
|
||||
# hr : Croatian pl : Polish
|
||||
# cs : Czech pt : Portuguese
|
||||
# da : Danish ro : Romanian
|
||||
# nl : Dutch ru : Russian
|
||||
# ar_EG: Egyptian zh_CN: Simplified Chinese
|
||||
# en_GB: English (Great Britain) sk : Slovak
|
||||
# et : Estonian sl : Slovenian
|
||||
# fi : Finnish es_ES: Spanish
|
||||
# de : German sv : Swedish
|
||||
# el : Greek th : Thai
|
||||
# iw : Hebrew zh_TW: Traditional Chinese
|
||||
# hu : Hungarian tr : Turkish
|
||||
# is : Icelandic uk : Ukrainian
|
||||
# in : Indonesian vi : Vietnamese
|
||||
# it : Italian
|
||||
#
|
||||
# all_langs : All languages
|
||||
#
|
||||
# Specify value as the following to select any of the languages.
|
||||
# Example : SELECTED_LANGUAGES=en,fr,ja
|
||||
#
|
||||
# Specify value as the following to select all the languages.
|
||||
# Example : SELECTED_LANGUAGES=all_langs
|
||||
#------------------------------------------------------------------------------
|
||||
SELECTED_LANGUAGES=en
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the complete path of the Oracle Home.
|
||||
#------------------------------------------------------------------------------
|
||||
ORACLE_HOME={{ oracle_home_db_install }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the complete path of the Oracle Base.
|
||||
#------------------------------------------------------------------------------
|
||||
ORACLE_BASE={{ oracle_base }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the installation edition of the component.
|
||||
#
|
||||
# The value should contain only one of these choices.
|
||||
# - EE : Enterprise Edition
|
||||
# - SE : Standard Edition
|
||||
# - SEONE : Standard Edition One
|
||||
# - PE : Personal Edition (WINDOWS ONLY)
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.InstallEdition={{ item.0.oracle_edition }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable is used to enable or disable custom install and is considered
|
||||
# only if InstallEdition is EE.
|
||||
#
|
||||
# true : Components mentioned as part of 'optionalComponents' property
|
||||
# are considered for install.
|
||||
# false : Value for 'optionalComponents' is not considered.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.EEOptionsSelection=false
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable is considered only if 'EEOptionsSelection' is set to true.
|
||||
#
|
||||
# Description: List of Enterprise Edition Options you would like to enable.
|
||||
#
|
||||
# The following choices are available. You may specify any
|
||||
# combination of these choices. The components you choose should
|
||||
# be specified in the form "internal-component-name:version"
|
||||
# Below is a list of components you may specify to enable.
|
||||
#
|
||||
# oracle.oraolap:11.2.0.4.0 - Oracle OLAP
|
||||
# oracle.rdbms.dm:11.2.0.4.0 - Oracle Data Mining
|
||||
# oracle.rdbms.dv:11.2.0.4.0 - Oracle Database Vault
|
||||
# oracle.rdbms.lbac:11.2.0.4.0 - Oracle Label Security
|
||||
# oracle.rdbms.partitioning:11.2.0.4.0 - Oracle Partitioning
|
||||
# oracle.rdbms.rat:11.2.0.4.0 - Oracle Real Application Testing
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.4.0,oracle.oraolap:11.2.0.4.0,oracle.rdbms.dm:11.2.0.4.0,oracle.rdbms.dv:11.2.0.4.0,oracle.rdbms.lbac:11.2.0.4.0,oracle.rdbms.rat:11.2.0.4.0
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# PRIVILEGED OPERATING SYSTEM GROUPS #
|
||||
# ------------------------------------------ #
|
||||
# Provide values for the OS groups to which OSDBA and OSOPER privileges #
|
||||
# needs to be granted. If the install is being performed as a member of the #
|
||||
# group "dba", then that will be used unless specified otherwise below. #
|
||||
# #
|
||||
# The value to be specified for OSDBA and OSOPER group is only for UNIX based #
|
||||
# Operating System. #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.DBA_GROUP={{ oracle_group }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
|
||||
# The value to be specified for OSOPER group is optional.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.OPER_GROUP={{ oracle_group }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the cluster node names selected during the installation.
|
||||
# Example : oracle.install.db.CLUSTER_NODES=node1,node2
|
||||
#------------------------------------------------------------------------------
|
||||
{% if configure_cluster==True %}
|
||||
{% if oracle_gi_cluster_type |upper == 'FLEX' %}
|
||||
oracle.install.db.CLUSTER_NODES={% for host in groups[hostgroup_hub] -%} {{host}} {%- if not loop.last -%} , {%- endif -%} {%- endfor %}
|
||||
{% else %}
|
||||
oracle.install.db.CLUSTER_NODES={% for host in groups[hostgroup] -%} {{host}} {%- if not loop.last -%} , {%- endif -%} {%- endfor %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable is used to enable or disable RAC One Node install.
|
||||
#
|
||||
# - true : Value of RAC One Node service name is used.
|
||||
# - false : Value of RAC One Node service name is not used.
|
||||
#
|
||||
# If left blank, it will be assumed to be false
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.isRACOneInstall={{ item.0.is_racone }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the name for RAC One Node Service.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.racOneServiceName={{ item.0.service_name }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the type of database to create.
|
||||
# It can be one of the following:
|
||||
# - GENERAL_PURPOSE/TRANSACTION_PROCESSING
|
||||
# - DATA_WAREHOUSE
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.type=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Starter Database Global Database Name.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.globalDBName=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Starter Database SID.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.SID=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Starter Database character set.
|
||||
#
|
||||
# It can be one of the following:
|
||||
# AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,
|
||||
# EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,
|
||||
# BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,
|
||||
# AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,
|
||||
# IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,
|
||||
# KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,
|
||||
# ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.characterSet=AL32UTF8
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable should be set to true if Automatic Memory Management
|
||||
# in Database is desired.
|
||||
# If Automatic Memory Management is not desired, and memory allocation
|
||||
# is to be done manually, then set it to false.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.memoryOption=false
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the total memory allocation for the database. Value(in MB) should be
|
||||
# at least 256 MB, and should not exceed the total physical memory available
|
||||
# on the system.
|
||||
# Example: oracle.install.db.config.starterdb.memoryLimit=512
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.memoryLimit=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable controls whether to load Example Schemas onto
|
||||
# the starter database or not.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.installExampleSchemas=false
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable includes enabling audit settings, configuring password profiles
|
||||
# and revoking some grants to public. These settings are provided by default.
|
||||
# These settings may also be disabled.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.enableSecuritySettings=true
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# Passwords can be supplied for the following four schemas in the #
|
||||
# starter database: #
|
||||
# SYS #
|
||||
# SYSTEM #
|
||||
# SYSMAN (used by Enterprise Manager) #
|
||||
# DBSNMP (used by Enterprise Manager) #
|
||||
# #
|
||||
# Same password can be used for all accounts (not recommended) #
|
||||
# or different passwords for each account can be provided (recommended) #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable holds the password that is to be used for all schemas in the
|
||||
# starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.ALL=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the SYS password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.SYS=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the SYSTEM password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.SYSTEM=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the SYSMAN password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.SYSMAN=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the DBSNMP password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.DBSNMP=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the management option to be selected for the starter database.
|
||||
# It can be one of the following:
|
||||
# - GRID_CONTROL
|
||||
# - DB_CONTROL
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.control=DB_CONTROL
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Management Service to use if Grid Control is selected to manage
|
||||
# the database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# SPECIFY BACKUP AND RECOVERY OPTIONS #
|
||||
# ------------------------------------ #
|
||||
# Out-of-box backup and recovery options for the database can be mentioned #
|
||||
# using the entries below. #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable is to be set to false if automated backup is not required. Else
|
||||
# this can be set to true.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.automatedBackup.enable=false
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Regardless of the type of storage that is chosen for backup and recovery, if
|
||||
# automated backups are enabled, a job will be scheduled to run daily to backup
|
||||
# the database. This job will run as the operating system user that is
|
||||
# specified in this variable.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.automatedBackup.osuid=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Regardless of the type of storage that is chosen for backup and recovery, if
|
||||
# automated backups are enabled, a job will be scheduled to run daily to backup
|
||||
# the database. This job will run as the operating system user specified by the
|
||||
# above entry. The following entry stores the password for the above operating
|
||||
# system user.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.automatedBackup.ospwd=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the type of storage to use for the database.
|
||||
# It can be one of the following:
|
||||
# - FILE_SYSTEM_STORAGE
|
||||
# - ASM_STORAGE
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.storageType=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the database file location which is a directory for datafiles, control
|
||||
# files, redo logs.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the backup and recovery location.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the existing ASM disk groups to be used for storage.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.asm.diskGroup=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the password for ASMSNMP user of the ASM instance.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.asm.ASMSNMPPassword=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username.
|
||||
#
|
||||
# Example : MYORACLESUPPORT_USERNAME=abc@oracle.com
|
||||
#------------------------------------------------------------------------------
|
||||
MYORACLESUPPORT_USERNAME=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username password.
|
||||
#
|
||||
# Example : MYORACLESUPPORT_PASSWORD=password
|
||||
#------------------------------------------------------------------------------
|
||||
MYORACLESUPPORT_PASSWORD=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify whether to enable the user to set the password for
|
||||
# My Oracle Support credentials. The value can be either true or false.
|
||||
# If left blank it will be assumed to be false.
|
||||
#
|
||||
# Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
|
||||
#------------------------------------------------------------------------------
|
||||
SECURITY_UPDATES_VIA_MYORACLESUPPORT=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify whether user doesn't want to configure Security Updates.
|
||||
# The value for this variable should be true if you don't want to configure
|
||||
# Security Updates, false otherwise.
|
||||
#
|
||||
# The value can be either true or false. If left blank it will be assumed
|
||||
# to be false.
|
||||
#
|
||||
# Example : DECLINE_SECURITY_UPDATES=false
|
||||
#------------------------------------------------------------------------------
|
||||
DECLINE_SECURITY_UPDATES=true
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Proxy server name. Length should be greater than zero.
|
||||
#
|
||||
# Example : PROXY_HOST=proxy.domain.com
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_HOST=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy port number. Should be Numeric and at least 2 chars.
|
||||
#
|
||||
# Example : PROXY_PORT=25
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_PORT=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
|
||||
# blank if your proxy server requires no authentication.
|
||||
#
|
||||
# Example : PROXY_USER=username
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_USER=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy password. Leave PROXY_USER and PROXY_PWD
|
||||
# blank if your proxy server requires no authentication.
|
||||
#
|
||||
# Example : PROXY_PWD=password
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_PWD=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy realm. This value is used if auto-updates option is selected.
|
||||
#
|
||||
# Example : PROXY_REALM=metalink
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_REALM=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Oracle Support Hub URL.
|
||||
#
|
||||
# Example : COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/
|
||||
#------------------------------------------------------------------------------
|
||||
COLLECTOR_SUPPORTHUB_URL=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the auto-updates option. It can be one of the following:
|
||||
# - MYORACLESUPPORT_DOWNLOAD
|
||||
# - OFFLINE_UPDATES
|
||||
# - SKIP_UPDATES
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.installer.autoupdates.option=
|
||||
#------------------------------------------------------------------------------
|
||||
# In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location where
|
||||
# the updates are to be downloaded.
|
||||
# In case OFFLINE_UPDATES option is chosen, specify the location where the updates
|
||||
# are present.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.installer.autoupdates.downloadUpdatesLoc=
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username which has the patches download privileges
|
||||
# to be used for software updates.
|
||||
# Example : AUTOUPDATES_MYORACLESUPPORT_USERNAME=abc@oracle.com
|
||||
#------------------------------------------------------------------------------
|
||||
AUTOUPDATES_MYORACLESUPPORT_USERNAME=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username password which has the patches download privileges
|
||||
# to be used for software updates.
|
||||
#
|
||||
# Example : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password
|
||||
#------------------------------------------------------------------------------
|
||||
AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
|
||||
482
install-oracle-sw/templates/db-install.rsp.11.2.0.4.j2
Normal file
482
install-oracle-sw/templates/db-install.rsp.11.2.0.4.j2
Normal file
@@ -0,0 +1,482 @@
|
||||
# {{ ansible_managed }}
|
||||
####################################################################
|
||||
## Copyright(c) Oracle Corporation 1998,2013. All rights reserved.##
|
||||
## ##
|
||||
## Specify values for the variables listed below to customize ##
|
||||
## your installation. ##
|
||||
## ##
|
||||
## Each variable is associated with a comment. The comment ##
|
||||
## can help to populate the variables with the appropriate ##
|
||||
## values. ##
|
||||
## ##
|
||||
## IMPORTANT NOTE: This file contains plain text passwords and ##
|
||||
## should be secured to have read permission only by oracle user ##
|
||||
## or db administrator who owns this installation. ##
|
||||
## ##
|
||||
####################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Do not change the following system generated value.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the installation option.
|
||||
# It can be one of the following:
|
||||
# - INSTALL_DB_SWONLY
|
||||
# - INSTALL_DB_AND_CONFIG
|
||||
# - UPGRADE_DB
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.option=INSTALL_DB_SWONLY
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the hostname of the system as set during the install. It can be used
|
||||
# to force the installation to use an alternative hostname rather than using the
|
||||
# first hostname found on the system. (e.g., for systems with multiple hostnames
|
||||
# and network interfaces)
|
||||
#-------------------------------------------------------------------------------
|
||||
ORACLE_HOSTNAME={{ ansible_hostname }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Unix group to be set for the inventory directory.
|
||||
#-------------------------------------------------------------------------------
|
||||
UNIX_GROUP_NAME={{ oracle_group }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the location which holds the inventory files.
|
||||
# This is an optional parameter if installing on
|
||||
# Windows based Operating System.
|
||||
#-------------------------------------------------------------------------------
|
||||
INVENTORY_LOCATION={{ oracle_inventory_loc }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the languages in which the components will be installed.
|
||||
#
|
||||
# en : English ja : Japanese
|
||||
# fr : French ko : Korean
|
||||
# ar : Arabic es : Latin American Spanish
|
||||
# bn : Bengali lv : Latvian
|
||||
# pt_BR: Brazilian Portuguese lt : Lithuanian
|
||||
# bg : Bulgarian ms : Malay
|
||||
# fr_CA: Canadian French es_MX: Mexican Spanish
|
||||
# ca : Catalan no : Norwegian
|
||||
# hr : Croatian pl : Polish
|
||||
# cs : Czech pt : Portuguese
|
||||
# da : Danish ro : Romanian
|
||||
# nl : Dutch ru : Russian
|
||||
# ar_EG: Egyptian zh_CN: Simplified Chinese
|
||||
# en_GB: English (Great Britain) sk : Slovak
|
||||
# et : Estonian sl : Slovenian
|
||||
# fi : Finnish es_ES: Spanish
|
||||
# de : German sv : Swedish
|
||||
# el : Greek th : Thai
|
||||
# iw : Hebrew zh_TW: Traditional Chinese
|
||||
# hu : Hungarian tr : Turkish
|
||||
# is : Icelandic uk : Ukrainian
|
||||
# in : Indonesian vi : Vietnamese
|
||||
# it : Italian
|
||||
#
|
||||
# all_langs : All languages
|
||||
#
|
||||
# Specify value as the following to select any of the languages.
|
||||
# Example : SELECTED_LANGUAGES=en,fr,ja
|
||||
#
|
||||
# Specify value as the following to select all the languages.
|
||||
# Example : SELECTED_LANGUAGES=all_langs
|
||||
#------------------------------------------------------------------------------
|
||||
SELECTED_LANGUAGES=en
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the complete path of the Oracle Home.
|
||||
#------------------------------------------------------------------------------
|
||||
ORACLE_HOME={{ oracle_home_db_install }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the complete path of the Oracle Base.
|
||||
#------------------------------------------------------------------------------
|
||||
ORACLE_BASE={{ oracle_base }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the installation edition of the component.
|
||||
#
|
||||
# The value should contain only one of these choices.
|
||||
# - EE : Enterprise Edition
|
||||
# - SE : Standard Edition
|
||||
# - SEONE : Standard Edition One
|
||||
# - PE : Personal Edition (WINDOWS ONLY)
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.InstallEdition={{ item.0.oracle_edition }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable is used to enable or disable custom install and is considered
|
||||
# only if InstallEdition is EE.
|
||||
#
|
||||
# true : Components mentioned as part of 'optionalComponents' property
|
||||
# are considered for install.
|
||||
# false : Value for 'optionalComponents' is not considered.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.EEOptionsSelection=false
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable is considered only if 'EEOptionsSelection' is set to true.
|
||||
#
|
||||
# Description: List of Enterprise Edition Options you would like to enable.
|
||||
#
|
||||
# The following choices are available. You may specify any
|
||||
# combination of these choices. The components you choose should
|
||||
# be specified in the form "internal-component-name:version"
|
||||
# Below is a list of components you may specify to enable.
|
||||
#
|
||||
# oracle.oraolap:11.2.0.4.0 - Oracle OLAP
|
||||
# oracle.rdbms.dm:11.2.0.4.0 - Oracle Data Mining
|
||||
# oracle.rdbms.dv:11.2.0.4.0 - Oracle Database Vault
|
||||
# oracle.rdbms.lbac:11.2.0.4.0 - Oracle Label Security
|
||||
# oracle.rdbms.partitioning:11.2.0.4.0 - Oracle Partitioning
|
||||
# oracle.rdbms.rat:11.2.0.4.0 - Oracle Real Application Testing
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.4.0,oracle.oraolap:11.2.0.4.0,oracle.rdbms.dm:11.2.0.4.0,oracle.rdbms.dv:11.2.0.4.0,oracle.rdbms.lbac:11.2.0.4.0,oracle.rdbms.rat:11.2.0.4.0
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# PRIVILEGED OPERATING SYSTEM GROUPS #
|
||||
# ------------------------------------------ #
|
||||
# Provide values for the OS groups to which OSDBA and OSOPER privileges #
|
||||
# needs to be granted. If the install is being performed as a member of the #
|
||||
# group "dba", then that will be used unless specified otherwise below. #
|
||||
# #
|
||||
# The value to be specified for OSDBA and OSOPER group is only for UNIX based #
|
||||
# Operating System. #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.DBA_GROUP={{ oracle_group }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
|
||||
# The value to be specified for OSOPER group is optional.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.OPER_GROUP={{ oracle_group }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the cluster node names selected during the installation.
|
||||
# Example : oracle.install.db.CLUSTER_NODES=node1,node2
|
||||
#------------------------------------------------------------------------------
|
||||
{% if configure_cluster==True %}
|
||||
{% if oracle_gi_cluster_type |upper == 'FLEX' %}
|
||||
oracle.install.db.CLUSTER_NODES={% for host in groups[hostgroup_hub] -%} {{host}} {%- if not loop.last -%} , {%- endif -%} {%- endfor %}
|
||||
{% else %}
|
||||
oracle.install.db.CLUSTER_NODES={% for host in groups[hostgroup] -%} {{host}} {%- if not loop.last -%} , {%- endif -%} {%- endfor %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable is used to enable or disable RAC One Node install.
|
||||
#
|
||||
# - true : Value of RAC One Node service name is used.
|
||||
# - false : Value of RAC One Node service name is not used.
|
||||
#
|
||||
# If left blank, it will be assumed to be false
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.isRACOneInstall={{ item.0.is_racone }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the name for RAC One Node Service.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.racOneServiceName={{ item.0.service_name }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the type of database to create.
|
||||
# It can be one of the following:
|
||||
# - GENERAL_PURPOSE/TRANSACTION_PROCESSING
|
||||
# - DATA_WAREHOUSE
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.type=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Starter Database Global Database Name.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.globalDBName=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Starter Database SID.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.SID=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Starter Database character set.
|
||||
#
|
||||
# It can be one of the following:
|
||||
# AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,
|
||||
# EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,
|
||||
# BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,
|
||||
# AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,
|
||||
# IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,
|
||||
# KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,
|
||||
# ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.characterSet=AL32UTF8
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable should be set to true if Automatic Memory Management
|
||||
# in Database is desired.
|
||||
# If Automatic Memory Management is not desired, and memory allocation
|
||||
# is to be done manually, then set it to false.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.memoryOption=false
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the total memory allocation for the database. Value(in MB) should be
|
||||
# at least 256 MB, and should not exceed the total physical memory available
|
||||
# on the system.
|
||||
# Example: oracle.install.db.config.starterdb.memoryLimit=512
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.memoryLimit=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable controls whether to load Example Schemas onto
|
||||
# the starter database or not.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.installExampleSchemas=false
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable includes enabling audit settings, configuring password profiles
|
||||
# and revoking some grants to public. These settings are provided by default.
|
||||
# These settings may also be disabled.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.enableSecuritySettings=true
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# Passwords can be supplied for the following four schemas in the #
|
||||
# starter database: #
|
||||
# SYS #
|
||||
# SYSTEM #
|
||||
# SYSMAN (used by Enterprise Manager) #
|
||||
# DBSNMP (used by Enterprise Manager) #
|
||||
# #
|
||||
# Same password can be used for all accounts (not recommended) #
|
||||
# or different passwords for each account can be provided (recommended) #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable holds the password that is to be used for all schemas in the
|
||||
# starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.ALL=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the SYS password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.SYS=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the SYSTEM password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.SYSTEM=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the SYSMAN password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.SYSMAN=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the DBSNMP password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.DBSNMP=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the management option to be selected for the starter database.
|
||||
# It can be one of the following:
|
||||
# - GRID_CONTROL
|
||||
# - DB_CONTROL
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.control=DB_CONTROL
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Management Service to use if Grid Control is selected to manage
|
||||
# the database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# SPECIFY BACKUP AND RECOVERY OPTIONS #
|
||||
# ------------------------------------ #
|
||||
# Out-of-box backup and recovery options for the database can be mentioned #
|
||||
# using the entries below. #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable is to be set to false if automated backup is not required. Else
|
||||
# this can be set to true.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.automatedBackup.enable=false
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Regardless of the type of storage that is chosen for backup and recovery, if
|
||||
# automated backups are enabled, a job will be scheduled to run daily to backup
|
||||
# the database. This job will run as the operating system user that is
|
||||
# specified in this variable.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.automatedBackup.osuid=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Regardless of the type of storage that is chosen for backup and recovery, if
|
||||
# automated backups are enabled, a job will be scheduled to run daily to backup
|
||||
# the database. This job will run as the operating system user specified by the
|
||||
# above entry. The following entry stores the password for the above operating
|
||||
# system user.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.automatedBackup.ospwd=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the type of storage to use for the database.
|
||||
# It can be one of the following:
|
||||
# - FILE_SYSTEM_STORAGE
|
||||
# - ASM_STORAGE
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.storageType=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the database file location which is a directory for datafiles, control
|
||||
# files, redo logs.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the backup and recovery location.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the existing ASM disk groups to be used for storage.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.asm.diskGroup=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the password for ASMSNMP user of the ASM instance.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.asm.ASMSNMPPassword=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username.
|
||||
#
|
||||
# Example : MYORACLESUPPORT_USERNAME=abc@oracle.com
|
||||
#------------------------------------------------------------------------------
|
||||
MYORACLESUPPORT_USERNAME=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username password.
|
||||
#
|
||||
# Example : MYORACLESUPPORT_PASSWORD=password
|
||||
#------------------------------------------------------------------------------
|
||||
MYORACLESUPPORT_PASSWORD=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify whether to enable the user to set the password for
|
||||
# My Oracle Support credentials. The value can be either true or false.
|
||||
# If left blank it will be assumed to be false.
|
||||
#
|
||||
# Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
|
||||
#------------------------------------------------------------------------------
|
||||
SECURITY_UPDATES_VIA_MYORACLESUPPORT=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify whether user doesn't want to configure Security Updates.
|
||||
# The value for this variable should be true if you don't want to configure
|
||||
# Security Updates, false otherwise.
|
||||
#
|
||||
# The value can be either true or false. If left blank it will be assumed
|
||||
# to be false.
|
||||
#
|
||||
# Example : DECLINE_SECURITY_UPDATES=false
|
||||
#------------------------------------------------------------------------------
|
||||
DECLINE_SECURITY_UPDATES=true
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Proxy server name. Length should be greater than zero.
|
||||
#
|
||||
# Example : PROXY_HOST=proxy.domain.com
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_HOST=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy port number. Should be Numeric and at least 2 chars.
|
||||
#
|
||||
# Example : PROXY_PORT=25
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_PORT=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
|
||||
# blank if your proxy server requires no authentication.
|
||||
#
|
||||
# Example : PROXY_USER=username
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_USER=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy password. Leave PROXY_USER and PROXY_PWD
|
||||
# blank if your proxy server requires no authentication.
|
||||
#
|
||||
# Example : PROXY_PWD=password
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_PWD=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy realm. This value is used if auto-updates option is selected.
|
||||
#
|
||||
# Example : PROXY_REALM=metalink
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_REALM=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Oracle Support Hub URL.
|
||||
#
|
||||
# Example : COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/
|
||||
#------------------------------------------------------------------------------
|
||||
COLLECTOR_SUPPORTHUB_URL=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the auto-updates option. It can be one of the following:
|
||||
# - MYORACLESUPPORT_DOWNLOAD
|
||||
# - OFFLINE_UPDATES
|
||||
# - SKIP_UPDATES
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.installer.autoupdates.option=
|
||||
#------------------------------------------------------------------------------
|
||||
# In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location where
|
||||
# the updates are to be downloaded.
|
||||
# In case OFFLINE_UPDATES option is chosen, specify the location where the updates
|
||||
# are present.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.installer.autoupdates.downloadUpdatesLoc=
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username which has the patches download privileges
|
||||
# to be used for software updates.
|
||||
# Example : AUTOUPDATES_MYORACLESUPPORT_USERNAME=abc@oracle.com
|
||||
#------------------------------------------------------------------------------
|
||||
AUTOUPDATES_MYORACLESUPPORT_USERNAME=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username password which has the patches download privileges
|
||||
# to be used for software updates.
|
||||
#
|
||||
# Example : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password
|
||||
#------------------------------------------------------------------------------
|
||||
AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
|
||||
495
install-oracle-sw/templates/db-install.rsp.12.1.0.1.j2
Normal file
495
install-oracle-sw/templates/db-install.rsp.12.1.0.1.j2
Normal file
@@ -0,0 +1,495 @@
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
####################################################################
|
||||
## Copyright(c) Oracle Corporation 1998,2014. All rights reserved.##
|
||||
## ##
|
||||
## Specify values for the variables listed below to customize ##
|
||||
## your installation. ##
|
||||
## ##
|
||||
## Each variable is associated with a comment. The comment ##
|
||||
## can help to populate the variables with the appropriate ##
|
||||
## values. ##
|
||||
## ##
|
||||
## IMPORTANT NOTE: This file contains plain text passwords and ##
|
||||
## should be secured to have read permission only by oracle user ##
|
||||
## or db administrator who owns this installation. ##
|
||||
## ##
|
||||
####################################################################
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Do not change the following system generated value.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the installation option.
|
||||
# It can be one of the following:
|
||||
# - INSTALL_DB_SWONLY
|
||||
# - INSTALL_DB_AND_CONFIG
|
||||
# - UPGRADE_DB
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.option=INSTALL_DB_SWONLY
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the hostname of the system as set during the install. It can be used
|
||||
# to force the installation to use an alternative hostname rather than using the
|
||||
# first hostname found on the system. (e.g., for systems with multiple hostnames
|
||||
# and network interfaces)
|
||||
#-------------------------------------------------------------------------------
|
||||
ORACLE_HOSTNAME={{ ansible_hostname }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Unix group to be set for the inventory directory.
|
||||
#-------------------------------------------------------------------------------
|
||||
UNIX_GROUP_NAME={{ oracle_group }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the location which holds the inventory files.
|
||||
# This is an optional parameter if installing on
|
||||
# Windows based Operating System.
|
||||
#-------------------------------------------------------------------------------
|
||||
INVENTORY_LOCATION={{ oracle_inventory_loc }}
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the languages in which the components will be installed.
|
||||
#
|
||||
# en : English ja : Japanese
|
||||
# fr : French ko : Korean
|
||||
# ar : Arabic es : Latin American Spanish
|
||||
# bn : Bengali lv : Latvian
|
||||
# pt_BR: Brazilian Portuguese lt : Lithuanian
|
||||
# bg : Bulgarian ms : Malay
|
||||
# fr_CA: Canadian French es_MX: Mexican Spanish
|
||||
# ca : Catalan no : Norwegian
|
||||
# hr : Croatian pl : Polish
|
||||
# cs : Czech pt : Portuguese
|
||||
# da : Danish ro : Romanian
|
||||
# nl : Dutch ru : Russian
|
||||
# ar_EG: Egyptian zh_CN: Simplified Chinese
|
||||
# en_GB: English (Great Britain) sk : Slovak
|
||||
# et : Estonian sl : Slovenian
|
||||
# fi : Finnish es_ES: Spanish
|
||||
# de : German sv : Swedish
|
||||
# el : Greek th : Thai
|
||||
# iw : Hebrew zh_TW: Traditional Chinese
|
||||
# hu : Hungarian tr : Turkish
|
||||
# is : Icelandic uk : Ukrainian
|
||||
# in : Indonesian vi : Vietnamese
|
||||
# it : Italian
|
||||
#
|
||||
# all_langs : All languages
|
||||
#
|
||||
# Specify value as the following to select any of the languages.
|
||||
# Example : SELECTED_LANGUAGES=en,fr,ja
|
||||
#
|
||||
# Specify value as the following to select all the languages.
|
||||
# Example : SELECTED_LANGUAGES=all_langs
|
||||
#-------------------------------------------------------------------------------
|
||||
SELECTED_LANGUAGES=en
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the complete path of the Oracle Home.
|
||||
#-------------------------------------------------------------------------------
|
||||
ORACLE_HOME={{ oracle_home_db_install }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the complete path of the Oracle Base.
|
||||
#-------------------------------------------------------------------------------
|
||||
ORACLE_BASE={{ oracle_base }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the installation edition of the component.
|
||||
#
|
||||
# The value should contain only one of these choices.
|
||||
# - EE : Enterprise Edition
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.InstallEdition={{ item.0.oracle_edition }}
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# PRIVILEGED OPERATING SYSTEM GROUPS #
|
||||
# ------------------------------------------ #
|
||||
# Provide values for the OS groups to which OSDBA and OSOPER privileges #
|
||||
# needs to be granted. If the install is being performed as a member of the #
|
||||
# group "dba", then that will be used unless specified otherwise below. #
|
||||
# #
|
||||
# The value to be specified for OSDBA and OSOPER group is only for UNIX based #
|
||||
# Operating System. #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.DBA_GROUP={{ oracle_group }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
|
||||
# The value to be specified for OSOPER group is optional.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.OPER_GROUP={{ oracle_group }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The BACKUPDBA_GROUP is the OS group which is to be granted OSBACKUPDBA privileges.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.BACKUPDBA_GROUP={{ oracle_group }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The DGDBA_GROUP is the OS group which is to be granted OSDGDBA privileges.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.DGDBA_GROUP={{ oracle_group }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The KMDBA_GROUP is the OS group which is to be granted OSKMDBA privileges.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.KMDBA_GROUP={{ oracle_group }}
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# Grid Options #
|
||||
# #
|
||||
###############################################################################
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the type of Real Application Cluster Database
|
||||
#
|
||||
# - ADMIN_MANAGED: Admin-Managed
|
||||
# - POLICY_MANAGED: Policy-Managed
|
||||
#
|
||||
# If left unspecified, default will be ADMIN_MANAGED
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.rac.configurationType=ADMIN_MANAGED
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Value is required only if RAC database type is ADMIN_MANAGED
|
||||
#
|
||||
# Specify the cluster node names selected during the installation.
|
||||
# Leaving it blank will result in install on local server only (Single Instance)
|
||||
#
|
||||
# Example : oracle.install.db.CLUSTER_NODES=node1,node2
|
||||
#------------------------------------------------------------------------------
|
||||
{% if configure_cluster==True %}
|
||||
{% if oracle_gi_cluster_type |upper == 'FLEX' %}
|
||||
oracle.install.db.CLUSTER_NODES={% for host in groups[hostgroup_hub] -%} {{host}} {%- if not loop.last -%} , {%- endif -%} {%- endfor %}
|
||||
{% else %}
|
||||
oracle.install.db.CLUSTER_NODES={% for host in groups[hostgroup] -%} {{host}} {%- if not loop.last -%} , {%- endif -%} {%- endfor %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable is used to enable or disable RAC One Node install.
|
||||
#
|
||||
# - true : Value of RAC One Node service name is used.
|
||||
# - false : Value of RAC One Node service name is not used.
|
||||
#
|
||||
# If left blank, it will be assumed to be false.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.isRACOneInstall={{ item.0.is_racone }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Value is required only if oracle.install.db.isRACOneInstall is true.
|
||||
#
|
||||
# Specify the name for RAC One Node Service
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.racOneServiceName={{ item.0.service_name }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Value is required only if RAC database type is POLICY_MANAGED
|
||||
#
|
||||
# Specify a name for the new Server pool that will be configured
|
||||
# Example : oracle.install.db.rac.serverpoolName=pool1
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.rac.serverpoolName=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Value is required only if RAC database type is POLICY_MANAGED
|
||||
#
|
||||
# Specify a number as cardinality for the new Server pool that will be configured
|
||||
# Example : oracle.install.db.rac.serverpoolCardinality=2
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.rac.serverpoolCardinality=
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# Database Configuration Options #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the type of database to create.
|
||||
# It can be one of the following:
|
||||
# - GENERAL_PURPOSE
|
||||
# - DATA_WAREHOUSE
|
||||
# GENERAL_PURPOSE: A starter database designed for general purpose use or transaction-heavy applications.
|
||||
# DATA_WAREHOUSE : A starter database optimized for data warehousing applications.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.type=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Starter Database Global Database Name.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.globalDBName=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Starter Database SID.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.SID=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify whether the database should be configured as a Container database.
|
||||
# The value can be either "true" or "false". If left blank it will be assumed
|
||||
# to be "false".
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.ConfigureAsContainerDB=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Pluggable Database name for the pluggable database in Container Database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.PDBName=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Starter Database character set.
|
||||
#
|
||||
# One of the following
|
||||
# AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,
|
||||
# EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,
|
||||
# BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,
|
||||
# AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,
|
||||
# IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,
|
||||
# KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,
|
||||
# ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.characterSet=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable should be set to true if Automatic Memory Management
|
||||
# in Database is desired.
|
||||
# If Automatic Memory Management is not desired, and memory allocation
|
||||
# is to be done manually, then set it to false.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.memoryOption=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the total memory allocation for the database. Value(in MB) should be
|
||||
# at least 256 MB, and should not exceed the total physical memory available
|
||||
# on the system.
|
||||
# Example: oracle.install.db.config.starterdb.memoryLimit=512
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.memoryLimit=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# This variable controls whether to load Example Schemas onto
|
||||
# the starter database or not.
|
||||
# The value can be either "true" or "false". If left blank it will be assumed
|
||||
# to be "false".
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.installExampleSchemas=
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# Passwords can be supplied for the following four schemas in the #
|
||||
# starter database: #
|
||||
# SYS #
|
||||
# SYSTEM #
|
||||
# DBSNMP (used by Enterprise Manager) #
|
||||
# #
|
||||
# Same password can be used for all accounts (not recommended) #
|
||||
# or different passwords for each account can be provided (recommended) #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable holds the password that is to be used for all schemas in the
|
||||
# starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.ALL=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the SYS password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.SYS=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the SYSTEM password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.SYSTEM=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the DBSNMP password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.DBSNMP=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the PDBADMIN password required for creation of Pluggable Database in the Container Database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.PDBADMIN=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the management option to use for managing the database.
|
||||
# Options are:
|
||||
# 1. CLOUD_CONTROL - If you want to manage your database with Enterprise Manager Cloud Control along with Database Express.
|
||||
# 2. DEFAULT -If you want to manage your database using the default Database Express option.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.managementOption=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the OMS host to connect to Cloud Control.
|
||||
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.omsHost=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the OMS port to connect to Cloud Control.
|
||||
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.omsPort=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the EM Admin user name to use to connect to Cloud Control.
|
||||
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.emAdminUser=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the EM Admin password to use to connect to Cloud Control.
|
||||
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.emAdminPassword=
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# SPECIFY RECOVERY OPTIONS #
|
||||
# ------------------------------------ #
|
||||
# Recovery options for the database can be mentioned using the entries below #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable is to be set to false if database recovery is not required. Else
|
||||
# this can be set to true.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.enableRecovery=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the type of storage to use for the database.
|
||||
# It can be one of the following:
|
||||
# - FILE_SYSTEM_STORAGE
|
||||
# - ASM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.storageType=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the database file location which is a directory for datafiles, control
|
||||
# files, redo logs.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the recovery location.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the existing ASM disk groups to be used for storage.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storageType=ASM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.asm.diskGroup=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the password for ASMSNMP user of the ASM instance.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.asm.ASMSNMPPassword=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username.
|
||||
#
|
||||
# Example : MYORACLESUPPORT_USERNAME=abc@oracle.com
|
||||
#------------------------------------------------------------------------------
|
||||
MYORACLESUPPORT_USERNAME=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username password.
|
||||
#
|
||||
# Example : MYORACLESUPPORT_PASSWORD=password
|
||||
#------------------------------------------------------------------------------
|
||||
MYORACLESUPPORT_PASSWORD=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify whether to enable the user to set the password for
|
||||
# My Oracle Support credentials. The value can be either true or false.
|
||||
# If left blank it will be assumed to be false.
|
||||
#
|
||||
# Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
|
||||
#------------------------------------------------------------------------------
|
||||
SECURITY_UPDATES_VIA_MYORACLESUPPORT=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify whether user doesn't want to configure Security Updates.
|
||||
# The value for this variable should be true if you don't want to configure
|
||||
# Security Updates, false otherwise.
|
||||
#
|
||||
# The value can be either true or false. If left blank it will be assumed
|
||||
# to be false.
|
||||
#
|
||||
# Example : DECLINE_SECURITY_UPDATES=false
|
||||
#------------------------------------------------------------------------------
|
||||
DECLINE_SECURITY_UPDATES=true
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Proxy server name. Length should be greater than zero.
|
||||
#
|
||||
# Example : PROXY_HOST=proxy.domain.com
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_HOST=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy port number. Should be Numeric and at least 2 chars.
|
||||
#
|
||||
# Example : PROXY_PORT=25
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_PORT=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
|
||||
# blank if your proxy server requires no authentication.
|
||||
#
|
||||
# Example : PROXY_USER=username
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_USER=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy password. Leave PROXY_USER and PROXY_PWD
|
||||
# blank if your proxy server requires no authentication.
|
||||
#
|
||||
# Example : PROXY_PWD=password
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_PWD=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Oracle Support Hub URL.
|
||||
#
|
||||
# Example : COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/
|
||||
#------------------------------------------------------------------------------
|
||||
COLLECTOR_SUPPORTHUB_URL=
|
||||
|
||||
{% if item.0.oracle_version_db=='12.1.0.1' %}
|
||||
# Example : PROXY_REALM=metalink
|
||||
PROXY_REALM=
|
||||
# Example : AUTOUPDATES_MYORACLESUPPORT_USERNAME=abc@oracle.com
|
||||
AUTOUPDATES_MYORACLESUPPORT_USERNAME=
|
||||
# Example : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password
|
||||
AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
|
||||
oracle.installer.autoupdates.option=
|
||||
oracle.installer.autoupdates.downloadUpdatesLoc=
|
||||
{% else %}
|
||||
{% endif %}
|
||||
494
install-oracle-sw/templates/db-install.rsp.12.1.0.j2
Normal file
494
install-oracle-sw/templates/db-install.rsp.12.1.0.j2
Normal file
@@ -0,0 +1,494 @@
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
####################################################################
|
||||
## Copyright(c) Oracle Corporation 1998,2014. All rights reserved.##
|
||||
## ##
|
||||
## Specify values for the variables listed below to customize ##
|
||||
## your installation. ##
|
||||
## ##
|
||||
## Each variable is associated with a comment. The comment ##
|
||||
## can help to populate the variables with the appropriate ##
|
||||
## values. ##
|
||||
## ##
|
||||
## IMPORTANT NOTE: This file contains plain text passwords and ##
|
||||
## should be secured to have read permission only by oracle user ##
|
||||
## or db administrator who owns this installation. ##
|
||||
## ##
|
||||
####################################################################
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Do not change the following system generated value.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the installation option.
|
||||
# It can be one of the following:
|
||||
# - INSTALL_DB_SWONLY
|
||||
# - INSTALL_DB_AND_CONFIG
|
||||
# - UPGRADE_DB
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.option=INSTALL_DB_SWONLY
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the hostname of the system as set during the install. It can be used
|
||||
# to force the installation to use an alternative hostname rather than using the
|
||||
# first hostname found on the system. (e.g., for systems with multiple hostnames
|
||||
# and network interfaces)
|
||||
#-------------------------------------------------------------------------------
|
||||
ORACLE_HOSTNAME={{ ansible_hostname }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Unix group to be set for the inventory directory.
|
||||
#-------------------------------------------------------------------------------
|
||||
UNIX_GROUP_NAME={{ oracle_group }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the location which holds the inventory files.
|
||||
# This is an optional parameter if installing on
|
||||
# Windows based Operating System.
|
||||
#-------------------------------------------------------------------------------
|
||||
INVENTORY_LOCATION={{ oracle_inventory_loc }}
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the languages in which the components will be installed.
|
||||
#
|
||||
# en : English ja : Japanese
|
||||
# fr : French ko : Korean
|
||||
# ar : Arabic es : Latin American Spanish
|
||||
# bn : Bengali lv : Latvian
|
||||
# pt_BR: Brazilian Portuguese lt : Lithuanian
|
||||
# bg : Bulgarian ms : Malay
|
||||
# fr_CA: Canadian French es_MX: Mexican Spanish
|
||||
# ca : Catalan no : Norwegian
|
||||
# hr : Croatian pl : Polish
|
||||
# cs : Czech pt : Portuguese
|
||||
# da : Danish ro : Romanian
|
||||
# nl : Dutch ru : Russian
|
||||
# ar_EG: Egyptian zh_CN: Simplified Chinese
|
||||
# en_GB: English (Great Britain) sk : Slovak
|
||||
# et : Estonian sl : Slovenian
|
||||
# fi : Finnish es_ES: Spanish
|
||||
# de : German sv : Swedish
|
||||
# el : Greek th : Thai
|
||||
# iw : Hebrew zh_TW: Traditional Chinese
|
||||
# hu : Hungarian tr : Turkish
|
||||
# is : Icelandic uk : Ukrainian
|
||||
# in : Indonesian vi : Vietnamese
|
||||
# it : Italian
|
||||
#
|
||||
# all_langs : All languages
|
||||
#
|
||||
# Specify value as the following to select any of the languages.
|
||||
# Example : SELECTED_LANGUAGES=en,fr,ja
|
||||
#
|
||||
# Specify value as the following to select all the languages.
|
||||
# Example : SELECTED_LANGUAGES=all_langs
|
||||
#-------------------------------------------------------------------------------
|
||||
SELECTED_LANGUAGES=en
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the complete path of the Oracle Home.
|
||||
#-------------------------------------------------------------------------------
|
||||
ORACLE_HOME={{ oracle_home_db_install }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the complete path of the Oracle Base.
|
||||
#-------------------------------------------------------------------------------
|
||||
ORACLE_BASE={{ oracle_base }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the installation edition of the component.
|
||||
#
|
||||
# The value should contain only one of these choices.
|
||||
# - EE : Enterprise Edition
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.InstallEdition={{ item.0.oracle_edition }}
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# PRIVILEGED OPERATING SYSTEM GROUPS #
|
||||
# ------------------------------------------ #
|
||||
# Provide values for the OS groups to which OSDBA and OSOPER privileges #
|
||||
# needs to be granted. If the install is being performed as a member of the #
|
||||
# group "dba", then that will be used unless specified otherwise below. #
|
||||
# #
|
||||
# The value to be specified for OSDBA and OSOPER group is only for UNIX based #
|
||||
# Operating System. #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.DBA_GROUP={{ oracle_group }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
|
||||
# The value to be specified for OSOPER group is optional.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.OPER_GROUP={{ oracle_group }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The BACKUPDBA_GROUP is the OS group which is to be granted OSBACKUPDBA privileges.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.BACKUPDBA_GROUP={{ oracle_group }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The DGDBA_GROUP is the OS group which is to be granted OSDGDBA privileges.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.DGDBA_GROUP={{ oracle_group }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# The KMDBA_GROUP is the OS group which is to be granted OSKMDBA privileges.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.KMDBA_GROUP={{ oracle_group }}
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# Grid Options #
|
||||
# #
|
||||
###############################################################################
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the type of Real Application Cluster Database
|
||||
#
|
||||
# - ADMIN_MANAGED: Admin-Managed
|
||||
# - POLICY_MANAGED: Policy-Managed
|
||||
#
|
||||
# If left unspecified, default will be ADMIN_MANAGED
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.rac.configurationType=ADMIN_MANAGED
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Value is required only if RAC database type is ADMIN_MANAGED
|
||||
#
|
||||
# Specify the cluster node names selected during the installation.
|
||||
# Leaving it blank will result in install on local server only (Single Instance)
|
||||
#
|
||||
# Example : oracle.install.db.CLUSTER_NODES=node1,node2
|
||||
#------------------------------------------------------------------------------
|
||||
{% if configure_cluster==True %}
|
||||
{% if oracle_gi_cluster_type |upper == 'FLEX' %}
|
||||
oracle.install.db.CLUSTER_NODES={% for host in groups[hostgroup_hub] -%} {{host}} {%- if not loop.last -%} , {%- endif -%} {%- endfor %}
|
||||
{% else %}
|
||||
oracle.install.db.CLUSTER_NODES={% for host in groups[hostgroup] -%} {{host}} {%- if not loop.last -%} , {%- endif -%} {%- endfor %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable is used to enable or disable RAC One Node install.
|
||||
#
|
||||
# - true : Value of RAC One Node service name is used.
|
||||
# - false : Value of RAC One Node service name is not used.
|
||||
#
|
||||
# If left blank, it will be assumed to be false.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.isRACOneInstall={{ item.0.is_racone }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Value is required only if oracle.install.db.isRACOneInstall is true.
|
||||
#
|
||||
# Specify the name for RAC One Node Service
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.racOneServiceName={{ item.0.service_name }}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Value is required only if RAC database type is POLICY_MANAGED
|
||||
#
|
||||
# Specify a name for the new Server pool that will be configured
|
||||
# Example : oracle.install.db.rac.serverpoolName=pool1
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.rac.serverpoolName=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Value is required only if RAC database type is POLICY_MANAGED
|
||||
#
|
||||
# Specify a number as cardinality for the new Server pool that will be configured
|
||||
# Example : oracle.install.db.rac.serverpoolCardinality=2
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.rac.serverpoolCardinality=
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# Database Configuration Options #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the type of database to create.
|
||||
# It can be one of the following:
|
||||
# - GENERAL_PURPOSE
|
||||
# - DATA_WAREHOUSE
|
||||
# GENERAL_PURPOSE: A starter database designed for general purpose use or transaction-heavy applications.
|
||||
# DATA_WAREHOUSE : A starter database optimized for data warehousing applications.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.type=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Starter Database Global Database Name.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.globalDBName=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Starter Database SID.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.SID=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify whether the database should be configured as a Container database.
|
||||
# The value can be either "true" or "false". If left blank it will be assumed
|
||||
# to be "false".
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.ConfigureAsContainerDB=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Pluggable Database name for the pluggable database in Container Database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.PDBName=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the Starter Database character set.
|
||||
#
|
||||
# One of the following
|
||||
# AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,
|
||||
# EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,
|
||||
# BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,
|
||||
# AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,
|
||||
# IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,
|
||||
# KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,
|
||||
# ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.characterSet=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable should be set to true if Automatic Memory Management
|
||||
# in Database is desired.
|
||||
# If Automatic Memory Management is not desired, and memory allocation
|
||||
# is to be done manually, then set it to false.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.memoryOption=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the total memory allocation for the database. Value(in MB) should be
|
||||
# at least 256 MB, and should not exceed the total physical memory available
|
||||
# on the system.
|
||||
# Example: oracle.install.db.config.starterdb.memoryLimit=512
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.memoryLimit=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# This variable controls whether to load Example Schemas onto
|
||||
# the starter database or not.
|
||||
# The value can be either "true" or "false". If left blank it will be assumed
|
||||
# to be "false".
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.installExampleSchemas=
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# Passwords can be supplied for the following four schemas in the #
|
||||
# starter database: #
|
||||
# SYS #
|
||||
# SYSTEM #
|
||||
# DBSNMP (used by Enterprise Manager) #
|
||||
# #
|
||||
# Same password can be used for all accounts (not recommended) #
|
||||
# or different passwords for each account can be provided (recommended) #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable holds the password that is to be used for all schemas in the
|
||||
# starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.ALL=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the SYS password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.SYS=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the SYSTEM password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.SYSTEM=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the DBSNMP password for the starter database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.DBSNMP=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the PDBADMIN password required for creation of Pluggable Database in the Container Database.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.password.PDBADMIN=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the management option to use for managing the database.
|
||||
# Options are:
|
||||
# 1. CLOUD_CONTROL - If you want to manage your database with Enterprise Manager Cloud Control along with Database Express.
|
||||
# 2. DEFAULT -If you want to manage your database using the default Database Express option.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.managementOption=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the OMS host to connect to Cloud Control.
|
||||
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.omsHost=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the OMS port to connect to Cloud Control.
|
||||
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.omsPort=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the EM Admin user name to use to connect to Cloud Control.
|
||||
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.emAdminUser=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the EM Admin password to use to connect to Cloud Control.
|
||||
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.emAdminPassword=
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# SPECIFY RECOVERY OPTIONS #
|
||||
# ------------------------------------ #
|
||||
# Recovery options for the database can be mentioned using the entries below #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# This variable is to be set to false if database recovery is not required. Else
|
||||
# this can be set to true.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.enableRecovery=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the type of storage to use for the database.
|
||||
# It can be one of the following:
|
||||
# - FILE_SYSTEM_STORAGE
|
||||
# - ASM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.storageType=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the database file location which is a directory for datafiles, control
|
||||
# files, redo logs.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the recovery location.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the existing ASM disk groups to be used for storage.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storageType=ASM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.asm.diskGroup=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the password for ASMSNMP user of the ASM instance.
|
||||
#
|
||||
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.db.config.asm.ASMSNMPPassword=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username.
|
||||
#
|
||||
# Example : MYORACLESUPPORT_USERNAME=abc@oracle.com
|
||||
#------------------------------------------------------------------------------
|
||||
MYORACLESUPPORT_USERNAME=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username password.
|
||||
#
|
||||
# Example : MYORACLESUPPORT_PASSWORD=password
|
||||
#------------------------------------------------------------------------------
|
||||
MYORACLESUPPORT_PASSWORD=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify whether to enable the user to set the password for
|
||||
# My Oracle Support credentials. The value can be either true or false.
|
||||
# If left blank it will be assumed to be false.
|
||||
#
|
||||
# Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
|
||||
#------------------------------------------------------------------------------
|
||||
SECURITY_UPDATES_VIA_MYORACLESUPPORT=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify whether user doesn't want to configure Security Updates.
|
||||
# The value for this variable should be true if you don't want to configure
|
||||
# Security Updates, false otherwise.
|
||||
#
|
||||
# The value can be either true or false. If left blank it will be assumed
|
||||
# to be false.
|
||||
#
|
||||
# Example : DECLINE_SECURITY_UPDATES=false
|
||||
#------------------------------------------------------------------------------
|
||||
DECLINE_SECURITY_UPDATES=true
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Proxy server name. Length should be greater than zero.
|
||||
#
|
||||
# Example : PROXY_HOST=proxy.domain.com
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_HOST=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy port number. Should be Numeric and at least 2 chars.
|
||||
#
|
||||
# Example : PROXY_PORT=25
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_PORT=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
|
||||
# blank if your proxy server requires no authentication.
|
||||
#
|
||||
# Example : PROXY_USER=username
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_USER=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy password. Leave PROXY_USER and PROXY_PWD
|
||||
# blank if your proxy server requires no authentication.
|
||||
#
|
||||
# Example : PROXY_PWD=password
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_PWD=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Oracle Support Hub URL.
|
||||
#
|
||||
# Example : COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/
|
||||
#------------------------------------------------------------------------------
|
||||
COLLECTOR_SUPPORTHUB_URL=
|
||||
|
||||
{% if item.0.oracle_version_db=='12.1.0.1' %}
|
||||
# Example : PROXY_REALM=metalink
|
||||
PROXY_REALM=
|
||||
# Example : AUTOUPDATES_MYORACLESUPPORT_USERNAME=abc@oracle.com
|
||||
AUTOUPDATES_MYORACLESUPPORT_USERNAME=
|
||||
# Example : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password
|
||||
AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
|
||||
oracle.installer.autoupdates.option=
|
||||
oracle.installer.autoupdates.downloadUpdatesLoc=
|
||||
{% else %}
|
||||
{% endif %}
|
||||
21
install-oracle-sw/templates/db_install_11.2.0.4.j2
Normal file
21
install-oracle-sw/templates/db_install_11.2.0.4.j2
Normal file
@@ -0,0 +1,21 @@
|
||||
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
|
||||
|
||||
oracle.install.option=INSTALL_DB_SWONLY
|
||||
ORACLE_HOSTNAME={{ ansible_hostname }}
|
||||
UNIX_GROUP_NAME={{ oracle_group }}
|
||||
INVENTORY_LOCATION={{ oracle_inventory_loc }}
|
||||
SELECTED_LANGUAGES=en,fr,fr_CA
|
||||
ORACLE_HOME={{ db_home }}
|
||||
ORACLE_BASE={{ oracle_base }}
|
||||
oracle.install.db.InstallEdition={{ db_edition }}
|
||||
oracle.install.db.EEOptionsSelection=true
|
||||
oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.3.0,oracle.oraolap:11.2.0.3.0,oracle.rdbms.dm:11.2.0.3.0
|
||||
oracle.install.db.DBA_GROUP={{ dba_group }}
|
||||
oracle.install.db.OPER_GROUP={{ oper_group }}
|
||||
oracle.install.db.CLUSTER_NODES=
|
||||
oracle.install.db.isRACOneInstall=false
|
||||
oracle.install.db.racOneServiceName=
|
||||
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
|
||||
DECLINE_SECURITY_UPDATES=true
|
||||
COLLECTOR_SUPPORTHUB_URL=
|
||||
oracle.installer.autoupdates.option=SKIP_UPDATES
|
||||
18
install-oracle-sw/templates/db_install_12.1.0.2.j2
Normal file
18
install-oracle-sw/templates/db_install_12.1.0.2.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0
|
||||
oracle.install.option=INSTALL_DB_SWONLY
|
||||
ORACLE_HOSTNAME={{ ansible_hostname }}
|
||||
UNIX_GROUP_NAME={{ oracle_group }}
|
||||
INVENTORY_LOCATION={{ oracle_inventory_loc }}
|
||||
SELECTED_LANGUAGES=en,fr
|
||||
ORACLE_HOME={{ db_home }}
|
||||
ORACLE_BASE={{ oracle_base }}
|
||||
oracle.install.db.InstallEdition={{ db_edition }}
|
||||
oracle.install.db.DBA_GROUP={{ dba_group }}
|
||||
oracle.install.db.OPER_GROUP={{ oper_group }}
|
||||
oracle.install.db.BACKUPDBA_GROUP={{ backupdba_group }}
|
||||
oracle.install.db.DGDBA_GROUP={{ dgdba_group }}
|
||||
oracle.install.db.KMDBA_GROUP={{ kmdba_group }}
|
||||
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
|
||||
DECLINE_SECURITY_UPDATES=true
|
||||
oracle.installer.autoupdates.option=SKIP_UPDATES
|
||||
|
||||
19
install-oracle-sw/templates/db_install_12.2.0.1.j2
Normal file
19
install-oracle-sw/templates/db_install_12.2.0.1.j2
Normal file
@@ -0,0 +1,19 @@
|
||||
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.2.0
|
||||
oracle.install.option=INSTALL_DB_SWONLY
|
||||
ORACLE_HOSTNAME={{ ansible_hostname }}
|
||||
UNIX_GROUP_NAME={{ oracle_group }}
|
||||
INVENTORY_LOCATION={{ oracle_inventory_loc }}
|
||||
SELECTED_LANGUAGES=en,fr
|
||||
ORACLE_HOME={{ db_home }}
|
||||
ORACLE_BASE={{ oracle_base }}
|
||||
oracle.install.db.InstallEdition={{ db_edition }}
|
||||
oracle.install.db.DBA_GROUP={{ dba_group }}
|
||||
oracle.install.db.OPER_GROUP={{ oper_group }}
|
||||
oracle.install.db.BACKUPDBA_GROUP={{ backupdba_group }}
|
||||
oracle.install.db.DGDBA_GROUP={{ dgdba_group }}
|
||||
oracle.install.db.KMDBA_GROUP={{ kmdba_group }}
|
||||
oracle.install.db.OSRACDBA_GROUP={{ racdba_group }}
|
||||
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
|
||||
DECLINE_SECURITY_UPDATES=true
|
||||
oracle.installer.autoupdates.option=SKIP_UPDATES
|
||||
|
||||
44
install-oracle-sw/templates/dbora_initd.j2
Normal file
44
install-oracle-sw/templates/dbora_initd.j2
Normal file
@@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
#
|
||||
# chkconfig: 35 98 08
|
||||
#
|
||||
# description: Oracle auto start-stop script.
|
||||
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
|
||||
# from which you wish to execute dbstart and dbshut;
|
||||
#
|
||||
# Set ORA_OWNER to the user id of the owner of the
|
||||
# Oracle database in ORACLE_HOME.
|
||||
|
||||
ORA_HOME={{ oracle_home }}
|
||||
ORACLE_HOME_LISTENER={{ oracle_home }}
|
||||
ORA_OWNER=oracle
|
||||
|
||||
case "$1" in
|
||||
'start')
|
||||
# Start the Oracle databases:
|
||||
# The following command assumes that the oracle login
|
||||
# will not prompt the user for any values
|
||||
# Remove "&" if you don't want startup as a background process.
|
||||
su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME"
|
||||
touch /var/lock/subsys/dbora
|
||||
;;
|
||||
|
||||
'stop')
|
||||
# Stop the Oracle databases:
|
||||
# The following command assumes that the oracle login
|
||||
# will not prompt the user for any values
|
||||
su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME"
|
||||
rm -f /var/lock/subsys/dbora
|
||||
;;
|
||||
|
||||
'restart')
|
||||
stop
|
||||
start
|
||||
;;
|
||||
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|restart}"
|
||||
exit 2
|
||||
esac
|
||||
|
||||
48
install-oracle-sw/templates/dotprofile-db.j2
Normal file
48
install-oracle-sw/templates/dotprofile-db.j2
Normal file
@@ -0,0 +1,48 @@
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
export PS1='[$LOGNAME'@'$ORACLE_SID `basename $PWD`]$'
|
||||
|
||||
|
||||
# Set up the Oracle parameters
|
||||
umask 022
|
||||
ORACLE_BASE={{ oracle_base }}
|
||||
export ORACLE_BASE
|
||||
ORACLE_HOME={{ oracle_home_db }}
|
||||
export ORACLE_HOME
|
||||
NLS_LANG=american_america.al32utf8
|
||||
export NLS_LANG
|
||||
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
|
||||
export ORA_NLS33
|
||||
SHLIB_PATH=$ORACLE_HOME/lib
|
||||
export SHLIB_PATH
|
||||
LD_LIBRARY_PATH=$ORACLE_HOME/lib
|
||||
export LD_LIBRARY_PATH
|
||||
TNS_ADMIN=$ORACLE_HOME/network/admin
|
||||
export TNS_ADMIN
|
||||
SQLPATH=/home/oracle/.Scripts
|
||||
export SQLPATH
|
||||
ORACLE_SID={{ item.oracle_db_name }}
|
||||
export ORACLE_SID
|
||||
export ORA_DB_UNQ_NAME=
|
||||
export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
|
||||
|
||||
|
||||
|
||||
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH:$SQLPATH:$GG_HOME/
|
||||
|
||||
|
||||
# Set Up Aliases:
|
||||
alias asmcmd='. oraenv ;rlwrap asmcmd -p'
|
||||
#alias sqlplus='rlwrap -D2 -s 1000 -irc -b'\''"@(){}[],+=&^%#;|\'\'' -f ~/.Scripts/tanel/tpt_public_unixmac/setup/wordfile_11gR2.txt sqlplus'
|
||||
alias sqlplus='rlwrap sqlplus'
|
||||
alias rman='rlwrap rman'
|
||||
alias sid='. oraenv'
|
||||
alias sqlp='. oraenv; sqlplus'
|
||||
#alias sqlsys='. oraenv ;rlwrap -D2 -irc -b'\''"@(){}[],+=&^%#;|\'\'' -f ~/.Scripts/tanel/tpt_public_unixmac/setup/wordfile_11gR2.txt sqlplus "/ as sysdba"'
|
||||
alias sqlsys='. oraenv ;rlwrap sqlplus "/ as sysdba"'
|
||||
alias dbh='cd $ORACLE_HOME'
|
||||
alias dbb='cd $ORACLE_BASE'
|
||||
alias c='clear'
|
||||
alias talert='tail -200f $ORACLE_BASE/diag/rdbms/$ORA_DB_UNQ_NAME/$ORACLE_SID/trace/alert_$ORACLE_SID.log'
|
||||
alias ggsci='rlwrap $GG_HOME/ggsci'
|
||||
|
||||
461
install-oracle-sw/templates/gi_install_11.2.0.4.j2
Normal file
461
install-oracle-sw/templates/gi_install_11.2.0.4.j2
Normal file
@@ -0,0 +1,461 @@
|
||||
###############################################################################
|
||||
## Copyright(c) Oracle Corporation 1998, 2013. All rights reserved. ##
|
||||
## ##
|
||||
## Specify values for the variables listed below to customize ##
|
||||
## your installation. ##
|
||||
## ##
|
||||
## Each variable is associated with a comment. The comment ##
|
||||
## can help to populate the variables with the appropriate ##
|
||||
## values. ##
|
||||
## ##
|
||||
## IMPORTANT NOTE: This file contains plain text passwords and ##
|
||||
## should be secured to have read permission only by oracle user ##
|
||||
## or db administrator who owns this installation. ##
|
||||
## ##
|
||||
###############################################################################
|
||||
|
||||
|
||||
###############################################################################
|
||||
## ##
|
||||
## Instructions to fill this response file ##
|
||||
## To install and configure 'Grid Infrastructure for Cluster' ##
|
||||
## - Fill out sections A,B,C,D,E,F and G ##
|
||||
## - Fill out section G if OCR and voting disk should be placed on ASM ##
|
||||
## ##
|
||||
## To install and configure 'Grid Infrastructure for Standalone server' ##
|
||||
## - Fill out sections A,B and G ##
|
||||
## ##
|
||||
## To install software for 'Grid Infrastructure' ##
|
||||
## - Fill out sections A,B and C ##
|
||||
## ##
|
||||
## To upgrade clusterware and/or Automatic storage management of earlier ##
|
||||
## releases ##
|
||||
## - Fill out sections A,B,C,D and H ##
|
||||
## ##
|
||||
###############################################################################
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Do not change the following system generated value.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v11_2_0
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# SECTION A - BASIC #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the hostname of the system as set during the install. It can be used
|
||||
# to force the installation to use an alternative hostname rather than using the
|
||||
# first hostname found on the system. (e.g., for systems with multiple hostnames
|
||||
# and network interfaces)
|
||||
#-------------------------------------------------------------------------------
|
||||
ORACLE_HOSTNAME={{ ansible_hostname }}
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the location which holds the inventory files.
|
||||
# This is an optional parameter if installing on
|
||||
# Windows based Operating System.
|
||||
#-------------------------------------------------------------------------------
|
||||
# INVENTORY_LOCATION=/u01/app/oraInventory
|
||||
INVENTORY_LOCATION={{ oracle_inventory_loc }}
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the languages in which the components will be installed.
|
||||
#
|
||||
# en : English ja : Japanese
|
||||
# fr : French ko : Korean
|
||||
# ar : Arabic es : Latin American Spanish
|
||||
# bn : Bengali lv : Latvian
|
||||
# pt_BR: Brazilian Portuguese lt : Lithuanian
|
||||
# bg : Bulgarian ms : Malay
|
||||
# fr_CA: Canadian French es_MX: Mexican Spanish
|
||||
# ca : Catalan no : Norwegian
|
||||
# hr : Croatian pl : Polish
|
||||
# cs : Czech pt : Portuguese
|
||||
# da : Danish ro : Romanian
|
||||
# nl : Dutch ru : Russian
|
||||
# ar_EG: Egyptian zh_CN: Simplified Chinese
|
||||
# en_GB: English (Great Britain) sk : Slovak
|
||||
# et : Estonian sl : Slovenian
|
||||
# fi : Finnish es_ES: Spanish
|
||||
# de : German sv : Swedish
|
||||
# el : Greek th : Thai
|
||||
# iw : Hebrew zh_TW: Traditional Chinese
|
||||
# hu : Hungarian tr : Turkish
|
||||
# is : Icelandic uk : Ukrainian
|
||||
# in : Indonesian vi : Vietnamese
|
||||
# it : Italian
|
||||
#
|
||||
# all_langs : All languages
|
||||
#
|
||||
# Specify value as the following to select any of the languages.
|
||||
# Example : SELECTED_LANGUAGES=en,fr,ja
|
||||
#
|
||||
# Specify value as the following to select all the languages.
|
||||
# Example : SELECTED_LANGUAGES=all_langs
|
||||
#-------------------------------------------------------------------------------
|
||||
SELECTED_LANGUAGES=en,fr,fr_CA
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the installation option.
|
||||
# Allowed values: CRS_CONFIG or HA_CONFIG or UPGRADE or CRS_SWONLY
|
||||
# - CRS_CONFIG : To configure Grid Infrastructure for cluster
|
||||
# - HA_CONFIG : To configure Grid Infrastructure for stand alone server
|
||||
# - UPGRADE : To upgrade clusterware software of earlier release
|
||||
# - CRS_SWONLY : To install clusterware files only (can be configured for cluster
|
||||
# or stand alone server later)
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.option=CRS_SWONLY
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the complete path of the Oracle Base.
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
#ORACLE_BASE=/u01/app/grid
|
||||
ORACLE_BASE={{ oracle_racine }}/{{ gi_user }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the complete path of the Oracle Home.
|
||||
#-------------------------------------------------------------------------------
|
||||
#ORACLE_HOME=/u01/app/11.2.0/grid
|
||||
ORACLE_HOME={{ gi_home }}
|
||||
|
||||
################################################################################
|
||||
# #
|
||||
# SECTION B - GROUPS #
|
||||
# #
|
||||
# The following three groups need to be assigned for all GI installations. #
|
||||
# OSDBA and OSOPER can be the same or different. OSASM must be different #
|
||||
# than the other two. #
|
||||
# The value to be specified for OSDBA, OSOPER and OSASM group is only for #
|
||||
# Unix based Operating System. #
|
||||
# #
|
||||
################################################################################
|
||||
#-------------------------------------------------------------------------------
|
||||
# The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
|
||||
#-------------------------------------------------------------------------------
|
||||
#oracle.install.asm.OSDBA=asmdba
|
||||
oracle.install.asm.OSDBA={{ asmdba_group }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
|
||||
# The value to be specified for OSOPER group is optional.
|
||||
#-------------------------------------------------------------------------------
|
||||
#oracle.install.asm.OSOPER=asmoper
|
||||
oracle.install.asm.OSOPER={{ asmoper_group }}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# The OSASM_GROUP is the OS group which is to be granted OSASM privileges. This
|
||||
# must be different than the previous two.
|
||||
#-------------------------------------------------------------------------------
|
||||
#oracle.install.asm.OSASM=asmadmin
|
||||
oracle.install.asm.OSASM={{ asmadmin_group }}
|
||||
|
||||
################################################################################
|
||||
# #
|
||||
# SECTION C - SCAN #
|
||||
# #
|
||||
################################################################################
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify a name for SCAN
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.crs.config.gpnp.scanName=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify a unused port number for SCAN service
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
oracle.install.crs.config.gpnp.scanPort=
|
||||
|
||||
|
||||
################################################################################
|
||||
# #
|
||||
# SECTION D - CLUSTER & GNS #
|
||||
# #
|
||||
################################################################################
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify a name for the Cluster you are creating.
|
||||
#
|
||||
# The maximum length allowed for clustername is 15 characters. The name can be
|
||||
# any combination of lower and uppercase alphabets (A - Z), (0 - 9), hyphen(-)
|
||||
# and underscore(_).
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.crs.config.clusterName=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify 'true' if you would like to configure Grid Naming Service(GNS), else
|
||||
# specify 'false'
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.crs.config.gpnp.configureGNS=false
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Applicable only if you choose to configure GNS
|
||||
# Specify the GNS subdomain and an unused virtual hostname for GNS service
|
||||
# Additionally you may also specify if VIPs have to be autoconfigured
|
||||
#
|
||||
# Value for oracle.install.crs.config.autoConfigureClusterNodeVIP should be true
|
||||
# if GNS is being configured(oracle.install.crs.config.gpnp.configureGNS), false
|
||||
# otherwise.
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.crs.config.gpnp.gnsSubDomain=
|
||||
oracle.install.crs.config.gpnp.gnsVIPAddress=
|
||||
oracle.install.crs.config.autoConfigureClusterNodeVIP=false
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify a list of public node names, and virtual hostnames that have to be
|
||||
# part of the cluster.
|
||||
#
|
||||
# The list should a comma-separated list of nodes. Each entry in the list
|
||||
# should be a colon-separated string that contains 2 fields.
|
||||
#
|
||||
# The fields should be ordered as follows:
|
||||
# 1. The first field is for public node name.
|
||||
# 2. The second field is for virtual host name
|
||||
# (specify as AUTO if you have chosen 'auto configure for VIP'
|
||||
# i.e. autoConfigureClusterNodeVIP=true)
|
||||
#
|
||||
# Example: oracle.install.crs.config.clusterNodes=node1:node1-vip,node2:node2-vip
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.crs.config.clusterNodes=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# The value should be a comma separated strings where each string is as shown below
|
||||
# InterfaceName:SubnetAddress:InterfaceType
|
||||
# where InterfaceType can be either "1", "2", or "3"
|
||||
# (1 indicates public, 2 indicates private, and 3 indicates the interface is not used)
|
||||
#
|
||||
# For example: eth0:140.87.24.0:1,eth1:10.2.1.0:2,eth2:140.87.52.0:3
|
||||
#
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.crs.config.networkInterfaceList=
|
||||
|
||||
################################################################################
|
||||
# #
|
||||
# SECTION E - STORAGE #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify the type of storage to use for Oracle Cluster Registry(OCR) and Voting
|
||||
# Disks files
|
||||
# - ASM_STORAGE
|
||||
# - FILE_SYSTEM_STORAGE
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.crs.config.storageOption=
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# THIS PROPERTY NEEDS TO BE FILLED ONLY IN CASE OF WINDOWS INSTALL.
|
||||
# Specify a comma separated list of strings where each string is as shown below:
|
||||
# Disk Number:Partition Number:Drive Letter:Format Option
|
||||
# The Disk Number and Partition Number should refer to the location which has to
|
||||
# be formatted. The Drive Letter should refer to the drive letter that has to be
|
||||
# assigned. "Format Option" can be either of the following -
|
||||
# - SOFTWARE : Format to place software binaries.
|
||||
# - DATA : Format to place the OCR/VDSK files.
|
||||
#
|
||||
# For example: 1:2:P:DATA,1:3:Q:SOFTWARE,1:4:R:DATA,1:5:S:DATA
|
||||
#
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.crs.config.sharedFileSystemStorage.diskDriveMapping=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# These properties are applicable only if FILE_SYSTEM_STORAGE is chosen for
|
||||
# storing OCR and voting disk
|
||||
# Specify the location(s) and redundancy for OCR and voting disks
|
||||
# Multiple locations can be specified, separated by commas.
|
||||
# In case of windows, mention the drive location that is specified to be
|
||||
# formatted for DATA in the above property.
|
||||
# Redundancy can be one of these:
|
||||
# EXTERNAL - one(1) location should be specified for OCR and voting disk
|
||||
# NORMAL - three(3) locations should be specified for OCR and voting disk
|
||||
# Example:
|
||||
# For Unix based Operating System:
|
||||
# oracle.install.crs.config.sharedFileSystemStorage.votingDiskLocations=/oradbocfs/storage/vdsk1,/oradbocfs/storage/vdsk2,/oradbocfs/storage/vdsk3
|
||||
# oracle.install.crs.config.sharedFileSystemStorage.ocrLocations=/oradbocfs/storage/ocr1,/oradbocfs/storage/ocr2,/oradbocfs/storage/ocr3
|
||||
# For Windows based Operating System:
|
||||
# oracle.install.crs.config.sharedFileSystemStorage.votingDiskLocations=P:\vdsk1,R:\vdsk2,S:\vdsk3
|
||||
# oracle.install.crs.config.sharedFileSystemStorage.ocrLocations=P:\ocr1,R:\ocr2,S:\ocr3
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.crs.config.sharedFileSystemStorage.votingDiskLocations=
|
||||
oracle.install.crs.config.sharedFileSystemStorage.votingDiskRedundancy=NORMAL
|
||||
oracle.install.crs.config.sharedFileSystemStorage.ocrLocations=
|
||||
oracle.install.crs.config.sharedFileSystemStorage.ocrRedundancy=NORMAL
|
||||
|
||||
################################################################################
|
||||
# #
|
||||
# SECTION F - IPMI #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify 'true' if you would like to configure Intelligent Power Management interface
|
||||
# (IPMI), else specify 'false'
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.crs.config.useIPMI=false
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Applicable only if you choose to configure IPMI
|
||||
# i.e. oracle.install.crs.config.useIPMI=true
|
||||
# Specify the username and password for using IPMI service
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.crs.config.ipmi.bmcUsername=
|
||||
oracle.install.crs.config.ipmi.bmcPassword=
|
||||
|
||||
################################################################################
|
||||
# #
|
||||
# SECTION G - ASM #
|
||||
# #
|
||||
################################################################################
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify a password for SYSASM user of the ASM instance
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.asm.SYSASMPassword=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# The ASM DiskGroup
|
||||
#
|
||||
# Example: oracle.install.asm.diskGroup.name=data
|
||||
#
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.asm.diskGroup.name=DATA
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Redundancy level to be used by ASM.
|
||||
# It can be one of the following
|
||||
# - NORMAL
|
||||
# - HIGH
|
||||
# - EXTERNAL
|
||||
# Example: oracle.install.asm.diskGroup.redundancy=NORMAL
|
||||
#
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.asm.diskGroup.redundancy=NORMAL
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Allocation unit size to be used by ASM.
|
||||
# It can be one of the following values
|
||||
# - 1
|
||||
# - 2
|
||||
# - 4
|
||||
# - 8
|
||||
# - 16
|
||||
# - 32
|
||||
# - 64
|
||||
# Example: oracle.install.asm.diskGroup.AUSize=4
|
||||
# size unit is MB
|
||||
#
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.asm.diskGroup.AUSize=1
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# List of disks to create a ASM DiskGroup
|
||||
#
|
||||
# Example:
|
||||
# For Unix based Operating System:
|
||||
# oracle.install.asm.diskGroup.disks=/oracle/asm/disk1,/oracle/asm/disk2
|
||||
# For Windows based Operating System:
|
||||
# oracle.install.asm.diskGroup.disks=\\.\ORCLDISKDATA0,\\.\ORCLDISKDATA1
|
||||
#
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.asm.diskGroup.disks=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# The disk discovery string to be used to discover the disks used create a ASM DiskGroup
|
||||
#
|
||||
# Example:
|
||||
# For Unix based Operating System:
|
||||
# oracle.install.asm.diskGroup.diskDiscoveryString=/oracle/asm/*
|
||||
# For Windows based Operating System:
|
||||
# oracle.install.asm.diskGroup.diskDiscoveryString=\\.\ORCLDISK*
|
||||
#
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.asm.diskGroup.diskDiscoveryString=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# oracle.install.asm.monitorPassword=password
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.asm.monitorPassword=
|
||||
|
||||
################################################################################
|
||||
# #
|
||||
# SECTION H - UPGRADE #
|
||||
# #
|
||||
################################################################################
|
||||
#-------------------------------------------------------------------------------
|
||||
# Specify nodes for Upgrade.
|
||||
# For upgrade on Windows, installer overrides the value of this parameter to include
|
||||
# all the nodes of the cluster. However, the stack is upgraded one node at a time.
|
||||
# Hence, this parameter may be left blank for Windows.
|
||||
# Example: oracle.install.crs.upgrade.clusterNodes=node1,node2
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.crs.upgrade.clusterNodes=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# For RAC-ASM only. oracle.install.asm.upgradeASM=true/false
|
||||
# Value should be 'true' while upgrading Cluster ASM of version 11gR2(11.2.0.1.0) and above
|
||||
#-------------------------------------------------------------------------------
|
||||
oracle.install.asm.upgradeASM=false
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the auto-updates option. It can be one of the following:
|
||||
# - MYORACLESUPPORT_DOWNLOAD
|
||||
# - OFFLINE_UPDATES
|
||||
# - SKIP_UPDATES
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.installer.autoupdates.option=SKIP_UPDATES
|
||||
#------------------------------------------------------------------------------
|
||||
# In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location where
|
||||
# the updates are to be downloaded.
|
||||
# In case OFFLINE_UPDATES option is chosen, specify the location where the updates
|
||||
# are present.
|
||||
#------------------------------------------------------------------------------
|
||||
oracle.installer.autoupdates.downloadUpdatesLoc=
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username which has the patches download privileges
|
||||
# to be used for software updates.
|
||||
# Example : AUTOUPDATES_MYORACLESUPPORT_USERNAME=abc@oracle.com
|
||||
#------------------------------------------------------------------------------
|
||||
AUTOUPDATES_MYORACLESUPPORT_USERNAME=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the My Oracle Support Account Username password which has the patches download privileges
|
||||
# to be used for software updates.
|
||||
#
|
||||
# Example : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password
|
||||
#------------------------------------------------------------------------------
|
||||
AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the Proxy server name. Length should be greater than zero.
|
||||
#
|
||||
# Example : PROXY_HOST=proxy.domain.com
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_HOST=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy port number. Should be Numeric and at least 2 chars.
|
||||
#
|
||||
# Example : PROXY_PORT=25
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_PORT=0
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
|
||||
# blank if your proxy server requires no authentication.
|
||||
#
|
||||
# Example : PROXY_USER=username
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_USER=
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy password. Leave PROXY_USER and PROXY_PWD
|
||||
# blank if your proxy server requires no authentication.
|
||||
#
|
||||
# Example : PROXY_PWD=password
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_PWD=
|
||||
#------------------------------------------------------------------------------
|
||||
# Specify the proxy realm.
|
||||
#
|
||||
# Example : PROXY_REALM=metalink
|
||||
#------------------------------------------------------------------------------
|
||||
PROXY_REALM=
|
||||
30
install-oracle-sw/templates/gi_install_12.1.0.2.j2
Normal file
30
install-oracle-sw/templates/gi_install_12.1.0.2.j2
Normal file
@@ -0,0 +1,30 @@
|
||||
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v12.1.0
|
||||
ORACLE_HOSTNAME={{ ansible_hostname }}
|
||||
INVENTORY_LOCATION={{ oracle_inventory_loc }}
|
||||
SELECTED_LANGUAGES=en
|
||||
#-------------------------------------------------------------------------------
|
||||
## Specify the installation option.
|
||||
## Allowed values: CRS_CONFIG or HA_CONFIG or UPGRADE or CRS_SWONLY or HA_SWONLY
|
||||
## - CRS_CONFIG : To configure Grid Infrastructure for cluster
|
||||
## - HA_CONFIG : To configure Grid Infrastructure for stand alone server
|
||||
## - UPGRADE : To upgrade clusterware software of earlier release
|
||||
## - CRS_SWONLY : To install clusterware files only (can be configured for cluster
|
||||
## or stand alone server later)
|
||||
## - HA_SWONLY : To install clusterware files only (can be configured for stand
|
||||
## alone server later. This is only supported on Windows.)
|
||||
##-------------------------------------------------------------------------------
|
||||
oracle.install.option=CRS_SWONLY
|
||||
ORACLE_BASE={{ oracle_racine }}/{{ gi_user }}
|
||||
ORACLE_HOME={{ gi_home }}
|
||||
################################################################################
|
||||
# SECTION B - GROUPS #
|
||||
################################################################################
|
||||
oracle.install.asm.OSDBA={{ asmdba_group }}
|
||||
oracle.install.asm.OSOPER={{ asmoper_group }}
|
||||
oracle.install.asm.OSASM={{ asmadmin_group }}
|
||||
###############################################################################
|
||||
# SECTION D - CLUSTER & GNS #
|
||||
###############################################################################
|
||||
oracle.install.crs.config.ClusterType=STANDARD
|
||||
oracle.install.crs.config.gpnp.configureGNS=false
|
||||
|
||||
30
install-oracle-sw/templates/gi_install_12.2.0.1.j2
Normal file
30
install-oracle-sw/templates/gi_install_12.2.0.1.j2
Normal file
@@ -0,0 +1,30 @@
|
||||
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v12.2.0
|
||||
ORACLE_HOSTNAME={{ ansible_hostname }}
|
||||
INVENTORY_LOCATION={{ oracle_inventory_loc }}
|
||||
SELECTED_LANGUAGES=en
|
||||
#-------------------------------------------------------------------------------
|
||||
## Specify the installation option.
|
||||
## Allowed values: CRS_CONFIG or HA_CONFIG or UPGRADE or CRS_SWONLY or HA_SWONLY
|
||||
## - CRS_CONFIG : To configure Grid Infrastructure for cluster
|
||||
## - HA_CONFIG : To configure Grid Infrastructure for stand alone server
|
||||
## - UPGRADE : To upgrade clusterware software of earlier release
|
||||
## - CRS_SWONLY : To install clusterware files only (can be configured for cluster
|
||||
## or stand alone server later)
|
||||
## - HA_SWONLY : To install clusterware files only (can be configured for stand
|
||||
## alone server later. This is only supported on Windows.)
|
||||
##-------------------------------------------------------------------------------
|
||||
oracle.install.option=CRS_SWONLY
|
||||
ORACLE_BASE={{ oracle_racine }}/{{ gi_user }}
|
||||
ORACLE_HOME={{ gi_home }}
|
||||
################################################################################
|
||||
# SECTION B - GROUPS #
|
||||
################################################################################
|
||||
oracle.install.asm.OSDBA={{ asmdba_group }}
|
||||
oracle.install.asm.OSOPER={{ asmoper_group }}
|
||||
oracle.install.asm.OSASM={{ asmadmin_group }}
|
||||
###############################################################################
|
||||
# SECTION D - CLUSTER & GNS #
|
||||
###############################################################################
|
||||
oracle.install.crs.config.ClusterType=STANDARD
|
||||
oracle.install.crs.config.gpnp.configureGNS=false
|
||||
|
||||
23
install-oracle-sw/templates/logrotate_oracle.j2
Normal file
23
install-oracle-sw/templates/logrotate_oracle.j2
Normal file
@@ -0,0 +1,23 @@
|
||||
{{ oracle_base }}/diag/rdbms/*/*/trace/*.log
|
||||
{{ oracle_base }}/diag/tnslsnr/*/*/trace/*.log {
|
||||
weekly
|
||||
missingok
|
||||
rotate 7
|
||||
compress
|
||||
notifempty
|
||||
size 10M
|
||||
create 0640 oracle oinstall
|
||||
}
|
||||
|
||||
|
||||
{{ oracle_base }}/diag/tnslsnr/*/*/alert/*.xml
|
||||
{{ oracle_base }}/diag/rdbms/*/*/alert/*.xml {
|
||||
weekly
|
||||
copytruncate
|
||||
missingok
|
||||
compress
|
||||
notifempty
|
||||
size 10M
|
||||
create 0640 oracle oinstall
|
||||
}
|
||||
|
||||
2
install-oracle-sw/templates/oraInst.loc.j2
Normal file
2
install-oracle-sw/templates/oraInst.loc.j2
Normal file
@@ -0,0 +1,2 @@
|
||||
inventory_loc={{ oracle_inventory_loc }}
|
||||
inst_group={{ oracle_group }}
|
||||
11
install-oracle-sw/templates/run_db_install.sh.j2
Normal file
11
install-oracle-sw/templates/run_db_install.sh.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
# {{ ansible_managed }}
|
||||
#!/bin/bash
|
||||
|
||||
chkifinstalled=`grep "{{ db_home }}" "{{ oracle_inventory_loc }}/ContentsXML/inventory.xml" |wc -l`
|
||||
if [[ $chkifinstalled == 1 ]]; then
|
||||
echo "Error: ORACLE_HOME: {{ db_home }} already present. Exiting"
|
||||
exit 0
|
||||
else
|
||||
{{ oracle_stage }}/database/runInstaller -responseFile {{ oracle_stage }}/{{ db_response_file }} -ignorePrereq -ignoreSysPrereqs -silent -waitforcompletion
|
||||
fi
|
||||
|
||||
11
install-oracle-sw/templates/run_gi_install.sh.j2
Normal file
11
install-oracle-sw/templates/run_gi_install.sh.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
# {{ ansible_managed }}
|
||||
#!/bin/bash
|
||||
|
||||
chkifinstalled=`grep "{{ gi_home }}" "{{ oracle_inventory_loc }}/ContentsXML/inventory.xml" |wc -l`
|
||||
if [[ $chkifinstalled == 1 ]]; then
|
||||
echo "Error: ORACLE_HOME: {{ gi_home }} already present. Exiting"
|
||||
exit 0
|
||||
else
|
||||
{{ oracle_stage }}/grid/runInstaller -responseFile {{ oracle_stage }}/{{ gi_response_file }} -ignorePrereq -ignoreSysPrereqs -silent -waitforcompletion
|
||||
fi
|
||||
|
||||
26
install-oracle-sw/vars/main.yml
Normal file
26
install-oracle-sw/vars/main.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
#--------------------------------------------------------------------
|
||||
# paramètres commun
|
||||
# dans cette section ne rien modifier sauf si besoin
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
|
||||
# u01_free_space 4 Go pour l'install et 4 Go pour transfert et decompression des zip
|
||||
u01_free_space_gb: 8
|
||||
tmp_free_space_gb: 1
|
||||
etc_free_spage_gb: 1
|
||||
var_free_spage_gb: 1
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# paramètres d'installation grid infra
|
||||
#--------------------------------------------------------------------
|
||||
gi_user: "grid"
|
||||
gi_response_file: "install_gi_{{ gi_version }}.rsp"
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# paramètres d'installation des binaires de la base
|
||||
#--------------------------------------------------------------------
|
||||
db_user: "oracle"
|
||||
db_edition: "EE"
|
||||
db_response_file: "install_db_{{ db_version }}_{{ db_edition }}.rsp"
|
||||
|
||||
BIN
portable-ansible-v0.4.2-py2.tar.bz2
Normal file
BIN
portable-ansible-v0.4.2-py2.tar.bz2
Normal file
Binary file not shown.
27
readme.txt
27
readme.txt
@@ -1,26 +1,11 @@
|
||||
ansible sur le poste à configurer
|
||||
s'inspirer de l'exemple screen !
|
||||
|
||||
===
|
||||
|
||||
yum install -y wget bzip2
|
||||
|
||||
wget https://github.com/ownport/portable-ansible/releases/download/v0.4.2/portable-ansible-v0.4.2-py2.tar.bz2
|
||||
tar xvfj portable-ansible-v0.4.2-py2.tar.bz2
|
||||
|
||||
ln -s ansible ansible-playbook
|
||||
|
||||
creer un fichier hosts.oracle avec le contenu suivant
|
||||
|
||||
[local]
|
||||
localhost ansible_connection=local
|
||||
|
||||
scp mes playbooks dans /root
|
||||
|
||||
merlin@Dell-E7440:~/scripts/configure_oracle $ scp -r * root@192.168.1.241:/root
|
||||
|
||||
ou rsync :
|
||||
merlin@Dell-E7440:~/scripts/configure_oracle $ rsync -av * root@192.168.1.241:/root
|
||||
|
||||
python ansible-playbook book-config-oel-6-7.yml -i hosts.oracle
|
||||
$ pwd = /root
|
||||
|
||||
$ yum install -y wget bzip2 unzip git
|
||||
# git clone https://github.com/Yacine31/configure_oracle
|
||||
$ tar xfj configure_oracle/portable-ansible-v0.4.2-py2.tar.bz2
|
||||
# ln -s ansible ansible-playbook
|
||||
# python ansible-playbook configure_oracle/book-config-oel-6-7.yml -i configure_oracle/hosts.oracle
|
||||
|
||||
Reference in New Issue
Block a user