Linux Oracle 11gR2的配置安装步骤

34次阅读
没有评论

共计 2196 个字符,预计需要花费 6 分钟才能阅读完成。

这篇文章主要介绍“Linux Oracle 11gR2 的配置安装步骤”,在日常操作中,相信很多人在 Linux Oracle 11gR2 的配置安装步骤问题上存在疑惑,丸趣 TV 小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”Linux Oracle 11gR2 的配置安装步骤”的疑惑有所帮助!接下来,请跟着丸趣 TV 小编一起来学习吧!

话不多说,下载 Oracle 11gR2,注意为两个包 linux_11gR2_database_1of2.zip,linux_11gR2_database_2of2.zip,下载后上传到 Linux.

一、Linux 系统下要安装的数据包。

个人经验,安装 Linux 过程中,选择全部默认的包,基本就安装差不多了。

linux 系统要安装好以下的包,要安装的包有:

binutils-2.15.92.0-10.EL4
compat-db-4.1.25-9
compat-gcc-32-3.2.3-47.3 
compat-gcc-32-c++-3.2.3-47.3 
compat-libstdc++-33-3.2.3-47.3 
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.L4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90EL4
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
libaio-0.3.102-1
openmotif21-2.1.30-11
make-3.80.5
pdksh-5.2.14.30
sysstat-5.0.5-1
setarch-1.3-1 
xscreensaver-4.18-5.rhe4.2

配置主机名,这一步很重要。

#vi /etc/hosts
192.168.0.11 test.or.com test

设置 IP 和计算机名是必须的,如果不配置,后面安装时就会报错,说连接不到主机之类的。

二、创建 Oracle  组和用户帐户

#usr/sbin/groupadd oinstall
#/usr/sbin/groupadd dba
#/usr/sbin/useradd -m -g oinstall -G dba oracle
#passwd oracle

三、创建目录并授权

#mkdir -p /oracle/app/oracle
#mkdir -p /oracle/app/oraInventory
 #chown -R oracle:oinstall /oracle/app/oracle
 #chown -R oracle:oinstall /oracle/app/oraInventory
 #chmod -R 775 /oracle/app/oracle

四、编辑内核参数

#cat   /etc/sysctl.conf  EOF
kernel.shmall = 268435456
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.aio-max-nr = 1048576
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
EOF 
#/sbin/sysctl -p

五、为 oracle  用户设置 Shell  限制

#cat  /etc/security/limits.conf  EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
#cat  /etc/pam.d/login  EOF
session required /lib/security/pam_limits.so
EOF

六、oracle  用户的环境变量   注意现在操作为 oracle 用户

$vi .bash_profile
export ORACLE_BASE=/oracle/app/oracle
 
export ORACLE_HOME=/oracle/app/oracle/product/11.2.0/dbhome_1
 
export ORACLE_SID=test
 
export PATH=$PATH:$ORACLE_HOME/bin
 
export ORACLE_OWNER=oracle
 
$source .bash_profile

  好了,现在我们就可以安装 Oracle 11gR2 了。进入解压目录后。

$ ./runInstaller

到此,关于“Linux Oracle 11gR2 的配置安装步骤”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注丸趣 TV 网站,丸趣 TV 小编会继续努力为大家带来更多实用的文章!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-28发表,共计2196字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)