简体   繁体   English

在Ubuntu 14.04上安装Oracle 11g时出错

[英]Error while installing Oracle 11g on Ubuntu 14.04

I am trying to install Oracle 11g on Ubuntu 14.04 using the command ./runInstaller -silent but I am getting this error: 我正在尝试使用命令./runInstaller -silent在Ubuntu 14.04上安装Oracle 11g,但出现此错误:

Checking temp space: 1 MB available, 120 MB required.    Failed

I tried doing the below but the error persisted: 我尝试执行以下操作,但错误仍然存​​在:

  • change to root 更改为根

su – root su –根

  • make new folder for the temporary files 为临时文件创建新文件夹

mkdir /u01/tmp mkdir / u01 / tmp

  • change the owner which you will use to install the product, in my case user is oracle and the group oinstall. 更改将用于安装产品的所有者,在我的情况下,用户为oracle,组为oinstall。

chown oracle:oinstall /u01/tmp chown oracle:oinstall / u01 / tmp

  • change the read-write settings 更改读写设置

chmod 1777 /u01/tmp chmod 1777 / u01 / tmp

  • export the new path so that the installer can use it 导出新路径,以便安装程序可以使用它

export TEMP=/u01/tmp 出口TEMP = / u01 / tmp
export TMPDIR=/u01/tmp 出口TMPDIR = / u01 / tmp

The documentation says to export environment variables TMP and TMPDIR , not TEMP : 该文档说要导出环境变量TMPTMPDIR ,而不是TEMP

If you determined that the /tmp directory has less than 1 GB of free disk space, then identify a file system with at least 1 GB of free space and set the TMP and TMPDIR environment variables to specify a temporary directory on this file system: 如果确定/ tmp目录的可用磁盘空间少于1 GB,请标识具有至少1 GB可用空间的文件系统,并设置TMPTMPDIR环境变量以在此文件系统上指定一个临时目录:

To determine the free disk space on each mounted file system use the following command: 要确定每个已挂载文件系统上的可用磁盘空间,请使用以下命令:

 # df -h /tmp 

If necessary, enter commands similar to the following to create a temporary directory on the file system that you identified, and set the appropriate permissions on the directory: 如有必要,输入与以下类似的命令以在您标识的文件系统上创建一个临时目录,并在该目录上设置适当的权限:

 $ sudo mkdir /mount_point/tmp $ sudo chmod a+wr /mount_point/tmp # exit 

Enter commands similar to the following to set the TMP and TMPDIR environment variables: 输入与以下类似的命令来设置TMPTMPDIR环境变量:

  • Bourne, Bash, or Korn shell: Bourne,Bash或Korn外壳:

     $ TMP=/mount_point/tmp $ TMPDIR=/mount_point/tmp $ export TMP TMPDIR 
  • C shell: C壳:

     % setenv TMP /mount_point/tmp % setenv TMPDIR /mount_point/tmp 

The blog you quoted from seems to be wrong, though that is for "Oracle Web Tier" not the database software anyway. 您引用博客似乎是错误的,尽管那是针对“ Oracle Web Tier”而不是数据库软件。 It also doesn't make it clear that you need to do the export commands as your Oracle user, not as root, in the shell you'll run the installer from. 它还不清楚您是否需要以Oracle用户身份(而不是以root用户身份)在运行安装程序的外壳程序中执行export命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM