Installation Oracle Restart 11.2.0.3 sur une zone Solaris 10

La technologie de partitionnement Oracle Solaris Zones (soft partitionning) est utilisée pour virtualiser les services du système d’exploitation et fournir un environnement isolé et sécurisé pour l’exécution des applications. Une zone est un environnement de système d’exploitation virtualisé, créé au sein d’une instance unique du système d’exploitation Oracle Solaris.

 L’objectif de la virtualisation est de passer de la gestion de composants de centres de données individuels à la gestion de pools de ressources. Une virtualisation de serveur réussie permet d’améliorer l’utilisation du serveur et de ses ressources. La virtualisation de serveur permet également de garantir le succès des projets de consolidation de serveur gérant chacun des systèmes distants.

La virtualisation est encouragée par la nécessité de consolider plusieurs hôtes et services sur une seule machine. La virtualisation permet de réduire les coûts grâce au partage du matériel, des infrastructures et des tâches d’administration. Principaux avantages :

  • Augmentation du taux d’utilisation des ressources matérielles
  • Plus grande souplesse dans l’allocation des ressources
  • Diminution des besoins en alimentation
  • Réduction des coûts de gestion
  • Baisse du coût de possession
  • Limites de ressources et d’administration d’une application à l’autre sur un système

http://docs.oracle.com/cd/E26919_01/pdf/E25827.pdf

La nouvelle fonctionnalité Oracle Restart proposée par la version 11gR2 permet d’améliorer la disponibilité de votre base de données Oracle. Avec Oracle Restart les différents composants Oracle (Listener, Instance Oracle, Istance ASM)  peuvent être automatiquement démarrés après une défaillance matérielle ou logicielle mais aussi tout simplement après un redémarrage du serveur de la base de données. Oracle Restart contrôle à fréquence régulière la présence des composants si ce contrôle échoue le composant est arrêté et redémarré automatiquement par Oracle restart tout en respectant l’ordre de dépendance des composants.

Que de mieux qu’un petit exemple pour mettre en pratique l’installation de la release 11.2.0.3 et éviter les petits pièges qui peuvent émailler cette opération. Notre installation de la release 11.2.0.3 s’effectuera manuellement en mode silencieux à laquelle nous appliquerons  aussi le Patch PSU 11.2.0.3.6.

Attention pour le composant Grid Installation il faudra appliquer le patch 16083653 alors que pour le composant de la base de données il faudra appliquer le patch 16056266

Pré-requis au niveau de la zone globale

Avant de commencer l’installation proprement dite certaines précautions doivent être prises au niveau réseau, utilisateurs et déclaration des disques dans la zone globale.

Initialisation des paramètres TCP

Il s’agit d’une simple précaution d’usage pour limiter la plage des ports TCP et UDP concernant les connexions Oracle sur le réseau ‘.

/usr/sbin/ndd -set /dev/tcp tcp_smallest_anon_port 9000
/usr/sbin/ndd -set /dev/tcp tcp_largest_anon_port 65500
/usr/sbin/ndd -set /dev/udp udp_smallest_anon_port 9000
/usr/sbin/ndd -set /dev/udp udp_largest_anon_port 65500

Définition des utilisateurs et des groupes

Sous le compte ‘root‘  nous devons préparer l’environnement Oracle aussi il est impératif de créer :

  • Le compte oracle à qui nous attribuerons le groupe oracle, asmadmin et oinstall 
  • Le répertoire d’accueil de la distribution Grid Infrastructure et autres répertoires
  • Les droits de lecture, écriture, exécution au répertoire racine des produits Oracle
# groupadd -g 1000 oinstall
# groupadd -g 1031 dba
# groupadd -g 1032 asmadmin
# useradd -u 1101 -g oinstall -G dba,asmadmin oracle
# mkdir -p /app/grid/11.2.0
# mkdir -p /app/oracle
# mkdir -p /app/oracle/oraInventory
# chown -R oracle:oinstall /app
# chmod -R 775 /app

Déclaration des disques ASM

Pour les disques qui vont être gérés directement par ASM il est indispensable de laisser le premier cylindre libre afin d’éviter que la table des partitions soit écrasée par ASM. La commande /usr/sbin/format permet de vérifier que le disque destiné à ASM est bien partitionné et qu’il commence au moins au cylindre 1. Dans le cas contraire vous devez utiliser l’utilitaire fdisk qui permet de partitionner le disque.

oracle@easytest-p:easytest:/soft/home/oracle] sudo -s
easytest-p-# id
uid=0(root) gid=0(root)
easytest-p-# su -
# fdisk c5t6001438007F2D6150000500001330000d0s0
WARNING: Device /dev/rdsk/c5t6001438007F2D6150000500001330000d0s0:
The device does not appear to include absolute
sector 0 of the PHYSICAL disk (the normal location for an fdisk table).
Fdisk is normally used with the device that represents the entire fixed disk.
(For example, /dev/rdsk/c0d0p0 on x86 or /dev/rdsk/c0t5d0s2 on sparc).
Are you sure you want to continue? (y/n) y
             Total disk size is 6527 cylinders
             Cylinder size is 16065 (512 byte) blocks
                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Solaris2          1  6526    6526    100
SELECT ONE OF THE FOLLOWING:
   1. Create a partition
   2. Specify the active partition
   3. Delete a partition
   4. Change between Solaris and Solaris2 Partition IDs
   5. Exit (update disk configuration and exit)
   6. Cancel (exit without updating disk configuration)
Enter Selection: 5

Le propriétaire des disques doit être ensuite attribué au compte ‘oracle’ avec ses droits associés.

chown oracle:oinstall /dev/rdsk/*
chmod 660 /dev/rdsk/*

Pré-requis au niveau de la zone locale

Création des fichiers de configuration Oracle

Comme nous effectuons une installation silencieuse, nous devons impérativement définir la localisation du fichier d’inventaire des composants Oracle oraInst.loc, nous en profiterons en même temps pour créer le fichier de déclaration des instances Oracle /var/opt/oracle/oratab

# mkdir /var/opt/oracle
# chown oracle:oinstall /var/opt/oracle
# touch /var/opt/oracle/oratab
# chown oracle:oinstall /var/opt/oracle/oratab
# ln -s /var/opt/oracle/oratab /etc/oratab         # Localisation en conformité avec les différents Unix Linux
# echo "inventory_loc=/app/oracle/oraInventory" >/var/opt/oracle/oraInst.loc
# echo "inst_group=oinstall" >>/var/opt/oracle/oraInst.loc

Création du fichier d’initialisation des variables d’environnement du répertoire d’accueil : .bash_profile

Nous pouvons adapter le fichier .bash_profile pour bénéficier d’un environnement plus convivial pour le compte ‘oracle

# .bash_profile
# Get the aliases and functions
 if [ -f ~/.bashrc ]; then
 . ~/.bashrc
 fi
 #Alias
 alias ll="ls -l"
 # User specific environment and startup programs
 PATH=$PATH:/usr/bin:/usr/local/bin:/var/opt/oracle:$HOME/bin
 export PATH
 unset USERNAME
 umask 022
 # LIST DES BASES
 LISTBASE=`cat /etc/oratab|grep -v "^oracle"|grep -v "^#" |cut -f1 -d: -s`
 ORACLE_BASE=/app/oracle
 GRID_HOME=/app/grid/11.2.0
 ORACLE_HOME=/app/oracle/11.2.0.3/db
 ORACLE_SID=EASYTEST
 LD_LIBRARY_PATH=$ORACLE_HOME/lib
 PATH=$PATH:$ORACLE_HOME/bin:$GRID_HOME/bin:/usr/sbin:/sbin
 export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH
 export GRID_HOME ORACLE_SID LD_LIBRARY_PATH PATH
 echo ""
 echo "Liste des bases de donnees sur ce serveur : "
 echo   $LISTBASE
 echo ""
 export EDITOR=vi
 export PS1="$USER@`/bin/hostname`:${ORACLE_SID}:${PWD}] "

Installation en mode silencieux de Grid Infrastructure

L’installation de la distribution Grid Infrastructure s’opérera en mode silencieux car nous ne disposons pas des services X11

Vérification des pré-requis Sous oracle

Il est impératif d’effectuer la vérification des pré-requis avant l’installation de Grid infrastructure 11.2.0.3 avec l’outil runcluvfy.sh qui est fourni dans la distribution, en premier lieu il convient de décompresser le fichier p10404530_112030_Solaris86-64_3of6.zip puis de lancer l’utilitaire de contrôle ‘ runcluvfy’. Le statut de cette vérification doit être impérativement valide pour pouvoir envisager la suite des opérations.

cd /app/Oracle_Distrib
unzip p10404530_112030_Solaris86-64_3of6.zip
cd grid
@easytest-p:EASYTEST:/app/Oracle_Distrib/grid] runcluvfy.sh stage -pre hacfg
Performing pre-checks for Oracle Restart configuration
Total memory check passed
Available memory check passed
Swap space check passed
Free disk space check passed for "easytest-p:/var/tmp/"
Check for multiple users with UID value 500 passed
User existence check passed for "oracle"
Group existence check passed for "oinstall"
Group existence check passed for "dba"
Membership check for user "oracle" in group "oinstall" [as Primary] passed
Membership check for user "oracle" in group "dba" passed
Run level check passed
Hard limits check passed for "maximum open file descriptors"
Soft limits check passed for "maximum open file descriptors"
Hard limits check passed for "maximum user processes"
Soft limits check passed for "maximum user processes"
System architecture check passed
Kernel version check passed
Kernel parameter check passed for "project.max-sem-ids"
Kernel parameter check passed for "process.max-sem-nsems"
Kernel parameter check passed for "project.max-shm-memory"
Kernel parameter check passed for "project.max-shm-ids"
Kernel parameter check passed for "tcp_smallest_anon_port"
Kernel parameter check passed for "tcp_largest_anon_port"
Kernel parameter check passed for "udp_smallest_anon_port"
Kernel parameter check passed for "udp_largest_anon_port"
Package existence check passed for "SUNWarc"
Package existence check passed for "SUNWbtool"
Package existence check passed for "SUNWhea"
Package existence check passed for "SUNWlibm"
Package existence check passed for "SUNWlibms"
Package existence check passed for "SUNWsprot"
Package existence check passed for "SUNWtoo"
Package existence check passed for "SUNWi1of"
Package existence check passed for "SUNWxwfnt"
Package existence check passed for "SUNWlibC"
Package existence check passed for "SUNWcsl"
Operating system patch check passed for "Patch 139575-03"
Operating system patch check passed for "Patch 139556-08"
Operating system patch check passed for "Patch 137104-02"
Operating system patch check passed for "Patch 120754-06"
Operating system patch check passed for "Patch 119961-05"
Operating system patch check passed for "Patch 119964-14"
Operating system patch check passed for "Patch 141415-04"
Check for multiple users with UID value 0 passed
Current group ID check passed
Starting check for consistency of primary group of root user
Check for consistency of root user's primary group passed
Pre-check for Oracle Restart configuration was successful.

Modification du fichier d’installation grid_install.rsp et lancement de l’installation

Comme il s’agit d’une installation en mode silencieux, nous devons initialiser les paramètres du fichier ‘grid_install.rsp’ aux valeurs correspondant à notre environnement de déploiement et à notre option d’installation, pour Oracle Restart le paramètre  oracle.install.option doit être initialisé à HA_CONFIG. Comme nous utilisons ASM les paramètres asm.diskgroup doivent être aussi initialisés.

INVENTORY_LOCATION=/var/opt/oracle
SELECTED_LANGUAGES=en,fr
oracle.install.option=HA_CONFIG                 # Paramètre d'installation Oracle Restart
ORACLE_BASE=/app/oracle
ORACLE_HOME=/app/grid/11.2.0
oracle.install.asm.OSDBA=dba
oracle.install.asm.OSOPER=dba
oracle.install.asm.OSASM=asmadmin
oracle.install.crs.config.gpnp.configureGNS=false
oracle.install.asm.SYSASMPassword=<mot_de_passe_a_renseigner>
oracle.install.asm.diskGroup.name=DG_DATA
oracle.install.asm.diskGroup.redundancy=EXTERNAL
oracle.install.asm.diskGroup.AUSize=1
oracle.install.asm.diskGroup.disks=/dev/rdsk/c5t6001438007F2D6150000500001270000d0s0
oracle.install.asm.diskGroup.diskDiscoveryString=/dev/rdsk/*
oracle.install.asm.monitorPassword=<mot_de_passe_a_renseigner>
# Sous le compte Oracle
./runInstaller -silent -responseFile /app/Oracle_Distrib/grid/response/grid_install.rsp
....
# Puis sous le compte root lancer le script root.sh pour finaliser l'installation
/app/grid/11.2.0/root.sh -bindir /opt/var/oracle
/app/grid/11.2.0/cfgtoollogs/configTool
chmod 770 /app/grid/11.2.0
ln -s /var/opt/oracle/oratab /etc/oratab

Application du patchset GRID INFRASTRUCTURE PATCH SET UPDATE 11.2.0.3.6 (INCLUDES DB PSU 11.2.0.3.6)

Avant tout nous devons décompresser le fichier du patchset p6880880_112000_Solaris86-64.zip dans le répertoire de la distribution Grid infrastructure

Sous le compte ‘Oracle’

unzip /app/Oracle_Distrib/p6880880_112000_Solaris86-64.zip -d /app/grid/11.2.0
cd /app/Oracle_Distrib
unzip p16083653_112030_Solaris86-64.zip

Générer le fichier réponse

Nous nous servons d’un petit outil bien utile emocmrsp pour générer le fichier de réponse nécessaire à l’application du patchset

export $ORACLE_HOME=/app/grid/11.2.0
$ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output $ORACLE_HOME/OPatch/ocm/bin/ocm.rsp
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:  Y
The OCM configuration response file (/app/grid/11.2.0/OPatch/ocm/bin/ocm.rsp) was successfully created.

Application du patch 16083653

Cette application du patchset s’effectue par le lancement de l’outil opatch sous le répertoire ORACLE_HOME de ‘grid infrastructure’

Sous le compte root
export PATH=$PATH:/usr/ccs/bin
export ORACLE_HOME=/app/grid/11.2.0
cd $ORACLE_HOME/OPatch
./opatch auto /app/Oracle_Distrib -ocmrf /app/grid/11.2.0/OPatch/ocm/bin/ocm.rsp
Executing /app/grid/11.2.0/perl/bin/perl ./crs/patch11203.pl -patchdir /app -patchn Oracle_Distrib -ocmrf /app/grid/11.2.0/OPatch/ocm/bin/ocm.rsp -paramfile /app/grid/11.2.0/crs/install/crsconfig_params
/app/grid/11.2.0/crs/install/crsconfig_params
/app/grid/11.2.0/crs/install/s_crsconfig_defs
This is the main log file: /apps/grid/11.2.0/cfgtoollogs/opatchauto2013-04-25_12-10-52.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system: /apps/grid/11.2.0/cfgtoollogs/opatchauto2013-04-25_12-10-52.report.log
2013-04-25 12:10:52: Starting Oracle Restart Patch Setup
Using configuration parameter file: /app/grid/11.2.0/crs/install/crsconfig_params
Successfully unlock /app/grid/11.2.0
patch /app/Oracle_Distrib/16315641  apply successful for home  /app/grid/11.2.0
patch /app/Oracle_Distrib/16056266  apply successful for home  /app/grid/11.2.0
CRS-4123: Oracle High Availability Services has been started.

Génération de l’instance ASM (sous compte oracle)

Nous  générons ensuite le fichier d’initialisation ASM indispensable au démarrage de l’instance

echo "+ASM:/app/grid/11.2.0:N" >> /etc/oratab
. oraenv
+ASM
echo "*.asm_diskstring='/dev/rdsk/*'" > $ORACLE_HOME/dbs/init+ASM.ora
echo "*.asm_power_limit=1" >> $ORACLE_HOME/dbs/init+ASM.ora
echo "*.diagnostic_dest='/app/oracle' " >> $ORACLE_HOME/dbs/init+ASM.ora
echo "*.instance_type='asm'" >> $ORACLE_HOME/dbs/init+ASM.ora
echo "*.large_pool_size=12M" >> $ORACLE_HOME/dbs/init+ASM.ora
echo "*.processes=150" >> $ORACLE_HOME/dbs/init+ASM.ora
echo "*.remote_login_passwordfile='EXCLUSIVE'" >> $ORACLE_HOME/dbs/init+ASM.ora
echo "#*.asm_diskgroups='DG_DATA','DG_RECO'" >> $ORACLE_HOME/dbs/init+ASM.ora

Puis vérifier le démarrage du service cssd

crs_stat -t
Name         Type           Target  State    Host
------------------------------------------------------------
ora.cssd     ora.cssd.type  OFFLINE OFFLINE
ora.diskmon  ora....on.type OFFLINE OFFLINE

Nous devons alors démarrer le service ‘css’ pour pouvoir créer les groupes de disques ASM

crs_start ora.cssd
Attempting to start `ora.cssd` on member `easytest-p`
Start of `ora.cssd` on member `easytest-p` succeeded.
crs_stat -t
Name         Type           Target  State    Host
------------------------------------------------------------
ora.cssd     ora.cssd.type  ONLINE  ONLINE   easytest-p
ora.diskmon  ora....on.type OFFLINE OFFLINE  easytest-p

Création des groupes de disques ASM

Maintenant nous devons démarrer l’instance ASM pour créer les groupes de disques

sqlplus / as sysasm
SQL*Plus: Release 11.2.0.3.0 Production on Thu Apr 25 16:47:41 2013
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Automatic Storage Management option
Connected to an idle instance.
SQL>  startup pfile='/app/grid/11.2.0/dbs/init+ASM.ora';
SQL> CREATE DISKGROUP DG_DATA EXTERNAL REDUNDANCY DISK '/dev/rdsk/c5t6001438007F2D6150000500001270000d0s0' NAME ASM_DATA_001,
'/dev/rdsk/c5t6001438007F2D61500005000012B0000d0s0' NAME ASM_DATA_002;
Diskgroup created.
SQL> CREATE DISKGROUP DG_RECO  EXTERNAL REDUNDANCY DISK '/dev/rdsk/c5t6001438007F2D61500005000012F0000d0s0' NAME ASM_RECO_001,
'/dev/rdsk/c5t6001438007F2D6150000500001330000d0s0' NAME ASM_RECO_002;
Diskgroup created.
SQL> alter diskgroup DG_DATA MOUNT;
Diskgroup altered.
SQL> alter diskgroup DG_RECO MOUNT;
Diskgroup altered.
#Decommenter le paramètre asm_diskgroups dans le fichier init.ora et relance l'instance ASM
SQL> startup force;

Pour que l’instance ASM soit redémarrée automatiquement les ressources ASM doivent être déclarées au niveau Oracle restart

srvctl add asm -p $ORACLE_HOME/dbs/init${ORACLE_SID}.ora
srvctl status asm
ASM is not running.
srvctl start asm
srvctl status asm
ASM is running.

Installation de la distribution Oracle database

Pour l’installation de la distribution Oracle database il suffit de suivre le mode opératoire suivant :
Sous Oracle

echo "EASYTEST:/app/oracle/11.2.0.3/db:N" >> /etc/oratab
mkdir -p /app/oracle/11.2.0.3/db
. oraenv
EASYTEST
export ORACLE_BASE=/app/oracle
cd /app/Oracle_Distrib
unzip p10404530_112030_Solaris86-64_2of6.zip
unzip p10404530_112030_Solaris86-64_1of6.zip
cd /app/Oracle_Distrib/database

Comme il s’agit d’une installation en mode silencieux, nous devons initialiser les paramètres du fichier ‘db_install.rsp’ aux valeurs correspondant à notre environnement de déploiement et à notre option d’installation INSTALL_DB_SWONLY.

# Paramètres à modifier dans le fichier /app/Oracle_Distrib/database/response/db_install.rsp

oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/var/opt/oracle
SELECTED_LANGUAGES=en,fr
ORACLE_HOME=/app/oracle/11.2.0.3/db
ORACLE_BASE=/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.EEOptionsSelection=false
oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.3.0,oracle.oraolap:11.2.0.3.0,oracle.rdbms.dm:11.2.0.3.0,oracle.rdbms.dv:11.2.0.3.0,oracle.rdbms.lbac:11.2.0.3.0,oracle.rdbms.rat:11.2.0.3.0
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
oracle.install.db.config.starterdb.characterSet=AL32UTF8
oracle.install.db.config.starterdb.memoryOption=true
oracle.install.db.config.starterdb.installExampleSchemas=false
oracle.install.db.config.starterdb.enableSecuritySettings=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true

L’installation en mode silencieux s’effectue en lançant runInstaller

# Sous le compte oracle
./runInstaller -silent -showProgress -responseFile $PWD/response/db_install.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 180 MB.   Actual 152788 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 153600 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-04-25_05-56-06PM. Please wait ...oracle@easytest-p:EASYTEST:/app/Oracle_Distrib/database] You can find the log of this install session at:
/app/oracle/oraInventory/logs/installActions2013-04-25_05-56-06PM.log
Prepare in progress.
..................................................   9% Done.
Prepare successful.
Copy files in progress.
..................................................   15% Done.
..................................................   20% Done.
..................................................   25% Done.
..................................................   30% Done.
..................................................   35% Done.
..................................................   44% Done.
..................................................   49% Done.
..................................................   55% Done.
..................................................   62% Done.
..................................................   67% Done.
..................................................   72% Done.
..................................................   77% Done.
..................................................   82% Done.
........................................
Copy files successful.
Link binaries in progress.
..........
Link binaries successful.
Setup files in progress.
..................................................   87% Done.
..................................................   94% Done.
Setup files successful.
The installation of Oracle Database 11g was successful.
Please check '/app/oracle/oraInventory/logs/silentInstall2013-04-25_05-56-06PM.log' for more details.
Execute Root Scripts in progress.
As a root user, execute the following script(s):
1. /app/oracle/11.2.0.3/db/root.sh
..................................................   100% Done.
Execute Root Scripts successful.
Successfully Setup Software.
# Puis sous le compte root lancer le script root.sh pour finaliser l'installation
/app/oracle/11.2.0.3/db/root.sh

Application du patch 16056266

# Sous le compte oracle
. oraenv
ORACLE_SID = [EASYTEST] ? EASYTEST
unzip /app/Oracle_Distrib/p6880880_112000_Solaris86-64.zip -d $ORACLE_HOME

Application du patch

# Sous le compte root
cd $ORACLE_HOME
. oraenv
ORACLE_SID = [EASYTEST] ? EASYTEST
The Oracle base remains unchanged with value /app/oracle
cd $ORACLE_HOME/OPatch
./opatch apply /app/Oracle_Distrib/16056266 -ocmrf /app/grid/11.2.0/OPatch/ocm/bin/ocm.rsp
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation.  All rights reserved.
Oracle Home       : /app/oracle/11.2.0.3/db
Central Inventory : /app/oracle/oraInventory
from           : /app/oracle/11.2.0.3/db/oraInst.loc
OPatch version    : 11.2.0.3.4
OUI version       : 11.2.0.3.0
Log file location : /app/oracle/11.2.0.3/db/cfgtoollogs/opatch/opatch2013-04-25_18-51-45PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   13343438  13696216  13923374  14275605  14727310  16056266
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/app/oracle/11.2.0.3/db')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying sub-patch '13343438' to OH '/app/oracle/11.2.0.3/db'
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '13696216' to OH '/app/oracle/11.2.0.3/db'
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.sdo.locator, 11.2.0.3.0...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Patching component oracle.sysman.oms.core, 10.2.0.4.4...
Verifying the update...
Applying sub-patch '13923374' to OH '/app/oracle/11.2.0.3/db'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.3.0 ]  not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Patching component oracle.network.rsf, 11.2.0.3.0...
Patching component oracle.network.listener, 11.2.0.3.0...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '14275605' to OH '/app/oracle/11.2.0.3/db'
ApplySession: Optional component(s) [ oracle.precomp.lang, 11.2.0.3.0 ]  not present in the Oracle Home or a higher version is found.
Patching component oracle.network.client, 11.2.0.3.0...
Patching component oracle.network.rsf, 11.2.0.3.0...
Patching component oracle.precomp.common, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Patching component oracle.rdbms.rman, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms.util, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '14727310' to OH '/app/oracle/11.2.0.3/db'
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.sdo.locator, 11.2.0.3.0...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Patching component oracle.sysman.oms.core, 10.2.0.4.4...
Verifying the update...
Applying sub-patch '16056266' to OH '/app/oracle/11.2.0.3/db'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.3.0 ]  not present in the Oracle Home or a higher version is found.
Patching component oracle.network.listener, 11.2.0.3.0...
Patching component oracle.network.rsf, 11.2.0.3.0...
Patching component oracle.ovm, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.rman, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.sdo.locator, 11.2.0.3.0...
Patching component oracle.rdbms.deconfig, 11.2.0.3.0...
Verifying the update...
Composite patch 16056266 successfully applied.
Log file location: /app/oracle/11.2.0.3/db/cfgtoollogs/opatch/opatch2013-04-25_18-51-45PM_1.log
OPatch succeeded.
./opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation.  All rights reserved.
Oracle Home       : /app/oracle/11.2.0.3/db
Central Inventory : /app/oracle/oraInventory
from           : /app/oracle/11.2.0.3/db/oraInst.loc
OPatch version    : 11.2.0.3.4
OUI version       : 11.2.0.3.0
Log file location : /app/oracle/11.2.0.3/db/cfgtoollogs/opatch/opatch2013-04-26_09-48-51AM_1.log
Lsinventory Output file location : /app/oracle/11.2.0.3/db/cfgtoollogs/opatch/lsinv/lsinventory2013-04-26_09-48-51AM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (1):
Oracle Database 11g                                                  11.2.0.3.0
There are 1 products installed in this Oracle Home.
Interim patches (1) :
Patch  16056266     : applied on Fri Apr 26 09:41:00 MEST 2013
Unique Patch ID:  15990586
Patch description:  "Database Patch Set Update : 11.2.0.3.6 (16056266)"
Created on 13 Mar 2013, 07:17:04 hrs PST8PDT
Sub-patch  14727310; "Database Patch Set Update : 11.2.0.3.5 (14727310)"
Sub-patch  14275605; "Database Patch Set Update : 11.2.0.3.4 (14275605)"
Sub-patch  13923374; "Database Patch Set Update : 11.2.0.3.3 (13923374)"
Sub-patch  13696216; "Database Patch Set Update : 11.2.0.3.2 (13696216)"
Sub-patch  13343438; "Database Patch Set Update : 11.2.0.3.1 (13343438)"
Bugs fixed:
13566938, 13593999, 10350832, 14138130, 12919564, 13561951, 13624984
13588248, 13080778, 13914613, 13804294, 14258925, 12873183, 13645875
14472647, 12880299, 14664355, 14409183, 12998795, 14469008, 13719081
13492735, 13496884, 12857027, 14263036, 14263073, 13732226, 13742433
16368108, 16314469, 12905058, 13742434, 12849688, 12950644, 13742435
13464002, 13534412, 12879027, 13958038, 14613900, 12585543, 12535346
12588744, 11877623, 13786142, 12847466, 13649031, 13981051, 12582664
12797765, 14262913, 12923168, 13384182, 13612575, 13466801, 13484963
14207163, 11063191, 13772618, 13070939, 12797420, 13041324, 16314467
16314468, 12976376, 11708510, 13680405, 14589750, 13026410, 13742437
13737746, 14644185, 13742438, 13326736, 13596521, 13001379, 16344871
13099577, 14275605, 13742436, 9873405, 9858539, 14841812, 11715084
16231699, 14040433, 9703627, 12662040, 12617123, 12845115, 12764337
13354082, 14459552, 13397104, 13913630, 12964067, 12983611, 13550185
13810393, 12780983, 12583611, 14546575, 13476583, 15862016, 11840910
13903046, 15862017, 13572659, 16294378, 13718279, 14088346, 13657605
13448206, 16314466, 14480676, 13419660, 13632717, 14063281, 14110275
13430938, 13467683, 13420224, 13812031, 14548763, 16299830, 12646784
13616375, 14035825, 12861463, 12834027, 15862021, 13632809, 13377816
13036331, 14727310, 13685544, 15862018, 13499128, 16175381, 13584130
12829021, 15862019, 12794305, 14546673, 12791981, 13787482, 13503598
10133521, 12718090, 13399435, 14023636, 13860201, 12401111, 13257247
13362079, 14176879, 12917230, 13923374, 14220725, 14480675, 13524899
13559697, 9706792, 14480674, 13916709, 13098318, 13773133, 14076523
13340388, 13366202, 13528551, 12894807, 13454210, 13343438, 12748240
14205448, 13385346, 15853081, 14273397, 12971775, 13582702, 10242202
13035804, 13544396, 16382353, 8547978, 14226599, 14062795, 13035360
12693626, 13332439, 14038787, 14062796, 12913474, 14841409, 14390252
16314470, 13370330, 13059165, 14062797, 14062794, 12959852, 13358781
12345082, 12960925, 9659614, 13699124, 14546638, 13936424, 13338048
12938841, 12658411, 12620823, 12656535, 14062793, 12678920, 13038684
14062792, 13807411, 13250244, 12594032, 15862022, 9761357, 12612118
13742464, 14052474, 13911821, 13457582, 13527323, 15862020, 13910420
13502183, 12780098, 13705338, 13696216, 14841558, 10263668, 15862023
16056266, 15862024, 13554409, 13645917, 13103913, 13011409, 14063280
--------------------------------------------------------------------------------
OPatch succeeded.

Création de la base de données

Pour la création de la base de données nous utilisons un script /app/oracle/admin/EASYTEST/scripts/easytest.sh qui a été généré précédemment par l’assistant de création de base de données. Nous devrons ensuite créer le fichier des paramètres de l’instance Oracle et déclarer les ressources de la base de données au niveau d’Oracle Restart.

  • Création du fichier spfile
sqlplus / as sysdba
create spfile='+DG_DATA/EASYTESTP/spfileEASYTEST.ora' from memory;
  • Création des ressources Oracle Restart de la base de données (base de données, service)
srvctl add database -d easytestp -o /app/oracle/11.2.0.3/db -r PRIMARY -s open -i EASYTEST -y AUTOMATIC
srvctl add service -d easytestp -s easytest -l PRIMARY  -y AUTOMATIC
srvctl modify database -d easytestp -p +DG_DATA/EASYTESTP/spfileEASYTEST.ora

Validation de la configuration Oracle restart

Maintenant nous devons vérifier que la configuration Oracle Restart est valide pour cela nous allons arrêter et redémarrer Oracle Restart et contrôler la présence  des ressources Oracle

. oraenv
ORACLE_SID = [EASYTEST] ? +ASM
The Oracle base remains unchanged with value /app/oracle
oracle@easytest-p:+ASM: crsctl stop has
oracle@easytest-p:+ASM: crsctl start has
oracle@easytest-p:+ASM:/app/oracle/admin/EASYTEST/scripts] crs_stat -t
Name               Type           Target    State     Host
------------------------------------------------------------
ora.DG_DATA.dg     ora....up.type ONLINE    ONLINE    easytest-p
ora.DG_RECO.dg     ora....up.type ONLINE    ONLINE    easytest-p
ora....ER.lsnr     ora....er.type ONLINE    ONLINE    easytest-p
ora.asm            ora.asm.type   ONLINE    ONLINE    easytest-p
ora.cssd           ora.cssd.type  ONLINE    ONLINE    easytest-p
ora.diskmon        ora....on.type OFFLINE   OFFLINE
ora.evmd           ora.evm.type   ONLINE    ONLINE    easytest-p
ora.ons            ora.ons.type   OFFLINE   OFFLINE
ora.easytestp.db   ora....se.type ONLINE    ONLINE    easytest-p
ora....test.svc    ora....ce.type ONLINE    ONLINE    easytest-p

Voilà à vous de jouer maintenant !

1 réflexion sur “Installation Oracle Restart 11.2.0.3 sur une zone Solaris 10”

  1. Superbe article qui détaille bien la mise en oeuvre des différents éléments en mode silencieux.
    Toutefois, j’ai une remarque et une question :
    Coquille : Attention pour le composant Grid Installation,
    il faut comprendre : Attention pour le composant Grid Infrastructure,
    Question :
    # Puis sous le compte root lancer le script root.sh pour finaliser l’installation
    /app/grid/11.2.0/root.sh -bindir /opt/var/oracle
    Ceci permet de stocker les fichier dbhome, oraenv et coraenv, vers le répertoire
    /opt/var/oracle plutôt que dans le répertoire habituel : /usr/local/bin.
    Rien d’équivalent, lorsque vous exécutez le root.sh après l’installation du noyau Oracle Database :
    # Puis sous le compte root lancer le script root.sh pour finaliser l’installation
    /app/oracle/11.2.0.3/db/root.sh
    Pourquoi ?

Les commentaires sont fermés.