cenos6.8安装oracle10g_第1页
cenos6.8安装oracle10g_第2页
cenos6.8安装oracle10g_第3页
cenos6.8安装oracle10g_第4页
cenos6.8安装oracle10g_第5页
已阅读5页,还剩12页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Oracle10g的安装比较繁琐,要配置的东西很多,参考了网上不少文章。系统环境为:CentOS6.6 x86_64 (桌面环境)1G内存2G swap安装软件:10201_database_linux_x86_64.cpio (Oracle10g 10.2.0.1.0 x86_64)一、 系统环境配置1.关闭防火墙service iptables stop #停止chkconfig iptables off #禁止开机启动2.关闭selinuxsetenforce 0vi /etc/sysconfig/selinux 把里边的一行改为SELINUX=disabled然后重启系统。2、安装依赖

2、包yum -y install compat-libstdc*yum -y install gcc*# yum -y install binutils compat-libstdc+-33 compat-libstdc+-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c+ glibc glibc.i686 glibc-common glibc-devel glibc-devel.i686 glibc-headers ksh libaio libaio.i686 libaio-devel libaio-devel.i686 libgc

3、c libgcc.i686 libstdc+ libstdc+.i686 libstdc+-devel make sysstat补充:# yum -y install libXt.i686 libXtst.i686 libXp libXp.i686缺少补充软件包,安装oralce时会有如下错:Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2015-02-02_06-04-46PM/jre/1.4.2/lib/i386/libawt.so: libXt.so.6: canno

4、t open shared object file: No such file or directory3、 将/dev/shm改大vim /etc/fstab修改:tmpfs /dev/shm tmpfs defaults 0 0为:tmpfs /dev/shm tmpfs defaults,size=2G 0 0然后重启系统。4、创建Oracle用户与组这里以单主机模式安装。(1) 建立群组oinstall# groupadd oinstall(2) 建立群组dba# groupadd dba(3) 新增使用者oracle并将其加入oinstall和dba群组# useradd -m -g

5、 oinstall -G dba oracle(4) 测试oracle账号是否建立完成# id oracleuid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)(5) 建立oracle的新密码# passwd oracle5、将oracle使用者加入到sudo群组中# vim /etc/sudoers找到root ALL=(ALL) ALL 这行,并且在底下再加入oracle ALL=(ALL) ALL输入wq!(由于这是一份只读文档所以需要再加上!)并且按下Enter6、配置系统内核参数# vi /etc/sysctl

6、.conf并输入以下内容:fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152 /表示系统一次可以使用的共享内存总量(以页为单位)。缺省值就是2097152,通常不需要修改kernel.shmmax = 2147483648 /定义了共享内存段的最大尺寸(以字节为单位)。缺省为32M,对于oracle来说,该缺省值太低了,通常将其设置为2Gkernel.shmmni = 4096 /用于设置系统范围内共享内存段的最大数量。该参数的默认值是 4096 。通常不需要更改kernel.sem = 250 32000 1

7、00 128 /表示设置的信号量net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 4194304 /默认的接收窗口大小net.core.rmem_max = 4194304 /接收窗口的最大大小net.core.wmem_default = 262144 /默认的发送窗口大小net.core.wmem_max = 262144 /发送窗口的最大大小vm.hugetlb_shm_group = 501 /将dba组添加到系统内核中,给予创建共享内存的权限添加的为下面fs.aio-max-nr = 1048576fs.

8、file-max = 6815744kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 262144 vm.hugetlb_shm_group

9、 = 501 会有一些与目前的参数重复的,就修改成文件上提供的。使设置立即生效:# sysctl -p7、编辑/etc/security/limits.conf# vim /etc/security/limits.conf加入:oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 655368、编辑/etc/pam.d/login# vim /etc/pam.d/login加入:session required /lib/security/pam_limits.sosessi

10、on required pam_limits.so9、修改Linux发行版本信息由于Oracle 10g发行的时候,CentOS 6没有发行,所以Oracle 10g并没有对CentOS 6确认支持,需要修改文件让Oracle 10g支持CentOS 6。我们需要手工修改Linux的发行注记,让Oracle 10g支持CentOS 6。编辑/etc/redhat-release文件# vim /etc/redhat-release将其中的内容CentOS release 6.3 (Final)修改为redhat 4redhat 4#CentOS release 6.6 (Final)10、创建

11、数据库安装目录、并修改用户变量这里数据库安装在:/u01/oracle/product/10.2.0/db_1# mkdir -p /u01/oracle/product/10.2.0/db_1# chown -R oracle:dba /u01/oracle11、配置Linux主机检查/etc/hosts文件中是否有localhost的记录在提示符下输入vi /etc/sysconfig/network,然后将HOSTNAME后面的值改为想要设置的主机名vi /etc/hosts查看并编辑hosts文件192.168.49.134 linux- linux-oracle(指向127.0.0.

12、1即可),若没有的话,在后面配置Oracle监听的时候会出现一些问题,导致无法启动监听,在此手工添加此记录即可。12、配置oracle用户环境变量# su - oracle$ cd /home/oracle$ vim .bash_profile添加:export ORACLE_BASE=/u01/oracleexport ORACLE_HOME=/u01/oracle/product/10.2.0/db_1export CRS_HOME=$ORACLE_BASE/crsexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/libexport ORACLE_S

13、ID=orclexport PATH=$PATH:$ORACLE_HOME/bin:$CRS_HOME/binexport LC_CTYPE=en_US.UTF-8export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK"至此第一阶段配置完成。下面开始安装步骤。二、oracle软件安装从10201_database_linux_x86_64.cpio软件包通过命令gunzip 10201_database_linux_x86_64.cpio.gzcpio -idmv <10201_database_linux_x86_64.cpio解压出d

14、atabase文件夹到/home/oracle下。使用oracle用户登录桌面,开一个终端窗口:cd databaseLANG=en_US ./runInstaller将UNIX DBA Group选择为dba。设置sys、system用户密码。点击Next。将群组选择为dba。点击Next。鼠标勾选Checking Network Configuration requirements。点击Next。有点慢耐心等待点击Install。出现了一个错误,网上说是个bug,点击继续。点击OK。新开个终端:su - root执行这两个脚本:rootlocalhost # /u01/oracle/ora

15、Inventory/orainstRoot.shChanging permissions of /u01/oracle/oraInventory to 770.Changing groupname of /u01/oracle/oraInventory to dba.The execution of the script is completerootlocalhost # /u01/oracle/product/10.2.0/db_1/root.shRunning Oracle10 root.sh script.The following environment variables are

16、set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/oracle/product/10.2.0/db_1Enter the full pathname of the local bin directory: /usr/local/bin: Copying dbhome to /usr/local/bin . Copying oraenv to /usr/local/bin . Copying coraenv to /usr/local/bin .Creating /etc/oratab file.Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.The following J2EE Applications have been deployed and are accessible at the

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论