专业编程教程与实战项目分享平台

网站首页 > 技术文章 正文

Linux环境下Oracle的安装部署(linux中安装oracle)

ins518 2024-11-16 21:40:32 技术文章 6 ℃ 0 评论

1.硬件要求

grep MemTotal /proc/meminfo

grep SwapTotal /proc/meminfo

free

*****************************************

Automatic Memory Management

Starting with Oracle Database 11g, the Automatic Memory Management feature

requires more shared memory ( /dev/shm)and file descriptors. The shared memory

should be sized to be at least the greater of MEMORY_MAX_TARGET and MEMORY_TARGET for

each Oracle instance on that computer.

To determine the amount of shared memory available, enter the following command:

********************************************

# df -h /dev/shm/

df -h /tmp 1G

# df -h

2.Package Requirements

binutils-2.17.50.0.6

compat-libstdc++-33-3.2.3

compat-libstdc++-33-3.2.3 (32 bit)

elfutils-libelf-0.125

elfutils-libelf-devel-0.125

gcc-4.1.2

gcc-c++-4.1.2

glibc-2.5-24

glibc-2.5-24 (32 bit)

glibc-common-2.5

glibc-devel-2.5

glibc-devel-2.5 (32 bit)

glibc-headers-2.5

ksh-20060214

libaio-0.3.106

libaio-0.3.106 (32 bit)

libaio-devel-0.3.106

libaio-devel-0.3.106 (32 bit)

libgcc-4.1.2

libgcc-4.1.2 (32 bit)

libstdc++-4.1.2

libstdc++-4.1.2 (32 bit)

libstdc++-devel 4.1.2

make-3.81

sysstat-7.0.2

unixODBC-2.2.11

unixODBC-2.2.11 (32-bit)

unixODBC-devel-2.2.11

unixODBC-devel-2.2.11 (32-bit)

rpm -q binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat

3.修改/etc/hosts,/etc/sysconfig/network,

hostname "name"

4.

[root@dba ~]# groupadd -g 1100 oinstall

[root@dba ~]# groupadd -g 1101 dba

[root@dba ~]# useradd -u 1100 -g oinstall -G dba oracle

[root@dba ~]# passwd oracle

# mkdir -p /u01/app/oracle/product

# chown -R oracle:oinstall /u01/

# chmod -R 775 /u01/

5. #vim /etc/sysctl.conf

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 4294967295

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 = 1048576

# /sbin/sysctl -p

6. #vim /etc/security/limits.conf

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

oracle soft stack 10240

grep 'limit' /etc/pam.d/system-auth

session required pam_limits.so

7.

vi ~oracle/.bash_profile

export ORACLE_BASE=/u01/app/oracle/product

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0

export ORACLE_SID=ora11g

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

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表