sudo ln -s /usr/bin/awk /bin/awk
sudo apt-get install libaio-dev sysstat build-essential \
gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif4 \
libaio1 libstdc++6 alien autotools-dev ksh libltdl-dev \
libtool lsb-rpm unixODBC-dev unixODBC
sudo groupadd oinstall -g 1030
sudo groupadd dba
sudo useradd oracle
sudo usermod -g 1030 -G dba oracle
sudo passwd oracle
/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
/etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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
sudo mkdir -p /u01/app/oracle
sudo chown -R oracle:oinstall /u01/app/oracle
sudo chmod -R 755 /u01/app
sudo chmod -R 775 /u01/app/oracle
切换到oracle用户:ubuntu下面注销原来的用户使用oracle登录操作系统;
su oracle
ORACLE_BASE=/u01/app/oracle
ORACLE_SID=sales
export ORACLE_BASE ORACLE_SID
下载安装包放到同一个目录下面并解压:
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
cd database
./runInstaller
设置oracle的环境变量:JDK/ORACLE
vim /etc/proflie
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_3
export JAVA_HOME=/home/jack/src/jdk1.6.0_27
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$ORACLE_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export LANG=zh_CN.UTF-8
Error in invoking target 'install' of makefile ins_ctx.mk
阅读(348) | 评论(0) | 转发(0) |