#groupadd dba
#useradd -g oinstall -G dba -d /export/home/oracle -s /bin/bash -m oracle
#passwd oracle
-g:用户所属组
-G:用户所属附加组
-d:用户主目录
-s:用户默认shell类型,在指定具体shell的时候,确保该目录下有该shell,记得有一个安装好AIX直接将某个用户的shell修改成/bin/bash,导致无法使用,因为AIX默认是不安装bash的,需要另外安装.
oracle:用户名
-m:参数表示自动创建此用户的主目录
#pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot \
SUNWsprox SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
system SUNWarc Lint Libraries (usr)
system SUNWbtool CCS tools bundled with SunOS
system SUNWhea SunOS Header Files
system SUNWi1of ISO-8859-1 (Latin-1) Optional Fonts
system SUNWlibm Math & Microtasking Library Headers & Lint Files (Usr)
system SUNWlibms Math & Microtasking Libraries (Usr)
system SUNWsprot Solaris Bundled tools
system SUNWtoo Programming Tools
system SUNWxwfnt X Window System platform required fonts
ERROR: information for "SUNWsprox" was not found
ERROR: information for "SUNWi1cs" was not found
ERROR: information for "SUNWi15cs" was not found
# pwd
#/cdrom/sol_10_106_x86/Solaris_10/Product
#cp -R ./SUNWi1cs /var/spool/pkg
#cp -R ./SUNWi15cs /var/spool/pkg
#cp -R ./SUNWsprot /var/spool/pkg
# pkgadd
The following packages are available:
1 SUNWi15cs X11 ISO8859-15 Codeset Support
(i386) 2.0,REV=2004.10.17.15.04
2 SUNWi1cs X11 ISO8859-1 Codeset Support
(i386) 2.0,REV=2004.10.17.15.04
3 SUNWsprot Solaris Bundled tools
(i386) 5.10,REV=2004.12.18
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1
# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot \
> SUNWsprox SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
system SUNWarc Lint Libraries (usr)
system SUNWbtool CCS tools bundled with SunOS
system SUNWhea SunOS Header Files
system SUNWi15cs X11 ISO8859-15 Codeset Support
system SUNWi1cs X11 ISO8859-1 Codeset Support
system SUNWi1of ISO-8859-1 (Latin-1) Optional Fonts
system SUNWlibm Math & Microtasking Library Headers & Lint Files (Usr)
system SUNWlibms Math & Microtasking Libraries (Usr)
system SUNWsprot Solaris Bundled tools
system SUNWtoo Programming Tools
system SUNWxwfnt X Window System platform required fonts
ERROR: information for "SUNWsprox" was not found
备份/etc/system
# pwd
/etc
#cp system system.backup20120721
#vi system
添加如下内容
set noexec_user_stack=1
set semsys:seminfo_semmni=300
set semsys:seminfo_semmns=1050
set semsys:seminfo_semmsl=400
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=300
set shmsys:shminfo_shmseg=30
#init 6
查看oracle使用的shell
bash-3.00$ cat /etc/passwd|grep oracle
oracle:x:100:100::/export/home/oracle:/bin/bash
$cd ~
vi .profile添加如下内容
export ORACLE_SID
ORACLE_BASE=/u01/app/oracle
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin:/usr/bin:/usr/ucb:/etc:.
export PATH
umask 022
ORACLE_SID=oracl
export ORACLE_SID
单独一行export ORACLE_SID=oracl 好像是不行的.
#cd /
#mkdir u01
#chown oracle:dba /u01
$mkdir -p $ORACLE_HOME
指定安装组,点击Next.








1466



被折叠的 条评论
为什么被折叠?



