开源的世界挺有意思,安装oracle如此复杂。
主要分为四个大步骤:
- Java的安装
- Oracle安装前的准备
- Oracle的安装环境配置
- 安装Oracle
1、Java安装(略)
这一步网上有好多教程,大家可以自行安装。
验证Java是否安装成功:
java -version
2、Oracle安装前的准备
(1)安装Oracle所需要的依赖包
sudo apt-get install automake
sudo apt-get install autotools-dev
sudo apt-get install binutils
sudo apt-get install bzip2
sudo apt-get install elfutils
sudo apt-get install expat
sudo apt-get install gawk
sudo apt-get install gcc
sudo apt-get install gcc-multilib
sudo apt-get install g++-multilib
sudo apt-get install ia32-libs(已被下面的 lib32z1替代)
sudo apt-get install ksh
sudo apt-get install less
sudo apt-get install lesstif2(无法定位软件包 lesstif2)
sudo apt-get install lesstif2-dev(无法定位软件包 lesstif2-dev)
sudo apt-get install lib32z1
sudo apt-get install libaio1
sudo apt-get install libaio-dev
sudo apt-get install libc6-dev
sudo apt-get install libc6-dev-i386
sudo apt-get install libc6-i386
sudo apt-get install libelf-dev
sudo apt-get install libltdl-dev
sudo apt-get install libmotif4(然而下列软件包会取代它:libxm4:i386 libuil4:i386 libmrm4:i386 libxm4 libuil4 libmrm4 libmotif-common)
sudo apt-get install libodbcinstq4-1 libodbcinstq4-1:i386
sudo apt-get install libpth-dev
sudo apt-get install libpthread-stubs0(E: 无法定位软件包 libpthread-stubs0)
sudo apt-get install libpthread-stubs0-dev
sudo apt-get install libstdc++5
sudo apt-get install lsb-cxx(E: 无法定位软件包 lsb-cxx)
sudo apt-get install make
sudo apt-get install openssh-server
sudo apt-get install pdksh(没有可用的软件包 pdksh,但是它被其它的软件包引用了。这可能意味着这个缺失的软件包可能已被废弃,或者只能在其他发布源中找到E: 软件包 pdksh 没有可安装候选)
sudo apt-get install rlwrap
sudo apt-get install rpm
sudo apt-get install sysstat
sudo apt-get install unixodbc
sudo apt-get install unixodbc-dev
sudo apt-get install unzip
sudo apt-get install x11-utils
sudo apt-get install zlibc
(2) 检查系统变量
/sbin/sysctl -a | grep sem
/sbin/sysctl -a | grep shm
/sbin/sysctl -a | grep file-max
/sbin/sysctl -a | grep aio-max
/sbin/sysctl -a | grep ip_local_port_range
/sbin/sysctl -a | grep rmem_default
/sbin/sysctl -a | grep rmem_max
/sbin/sysctl -a | grep wmem_default
/sbin/sysctl -a | grep wmem_max
根据每一条显示的信息更新下列参数的值。并将下列参数写入 /etc/sysctl.conf 中
sudo gedit /etc/sysctl.conf
fs.aio-max-nr = 65536
fs.file-max = 13158378
kernel.shmall = 18446744073692774399
kernel.shmmax = 18446744073692774399
kernel.shmmni = 4096
kernel.sem = 32000 1024000000 500 32000
net.ipv4.ip_local_port_range = 32768 60999
net.core.rmem_default = 212992
net.core.rmem_max = 212992
net.core.wmem_default = 212992
net.core.wmem_max = 212992
---------------------
sudo gedit /etc/sysctl.conf