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

Error while installing Oracle 11g on Ubuntu 14.04

我正在尝试使用命令 ./runInstaller -silent 在 Ubuntu 14.04 上安装 Oracle 11g,但出现此错误:

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

我尝试执行以下操作,但错误仍然存​​在:

  • change to root

su – root

  • make new folder for the temporary files

mkdir /u01/tmp

  • change the owner which you will use to install the product, in my case user is oracle and the group oinstall.

chown oracle:oinstall /u01/tmp

  • change the read-write settings

chmod 1777 /u01/tmp

  • export the new path so that the installer can use it

export TEMP=/u01/tmp
export TMPDIR=/u01/tmp

The documentation 表示导出环境变量 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:

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:

  • Bourne, Bash, or Korn shell:

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

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

blog you quoted from 似乎是错误的,尽管那是 "Oracle Web Tier" 而不是数据库软件。它也没有明确说明您需要以 Oracle 用户身份执行 export 命令,而不是以 root 用户身份,在 shell 中,您将从 运行 安装程序。