Oracle 11.2.0.2 RAC For HPUX PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 48

ORACLE 11gR2 (11.2.0.

2)
RAC install
for HP-UX

Author
Creation Date


2011-01-30

Last Updated
Version

1.0

Copyright(C) 2004 Goodus Inc.


All Rights Reserved

Version

()

2011-01-30

ORACLE 10g RAC install patch failover ON DELL


Contents
1.

............................................................................................................................... 3

2.

System Overview ................................................................................................................ 3

3.

2.1.

H/W and OS Information.........................................................................................3


2.1.1.
Hardware ..................................................................................................................... 3
2.1.2.
OS ............................................................................................................................... 3
2.1.3.
Shared Storage ........................................................................................................... 3

2.2.

IP ...............................................................................................................4

2.3.

OS USER ...........................................................................................................4

2.4.

.......................................................................................................................4

Post Installation Steps ....................................................................................................... 6


3.1.

Preparing the system ...............................................................................................6


3.1.1.
Host file Configuration ................................................................................................. 6
3.1.2.
Kernel Configuration ................................................................................................... 6
3.1.3.
Check pach ................................................................................................................. 7
3.1.4.
RSH Configuration ...................................................................................................... 7
3.1.5.
Oracle User Limits Value Configuration ...................................................................... 7
3.1.6.
User OS enviropment Configuration ........................................................................... 7
3.2. Network Configure Check ........................................................................................8
3.3. Raw Device for OCR, VOTEDISK ..............................................................................9
3.3.1.
Raw device Creation ................................................................................................... 9
4.

Install steps ...................................................................................................................... 10


4.1.

Clusterware Installation ....................................................................................... 10


4.1.1.
Clusterware Installation ............................................................................................. 10
4.1.2.

OCR ................................................................................................................. 24

4.1.3.
votedisk ............................................................................................................ 24
Database Installation ........................................................................................... 26
4.2.1.
Change Permission ................................................................................................... 26
4.2.2.
Database engine install ............................................................................................. 26
4.2.3.
DBCA ........................................................................................................................ 34
4.2.4.
ASM resource ................................................................................................... 46
4.3. Check Configuration ............................................................................................. 46
4.2.

5.

........................................................................................................... 47
5.1.
5.2.

Error while reading ADR file after upgraded to 11.2.0.2 ...................................... 47


HP-UX Time Mismatch Between Ocssd.Log And Sysdate ..................................... 47

- 2

.

ORACLE 10g RAC install patch failover ON DELL


1.

HP-UX Itanium Oracle 11.2.0.2 ASM CFS raw


device RAC .

2.

System Overview

2.1.

H/W and OS Information

2.1.1. Hardware

NODE1 ( goodus1 )

NODE2 ( goodus2 )

MODEL

HP BL870c

HP BL870c

CPU

8CPU Quad Core

8CPU Quad Core

MEMORY

32GB

32GB

Swap

64GB

64GB

2.1.2. OS

NODE1 ( goodus1 )

NODE2 ( goodus2 )

OS

HP-UX 11i v3

HP-UX 11i v3

Hostname

goodus1

goodus2

Kernel

B.11.31 U ia64

B.11.31 U ia64

2.1.3. Shared Storage

SIZE

OCR

/dev/dbs20/rocr01, /dev/dbs20/rocr02

300M

VOTE

/dev/dbs20/rvot01 , /dev/dbs20/rvot02 , /dev/dbs21/rvote03

300M

ASM

/dev/rdisk/disk378

1,024M

CONTROL

/dev/dbs22/rcontrol1 , /dev/dbs22/rcontrol2 , /dev/dbs22/rcontrol3

300M

SYSTEM

/dev/dbs22/rsystem01

4,096M

REDO (thread 1)
REDO (thread 2)

/dev/dbs22/rredo111 , /dev/dbs22/rredo121 , /dev/dbs22/rredo131 ,


/dev/dbs22/rredo112 , /dev/dbs22/rredo122 , /dev/dbs22/rredo132
/dev/dbs22/rredo211 , /dev/dbs22/rredo221 , /dev/dbs22/rredo231 ,
/dev/dbs22/rredo212 , /dev/dbs22/rredo222 , /dev/dbs22/rredo232

1,024M
1,024M

UNDOTBS1, 2

/dev/dbs23/rundotbs1 , /dev/dbs23/rundotbs2

10,240M

TEMP

/dev/dbs23/rtemp

1,024M

USERS

/dev/dbs22/ruser

2,048M

- 3

.

ORACLE 10g RAC install patch failover ON DELL


SYSAUX

/dev/dbs22/rsysaux

10,240M

SPFILE

/dev/dbs22/rspfile

300M

2.2.

IP

NODE1 (goodus1)

NODE2 (goodus2)

lan900

***.***.***.58

***.***.***.59

Public IP

lan902

192.168.200.1

192.168.200.2

Interconnect IP

lan900:1

***.***.***.158

***.***.***.159

Service IP

lan900:2

***.***.***.160

2.3.

SCAN IP

OS USER

USERNAME

GROUP

SHELL

Home Direcoty

PROFILE

grid

oinstall(700), dba(701), asmdba(702)

/bin/ksh

/oracle/app/grid

.profile

oracle

oinstall(700), dba(701)

/bin/ksh

/oracle/app/oracle

.profile

2.4.

Oracle package package HP-UX Operating System Itanium:

HP-UX 11iV3 patch Bundle Sep/ 2008 (B.11.31.0809.326a)

All installations for HP-UX 11i V3 (11.31) requires the following patches (or newer versions the
current successor status March 2010):
PHCO_40381 11.31 Disk Owner Patch
PHKL_38038 VM patch - hot patching/Core file creation directory
replaced by PHKL_40942
PHKL_38938 11.31 SCSI cumulative I/O patch
replaced by PHKL_39646
PHKL_39351 Scheduler patch : post wait hang
replaced by PHKL_40207
PHSS_36354 11.31 assembler patch
replaced by PHSS_40546
PHSS_37042 11.31 hppac (packed decimal)
PHSS_37959 Libcl patch for alternate stack issue fix (QXCR1000818011)
replaced by PHSS_40804
PHSS_39094 11.31 linker + fdp cumulative patch
- 4

.

ORACLE 10g RAC install patch failover ON DELL


replaced by PHSS_40538
PHSS_39100 11.31 Math Library Cumulative Patch
replaced by PHSS_40540
PHSS_39102 11.31 Integrity Unwind Library
replaced by PHSS_40542
PHSS_38141 11.31 aC++ Runtime
replaced by PHSS_40544

Patch to run 11gR2 RAC on SG/SGeRAC


PHSS_40886 11.31 Serviceguard for RAC A.11.19.00

Pro*C/C++, Oracle Call Interface, Oracle C++ Call Interface, Oracle XML Developers Kit (XDK)
Patch for HP-UX 11i V3 (11.31) on HP-UX Itanium:
PHSS_39824 - 11.31 HP C/aC++ Compiler (A.06.23) patch
Replaced by PHSS_40631

VERITAS File System


PHKL_39773: 11.31 VRTS 5.0 GARP6 VRTSvxfs Kernel Patch
Replaced by PHKL_40650

- 5

.

ORACLE 10g RAC install patch failover ON DELL


3.

Post Installation Steps

3.1.

Preparing the system

3.1.1. Host file Configuration


/etc/hosts Pulic IP VIP, Interconnect .
(root .)
[root@goodus1 ~]# cat /etc/hosts
127.0.0.1

localhost.localdomain

***.***.***.58

goodus1

***.***.***.59

goodus2

***.***.***.158

goodus1-vip

***.***.***.159

goodus2-vip

192.168.200.1

goodus1-priv

192.168.200.2

goodus2-priv

***.***.***.160

goodus-scan

localhost

3.1.2. Kernel Configuration


Oracle OS kernel .

Parameter

Minimum Required Value

ksi_alloc_max

32768

executable_stack

maxfiles

1024

maxfiles_lim

63488

max_thread_proc

1024

maxdsiz

1073741824 (1 GB)

maxdsiz_64bit

2147483648 (2 GB)

maxssiz

134217728 (128 MB)

maxssiz_64bit

1073741824 (1 GB)

maxuprc

3686

msgmap

4096

msgmni

4096

msgtql

4096

ncsize

35840

nflocks

4096

ninode

34816

nkthread

7184
- 6

.

ORACLE 10g RAC install patch failover ON DELL


nproc

4096

semmni

4096

semmns

8192

semmnu

4096

semvmx

32767

shmmax

The size of memory or 1073741824 (0X40000000), whichever is greater.

shmmni

4092

shmseg

512

3.1.3. Check pach


OS .
(root .)
# /usr/sbin/swlist -l patch

3.1.4. RSH Configuration


RAC rsh .
RAC Binary File Copy . rsh ssh .
rsh, rcp, rlogin
host oracle remote password .
(root .)
[root@goodus1 ~]# su - oracle
/u01/app/oracle> cat .rhosts
+
/u01/app/oracle>

3.1.5. Oracle User Limits Value Configuration


Oracle process open file .
/etc/security/limits.conf .
(root .)
oracle

soft

oracle

hard

oracle

soft

oracle

hard

nproc

2047

nproc

16384

nofile 1024
nofile 65536

3.1.6. User OS enviropment Configuration


shell . .profile .
grid user

- 7

.

ORACLE 10g RAC install patch failover ON DELL


set -o vi
umask 022
export PS1=[`hostname`:\$PWD]$
export LANG=C
export EDITOR=vi
export GRID_HOME=/oracle/app/11.2.0/grid
export ORACLE_BASE=/oracle/app/grid
export ORACLE_HOME=$GRID_HOME
export ORACLE_SID=+ASM1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:$ORACLE_HOME/rdbms/lib
export SHLIB_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib
export PATH=$PATH:$ORACLE_HOME/bin:/usr/local/bin:$ORACLE_HOME/OPatch:
export
CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib:$OR
ACLE_HOME/OPatch
oracle user
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db
export GRID_HOME=/oracle/app/11.2.0/grid
export ORACLE_SID=goodus1
export ORACLE_TERM=xterm
export PATH=$ORACLE_HOME/bin:$GRID_HOME/bin:$PATH
export EDITOR=vi

3.2.

Network Configure Check

11.2.0.2 Oracle Grid Infrastructure cluster interconnec


. ,
,
. multicast private interconnect network 230.0.1.0 address(port 42424)
. private interconnect network multicast multicast 230.0.1.0
cluster node . ID 1212703.1
metalink mcasttest.pl perl .
$perl mcasttest.pl n goodus1, goodus2 -i lan902
########### Setup for node goodus1

##########

Checking node access 'goodus1'


Checking node login 'goodus1'
Checking/Creating Directory /tmp/mcasttest for binary on node 'goodus1'
Distributing mcast2 binary to node 'goodus1'
########### Setup for node goodus2

##########

Checking node access 'goodus2'


Checking node login 'goodus2'

- 8

.

ORACLE 10g RAC install patch failover ON DELL


Checking/Creating Directory /tmp/mcasttest for binary on node 'goodus2'
Distributing mcast2 binary to node 'goodus2'
########### testing Multicast on all nodes

##########

Test for Multicast address 230.0.1.0


Jan 17 17:18:21 | Multicast Succeeded for lan902 using address 230.0.1.0:42000
Test for Multicast address 224.0.0.251
Jan 17 17:18:22 | Multicast Succeeded for lan902 using address 224.0.0.251:42001

3.3.

Raw Device for OCR, VOTEDISK

3.3.1. Raw device Creation


Clusterware OCR VOTEDISK raw device renaming .
(root .)
chown root:dba /dev/dbs20/rocr01 /dev/dbs20/rocr02
chown oracle:dba /dev/dbs20/rvot01 /dev/dbs20/rvot02 /dev/dbs21/rvote03 /dev/rdisk/disk378
chmod 660 /dev/dbs20/* /dev/dbs21/* /dev/rdisk/disk378

- 9

.

ORACLE 10g RAC install patch failover ON DELL


4.

Install steps

4.1.

Clusterware Installation

4.1.1. Clusterware Installation


Clusterware . Clusterware
.
(oracle goodus1 .).
$ export ORACLE_HOME=/oracle/app/11.2.0/grid
$ ./runInstaller &
1.

- 10

.

ORACLE 10g RAC install patch failover ON DELL

3.

4.

- 11

.

ORACLE 10g RAC install patch failover ON DELL

- 12

.

ORACLE 10g RAC install patch failover ON DELL

7.

8.

- 13

.

ORACLE 10g RAC install patch failover ON DELL

9.

10.

- 14

.

ORACLE 10g RAC install patch failover ON DELL

11.

12.

- 15

.

ORACLE 10g RAC install patch failover ON DELL

13.

14.

- 16

.

ORACLE 10g RAC install patch failover ON DELL

15.

16.

- 17

.

ORACLE 10g RAC install patch failover ON DELL

17.

root orainstRoot.sh root.sh .

- 18

.

ORACLE 10g RAC install patch failover ON DELL


goodus1: /oracle/app/oraInventory/orainstRoot.sh
#/oracle/app/oraInventory/orainstRoot.sh
Changing permissions of /oracle/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /oracle/app/oraInventory to oinstall.
The execution of the script is complete.
goodus2: /oracle/app/oraInventory/orainstRoot.sh
#/oracle/app/oraInventory/orainstRoot.sh
Changing permissions of /oracle/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /oracle/app/oraInventory to oinstall.
The execution of the script is complete.
goodus1: /oracle/app/11.2.0/grid/root.sh
#/oracle/app/11.2.0/grid/root.sh
Running Oracle 11g root script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /oracle/app/11.2.0/grid
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.

Creating /etc/oratab file...


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.
Using configuration parameter file: /oracle/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'sys'..
Operation successful.
OLR initialization - successful
root wallet

- 19

.

ORACLE 10g RAC install patch failover ON DELL


root wallet cert
root cert export
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
CRS-2672: Attempting to start 'ora.mdnsd' on 'goodus1'
CRS-2676: Start of 'ora.mdnsd' on 'goodus1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'goodus1'
CRS-2676: Start of 'ora.gpnpd' on 'goodus1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'goodus1'
CRS-2672: Attempting to start 'ora.gipcd' on 'goodus1'
CRS-2676: Start of 'ora.cssdmonitor' on 'goodus1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'goodus1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'goodus1'
CRS-2672: Attempting to start 'ora.diskmon' on 'goodus1'
CRS-2676: Start of 'ora.diskmon' on 'goodus1' succeeded
CRS-2676: Start of 'ora.cssd' on 'goodus1' succeeded
ASM created and started successfully.
Disk Group ASM created successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'sys'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 8fd08aa2236e4f42bf6d75b33ae020d7.

- 20

.

ORACLE 10g RAC install patch failover ON DELL


Successfully replaced voting disk group with +ASM.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE
-- ----1. ONLINE

File Universal Id

File Name Disk group

-----------------

--------- ---------

8fd08aa2236e4f42bf6d75b33ae020d7 (/dev/rdisk/disk378) [ASM]

Located 1 voting disk(s).


CRS-2672: Attempting to start 'ora.asm' on 'goodus1'
CRS-2676: Start of 'ora.asm' on 'goodus1' succeeded
CRS-2672: Attempting to start 'ora.ASM.dg' on 'goodus1'
CRS-2676: Start of 'ora.ASM.dg' on 'goodus1' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
goodus2: /oracle/app/11.2.0/grid/root.sh
#/oracle/app/11.2.0/grid/root.sh
Running Oracle 11g root script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /oracle/app/11.2.0/grid
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.

Creating /etc/oratab file...


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.
Using configuration parameter file: /oracle/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'sys'..
Operation successful.
OLR initialization - successful
Adding daemon to inittab
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on
node unknown, number unknown, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

- 21

.

ORACLE 10g RAC install patch failover ON DELL


node2 root.sh , CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS
daemon on node unknown, number unknown, and is terminating .
HP 10 Gigabit Ethernet NIC driver 10GigEthr-02 (iexgbe) B.11.31.1009.01 or later .
ID 1276346.1
#ioscan -fnC lan
Class

I H/W Path

Driver S/W State

H/W Type

Description

=====================================================================
lan

0 0/0/0/3/0/0/0

iexgbe

CLAIMED

INTERFACE

HP PCIe 2-p 10GbE Built-in

lan

1 0/0/0/3/0/0/1

iexgbe

CLAIMED

INTERFACE

HP PCIe 2-p 10GbE Built-in

lan

2 0/0/0/4/0/0/0

iexgbe

CLAIMED

INTERFACE

HP PCIe 2-p 10GbE Built-in

lan

3 0/0/0/4/0/0/1

iexgbe

CLAIMED

INTERFACE

HP PCIe 2-p 10GbE Built-in

lan

4 1/0/0/3/0/0/0

iexgbe

CLAIMED

INTERFACE

HP PCIe 2-p 10GbE Built-in

lan

5 1/0/0/3/0/0/1

iexgbe

CLAIMED

INTERFACE

HP PCIe 2-p 10GbE Built-in

lan

6 1/0/0/4/0/0/0

iexgbe

CLAIMED

INTERFACE

HP PCIe 2-p 10GbE Built-in

lan

7 1/0/0/4/0/0/1

iexgbe

CLAIMED

INTERFACE

HP PCIe 2-p 10GbE Built-in

#swlist -l product|grep -i iex


IEXGBE-DRV

B.11.31.1011

HP PCIe 10GigEthr Driver

18.

19.

- 22

.

ORACLE 10g RAC install patch failover ON DELL

CRS .
(root .).
$crs_stat -t
Name

Type

Target

State

Host

-----------------------------------------------------------ora.ASM.dg

ora....up.type ONLINE

ONLINE

goodus1

ora....ER.lsnr ora....er.type ONLINE

ONLINE

goodus1

ora....N1.lsnr ora....er.type ONLINE

ONLINE

goodus1

ora.asm

ora.asm.type

ONLINE

ora.cvu

ora.cvu.type

ONLINE

ONLINE

ora.gsd

ora.gsd.type

OFFLINE

OFFLINE

ora....network ora....rk.type ONLINE

ONLINE

ora.oc4j

ora.oc4j.type ONLINE

ora.ons

ora.ons.type

ora....SM1.asm application
ora....P1.lsnr application

ONLINE

ONLINE
ONLINE

ONLINE

ora....mp1.gsd application

OFFLINE

OFFLINE

ora....mp1.ons application

ONLINE

ONLINE

ora....mp1.vip ora....t1.type ONLINE


ora....SM2.asm application
ora....P2.lsnr application

ONLINE

ONLINE
ONLINE

goodus1

ONLINE
ONLINE

ONLINE
ONLINE

ora....mp2.gsd application

OFFLINE

OFFLINE

ora....mp2.ons application

ONLINE

ONLINE

goodus1

goodus1

ONLINE

ONLINE

goodus1

goodus1
goodus1
goodus1
goodus1

goodus1
goodus2
goodus2
goodus2

- 23

.

ORACLE 10g RAC install patch failover ON DELL


ora....mp2.vip ora....t1.type ONLINE

ONLINE

ora.scan1.vip ora....ip.type ONLINE

ONLINE

goodus2
goodus1

[goodus1:/work/patchset/grid]$

4.1.2. OCR
ASM raw ASM OCR raw device .
#[/oracle/app/11.2.0/grid/bin]./ocrconfig -add /dev/ dbs20/rocr01
#[/oracle/app/11.2.0/grid/bin]./ocrconfig -add /dev/ dbs20/rocr02
#[/oracle/app/11.2.0/grid/bin]./ocrconfig -delete +ASM
#[/oracle/app/11.2.0/grid/bin]./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version
Total space (kbytes)
Used space (kbytes)
Available space (kbytes) :

:
:

3
262120

2356
259764

ID

: 642797593

Device/File Name

: /dev/ dbs20/rocr01
Device/File integrity check succeeded

Device/File Name

: /dev/ dbs20/rocr02
Device/File integrity check succeeded

Device/File not configured

Device/File not configured

Device/File not configured

Cluster registry integrity check succeeded

Logical corruption check succeeded

4.1.3. votedisk
ASM raw ASM votedisk raw device .
#[/oracle/app/11.2.0/grid/bin]./crsctl replace votedisk /dev/ dbs20/rvot01
Now formatting voting disk: /dev/ dbs20/rvot01.
CRS-4256: Updating the profile
Successful addition of voting disk ae4387b930394f76bf17923430bae8e3.

- 24

.

ORACLE 10g RAC install patch failover ON DELL


Successful deletion of voting disk 8fd08aa2236e4f42bf6d75b33ae020d7.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
#[/oracle/app/11.2.0/grid/bin]./crsctl add css votedisk /dev/ dbs20/rvot02
Now formatting voting disk: /dev/ dbs20/rvot02.
CRS-4603: Successful addition of voting disk /dev/ dbs20/rvot02.
#[/oracle/app/11.2.0/grid/bin]./crsctl add css votedisk /dev/ dbs21/rvot03
Now formatting voting disk: /dev/ dbs21/rvot03.
CRS-4603: Successful addition of voting disk /dev/ dbs21/rvot03.
#[/oracle/app/11.2.0/grid/bin]
#[/oracle/app/11.2.0/grid/bin]./crsctl query css votedisk
## STATE
-- -----

File Universal Id
-----------------

File Name Disk group


--------- ---------

1. ONLINE

ae4387b930394f76bf17923430bae8e3 (/dev/ dbs20/rvot01) []

2. ONLINE

02818a19cc1d4ffebff79b96aa2ddea2 (/dev/ dbs20/rvot02) []

3. ONLINE

63210c7dc5fe4f5cbf682e3dbd9cdd8f (/dev/ dbs21/rvot03) []

Located 3 voting disk(s).

- 25

.

ORACLE 10g RAC install patch failover ON DELL


4.2.

Database Installation

Database raw device .

4.2.1. Change Permission


Database raw device . ( )
$chown oracle:dba /dev/dbs22/rcontrol1 /dev/dbs22/rcontrol2 /dev/dbs22/rcontrol3
$chown oracle:dba /dev/dbs22/rsystem01
$chown oracle:dba /dev/dbs22/rredo111 /dev/dbs22/rredo121 /dev/dbs22/rredo131 /dev/dbs22/rredo112
/dev/dbs22/rredo122 /dev/dbs22/rredo132
$chown oracle:dba /dev/dbs22/rredo211 /dev/dbs22/rredo221 /dev/dbs22/rredo231 /dev/dbs22/rredo212
/dev/dbs22/rredo222 /dev/dbs22/rredo232
$chown oracle:dba /dev/dbs23/rundotbs1 /dev/dbs23/rundotbs2
$chown oracle:dba /dev/dbs23/rtemp
$chown oracle:dba /dev/dbs22/ruser
$chown oracle:dba /dev/dbs22/rsysaux
$chown oracle:dba /dev/dbs22/rspfile
$chmod 660 /dev/dbs22/rcontrol1 /dev/dbs22/rcontrol2 /dev/dbs22/rcontrol3
$chmod 660 /dev/dbs22/rsystem01
$chmod 660 /dev/dbs22/rredo111 /dev/dbs22/rredo121 /dev/dbs22/rredo131 /dev/dbs22/rredo112
/dev/dbs22/rredo122 /dev/dbs22/rredo132
$chmod 660 /dev/dbs22/rredo211 /dev/dbs22/rredo221 /dev/dbs22/rredo231 /dev/dbs22/rredo212
/dev/dbs22/rredo222 /dev/dbs22/rredo232
$chmod 660 /dev/dbs23/rundotbs1 /dev/dbs23/rundotbs2
$chmod 660 /dev/dbs23/rtemp
$chmod 660 /dev/dbs22/ruser
$chmod 660 /dev/dbs22/rsysaux
$chmod 660 /dev/dbs22/rspfile
HP Itanium 11.2.0.2 raw device controlfile, datafile, redo log file
block device .

HPUX patch PHCO_41479 - ID 1269346.1

4.2.2. Database engine install


(oracle goodus1 .).
$ export ORACLE_HOME=/oracle/app/oracle/product/11.2.0/db
$ ./runInstaller &
1.

- 26

.

ORACLE 10g RAC install patch failover ON DELL

2.

3.

- 27

.

ORACLE 10g RAC install patch failover ON DELL

4.

5.

- 28

.

ORACLE 10g RAC install patch failover ON DELL

6.

7.

- 29

.

ORACLE 10g RAC install patch failover ON DELL

8.

9.

- 30

.

ORACLE 10g RAC install patch failover ON DELL

10.

11.

- 31

.

ORACLE 10g RAC install patch failover ON DELL

12.

13.

- 32

.

ORACLE 10g RAC install patch failover ON DELL

14.

- 33

.

ORACLE 10g RAC install patch failover ON DELL


4.2.3. DBCA
raw device OUI DBCA editing .
1.

2.

- 34

.

ORACLE 10g RAC install patch failover ON DELL


3.

4.

5.

- 35

.

ORACLE 10g RAC install patch failover ON DELL

6.

7.

- 36

.

ORACLE 10g RAC install patch failover ON DELL

8.

9.

- 37

.

ORACLE 10g RAC install patch failover ON DELL

10.

11.

- 38

.

ORACLE 10g RAC install patch failover ON DELL

12.

13.

- 39

.

ORACLE 10g RAC install patch failover ON DELL

14.

15.

- 40

.

ORACLE 10g RAC install patch failover ON DELL

16.

17.

- 41

.

ORACLE 10g RAC install patch failover ON DELL

18.

19. Create Database .

- 42

.

ORACLE 10g RAC install patch failover ON DELL

.
init.ora - controlfile , ASM .
control_files='/dev/dbs22/rcontrol1','/dev/dbs23/rcontrol2','/dev/dbs24/rcontrol3'
#db_create_file_dest="+ASM"
goodus1.sql - ASM .
set verify off
ACCEPT sysPassword CHAR PROMPT 'Enter new password for SYS: ' HIDE
ACCEPT systemPassword CHAR PROMPT 'Enter new password for SYSTEM: ' HIDE
ACCEPT sysmanPassword CHAR PROMPT 'Enter new password for SYSMAN: ' HIDE
ACCEPT dbsnmpPassword CHAR PROMPT 'Enter new password for DBSNMP: ' HIDE
ACCEPT asmSysPassword CHAR PROMPT 'Enter ASM SYS user password: ' HIDE
host /oracle/app/oracle/product/11.2.0/db/bin/orapwd
file=/oracle/app/oracle/product/11.2.0/db/dbs/orapwGOODUS1 force=y
host /oracle/app/11.2.0/grid/bin/setasmgidwrap o=/oracle/app/oracle/product/11.2.0/db/bin/oracle
host /oracle/app/oracle/product/11.2.0/db/bin/srvctl add database -d GOODUSDB -o
/oracle/app/oracle/product/11.2.0/db -p /dev/dbs22/rspfile -n GOODUSDB
host /oracle/app/oracle/product/11.2.0/db/bin/srvctl add instance -d GOODUSDB -i GOODUS1 -n goodus1
host /oracle/app/oracle/product/11.2.0/db/bin/srvctl add instance -d GOODUSDB -i GOODUS2 -n goodus2
host /oracle/app/oracle/product/11.2.0/db/bin/srvctl disable database -d GOODUSDB
@/oracle/app/oracle/admin/GOODUSDB/scripts/CreateDB.sql
@/oracle/app/oracle/admin/GOODUSDB/scripts/CreateDBFiles.sql

- 43

.

ORACLE 10g RAC install patch failover ON DELL


@/oracle/app/oracle/admin/GOODUSDB/scripts/CreateDBCatalog.sql
@/oracle/app/oracle/admin/GOODUSDB/scripts/context.sql
@/oracle/app/oracle/admin/GOODUSDB/scripts/xdb_protocol.sql
@/oracle/app/oracle/admin/GOODUSDB/scripts/emRepository.sql
@/oracle/app/oracle/admin/GOODUSDB/scripts/apex.sql
@/oracle/app/oracle/admin/GOODUSDB/scripts/CreateClustDBViews.sql
host echo "SPFILE='/dev/dbs22/rspfile " > /oracle/app/oracle/product/11.2.0/db/dbs/initGOODUS1.ora
@/oracle/app/oracle/admin/GOODUSDB/scripts/lockAccount.sql
@/oracle/app/oracle/admin/GOODUSDB/scripts/postDBCreation.sql
CreateDB.sql - datafile .
SET VERIFY OFF
connect "SYS"/"&&sysPassword" as SYSDBA
set echo on
spool /oracle/app/oracle/admin/GOODUSDB/scripts/CreateDB.log append
startup nomount pfile="/oracle/app/oracle/admin/GOODUSDB/scripts/init.ora";
CREATE DATABASE "GOODUSDB"
MAXINSTANCES 32
MAXLOGHISTORY 1
MAXLOGFILES 192
MAXLOGMEMBERS 3
MAXDATAFILES 2048
DATAFILE '/dev/dbs22/rsystem01' SIZE 4000M
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE '/dev/dbs22/rsysaux' SIZE 10200M
SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE '/dev/dbs23/rtemp01' SIZE 1000M
SMALLFILE UNDO TABLESPACE "UNDOTBS1" DATAFILE '/dev/dbs23/rundotbs1' SIZE 10200M
CHARACTER SET AL32UTF8
NATIONAL CHARACTER SET AL16UTF16
LOGFILE GROUP 1 ('/dev/dbs22/rredo111','/dev/dbs23/rredo112') SIZE 1000M,
GROUP 2 ('/dev/dbs22/rredo121','/dev/dbs23/rredo122') SIZE 1000M,
GROUP 3 ('/dev/dbs22/rredo131','/dev/dbs23/rredo132') SIZE 1000M
USER SYS IDENTIFIED BY "&&sysPassword" USER SYSTEM IDENTIFIED BY "&&systemPassword";
set linesize 2048;
column ctl_files NEW_VALUE ctl_files;
select concat('control_files=''', concat(replace(value, ', ', ''','''), '''')) ctl_files from v$parameter where name
='control_files';
host echo &ctl_files >>/oracle/app/oracle/admin/GOODUSDB/scripts/init.ora;
spool off
CreateDBFiles.sql datafile .
SET VERIFY OFF
connect "SYS"/"&&sysPassword" as SYSDBA
set echo on

- 44

.

ORACLE 10g RAC install patch failover ON DELL


spool /oracle/app/oracle/admin/GOODUSDB/scripts/CreateDBFiles.log append
CREATE UNDO TABLESPACE "UNDOTBS2" DATAFILE '/dev/dbs23/rundotbs2' SIZE 10200M;
CREATE TABLESPACE "USERS" LOGGING DATAFILE '/dev/dbs22/ruser' SIZE 2000M EXTENT MANAGEMENT
LOCAL SEGMENT SPACE MANAGEMENT AUTO;
ALTER DATABASE DEFAULT TABLESPACE "USERS";
spool off
postDBCreation.sql datafile ASM .
SET VERIFY OFF
connect "SYS"/"&&sysPassword" as SYSDBA
set echo on
spool /oracle/app/oracle/admin/GOODUSDB/scripts/postDBCreation.log append
@/oracle/app/oracle/product/11.2.0/db/rdbms/admin/catbundle.sql psu apply;
select 'utl_recomp_begin: ' || to_char(sysdate, 'HH:MI:SS') from dual;
execute utl_recomp.recomp_serial();
select 'utl_recomp_end: ' || to_char(sysdate, 'HH:MI:SS') from dual;
select group# from v$log where group# =3;
select group# from v$log where group# =4;
ALTER DATABASE ADD LOGFILE THREAD 2 GROUP 4 ('/dev/dbs22/rredo211','/dev/dbs23/rredo212') SIZE
1000M,
GROUP 5 ('/dev/dbs22/rredo221','/dev/dbs23/rredo222') SIZE 1000M,
GROUP 6 ('/dev/dbs22/rredo231','/dev/dbs23/rredo232') SIZE 1000M
ALTER DATABASE ENABLE PUBLIC THREAD 2;
host echo cluster_database=true >>/oracle/app/oracle/admin/GOODUSDB/scripts/init.ora;
host echo remote_listener=goodus-cluster-scan:1521>>/oracle/app/oracle/admin/GOODUSDB/scripts/init.ora;
connect "SYS"/"&&sysPassword" as SYSDBA
set echo on
create spfile='SPFILE='/dev/dbs22/rspfile FROM pfile='/oracle/app/oracle/admin/GOODUSDB/scripts/init.ora';
shutdown immediate;
host /oracle/app/oracle/product/11.2.0/db/bin/srvctl enable database -d GOODUSDB;
host /oracle/app/oracle/product/11.2.0/db/bin/srvctl start database -d GOODUSDB;
connect "SYS"/"&&sysPassword" as SYSDBA
host /oracle/app/oracle/product/11.2.0/db/bin/emca -config dbcontrol db -silent -cluster -CLUSTER_NAME
goodus-cluster -LOG_FILE /oracle/app/oracle/admin/GOODUSDB/scripts/emConfig.log -SID PIS001 DB_UNIQUE_NAME GOODUSDB -EM_HOME /oracle/app/oracle/product/11.2.0/db -SERVICE_NAME GOODUSDB
-PORT 1521 -LISTENER_OH /oracle/app/11.2.0/grid -LISTENER LISTENER -ORACLE_HOME
/oracle/app/oracle/product/11.2.0/db -HOST goodus1;
spool off
exit;
goodus1.sh database .

- 45

.

ORACLE 10g RAC install patch failover ON DELL


4.2.4. ASM resource
ASM resource .
$srvctl stop diskgroup -g ASM
$srvctl stop asm -n goodus1
$srvctl stop asm -n goodus2

$srvctl disable diskgroup -g ASM


$srvctl disable asm -n goodus1
$srvctl disable asm -n goodus2

4.3.

Check Configuration

OCR .
Oifcfg getif x$ksxpia .
(oracle .)
[goodus1:/home/grid]$crs_stat -t
Name

Type

Target

State

Host

-----------------------------------------------------------ora.ASM.dg

ora....up.type OFFLINE

OFFLINE

ora....ER.lsnr ora....er.type ONLINE

ONLINE

goodus1

ora....N1.lsnr ora....er.type ONLINE

ONLINE

goodus2

ora.asm

ora.asm.type

OFFLINE

OFFLINE

ora.cvu

ora.cvu.type

ONLINE

ONLINE

ora.gsd

ora.gsd.type

OFFLINE

OFFLINE

ora....network ora....rk.type ONLINE

ONLINE

ora.oc4j

ora.oc4j.type ONLINE

ora.ons

ora.ons.type

ora....SM1.asm application
ora....S1.lsnr application

ONLINE
OFFLINE

ora....us1.ons application

ONLINE

ora....us1.vip ora....t1.type ONLINE


ora....SM2.asm application
ora....S2.lsnr application

OFFLINE

ONLINE
ONLINE

goodus1
goodus1

OFFLINE
ONLINE

OFFLINE

OFFLINE

ora....us2.ons application

ONLINE

ONLINE

ora.scan1.vip ora....ip.type ONLINE

goodus1

OFFLINE

ora....us2.gsd application

ora....us2.vip ora....t1.type ONLINE

goodus1

goodus1

ONLINE

OFFLINE
ONLINE

goodus2

ONLINE

ONLINE

OFFLINE

ora....us1.gsd application

goodus1

ONLINE

ONLINE

ora....01db.db ora....se.type ONLINE

goodus2

ONLINE
ONLINE

goodus2
goodus2
goodus2
goodus2

- 46

.

ORACLE 10g RAC install patch failover ON DELL


5.

5.1.

Error while reading ADR file after upgraded to 11.2.0.2

Database startup alert.log .

Error with dbgriap_init_adr_pga: 48178


ORA-48178: error encountered while reading an ADR block file during ADR initialization
[/oracle/app/orapis/diag/rdbms/pis001/PIS0011/metadata/ADR_INTERNAL.mif]
ORA-48122: error with opening the ADR block file
[/oracle/app/orapis/diag/rdbms/pis001/PIS0011/metadata/ADR_INTERNAL.mif] [0]
ORA-27037: unable to obtain file status
HPUX-ia64 Error: 251: Function is not available
Additional information: 46
Wed Jan 19 13:00:43 2011
ERROR: The process is unable to create the ADR schema in the diagnostic_dest directory
ERROR: because of a disk issue or OS platform issue
Wed Jan 19 13:00:43 2011
ERROR: Reverting back to using the user_dump_dest and background_dump_dest
ERROR: as the location for the traces and logs
Starting ORACLE instance (normal)

11.2.0.2 'ADR_INTERNAL.mif' HP-UX directio code HP OnLineJFS


product .
HP OnLineJFS product init.ora _DIAG_ADR_ENABLED FALSE .
ID 1268653.1

5.2.

HP-UX Time Mismatch Between Ocssd.Log And Sysdate

cssd.log 4 .
2011-01-19 15:52:05.243: [

CSSD][38]clssnmSendingThread: sending status msg to all nodes

2011-01-19 15:52:05.243: [

CSSD][38]clssnmSendingThread: sent 4 status msgs to all nodes

2011-01-19 15:52:09.282: [

CSSD][38]clssnmSendingThread: sending status msg to all nodes

2011-01-19 15:52:09.282: [

CSSD][38]clssnmSendingThread: sent 4 status msgs to all nodes

2011-01-19 15:52:13.323: [

CSSD][38]clssnmSendingThread: sending status msg to all nodes

2011-01-19 15:52:13.323: [

CSSD][38]clssnmSendingThread: sent 4 status msgs to all nodes

HP-UX sysdate ocssd.log time HP-UX

- 47

.

ORACLE 10g RAC install patch failover ON DELL


/etc/default/tz TZ .
timezone /etc/default/tz .
ID 738174.1
$date
Wed Jan 19 15:57:13 KST 2011

$cat /etc/default/tz
KST-9

- 48

.

You might also like