Copy install oracle10g for AIX5.3 www.2cto.com #! /Usr/bin/kshx () {chdev-l aio0-P $ * if [$? = 0] then dspmsg smit. cat-s 25 763 'changes will become valid tive at next lead E m restart' fi} x-a minservers = '30'-a maxservers = '60'-a autoconfig = 'available' # chfs-a size = + 128 M/# chfs-a size = + 128 M/home echo "oradb: /oraapp/product/10.2/db1: N ">/etc/oratab mkgroup oinstallmkgroup dba x () {LIST = SET_A = for I in "$ @" do if ["$ I" = "admin = true"] then SET_A = "-a" continue fi LIST = "$ LIST \ "$ I \" "done eval mkuser $ SET_A $ LIST} x id = '000000' pgrp = 'oinstall' groups = 'oinstall, dba 'home = '/home/oracle' shell = '/usr/bin/ksh' fsize ='-1' data = '-1' stack ='-1' core = '-1' oracle cd/oradata ftpUser = rootftpPWD = root/usr/bin/ftp-n <EOF open 10.14.54.168 21 user $ ftpUser $ ftpPWDbin # passive # mkdir $ date0 # cd $ date0cd/logs/oradata get oradb.tar get oraapp.tar # get IBM.tar bye EOF cd/oradata & tar xvf/oradata/oradb.tar cd/oraapp & tar xvf/oradata/export chown-R oracle: oinstall/oradata & chown-R oracle: oinstall/oraapp & chmod-R 775/oraapp & chmod-R 741/oradata & cat>/home/oracle /. profile <EOF if [-s "\ $ MAIL"] # This is at Shell startup. in normalthen echo "\ $ MAILMSG" # operation, the Shell checksfi # periodically. PATH =/usr/bin:/etc:/usr/sbin:/usr/ucb: \ $ HOME/bin:/usr/bin/X11:/sbin :. umask 022 export TERM = xtermexport ORACLE_BASE =/oraappexport ORACLE_HOME = \ $ ORACLE_BASE/product/10.2/db1export ORACLE_SID = oradbexport NLS_LANG = export PATH =\$ PATH: \ $ ORACLE_HOME/binexport DISPLAY = 10.14.41.24: 0.0 EOF su-oracle <EOFlsnrctl startsqlplus/as sysdbastartup EOF