Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, ALIANE.

Asked: April 23, 2017 - 12:59 pm UTC

Last updated: April 24, 2017 - 1:17 am UTC

Version: 11GR2

Viewed 1000+ times

You Asked

Hello ,Can you help me for install oracle RAc11gR2? i give you the steps that i follown

I use oraclevm virtual box and the os is oracle linux 6.5 the Memory is 3072GO swap 3072GO
create group

groupadd -g 501 oinstall
groupadd -g 502 dba
groupadd -g 504 asmadmin
groupadd -g 506 asmdba
groupadd -g 507 asmoper


2) create directory for exemple mkdir -p /trav/app/oracle
chmod a+rx /trav/app/oracle
chmod g+w /trav/app/oracle
useradd -u 502 -g oinstall -G dba,asmdba,oper -d "/trav/app/oracle/oracle/dbs11gR2" -m -s /bin/bash dbs11gR2
useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper,dba -d "/trav/app/oracle/grid" –m -s /bin/bash grid
give the password to users grid and oracle

And i create the directory for database /db
chgrp dba /db/oracle
chmod -R gu+rwx /db/oracle
disabling selinux
and i change the /etc/hosts entries as below

# Public

192.168.56.71 rac1.localdomain rac1

192.168.56.72 rac2.localdomain rac2

# Private

192.168.10.1 rac1-priv.localdomain rac1-priv

192.168.10.2 rac2-priv.localdomain rac2-priv

# Virtual

192.168.56.81 rac1-vip.localdomain rac1-vip

192.168.56.82 rac2-vip.localdomain rac2-vip

# SCAN

192.168.56.91 rac-scan.localdomain rac-scan

192.168.56.92 rac-scan.localdomain rac-scan

192.168.56.93 rac-scan.localdomain rac-scan

then i install the package for oracle 11gR2 by oracle-rdbms-server-11gR2-preinstall and oracleasm packages with yum .



for user grid environment
i Add the following lines to the .profile_bash file of grid
#

umask 022

# Set Oracle environment
export ORACLE_HOME=/trav/app/oracle/grid
export ORACLE_BASE=/db/oracle
export PATH=.:$PATH:${ORACLE_HOME}/bin
export TERM=ansi
export ORACLE_TERM=vt220
export TMP=/tmp
export TNS_ADMIN=${ORACLE_HOME}/network/admin
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1

Modify /etc/security/limits.conf file
cd /etc/security

#Added below

grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 65536
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768

for user oracle environment
i Add the following lines to the .profile_bash file of oracle
#

umask 022

# Set Oracle environment
export ORACLE_HOME=/trav/app/oracle/oracle
export ORACLE_BASE=/db/oracle
export PATH=.:$PATH:${ORACLE_HOME}/bin
export TERM=ansi
export ORACLE_TERM=vt220
export TMP=/tmp
export TNS_ADMIN=${ORACLE_HOME}/network/admin
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1

Modify /etc/security/limits.conf file
cd /etc/security

#Added below
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768

I create oracle inventory
mkdir -p /db/oracle/oraInventory
chown –R grid:oinstall oraInventory
chmod -R gu+rwx oracle
chkconfig service iptables off


I install java in rac1 and rac2

oracleasm configure -i

oracleasm createdisk OCR_VOTE01 /dev/sdb1
oracleasm createdisk OCR_VOTE02 /dev/sdb2
oracleasm createdisk OCR_VOTE03 /dev/sdb3

oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
OCR_VOTE01
OCR_VOTE02
OCR_VOTE03
cd /db/INPUT/database
./runInstaller

at this step the oracle gris and oracle rdbms were successful installed ,but for create oracle databse it dispaly i can't create the database
in /db/oracle/oracle/cfgtoollogs
I change the autorities directorie to "g+w -R cfgtoollogs" the database was created but oracle RAC was failled .Oracle manager didn't be full .



and Connor said...

I'd recommend following some of the demo's Tim Hall has put together for installing. I've used them in the past for my own laptop and they've worked well

https://oracle-base.com/articles/rac/articles-rac#11gR2

Thanks for all of the detail, but you didnt tell us anything about *why* the database can't be created.

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Oracle Rac 11gR2

ALIANE YAMINA, April 24, 2017 - 9:58 am UTC

the oracle grid and oracle rdbms have successful installed ,but for oracle database oracle rdbms displays " you can't create the database " in /db/oracle/oracle/cfgtoollogs
I change the authorities of directory to "g+w -R cfgtoollogs" the database was created but oracle RAC finally was failed .Oracle manager hasn't installed .I haven't the message error now because i dropped the VM . I will install it .

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library