您好,欢迎访问一九零五行业门户网

AIX上安装Oracle 10201

描述在aix上安装oracle10201的过程。 首先检查系统是否满足数据库安装需要: # /usr/sbin/lsattr -e -l sys0 -a realmem realmem
描述在aix上安装oracle10201的过程。
首先检查系统是否满足数据库安装需要:
# /usr/sbin/lsattr -e -l sys0 -a realmem
realmem 32604160 amount of usable physical memory in kbytes false
# /usr/sbin/lsps -a
page space      physical volume  volume group size %used active  auto  type chksum
hd6            hdisk0            rootvg      16384mb    1  yes  yes    lv    0
# df -k /tmp
filesystem    1024-blocks      free %used    iused %iused mounted on
/dev/hd3          3145728  3140388    1%      69    1% /tmp
# df -k
filesystem    1024-blocks      free %used    iused %iused mounted on
/dev/hd4          3145728  2608568  18%    10939    2% /
/dev/hd2          4194304  1991084  53%    47242    10% /usr
/dev/hd9var      2097152  1764848  16%    8269    3% /var
/dev/hd3          3145728  3140388    1%      69    1% /tmp
/dev/fwdump      1048576  1048080    1%        5    1% /var/adm/ras/platform
/dev/hd1          2097152  2096488    1%        5    1% /home
/dev/hd11admin      262144    261744    1%        5    1% /admin
/proc                  -        -    -        -    -  /proc
/dev/hd10opt      4194304  3945520    6%    8748    1% /opt
/dev/livedump      262144    261776    1%        4    1% /var/adm/ras/livedump
# /usr/bin/getconf hardware_bitmode
64
系统内容要求至少1g内存,swap分区大小对于大于8g的内存需要75%内存大小,当前配置为50%内存大小,虽然足够使用,,但是oracle检查可能会报错,需要忽略检查错误才行。
要求aix操作系统在5.2以上:
# oslevel -r
6100-06
当前为6,满足要求。
检查操作系统文件集:
# lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat bos.perf.libperfstat bos.perf.proctools
  fileset                      level  state      description     
 ----------------------------------------------------------------------------
path: /usr/lib/objrepos
  bos.adt.base              6.1.6.0  committed  base application development
                                                toolkit
  bos.adt.lib                6.1.2.0  committed  base application development
                                                libraries
  bos.adt.libm              6.1.5.0  committed  base application development
                                                math library
  bos.perf.libperfstat      6.1.6.0  committed  performance statistics library
                                                interface
  bos.perf.perfstat          6.1.6.0  committed  performance statistics
                                                interface
  bos.perf.proctools        6.1.6.0  committed  proc filesystem tools
path: /etc/objrepos
  bos.adt.base              6.1.6.0  committed  base application development
                                                toolkit
  bos.perf.libperfstat      6.1.6.0  committed  performance statistics library
                                                interface
  bos.perf.perfstat          6.1.6.0  committed  performance statistics
                                                interface
对于6来说,版本足够高,因此安装文档上描述的补丁集不再需要。
# cat /etc/netsvc.conf | grep hosts
# hosts = value [, value]
# use one or more of the following values for the hosts keyword:
#            the auth option is only valid when used in conjunction with a service value for the hosts keyword.
# local      searches the local /etc/hosts file for resolving names
# local4      searches the local /etc/hosts file for resolving only ipv4 addresses
# local6      searches the local /etc/hosts file for resolving only ipv6 addresses
# hosts = nis=auth, bind6, dave4
# hostname
zhy-dt-1
# domainname
# cat /etc/hosts | grep `eval hostname`
172.20.20.1    zhy-dt-1
验证系统是否仅使用/etc/hosts作为唯一验证名次的方式。
利用smit security创建oinstall、dba组。
利用smit security创建oracle用户,指定primary用户组oinstall,groupset为dba,指定用户创建目录/home/oracle
# id oracle
uid=202(oracle) gid=201(oinstall) groups=202(dba)
# passwd oracle
确认用户创建成功并修改密码。
# id nobody
uid=4294967294(nobody) gid=4294967294(nobody)
确认nobody用户存在。
利用smit chuser命令修改oracle用户的shell配置:soft file size、soft cpu time、soft data segment和soft stack size的限制都为-1。
利用smit chgsys配置系统参数:设置maximum number of processes allowed per user大于等于2048。
# su - oracle
$ echo $shell
/usr/bin/ksh
$ ls -al
total 16
drwxr-xr-x    2 oracle  oinstall        256 dec 22 01:06 .
drwxr-xr-x    5 bin      bin            256 dec 22 00:51 ..
-rwxr-----    1 oracle  oinstall        254 dec 22 00:51 .profile
-rw-------    1 oracle  oinstall        32 dec 22 01:06 .sh_history
$ vi .profile
.profile 9 lines, 254 characters
path=/usr/bin:/etc:/usr/sbin:/usr/ucb:$home/bin:/usr/bin/x11:/sbin:.
export path
if [ -s $mail ]          # this is at shell startup.  in normal
then echo $mailmsg        # operation, the shell checks
fi                          # periodically.
umask 022
aixthread_scope=s; export aixthread_scope
连接oracle用户,在环境变量中添加umask 022和aix_thread_scope环境变量。
将数据库安装目录授权给oracle用户:
# chown -r oracle:oinstall /data
建立安装目录:
$ mkdir -p /data/oracle/oradata
$ mkdir -p /data/oracle/product/10.2
在oracle用户的profile文件中添加下面的信息:
oracle_sid=zhtrade; export oracle_sid
oracle_base=/data/oracle; export oracle_base
oracle_home=/data/oracle/product/10.2; export oracle_home
path=$oracle_home/bin:$path; export path
display=172.20.10.150:1.0; export display
利用cpio –idcmv
在运行/data/software/disk1/runinstaller进行安装之前,需要首先用root来运行rootpre.sh:
# ./rootpre.sh
./rootpre.sh output will be logged in /tmp/rootpre.out_10-12-22.02:41:36
saving the original files in /etc/ora_save_10-12-22.02:41:36....
copying new kernel extension to /etc....
loading the kernel extension from /etc
 oracle kernel extension loader for aix
      copyright (c) 1998,1999 oracle corporation
successfully loaded /etc/pw-syscall.64bit_kernel with kmid: 0x50ca6000
 successfully configured /etc/pw-syscall.64bit_kernel with kmid: 0x50ca6000
the kernel extension was successfuly loaded.
configuring asynchronous i/o....
asynchronous i/o is not installed on this system.
you will need to install it, and either configure it yourself using
'smit aio' or rerun the oracle root installation procedure.
configuring posix asynchronous i/o....
posix asynchronous i/o is not installed on this system.
you will need to install it, and either configure it yourself using
'smit aio' or rerun the oracle root installation procedure.
checking if group services should be configured....
nothing to configure.
下面运行runinstaller开始数据库软件的安装:
选择高级安装,对安装过程进行定制;
由于设置了oracle_base和oracle_home环境变量,所以orainvertory目录和组信息不需要改变;
选择企业版,并加载中文语言;
oracle_home目录选择,这里默认是正确的;
oracle检查安装条件时会监测aix6超过了预期的5.2或5.3,直接忽略这个问题开始安装;
选择安装类型的时候选择仅安装数据库软件;
最后利用root运行两个脚本,安装完成。
# /data/oracle/orainventory/orainstroot.sh
changing permissions of /data/oracle/orainventory to 775.
changing groupname of /data/oracle/orainventory to oinstall.
the execution of the script. is complete
# /data/oracle/product/10.2/root.sh
running oracle10 root.sh script...
the following environment variables are set as:
    oracle_owner= oracle
    oracle_home=  /data/oracle/product/10.2
enter the full pathname of the local bin directory: [/usr/local/bin]:
creating /usr/local/bin directory...
  copying dbhome to /usr/local/bin ...
  copying oraenv to /usr/local/bin ...
  copying coraenv to /usr/local/bin ...
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.sh script.
now product-specific root actions will be performed.
其它类似信息

推荐信息