Vous êtes sur la page 1sur 11

#

# Internet host table


#
127.0.0.1 localhost
# Public Network - (pcn0)
192.168.1.100 node1
192.168.1.200 node2
# Private Interconnect - (pcn1)
192.168.2.1 node1-priv
192.168.2.2 node2-priv
# Public Virtual IP (VIP) addresses for - (pcn0)
192.168.1.110 node1-vip
192.168.1.210 node2-vip
******************************************************
# Private Storage Network for Openfiler - (pcn2)
192.168.3.10 Sstorage
***********************************
restarting the network interface:
svcadm -v restart network/physical
******************************************
enabling network interface:
ifconfig -a is the command to know the interfaces
ifconfig <interface Name> plumb to bring up the interface
Example on how to assign and bring up the interface.
/usr/sbin/ifconfig eri0 10.64.18.3 broadcast 10.64.18.255 netmask 255.255.
255.0 plumb up
*****************************************
After just reboot second machine change /etc/hosts file with solaris2 loghost.
Change /etc/hostname.vmxnet0 node2
Change /etc/hostname.vmxnet1 node2-priv
Change /etc/nodename node2
/etc/inet/hosts
/etc/inet/ipnodes
and rename directory under /var/crash
# cd /var/crash
# mv oldname newname
then reboot the server.
----------------------------------------------------------[ Solaris ]

"change hostname in Solaris 10" - ismail yenigl - (2006-08-21 17:55:40)

[84312]

Change the hostname in the following files:


/etc/nodename
/etc/hostname.*interface
/etc/inet/hosts
/etc/inet/ipnodes
and rename directory under /var/crash
# cd /var/crash
# mv oldname newname
then reboot the server.
==============================================================
groupadd oinstall >>> if oracle inventory is not there earlier.
# mkdir -p /export/home
# groupadd -g 115 dba
# useradd -u 175 -g 115 -d /export/home/oracle -m -s /usr/bin/bash -c "Oracle
Software Owner" oracle
# chown -R oracle:dba /export
# passwd oracle
# su - oracle
=====================
1.
AVAILABLE DISK SELECTIONS:
0. c0d0 <DEFAULT cyl 2607 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c2t0d0 <DEFAULT cyl 509 alt 2 hd 64 sec 32>
>>> 500mb
/pci@0,0/pci1000,30@10/sd@0,0
2. c2t1d0 <DEFAULT cyl 509 alt 2 hd 64 sec 32>
>>> 500mb
/pci@0,0/pci1000,30@10/sd@1,0
3. c2t2d0 <DEFAULT cyl 1533 alt 2 hd 128 sec 32>
>>> 2.9gb
/pci@0,0/pci1000,30@10/sd@2,0
4. c2t3d0 <DEFAULT cyl 1533 alt 2 hd 128 sec 32>
>>> 2.9gb
/pci@0,0/pci1000,30@10/sd@3,0
5. c2t4d0 <DEFAULT cyl 1533 alt 2 hd 128 sec 32>
>>> 2.9gb
/pci@0,0/pci1000,30@10/sd@4,0
1.
2.
3.
4.
5.

c2t0d0 c2t0d0s1
c2t1d0
c2t2d0
c2t3d0
c2t4d0

/dev/rdsk/c2t0d0
/dev/rdsk/c2t1d0
/dev/rdsk/c2t2d0
/dev/rdsk/c2t3d0

/dev/rdsk/c2t4d0

/dev/rdsk/c2t0d0s1
/dev/rdsk/c2t1d0s1
/dev/rdsk/c2t2d0s1
/dev/rdsk/c2t3d0s1
/dev/rdsk/c2t4d0s1
=========================================
ls /dev/rdsk/*s1
/dev/rdsk/c0d0s1 >>> ide not required
/dev/rdsk/c2t0d0s1
/dev/rdsk/c2t2d0s1
/dev/rdsk/c2t4d0s1
/dev/rdsk/c1t0d0s1
/dev/rdsk/c2t1d0s1
/dev/rdsk/c2t3d0s1
The devices we will be using for the various components of this article (e.g. th
e OCR and the
voting disk) must have the appropriate ownershop and permissions set on them bef
ore we can
proceed to the installation stage. We will the set the permissions and ownership
s using the
chown and chmod commands as follows: (this must be done as the root user)
# chown root:oinstall /dev/rdsk/c2t0d0s1
# chmod 660 /dev/rdsk/c2t0d0s1
chown oracle:oinstall /dev/rdsk/c2t1d0s1
# chmod 660 /dev/rdsk/c2t1d0s1
# chown oracle:oinstall /dev/rdsk/c2t2d0s1
# chown oracle:oinstall /dev/rdsk/c2t3d0s1
# chown oracle:oinstall /dev/rdsk/c2t4d0s1

# ls
c0d0p0
2d0s3
c0d0p1
2d0s4
c0d0p2
2d0s5
c0d0p3
2d0s6
c0d0p4
2d0s7

c0d0s3
c2t3d0s10
c0d0s4
c2t3d0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c2t1d0s4

c2t2d0s11 c2t

c2t1d0p2

c2t1d0s5

c2t2d0s12 c2t

c2t1d0p3

c2t1d0s6

c2t2d0s13 c2t

c2t1d0p4

c2t1d0s7

c2t2d0s14 c2t

c2t1d0s0

c2t1d0s8

c2t2d0s15 c2t

c2t1d0s1

c2t1d0s9

c2t2d0s2

c2t

/dev/rdsk/
chown oracle:dba /dev/rdsk/c2t1d0*
chmod 660 /dev/rdsk/c2t1d0*
================================================================================
==============================================
# mkdir -p /export/home/oracle
# groupadd oinstall
# groupadd dba
useradd -u 200 -g oinstall -G dba -d /export/home/oracle -m -s /usr/bin/ksh -c "
Oracle Software Owner" oracle
# chown -R oracle:oinstall /export
# passwd oracle
# su - oracle
================================================================================
================
# projadd oracle
Kernel parameters are merely attributes of a resource project so new kernel para
meter values
can be established by modifying the attributes of a project. First we need to ma
ke sure that the
oracle user we created earlier knows to use the new oracle project for its resou
rce limits.
This is accomplished by editing the /etc/user_attr file to look like this:
#
# Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
#

# /etc/user_attr
#
# user attributes. see user_attr(4)
#
#pragma ident "@(#)user_attr 1.1 03/07/09 SMI"
#
adm::::profiles=Log Management
lp::::profiles=Printer Management
root::::auths=solaris.*,solaris.grant;profiles=Web Console
Management,All;lock_after_retries=no
oracle::::project=oracle
------------This assigns the oracle user to the new resource project called oracle whenever
he/she logs
on. Log on as the oracle user to test it out.
# su - oracle
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
$ id -p
uid=175(oracle) gid=115(dba) projid=100(oracle)
$
The last output here indicates that the oracle user has been assigned to project
number 100,
the oracle project.
To check the resource parameter values that have been assigned to the project, i
ssue the
following command:
$ prctl -n project.max-shm-memory -i project oracle
project: 100: oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 510MB - deny system 16.0EB max deny
As the root user in the new session, issue the following command:
# prctl -n project.max-shm-memory -v 4gb -r -i project oracle
After issuing this command, switch back to the oracle user's session and re-issu
e the earlier
command:
$ prctl -n project.max-shm-memory -i project oracle
project: 100: oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 4.00GB - deny system 16.0EB max deny $
Now we can see that the value for the maximum size of shared memory segments is
now
4GB. This sets a mximum size for the shared memory segment; it does not mean tha
t the
Oracle instance will actually be 4GB.

This procedure sets the correct value for the max-shm-memory kernel parameter dy
namically
but if the server is rebooted, the new value would be lost. To make the value er
manent across
reboots, the following command is issued in the root user's session:
# projmod -s -K "project.max-shm-memory=(priv,4gb,deny)" oracle
=================================
# cd /export/home/oracle/product/10.2
#
#
# chown -R root:oinstall crs
#
# ls -l
total 4
drwxr-xr-x 2 root
oinstall
512
drwxr-xr-x 2 oracle oinstall
512
# chmod -R 775 crs
#
#
# ls -l
total 4
drwxrwxr-x 2 root
oinstall
512
drwxr-xr-x 2 oracle oinstall
512

Oct 30 02:24 crs


Oct 30 01:29 db_1

Oct 30 02:24 crs


Oct 30 01:29 db_1

==========================================================
if [ -t 0 ]; then
stty intr ^C
fi

umask 022
export ORACLE_BASE=/export/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1
export ORA_CRS_HOME=$ORACLE_BASE/product/10.2/crs
# Each RAC node must have a unique ORACLE_SID. (i.e. orcl1, orcl2,...)
export ORACLE_SID=orcl1
export PATH=.:${PATH}:/usr/ccs/bin:$HOME/bin:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin
export PATH=${PATH}:/usr/bin:/bin:/usr/local/bin:/usr/sfw/bin:/usr/openwin/bin:/
usr/ucb/cc
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS10=$ORACLE_HOME/nls/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
export CLASSPATH=$ORACLE_HOME/JRE
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export TEMP=/tmp
export TMPDIR=/tmp
export DISPLAY=ram1:0.0
**************************************8
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib:/usr/local/lib

================================================
Enable ssh root login in Solaris 10
By Simon Sun on Jul 29, 2008
1. Change the file /etc/ssh/sshd_config with PermitRootLogin yes to replace Perm
itRootLogin no
2. restart the services
#svcadm restart svc:/network/ssh:default
================================================================================
==========
vi /etc/hosts
# Public Network - (pcn0)
192.168.1.100 ram1
192.168.1.200 ram2
# Private Interconnect - (pcn1)
192.168.2.1 ram1-priv
192.168.2.2 ram2-priv
# Public Virtual IP (VIP) addresses for - (pcn0)
192.168.1.110 ram1-vip
192.168.1.210 ram2-vip
================================================================================
======
-----------------------------cd ~/.ssh
/usr/bin/ssh-keygen -t rsa
cat id_rsa.pub >> authorized_keys ;
root
scp /.ssh/id_rsa.pub ram2:/.ssh/id_rsa.pub.tmp ; --> on node1
scp /.ssh/id_rsa.pub ram1:/.ssh/id_rsa.pub.tmp ; --> on node2
cat /.ssh/id_rsa.pub.tmp >> /.ssh/authorized_keys ; chmod 600 /.ssh/authorized_k
eys ; rm /.ssh/id_rsa.pub.tmp ;
oracle:
cat id_rsa.pub >> authorized_keys ;
scp ~/.ssh/id_rsa.pub ram2:~/.ssh/id_rsa.pub.tmp ; --> on node1
scp ~/.ssh/id_rsa.pub ram1:~/.ssh/id_rsa.pub.tmp ; --> on node2

cat ~/.ssh/id_rsa.pub.tmp >> ~/.ssh/authorized_keys ; chmod 600 ~/.ssh/authorize


d_keys ; rm ~/.ssh/id_rsa.pub.tmp ;
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
--------------------telnet -l root node1
telnet -l root node2
------------------------ssh $i "mkdir .ssh ; chmod 700 .ssh ; cat ~/.ssh/id_rsa.pub.tmp >> ~/.ssh/author
ized_keys ; chmod 600 ~/.ssh/authorized_keys ; rm ~/.ssh/id_rsa.pub.tmp " ;
================================================================================
====
$ exec ssh-agent $SHELL
$ ssh-add
Enter passphrase for /export/home/oracle/.ssh/id_rsa:
Identity added: /export/home/oracle/.ssh/id_rsa
(/export/home/oracle/.ssh/id_rsa)
==================================
date;hostname;ssh ram2 "date;hostname"
date;hostname;ssh ram1 "date;hostname"
ssh node2 "date;hostname"
========================================
#xhost +
$export PATH=$PATH:/usr/openwin/bin
$export DISPLAY=node1:0.0
$xclock
:/usr/openwin/bin
$export DISPLAY=node1:0.0
**********************
for display:
go to root and give>>
xhost +
and then go to oracle prompt and type xclock the clock will display.
======================================================

pkginfo -i SUNWlibms
pkginfo -i SUNWtoo
pkginfo -i SUNWi1cs - req
pkginfo -i SUNWi15cs - req
pkginfo -i SUNWxwfnt
pkginfo -i SUNWxwplt
pkginfo -i SUNWmfrun
pkginfo -i SUNWxwplr
pkginfo -i SUNWxwdv
pkginfo -i SUNWgcc
pkginfo -i SUNWbtool
pkginfo -i SUNWi1of
pkginfo -i SUNWhea
pkginfo -i SUNWlibm
pkginfo -i SUNWsprot
pkginfo -i SUNWuiu8
==========================
pkginfo -i SUNWarc
pkginfo -i SUNWbtool
pkginfo -i SUNWhea
pkginfo -i SUNWlibC
pkginfo -i SUNWlibm
pkginfo -i SUNWlibms
pkginfo -i SUNWsprot
pkginfo -i SUNWtoo
pkginfo -i SUNWi1of
pkginfo -i SUNWi1cs
pkginfo -i SUNWi15cs
pkginfo -i SUNWxwfnt

pkginfo -i SUNWxcu4
========================
pkgadd -d /cdrom/sol_10_811_x86/Solaris_10/Product/SUNWi1cs/install
pkgadd -d /cdrom/sol_10_811_x86/Solaris_10/Product/SUNWi15cs
cd /var/spool/pkg
/usr/sbin/pkgadd -d SUNWi1cs
pkgadd -d SUNWi15cs
pkgadd

/var/spool/pkg/SUNWi15cs

pkgadd

/var/spool/pkg/SUNWi1cs

finally thefollowing worked:


*****************************
cd /cdrom/sol_10_811_x86/Solaris_10/Product
pkgadd -d . SUNWi1cs
pkgadd -d . SUNWi15cs
=========================================================
mkdir -p /var/opt/oracle
on all the nodes.
=========================================================
Patches for Solaris 10:
118345-03 SunOS 5.10_x86: ld & libc.so.1 Patch
119961-01 SunOS 5.10_x86, x64, Patch for assembler
117837-05 C 5.7_x86: Patch for SS10 C_x86 compiler
117846-08 Sun Compiler Common 10_x86: Patch for
studio10 backend
118682-01 Patch for SS10_x86 debuginfo handling
RAC Sun Cluster Patches for Solaris 10:
120498-02: Sun Cluster 3.1_x86: OPS Core Patch for Solaris
10_x86
119964-05: SunOS 5.10_x86: Shared library patch for
C++_x86
/usr/sbin/patchadd -p | grep 118345
/usr/sbin/patchadd -p | grep 119961 > require
/usr/sbin/patchadd -p | grep 117837 -/usr/sbin/patchadd -p | grep 117846 -/usr/sbin/patchadd -p | grep 118682 --

/usr/sbin/patchadd -p | grep 120498 -/usr/sbin/patchadd -p | grep 120498 -/usr/sbin/patchadd -p | grep 119964

> require

**********************************************8
patchadd /var/spool/patch/119961-10
patchadd /var/spool/patch/119964-05
-----------------------------------patchadd /var/spool/patch/118855-36
patchadd /var/spool/patch/117837-07
patchadd /var/spool/patch/117846-20
patchadd /var/spool/patch/118682-01
===================================================================
118345-03
117837-05
117846-08
118682-01
==================================================================
$ cat /export/home/oracle/product/crs/cfgtoollogs/configToolAllCommands
# Copyright (c) 1999, 2006, Oracle. All rights reserved.

/export/home/oracle/product/crs/bin/oifcfg setif -global vmxnet0/192.168.1.0:pu


blic vmxnet1 /192.168.2.0:cluster_interconnect
/export/home/oracle/product/crs/bin/cluvfy stage -post crsinst -n node1,node2
================================================================================
=====
runcluvfy.sh stage -post hwos -n ram1,ram2 -verbose
runcluvfy.sh comp sys -n ram1,ram2 -p crs -osdba osdba_group -orainv orainv_gro
up -verbose
runcluvfy.sh comp sys -n ram1,ram2 -p {crs|database} -osdba osdba_group -orainv
orainv_group -verbose
==========================================================
/export/home/oracle/product/crs/bin/olsnodes -n

Vous aimerez peut-être aussi