Documente Academic
Documente Profesional
Documente Cultură
==================================================================
============================================
Sistema Operacional: Oracle Enterprise Linux 5 64bits
Verso do Banco de Dados: Oracle Database 11g R2 11.2.0.2 64bits
Instalador Oracle 11g R2 PachSet 11.2.0.2: Uma novidade do PachSet Oracle 11gR2
11.2.0.2 que voc no precisa mais instalar a verso 11.2.0.1 para aplicar o PachSet
11.2.0.2. Agora voc pode instalar direto a verso 11.2.0.2 sem precisar instalar o instalador
base 11.2.0.1 como em releases anteriores.
- p10098816_112020_Linux-x86-64_1of7
- p10098816_112020_Linux-x86-64_2of7
- p10098816_112020_Linux-x86-64_3of7
==================================================================
============================================
==================================================================
============================================
mkdir -p /u01/app/oracle/product/11.2.0/ajr
mkdir -p /u01/installoracle
chown -R oracle.oinstall /u01
==================================================================
============================================
Configurao das Variveis de Ambiente:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=rac1.murassaki.ind.br; export ORACLE_HOSTNAME
ORACLE_UNQNAME=AJR; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/ajr; export ORACLE_HOME
ORACLE_SID=RAC1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
==================================================================
============================================
INSTALANDO ASMLIB
[root@rac2 /]# cd installoracle/
[root@rac2 installoracle]# cd ASMLIB\ asmlib\ 2.6.18-194.el5xen/
[root@rac2 ASMLIB asmlib 2.6.18-194.el5xen]# ls
oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-194.el5-debuginfo2.0.5-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm
oracleasm-2.6.18-194.el5debug-2.0.5-1.el5.x86_64.rpm oracleasm-2.6.18-194.el5xen-2.0.51.el5.x86_64.rpm
oracleasm-support-2.1.3-1.el5.x86_64.rpm
[root@rac2 ASMLIB asmlib 2.6.18-194.el5xen]# rpm -ivh oracleasm*
warning: oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature:
NOKEY, key ID 1e5e0159
Preparing
########################################### [100%]
1:oracleasm-support ########################################### [ 17%]
2:oracleasm-2.6.18-194.el########################################### [ 33%]
3:oracleasm-2.6.18-194.el########################################### [ 50%]
4:oracleasm-2.6.18-194.el########################################### [ 67%]
5:oracleasm-2.6.18-194.el########################################### [ 83%]
6:oracleasmlib
########################################### [100%]
[root@rac2 ASMLIB asmlib 2.6.18-194.el5xen]#
==================================================================
============================================
VERIFICANDO ASMLIB INSTALADA
ORACLEASM_SCANORDER=dm
ORACLEASM_SCANEXCLUDE=sd
==================================================================
============================================
Com isso o Grid InfraStructure reconhecer os discos
==================================================================
============================================
Configuraes de Rede cada Servidor possui 4 placas de Rede(Recomendado para
Oracle RAC):
[root@rac1 ~]# ifconfig
eth0
eth0
==================================================================
============================================
==================================================================
============================================
Caso nesta tela no aparea os discos ser necessrio executar os passos abaixo:
==================================================================
============================================
Conforme Nota no Suporte Oracle seguir os procedimentos abaixo:
Rodar em todos os Nodes,
1. Modify the /etc/sysconfig/oracleasm with:
ORACLEASM_SCANORDER=dm ORACLEASM_SCANEXCLUDE=sd
==================================================================
============================================
2. restart the asmlib by : # /etc/init.d/oracleasm restart
==================================================================
============================================
The configuration file /etc/sysconfig/oracleasm parameters ORACLEASM_SCANORDER
and ORACLEASM_SCANEXCLUDE were updated,
but after restarting the Oracleasm service the changes were not put into effect.
For example: multipath was configured and the dm- devices are presented.
The /etc/sysconfig/oracleasm file was configured accordingly:
# ORACLEASM_SCANORDER:
Matching patterns to order disk scanning
ORACLEASM_SCANORDER=dm
# ORACLEASM_SCANEXCLUDE:
Matching patterns to exclude disks from scan
ORACLEASM_SCANEXCLUDE=sd
Caso no consiga
[root@rac1 sysconfig]# /usr/sbin/oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=oracle
ORACLEASM_GID=dba
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER="
ORACLEASM_SCANEXCLUDE="
=================================================================
=============================================
Soluo
Remove the manually created file and create the soft-link:
# mv /etc/sysconfig/oracleasm /etc/sysconfig/oracleasm_bak
# ln oracleasm-_dev_oracleasm /etc/sysconfig/oracleasm
==================================================================
============================================
Subsequent edits to /etc/sysconfig/oracleasm will then be correctly applied
Note: Any changes to the configuration file requires a restart of OracleASM to take effect:
# /etc/init.d/oracleasm restart
==================================================================
============================================
Selecione as Variveis:
Mofique nas 2 maquinas 1.
Modifique o arquivo /etc/sysconfig/oracleasm:
ORACLEASM_SCANORDER=dm
ORACLEASM_SCANEXCLUDE=sd
==================================================================
============================================
2. Reinicie ASMLIB:
/etc/init.d/oracleasm restart
==================================================================
============================================
Resultado Final ter que ficar assim em todos os Nodes:
[root@rac1 sysconfig]# /usr/sbin/oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=oracle
ORACLEASM_GID=dba
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=dm
ORACLEASM_SCANEXCLUDE=sd
==================================================================
============================================
Com isso o Grid InfraStructure reconhecer os discos
Conforme a Nota no Suporte Oracle podemos ignorar este Erro conforme abaixo:
Device Checks for ASM Fails with PRVF-5150: Path xx is not a valid path on all nodes
[ID 1210863.1]
Modified 10-OCT-2010
Type PROBLEM
Status MODERATED
In this Document
Symptoms
Cause
Solution
This document is being delivered to you via Oracle Supports Rapid Visibility (RaV) process
and therefore has not been subject to an independent technical review.
4
Applies to:
Oracle Server Enterprise Edition Version: 11.2.0.1 and later [Release: 11.2 and later ]
Generic Linux
5
Symptoms
Device Checks for ASM This is a pre-check to verity if the specified devices meet the
requirements for configuration through the Oracle Universal Storage Manager Configuration
Assistant.
Verification result of failed node: racnode1
List of errors:
- PRVF-5150: Path ORCL:DISKCLU is not a valid path on all nodes
Operation Failed on Nodes: [racnode1]
List of errors:
- Could not get the type of storage
- Cause: Cause of Problem Not Available
- Action: User Action Not Available
6
Cause
Solution
At the time of this writing, bug 10026970 is not fixed yet. If ASM device passes manual
verification, the warning can be ignored.
To verify asmlib status:
/etc/init.d/oracleasm status
Checking if ASM is loaded:
[ OK ]
[ OK ]
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER="
ORACLEASM_SCANEXCLUDE="
## both ORACLEASM_UID and ORACLEASM_GID should match id output for grid
user.
To verify disk
/etc/init.d/oracleasm listdisks
DISKCLU
ls -l /dev/oracleasm/disks
..
brw-rw- 1 grid oinstall
peer wallet
profile reader wallet
pa wallet
peer wallet keys
pa wallet keys
peer cert request
pa cert request
peer cert
pa cert
peer root cert TP
profile reader root cert TP
pa root cert TP
peer pa cert TP
pa peer cert TP
profile reader pa cert TP
profile reader peer cert TP
peer user cert
pa user cert
Adding daemon to inittab
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9321: Creating udev for ADVM/ACFS.
ACFS-9323: Creating module dependencies this may take some time.
==================================================================
============================================
!
==================================================================
============================================
==================================================================
============================================
=================================================================
=============================================
==================================================================
============================================
==================================================================
============================================
[root@rac2 /]# /u01/app/oracle/product/11.2.0/ajr/root.sh
Running Oracle 11g root script
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/ajr
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of dbhome have not changed. No need to overwrite.
The contents of oraenv have not changed. No need to overwrite.
The contents of coraenv have not changed. No need to overwrite.
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
[root@rac2 /]#
==================================================================
============================================
10
=================================================================
=============================================
=================================================================
=============================================
ASMCA uma nova Feature do Oracle 11gR2 no qual pode criar e gerenciar
DiskGroups.
12
/u01/app/11.2.0/bin/asmca
13
14
15
==================================================================
============================================
16
=================================================================
=============================================
=================================================================
=============================================
==================================================================
============================================
18
=================================================================
=============================================
Para finalizar segue alguns comandos de administrao do Oracle RAC 11g R2:
Parar Enterprise Manager
[oracle@rac1 ~]$ emctl stop dbconsole
Iniciar Enterprise Manager
[oracle@rac1 ~]$ emctl start dbconsole
==================================================================
============================================
Parar todos os Listerners
[oracle@rac1 ~]$ srvctl stop listener
Iniciar todos os Listerners