日期:2014-05-16 浏览次数:20597 次
上周在自己的ubuntu环境里安装好了oracle 11g, 特此把安装过程纪录下来,留作备忘录。
事前准备:
sudo apt-get update sudo apt-get upgrade?
sudo su - apt-get install build-essential apt-get install libaio1 apt-get install libaio-dev apt-get install unixODBC apt-get install unixODBC-dev apt-get install pdksh apt-get install expat apt-get install sysstat apt-get install libelf-dev apt-get install elfutils apt-get install lsb-cxx apt-get install ksh apt-get install libmotif3 apt-get install alien apt-get install libtool apt-get install lsb-rpm?
sudo ln -s /usr/bin/awk /bin/awk sudo ln -s /usr/bin/rpm /bin/rpm sudo ln -s /usr/bin/basename /bin/basename sudo ln -s /usr/lib/i386-linux-gnu/libc_nonshared.a /usr/lib sudo ln -s /usr/lib/i386-linux-gnu/libpthread_nonshared.a /usr/lib sudo ln -s /usr/lib/i386-linux-gnu/libstdc++.so.5 /usr/lib sudo ln -s /usr/lib/i386-linux-gnu/libstdc++.so.6 /usr/lib sudo ln -s /lib/i386-linux-gnu/libgcc_s.so.1 /lib???
sudo su - #backup cp /etc/sysctl.conf /etc/sysctl.original vi /etc/sysctl.conf, 添加以下内容 # Oracle 11gR2 entries fs.aio-max-nr=1048576 fs.file-max=6815744 kernel.shmall=2097152 kernel.shmmni=4096 kernel.sem=250 32000 100 128 net.ipv4.ip_local_port_range=9000 65500 net.core.rmem_default=262144 net.core.rmem_max=4194304 net.core.wmem_default=262144 net.core.wmem_max=1048586 kernel.shmmax=2147483648 Note: kernel.shmmax = max possible value, e.g. size of physical memory in bytes #启动新的系统参数 Load new kernel parameters sysctl -p?
sudo groupadd oinstall sudo groupadd dba sudo groupadd nobody sudo usermod -g nobody nobody sudo useradd -g oinstall -G dba -d /home/oracle -s /bin/bash oracle sudo password oracle mkdir /home/oracle chown -R oracle:dba /home/oracle?
oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
mkdir -p /u01/app/oracle chown -R oracle:oinstall /u01/app/oracle chmod -R 775 /u01/app/oracle mkdir -p /u01/app/oraInventory chown -R oracle:oinstall /u01/app/oraInventory chmod -R 775 /u01/app/oraInventory?
开始正式安装:
?
export LANG=C #在安装目录下 ./runInstaller?
Error in invoking target 'agent nmhs' of makefile '/u01/app/oracle/product/11.2.0/db_1/sysman/lib/ins_emagent.mk.' See '/u01/app/oraInventory/logs/installActions2012-03-11_06-59-43PM.log' for details. 或者还有 Error in invoking target 'all_no_orcl' of makefile '/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/ins_rdbms.mk.' See '/u01/app/oraInventory/logs/installActions2012-03-11_06-59-43PM.log' for details.?
sysman/lib/ins_emagent.mk: 变更前: LDFLAGS=-Wl -o $@... 变更后: LDFLAGS=-Wl,--copy-dt-needed-entries -o $@... bin/genorasdksh: 变更前: $LD SLD_RUNTIME -Wl $D_OPT $LD_OUT ... 变更后: $LD SLD_RUNTIME -Wl,--no-as-needed $D_OPT $LD_OUT ... srvm/lib/ins_srvm.mk: 变更前: GETCRSHOME_LINKLINE=$(LINK) $(LDPATHFLAG)$(RDBMSLIB) $(CDEBUG) $(OPT) $(GETCRSHOME_OBJ1) -Wl 变更后: GETCRSHOME_LINKLINE=$(LINK) $(LDPATHFLAG)$(RDBMSLIB) $(CDEBUG) $(OPT) $(GETCRSHOME_OBJ1) -Wl,