Chinaunix首页 | 论坛 | 博客
  • 博客访问: 231349
  • 博文数量: 59
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 592
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-01 12:51
个人简介

你们都是我的客户,所以,我对你们是透明的

文章分类

全部博文(59)

文章存档

2016年(29)

2015年(30)

分类: Oracle

2015-10-19 10:58:03

Power 550 AIX 6107 Oracle 11.2.0.4

1、检查内存大小
/usr/sbin/lsattr -E -l sys0 -a realmem
最小1G,要求2G或者更多
# /usr/sbin/lsattr -E -l sys0 -a realmem
realmem 32112640 Amount of usable physical memory in Kbytes False

2、检查swap空间的大小
/usr/sbin/lsps –a
# lsps -a
Page Space  Physical Volume   Volume Group Size %Used Active  Auto  Type Chksum
hd6        hdisk0            rootvg       16896MB     1   yes   yes    lv     0

# lsps -s
Total Paging Space   Percent Used
      16896MB               1%

3、检查操作系统结构是否可以运行oracle软件
/usr/bin/getconf HARDWARE_BITMODE

4、检查临时空间的大小
df -k /tmp
要求至少为1G,空间不足软件安装界面是起不来的。

# df -k /tmp
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd3         10485760   8382168   21%     1910     1% /tmp

5、检查包是否打全
# lslpp -l bos.adt.base bos.adt.libbos.adt.libm bos.perf.perfstat \bos.perf.libperfstat bos.perf.proctools
 
# lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat 
bos.perf.libperfstat bos.perf.proctools xlC.aix61.rte  Fileset                      Level  State      Description         
  ----------------------------------------------------------------------------
Path: /usr/lib/objrepos
  bos.adt.base               6.1.7.0  COMMITTED  Base Application Development
                                                 Toolkit 
  bos.adt.lib                6.1.2.0  COMMITTED  Base Application Development
                                                 Libraries 
  bos.adt.libm               6.1.6.0  COMMITTED  Base Application Development
                                                 Math Library 
  bos.perf.perfstat          6.1.7.0  COMMITTED  Performance Statistics
                                                 Interface 

Path: /etc/objrepos
  bos.adt.base               6.1.7.0  COMMITTED  Base Application Development
                                                 Toolkit 
  bos.perf.perfstat          6.1.7.0  COMMITTED  Performance Statistics
                                                 Interface 

6、创建oracle用户和oinstall用户组
mkgroup -A id=1001 oinstall
mkuser -a id=1002 pgrp=oinstall groups=oinstall fsize=-1 cpu=-1 data=-1 rss=-1 stack=-1 stack_hard=-1 capabilities=CAP_NUMA_ATTACH,CAP_BYPASS_RAC_VMM,CAP_PROPAGATE oracle
passwd oracle 

7、创建oracle用户哦install用户组,修改oracle环境变量
smitty mkgroup

# chown -R oracle:oinstall /oracle
# chmod 755 /oracle

export ORACLE_SID=orcl
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH

mkdir –p $ORACLE_BASE
mkdir –p $ORACLE_HOME

a.调整maxuproc(系统最大进程数) 官网提示"Verify that the value shown for Maximum number of PROCESSES allowed per user is greater than or equal to 2048."
# chdev -l sys0 -a maxuproc=16384
sys0 changed
#

8、修改参数
b.调整ncargs(系统块大小) 官网提示"Oracle recommends that you set the ncargs system attribute to a value greater than or equal to 128.”
chdev -l sys0 -a ncargs=128
# chdev -l sys0 -a ncargs=128
Method error (/usr/lib/methods/chggen):
        0514-018 The values specified for the following attributes 
                 are not valid:
     ncargs     ARG/ENV list size in 4K byte blocks


d.修改/etc/security/limits文件中default参数部分(需重启生效)
   default:
     fsize = -1  ##(Unlimited)
     core = -1    ##(Unlimited)
     cpu = -1    ##(Unlimited)
     data = -1    ##(Unlimited)
     rss = -1    ##(Unlimited)
     stack = -1  ##(Unlimited)
     nofiles = -1 ##(Unlimited)   
   e.优化虚拟内存管理
     vmo -p -o minperm%=3       
     vmo -p -o maxperm%=90       
     vmo -p -o maxclient%=90   
     vmo -p -o lru_file_repage=0
     vmo -p -o strict_maxclient=1
     vmo -p -o strict_maxperm=0 
   f.调整网络参数                                                   
     no -r -o ipqmaxlen=512         
     no -p -o rfc1323=1             
     no -p -o sb_max=131072 //2*65536
     no -p -o tcp_recvspace=65536   
     no -p -o tcp_sendspace=65536   
     no -p -o udp_recvspace=655360 
     no -p -o udp_sendspace=65536

# no -p -o tcp_ephemeral_low=9000 -o tcp_ephemeral_high=65500
Setting tcp_ephemeral_low to 9000
Setting tcp_ephemeral_low to 9000 in nextboot file
Setting tcp_ephemeral_high to 65500
Setting tcp_ephemeral_high to 65500 in nextboot file

# no -p -o udp_ephemeral_low=9000 -o udp_ephemeral_high=65500
Setting udp_ephemeral_low to 9000
Setting udp_ephemeral_low to 9000 in nextboot file
Setting udp_ephemeral_high to 65500
Setting udp_ephemeral_high to 65500 in nextboot file
#


9、开始安装
# cd database
# ls
install       readme.html   response      rootpre       rootpre.sh    rpm           runInstaller  sshsetup      stage         welcome.html
# ./rootpre.sh
./rootpre.sh output will be logged in /tmp/rootpre.out_15-10-17.09:09:10
Checking if group services should be configured....
Nothing to configure.

 
$ cd database
$ ls
install       readme.html   response      rootpre       rootpre.sh    rpm           runInstaller  sshsetup      stage         welcome.html
$ export DISPLAY=10.87.250.173:0
$ ./runInstaller
********************************************************************************
Your platform requires the root user to perform certain pre-installation
OS preparation.  The root user should run the shell script 'rootpre.sh' before
you proceed with Oracle installation.  rootpre.sh can be found at the top level 
of the CD or the stage area.
Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle 
installation.
Answer 'n' to abort installation and then ask root to run 'rootpre.sh'.
********************************************************************************
Has 'rootpre.sh' been run by root? [y/n] (n)
y
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 190 MB.   Actual 8185 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 16896 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-10-17_09-10-16AM. Please wait ...$

 问题:
 1、忽略。
 

 2、
 

点击Retry顺利通过

执行root 不截图了




阅读(3013) | 评论(0) | 转发(0) |
0

上一篇:Error in invoking target

下一篇:dg单机搭建

给主人留下些什么吧!~~