Académique Documents
Professionnel Documents
Culture Documents
[84312]
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
c2t3d0s11
c0d0s5
c2t3d0s12
c0d0s6
c2t3d0s13
c0d0s7
c2t3d0s14
c1t0d0s10 c2t0d0p0
c2t4d0p0 c2t4d0s3
c1t0d0s11 c2t0d0p1
c2t4d0p1 c2t4d0s4
c1t0d0s12 c2t0d0p2
c2t4d0p2 c2t4d0s5
c1t0d0s13 c2t0d0p3
c2t4d0p3 c2t4d0s6
c1t0d0s14 c2t0d0p4
c2t4d0p4 c2t4d0s7
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d0*
================================================================================
==============================================
# 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
==========================================================
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
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
> 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.