您的位置:首页 > 数据库 > Oracle

ubuntu安装oracle 11gR2 client

2012-11-16 08:55 363 查看
ubuntu安装Oracle 前的准备2个sh文件

install.sh

link.sh

这是我平时install.sh中的内容;

apt-get update

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

apt-get install xterm g++ gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif4 libaio1 libstdc++6 alie

apt-get install gcc libaio1 lesstif2 lesstif2-dev make libc6 libc6-i386 libc6-dev-i386 libstdc++5 lib32stdc++6 lib32z1 ia32-libs

link.sh中的内容

mkdir /usr/lib64

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/x86_64-linux-gnu/libc_nonshared.a /usr/lib64

sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib64

sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.5 /usr/lib64

sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib64

sudo ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib64

sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.a /usr/lib64

sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so /usr/lib64

配置内核参数:

在/etc/sysctl.conf 文件中添加如下内容(来至于oracle官方文档)

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

保存后/sbin/sysctl -p

在 /etc/security/limits.conf 文件中条件如下内容(来至于oracle官方文档)

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

oracle soft stack 10240

oracle环境配置

.bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

# User specific environment and startup programs

export ORACLE_SID=list

export ORACLE_BASE=/opt/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1

PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin

export PATH

使环境变量生效

. .bash_profile

准备好这些就可以安装oracle 程序了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: