Вы находитесь на странице: 1из 5

Check the following filesets are installed on the AIX node or Logical Partition

(LPAR) using the command


lslpp l <fileset name(s)>
? openssh & openssl (These filesets are included in the AIX Base Operating Syste
m (BOS) media
or can be downloaded from http://sourceforge.net/projects/openssh-aix/ ).
? bos.adt.base
? bos.adt.lib
? bos.adt.libm
? bos.perf.libperfstat
? bos.perf.perfstat
? bos.perf.proctools
? rsct.basic.rte
? rsct.compat.clients.rte
? xlC.aix61.rte 11.1.0.4 (or later)
?xlC.rte.11.1.0.4 or later
? bash-4.2-1 (This can be downloaded from
1. Edit the file /etc/security/login.cfg
om STD_AUTH to
PAM_AUTH .

to change auth_type under the

usw

stanza fr

2. Make sure the presence of the line login session required pam_aix in /etc/pam.c
onf file and add the
following lines,
sshd auth required pam_aix
sshd account required pam_aix
sshd password required pam_aix
sshd session required pam_aix
Set the OpenSSH parameter LoginGraceTime to 0 using the following steps.
? Using the editor open the file /etc/ssh/sshd_config and locate the line #LoginG
raceTime 2m
and remove # and change 2m to 0 . It will look like
LoginGraceTime 0 .
? Save and exit from the file.
? Restart the SSH daemon.
o /usr/bin/stopsrc s sshd
o /usr/bin/startsrc s sshd
3. Configuring OS kernel parameters
Make sure the aio_maxreqs is set to 65536 (64K) by issuing ioo -a |grep aio_maxreqs .
If it is not
64K, set it by ioo o aio_maxreqs=65536 .
Keep the default values of the virtual memory parameter values in AIX 7.1 and ma
ke sure the
following values are set using the command vmo aF .
? minperm%=3
? maxperm%=90
? maxclient%=90
? lru_file_repage=0 # This parameter cannot be changed in AIX7.1
? strict_maxclient=1
? strict_maxperm=0
If these values are not set, use the command vmo -p o <parameter=new value>
Edit the following lines to the /etc/security/limits file, -1 represents unlimite
d , the default values are:
? fsize = -1
? core = 2097151
? cpu = -1
? data = -1
? rss = -1
? stack = -1

? nofiles = -1
4. Verify that the maximum number of processes allowed for each user is set to 2
048 or greater using
the command,
? # smitty chgsys or /usr/sbin/chdev l sys0 a maxuproc= 2048
5. Oracle recommends increasing the space allocated for ARG/ENV list to 128 or g
reater. The size is
specified by number of 4K blocks. The default value for ncargs in AIX7.1 is 256. I
t can range
between 128 and 1024.
/usr/sbin/chdev -l sys0 a ncargs= 1024
6. Configuring network parameters
The recommended values for the network parameters in AIX when running the Oracle
Database are:
? ipqmaxlen=512
? rfc1323=1
? sb_max=4194304
? tcp_recvspace=65536
? tcp_sendspace=65536
? udp_recvspace=655360
? udp_sendspace=65536
Find out the current values for the above parameters using the no a command. To set
the values,
determine whether the system is running in compatibility mode or not by using th
e command # lsattr
-E -l sys0 -a pre520tune .
If the output is pre520tune disable Pre-520 tuning compatibility mode True ,the sy
stem is not
running in compatibility mode. If the system is not running in compatibility mod
e you can set the
values using the following commands:
? For setting ipqmaxlen use /usr/sbin/no -r -o ipqmaxlen=512
? For setting other parameters use /usr/sbin/no -p -o parameter=value
If the system is running in compatibility mode, then the output is similar to th
e following, showing that
the value of the pre520tune attribute is enabled: pre520tune enable Pre-520 tunin
g compatibility
mode True .
For compatibility mode, set the values by using the command no -o parameter_name=
value and
make the following entries in /etc/rc.net file.
If [ -f /usr/sbin/no ] ; then
/usr/sbin/no -o udp_sendspace=65536
/usr/sbin/no -o udp_recvspace=655360
/usr/sbin/no -o tcp_sendspace=65536
/usr/sbin/no -o tcp_recvspace=65536
/usr/sbin/no -o rfc1323=1
/usr/sbin/no -o sb_max=4194304
/usr/sbin/no -o ipqmaxlen=512
fi
7. The default
setting of ephemeral port range can be found from the output of the following co
mmand,
# /usr/sbin/no a | fgrep ephemeral
It would show the range between 32768 and 65536. The recommended broader range o
f ports are

between 9000 and 65500. To set these new values, use the following commands,
# /usr/sbin/no -p -o tcp_ephemeral_low=9000 -o tcp_ephemeral_high=65500
# /usr/sbin/no -p -o udp_ephemeral_low=9000 -o udp_ephemeral_high=65500
8. Network time protocol
In the lab test setup, NTP is disabled by the following command and renamed the
NTP configuration
file /etc/ntp.conf to /etc/ntp.bak .
# stopsrc s xntpd
9. Creating users and groups
On each of the Oracle RAC nodes the group ID and user ID number should be the sa
me.
? # mkgroup -'A' id='1000' adms='root' oinstall
? # mkgroup -'A' id='2000' adms='root' dba
? # mkgroup -'A' id='3000' adms='root' oper
? # mkgroup -'A' id='4000' adms='root' asmadmin
? # mkgroup -'A' id='5000' adms='root' asmdba
? # mkuser id='1100' pgrp='oinstall' groups='dba,oper,asmadmin,asmdba' home='/ho
me/grid'
grid
? # mkuser id='1101' pgrp='oinstall' groups='dba,oper,asmdba' home='/home/oracle
' oracle
10. For the grid user
Capability setting for grid user is required to succeed Oracle Grid Infrastructu
re installation.
# /usr/bin/chuser capabilities=CAP_NUMA_ATTACH,CAP_BYPASS_RAC_VMM,CAP_PROPAGATE
grid
11. Create a separate filesystem (For example: /u01) and create separate directo
ry (ORACLE_HOME)
for the Oracle Grid Infrastructure software and the Oracle Database software
?
?
?
?
?
?

#
#
#
#
#
#

mkdir
mkdir
mkdir
chown
chown
chmod

-p /u01/app/12.1.0/grid
-p /u01/app/grid
-p /u01/app/oracle
-R grid:oinstall /u01
oracle:oinstall /u01/app/oracle
-R 775 /u01/

12. Setting Oracle inventory location


create oraInst.loc will be created under the /etc directory.
inventory_loc=/u01/app/oracle/oraInventory
inst_group=oinstall
13. Setting up network files
setting up the hostfile
hosatname vs ip addr
14. pkg dependency chk
Package existence check "vacpp.cmp.core:7.0.0.2".
Operating system patch check "IY65361 ".
Package existence check "vac.C:7.0.0.2".
Package existence check "xlC.aix50.rte:7.0.0.4".
Package existence check "xlC.rte:7.0.0.1".

Package existence check "gpfs.base:2.3.0.3".


Operating system patch check "IY63969".
Operating system patch check "IY69911".
Operating system patch check "IY70276".
Operating system patch check "IY60759".
Operating system patch check "IY61034".
Operating system patch check "IY61770".
Operating system patch check "IY62191".
Package existence check "xlfrte:9.1".
Package existence check "gdb-6.0-1:6.0".
Package existence check "make-3.80-1:3.80".
Package existence check "freeware.gnu.tar.rte:1.13.0.0".
Package existence check "Java14_64.sdk:1.4.2.1".
Package existence check "Java131.rte.bin:1.3.1.16".
Package existence check "Java14.sdk:1.4.2.2".
Operating system patch check "IY65305".
Operating system patch check "IY58350".
Operating system patch check "IY63533".
Package existence check "mqm.server.rte:5.3".
Package existence check "mqm.client.rte:5.3".
Package existence check "sna.rte:6.1.0.4".
Package existence check "bos.net.tcp.server".
Operating system patch check "IY44599".
Operating system patch check "IY60930".
Operating system patch check "IY58143".
Operating system patch check "IY66513".
Operating system patch check "IY70159".
Operating system patch check "IY59386".
Package existence check "bos.adt.base".
Package existence check "bos.adt.lib".
Package existence check "bos.adt.libm".
Package existence check "bos.perf.libperfstat".
Package existence check "bos.perf.perfstat".
Package existence check "bos.perf.proctools".
Package existence check "rsct.basic.rte".
Package existence check "perl.rte:5.0005".
Package existence check "perl.rte:5.6".
Package existence check "perl.rte:5.8".
Package existence check "python-2.2-4:2.2".
Package existence check "freeware.zip.rte:2.3".
Package existence check "freeware.gcc.rte:3.3.2.0".
15. setting up .profile
rigel:/u01/app/oracle$cat .profile
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin
export PATH
PS1=`hostname`':$PWD'"$"
export PS1
set -o vi
if [ -s "$MAIL" ] # This is at Shell startup. In normal
then echo "$MAILMSG" # operation, the Shell checks
fi # periodically.
ORACLE_BASE=$HOME
ORA_CRS_HOME=/u01/crs/oracle/product/10.2.0/crs_1
PATH=$PATH:$ORA_CRS_HOME/bin:$HOME/local/itc:/usr/local/bin
NLS_DATE_FORMAT='DD-MON-YY:HH:MI:SS'
export PATH
export ORACLE_BASE

export NLS_DATE_FORMAT
export ORA_CRS_HOME
alias s=sqlplus
alias ss="sqlplus '/ as sysdba'"
SIDLIST=`grep -v "^#" /etc/oratab | grep -v "^$" | awk -F: '{printf $1" "}'`
echo "SIDs here are: $SIDLIST"
echo "Set environment by typing '. oraenv' - there is no default environment set
up."

/oracle12/app/product/12.2.0/dbhome_1/bin/relink all
$ export ORACLE_HOME=/oracle12/app/product/12.2.0/dbhome_1
$ export PATH=$ORACLE_HOME/bin:$PATH
$ dbua

Вам также может понравиться