Home >Database >Mysql Tutorial >Solaris 10上安装Oracle 10gR2

Solaris 10上安装Oracle 10gR2

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:24:48894browse

在Solaris 10上安装Oracle 10gR2过程详解。

在Solaris 10上安装Oracle 10gR2过程详解。

1.新建用户、组和oracle目录
 
用root用户登录,创建目录:
 
mkdir –p /opt/app/oracle
 
mkdir –p /opt/app/oracle/product/10.2.0/db
 
新建oracle组和用户并给目录分配用户和权限:
 
/usr/sbin/groupadd –g 301 dba
 
/usr/sbin/groupadd –g 300 oinstall
 
useradd –u 250 –c “oracle user” –d /opt/app/oracle –g oinstall –G dba –m –s /bin/ksh oracle
 
chown –R oracle:dba /opt/app/oracle
 
chmod –R 775 /opt/app/oracle
 
2.设置oracle用户环境变量
 
用oracle用户登录,设置环境变量
 
Vi ~/.profile
 
 
 
添加以下变量:
 
umask 022
 
 
 
if [ -t 0 ]; then
 
stty intr ^C
 
fi
 
MAIL=/usr/mail/${LOGNAME:?}
 
export PS1='hostname':$LOGNAME'$ '
 
export TERM=vt100
 
stty erase ^?
 
set -o vi
 
export DISPLAY=192.168.1.72:0.0
 
export ORACLE_SID=orcl
 
export ORACLE_BASE=/export/home/app/oracle
 
export ORACLE_HOME=${ORACLE_BASE}/product/10.2.0/db_1
 
export ORACLE_ADMIN=${ORACLE_BASE}/admin
 
export TNS_ADMIN=${ORACLE_HOME}/network/admin
 
export LD_LIBRARY_PATH=${ORACLE_HOME}/lib
 
export PATH=${ORACLE_HOME}/bin:/usr/bin:/etc:/usr/openwin/bin:/usr/local/bin:/usr/sbin:${PATH}:.
 
然后退出,重新登录该用户,使得环境变量产生效果
 
3.检查solaris的必要安装包
 
检查solaris10 需要的包是否已全部安装:
 
pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot \
 
 SUNWsprox SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn