利用smit chuser命令修改oracle用户的shell配置:Soft FILE> 利用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 < 10gr2_aix5l64_database.cpio解压文件,然后利用图形方式开始安装。
在运行/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.
oracle视频教程请关注:http://u.youku.com/user_video/id_UMzAzMjkxMjE2.html