当前位置: 技术问答>linux和unix
oracle 9i Linux 下安装时出现 无法建立inventory目录,你可能没有相应权限,请高手帮忙,100分,在线等!
来源: 互联网 发布时间:2015-09-05
本文导语: 我下oracle 网站下的oracle9204 for linux 在自己的机器(linux 13.8 fc1)上安装到增加用户组点击下一步时出现“法建立inventory目录,你可能没有相应权限”的提示,不能正常 安装下去,我自己最近在网上找了一下文章,...
我下oracle 网站下的oracle9204 for linux 在自己的机器(linux 13.8 fc1)上安装到增加用户组点击下一步时出现“法建立inventory目录,你可能没有相应权限”的提示,不能正常 安装下去,我自己最近在网上找了一下文章,说可以能过以root用户来执行/tmp/orainstRoot.sh,但我执行时却提示"bash: /tmp/orainstRoot.sh: 没有那个文件或目录",还是不能继续安装!我该怎么办呢?我已经建了oracle的组和用户,用oracle用户登录,执行安装,部分命令如下
1.
su - root
groupadd dba # group of users to be granted with SYSDBA system privilege
groupadd oinstall # group owner of Oracle files
useradd -c "Oracle software owner" -g oinstall -G dba oracle
passwd oracle
2.
su - root
mkdir /temp
chown root.root /temp
chmod 1777 /temp
export TEMP=/temp # used by Oracle
export TMPDIR=/temp
su - root
mkdir /opt/oracle
mkdir /opt/oracle/product
mkdir /opt/oracle/product/9.2.0
chown -R oracle.oinstall /opt/oracle
mkdir /var/opt/oracle
chown oracle.dba /var/opt/oracle
chmod 755 /var/opt/oracle
3.以下是我的部分.bash_profile文件
# Set the LD_ASSUME_KERNEL environment variable only for Red Hat 9 and
# for Red Hat Enterprise Linux Advanced Server 3 (RHEL AS 3) !!
# Use the "Linuxthreads with floating stacks" implementation instead of NPTL:
export LD_ASSUME_KERNEL=2.4.1
export LC_ALL="zh_CN"
# Oracle Environment
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/9.2.0
#export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=ora9i
export ORACLE_TERM=xterm
# export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
#自己注释,因为要用中文export NLS_LANG=AMERICAN;
#export NLS_LANG=AMERICAN
export NLS_LANG=american_america.ZHS16GBK
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export JAVA_FONTS=/usr/share/fonts/zh_CN/TrueType/
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
# Set shell search paths
export PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
CLASSPATH=$Oracle_HOME/JRE:$Oracle_HOME/jlib:$Oracle_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$Oracle_HOME/network/jlib
export PATH CLASSPATH
export TEMP=/temp # used by Oracle
export TMPDIR=/temp
请oracle和Linux高手们帮忙?在线等!谢谢!
1.
su - root
groupadd dba # group of users to be granted with SYSDBA system privilege
groupadd oinstall # group owner of Oracle files
useradd -c "Oracle software owner" -g oinstall -G dba oracle
passwd oracle
2.
su - root
mkdir /temp
chown root.root /temp
chmod 1777 /temp
export TEMP=/temp # used by Oracle
export TMPDIR=/temp
su - root
mkdir /opt/oracle
mkdir /opt/oracle/product
mkdir /opt/oracle/product/9.2.0
chown -R oracle.oinstall /opt/oracle
mkdir /var/opt/oracle
chown oracle.dba /var/opt/oracle
chmod 755 /var/opt/oracle
3.以下是我的部分.bash_profile文件
# Set the LD_ASSUME_KERNEL environment variable only for Red Hat 9 and
# for Red Hat Enterprise Linux Advanced Server 3 (RHEL AS 3) !!
# Use the "Linuxthreads with floating stacks" implementation instead of NPTL:
export LD_ASSUME_KERNEL=2.4.1
export LC_ALL="zh_CN"
# Oracle Environment
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/9.2.0
#export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=ora9i
export ORACLE_TERM=xterm
# export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
#自己注释,因为要用中文export NLS_LANG=AMERICAN;
#export NLS_LANG=AMERICAN
export NLS_LANG=american_america.ZHS16GBK
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export JAVA_FONTS=/usr/share/fonts/zh_CN/TrueType/
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
# Set shell search paths
export PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
CLASSPATH=$Oracle_HOME/JRE:$Oracle_HOME/jlib:$Oracle_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$Oracle_HOME/network/jlib
export PATH CLASSPATH
export TEMP=/temp # used by Oracle
export TMPDIR=/temp
请oracle和Linux高手们帮忙?在线等!谢谢!
|
su -root
chown oracle.oinstall -p /opt
chown oracle.oinstall -p /opt