CentOS5.5安装Oracle11g
- 格式:docx
- 大小:2.97 MB
- 文档页数:31
CentOS5.5安装Oracle11g 目录 1、 swap分区大小设置................................................................................................ 1 2、 操作系统要求 ........................................................................................................ 2 3、 修改hosts ............................................................................................................. 2 4、 安装包需求............................................................................................................ 2 5、 解压安装文件,安装jdk ........................................................................................ 4 6、 创建用户和组 ........................................................................................................ 5 7、 调整内核参数 ........................................................................................................ 5 8、 创建安装oracle的文件夹,并设置其相应权限给Oracle用户 ................................. 6 9、 设置oracle环境变量 ............................................................................................. 6 10、 以oracle身份登录图形界面进行安装 ................................................................. 6 11、 设置oracle自动启动 ........................................................................................ 29
1、 swap分区大小设置 [root@centos /]# grepMemTotal /proc/meminfo MemTotal: 5975048 kB On Linux x86:
On Linux x86-64: At least 4 GB of RAM 2、 操作系统要求 [root@centos /]#cat /proc/version ■ On Linux x86: –Asianux Server 3 SP2 – Oracle Linux 4 Update 7 – Oracle Linux 5 Update 2 – Red Hat Enterprise Linux 4 Update 7 – Red Hat Enterprise Linux 5 Update 2 – SUSE Linux Enterprise Server 10 SP2 – SUSE Linux Enterprise Server 11 ■ On Linux x86-64 –Asianux Server 3 SP2 – Oracle Linux 4 Update 7 – Oracle Linux 5 Update 2 – Red Hat Enterprise Linux 4 Update 7 – Red Hat Enterprise Linux 5 Update 2 – SUSE Linux Enterprise Server 10 SP2 – SUSE Linux Enterprise Server 11 3、 修改hosts [root@centos /]# vi /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 192.168.89.16 centos 4、 安装包需求 [root@centos /]# rpm -qa| grepbinutils(查找包) binutils-2.17.50.0.6-14.el5 [root@centosCentOS]# rpm -ivhcompat-libstdc++-33-3.2.3-61.i386.rpm(安装包) warning: compat-libstdc++-33-3.2.3-61.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897 Preparing... ########################################### [100%] 1:compat-libstdc++-33 ########################################### [100%] On Linux x86: On Linux x86-64: pdksh-5.2.14-36.el5.x86_64.rpm unixODBC-2.2.11-7.1.i386.rpm unixODBC-2.2.11-7.1.x86_64.rpm unixODBC-devel-2.2.11-7.1.i386.rpm unixODBC-devel-2.2.11-7.1.x86_64.rpm 5、 解压安装文件,安装jdk [root@centos soft]# unzip -d /data linux.x64_11gR2_database_1of2.zip [root@centos soft]# unzip -d /data linux.x64_11gR2_database_2of2.zip [root@centos soft]# ./jdk-6u22-linux-x64-rpm.bin Unpacking... Checksumming... Extracting... UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu). inflating: jdk-6u22-linux-amd64.rpm inflating: sun-javadb-common-10.5.3-0.2.i386.rpm inflating: sun-javadb-core-10.5.3-0.2.i386.rpm inflating: sun-javadb-client-10.5.3-0.2.i386.rpm inflating: sun-javadb-demo-10.5.3-0.2.i386.rpm inflating: sun-javadb-docs-10.5.3-0.2.i386.rpm inflating: sun-javadb-javadoc-10.5.3-0.2.i386.rpm Preparing... ########################################### [100%] 6、 创建用户和组 [root@centos /]#groupaddoinstall [root@centos /]# groupadddba [root@centos /]# groupaddoper [root@centos /]# useradd -g oinstall -G dba,oper oracle [root@centos /]# id oracle uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba),502(oper) context=root:system_r:unconfined_t:SystemLow-SystemHigh [root@centos /]# passwd oracle Changing password for user oracle. New UNIX password: BAD PASSWORD: it does not contain enough DIFFERENT characters Retype new UNIX password: passwd: all authentication tokens updated successfully. 7、 调整内核参数 [root@centos /]# vi /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240
[root@centos /]# sysctl -a |grepfs.aio-max-nr(查询内核参数,如果当前值大于推荐值则不用更改,否则要更改) fs.aio-max-nr = 65536 [root@centos /]# vi /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 [root@centos /]# sysctl–p(使设置生效)