发新话题
打印

oracle 9i Linux 下安装时出现 无法建立inventory目录,你可能没有相应权限,请高手帮忙

oracle 9i Linux 下安装时出现 无法建立inventory目录,你可能没有相应权限,请高手帮忙

我下oracle 网站下的oracle9204 for linux 在自己的机器(linux 13.8 fc1)上安装到增加用户组点击下一步时出现“法建立inventory目录,你可能没有相应权限”的提示,不管你填不填组名(oinstall)不能正常安装下去,我自己最近在网上找了一下文章,说可以能过以root用户来执行/tmp/orainstRoot.sh,但我执行时 su - 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=$PATHORACLE_HOME/binHOME/bin

CLASSPATH=$Oracle_HOME/JREOracle_HOME/jlibOracle_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
/tmp/orainstRoot.sh
提示
bash: /tmp/orainstRoot.sh: 没有那个文件或目录
为什么我的oracle安装没有产生: /tmp/orainstRoot.sh文件
我再试着执行/temp/orainstRoot.sh也是一样的,以下付上图片,我打开窗口看/tmp /temp确实没有找到那个文件,唉,这几天在网上找了好多文章看啦,基本所有有关
linux oracle 安装的文章都看了一遍,还是解决不了问题,心里好郁闷的!

另外再说明,我在安装时./runInstaller时出现以下字体提示,会不会可能跟这个问题有关呢?以下是提示
[oracle@mzy Disk1]$ Initializing Java Virtual Machine from /temp/OraInstall2005- 01-26_11-39-43PM/jre/bin/java. Please wait...
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-i-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-i-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-r-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-i-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-medium-r-normal-- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-demibold-i-normal --*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-demibold-r-normal --*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-medium-i-normal-- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-r-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-i-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Warning: Cannot convert string "<Key>Escape,_Key_Cancel" to type VirtualBinding
Warning: Cannot convert string "<Key>Home,_Key_Begin" to type VirtualBinding
Warning: Cannot convert string "<Key>F1,_Key_Help" to type VirtualBinding
Warning: Cannot convert string "Shift<Key>F10,_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>F10,Shift_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>KP_Enter,_Key_Execute" to type VirtualBindi ng
Warning: Cannot convert string "Alt<Key>Return,Alt_Key_KP_Enter" to type Virtual Binding
还有我在安装时中文框一直都是问号,在网上说可以用 export LC_ALL=zh_CN export LANG=zh_CN 可以解决,但我的一直解决不了,后来加
export JAVA_FONTS=/usr/share/fonts/zh_CN/TrueType/才可以看到中文,会不会也有关系呢?      
附件: 您所在的用户组无法下载或查看附件

TOP

我下oracle 网站下的oracle9204 for linux 在自己的机器(linux 13.8 fc1)上安装到增加用户组点击下一步时出现 “无法建立inventory目录,你可能没有相应权限”的提示,不管你填不填组名(oinstall)不能正常安装下去,我自己最近在网上找了一下文章,说可以能过以root用户来执行/tmp/orainstRoot.sh,但我执行时 su - 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=$PATHORACLE_HOME/binHOME/bin

CLASSPATH=$Oracle_HOME/JREOracle_HOME/jlibOracle_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
/tmp/orainstRoot.sh
提示
bash: /tmp/orainstRoot.sh: 没有那个文件或目录
为什么我的oracle安装没有产生: /tmp/orainstRoot.sh文件
我再试着执行/temp/orainstRoot.sh也是一样的,以下付上图片,我打开窗口看/tmp /temp确实没有找到那个文件,唉,这几天在网上找了好多文章看啦,基本所有有关
linux oracle 安装的文章都看了一遍,还是解决不了问题,心里好郁闷的!

另外再说明,我在安装时./runInstaller时出现以下字体提示,会不会可能跟这个问题有关呢?以下是提示
[oracle@mzy Disk1]$ Initializing Java Virtual Machine from /temp/OraInstall2005- 01-26_11-39-43PM/jre/bin/java. Please wait...
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-i-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-i-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-r-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-i-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-medium-r-normal-- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-demibold-i-normal --*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-demibold-r-normal --*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-medium-i-normal-- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-r-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-i-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Warning: Cannot convert string "<Key>Escape,_Key_Cancel" to type VirtualBinding
Warning: Cannot convert string "<Key>Home,_Key_Begin" to type VirtualBinding
Warning: Cannot convert string "<Key>F1,_Key_Help" to type VirtualBinding
Warning: Cannot convert string "Shift<Key>F10,_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>F10,Shift_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>KP_Enter,_Key_Execute" to type VirtualBindi ng
Warning: Cannot convert string "Alt<Key>Return,Alt_Key_KP_Enter" to type Virtual Binding
还有我在安装时中文框一直都是问号,在网上说可以用 export LC_ALL=zh_CN export LANG=zh_CN 可以解决,但我的一直解决不了,后来加
export JAVA_FONTS=/usr/share/fonts/zh_CN/TrueType/才可以看到中文,会不会也有关系呢?


以下是安装到的界面,不管填不填组oinstall,点下一步都会提示第二个图片的界面"无法建立inventory目录,你可能没有相应权限"
<img src="http://www.linuxeden.com/forum/attachment.php?attachmentid=603" width="650" height="504"><br>
提示界面如图所示,在这一步就没会继续安装下去啦!<br>
<img src="http://www.linuxeden.com/forum/attachment.php?attachmentid=602" width="394" height="158"><br>
请各位高手们帮忙,小弟感激不尽!      

TOP

先关闭运行程序,再用root登入到....../oracle/inventory/ 就会出现!      

TOP

我第一次安装的时候也出现了这种情况,我第二次安装的时候就很顺利了。自己也不敢确认是什么问题
很有可能是oracle用户中的.bash_profile 没有生效!      

TOP

发新话题