sudo apt-get update
sudo apt-get dist-upgrade
#用户和组
$sudo groupadd oinstall
$sudo groupadd dba
$sudo mkdir -p /opt/oracle #目录修改为自己机器的实际目录
$adduser oracle
$usermod -g oinstall -G dba oracle
$sudo passwd oracle
$sudo chown -R oracle:oinstall /opt/oracle
#用于保证安装时一些脚本正常执行,在有sudo权限的用户下执行
$sudo ln -s /usr/bin/awk /bin/awk
$sudo ln -s /usr/bin/rpm /bin/rpm
$sudo ln -s /usr/bin/basename /bin/basename
# 直接链接这个目录过来,不建议使用参考文章1的中链接多个文件的方式
$sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
$cd /lib64
$sudo ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 .
安装图形界面
sudo apt-get install gnome-core
安装依赖包
sudo apt-get install bzip2 sudo apt-get install elfutils sudo apt-get install automake sudo apt-get install autotools-dev sudo apt-get install binutils 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 sudo apt-get install ksh sudo apt-get install less sudo apt-get install lesstif2 sudo apt-get install 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 sudo apt-get install libodbcinstq4-1 libodbcinstq4-1:i386 sudo apt-get install libpth-dev sudo apt-get install libpthread-stubs0 sudo apt-get install libpthread-stubs0-dev sudo apt-get install libstdc++5 sudo apt-get install lsb-cxx sudo apt-get install make sudo apt-get install openssh-server sudo apt-get install 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 sudo apt-get install libaio-dev sudo apt-get install build-essential
检查系统变量
/sbin/sysctl -a | grep fs.aio-max-nr
/sbin/sysctl -a | grep fs.file-max
/sbin/sysctl -a | grep kernel.shmall
/sbin/sysctl -a | grep kernel.shmmax
/sbin/sysctl -a | grep kernel.shmmni
/sbin/sysctl -a | grep kernel.sem
/sbin/sysctl -a | grep net.ipv4.ip_local_port_range
/sbin/sysctl -a | grep net.core.rmem_default
/sbin/sysctl -a | grep net.core.rmem_max
/sbin/sysctl -a | grep net.core.wmem_default
/sbin/sysctl -a | grep net.core.wmem_max
按照如上数值 在/etc/sysctl.conf进行增加
fs.aio-max-nr = 65536
fs.file-max = 812118
kernel.shmall = 18446744073692774399
kernel.shmmax = 18446744073692774399
kernel.shmmni = 4096
kernel.sem = 32000102400000050032000
kernel.sem_next_id = -1
net.ipv4.ip_local_port_range = 3276861000
net.core.rmem_default = 212992
net.core.rmem_max = 212992
net.core.wmem_default = 212992
net.core.wmem_max = 212992
/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 1024
检查/etc/pam.d/login,增加以下行(有了就不用增加了):
session required pam_limits.so
检查/etc/pam.d/su,没有以下行就自己加上:
session required pam_limits.so
adduser oracle
usermod -g oinstall -G dba oracle
环境变量
vi /home/oracle/.bashrc
ORACLE_BASE=/opt/oracle;export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.0.1/db_1;export ORACLE_HOME ORACLE_SID=helowin;export ORACLE_SID ORACLE_TERM=xterm;export ORACLE_TERM PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
安装步骤
Perform Prerequisite Checks
Ignore All
ins_ctx.mk相关报错
直接 contion
其他错误
打开一个新oracle的终端,输入如下四个命令:
sed -i 's/^\(\s*\$(MK_EMAGENT_NMECTL)\)\s*$/\1 -lnnz11/g' $ORACLE_HOME/sysman/lib/ins_emagent.mk
sed -i 's/^\(TNSLSNR_LINKLINE.*\$(TNSLSNR_OFILES)\) \(\$(LINKTTLIBS)\)/\1 -Wl,--no-as-needed \2/g' $ORACLE_HOME/network/lib/env_network.mk
sed -i 's/^\(ORACLE_LINKLINE.*\$(ORACLE_LINKER)\) \(\$(PL_FLAGS)\)/\1 -Wl,--no-as-needed \2/g' $ORACLE_HOME/rdbms/lib/env_rdbms.mk
sed -i 's/^\(\$LD \$LD_RUNTIME\) \(\$LD_OPT\)/\1 -Wl,--no-as-needed \2/g' $ORACLE_HOME/bin/genorasdksh
sed -i 's/^\(\s*\)\(\$(OCRLIBS_DEFAULT)\)/\1 -Wl,--no-as-needed \2/g' $ORACLE_HOME/srvm/lib/ins_srvm.mk
然后在图形界面点击‘Retry’就能继续安装了。
转载请注明:梦绘设计 » 数据库 » ubunut 14.02 admin64 安装oracle 11g
版权声明
本站《作品展示》类文章均为原创,转载必须注明出处,技术分享类文章部分来源于网络,版权归原作者所有,若侵权请留言。