已阅读5页,还剩26页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
CentOS5.5安装Oracle11g目录1、swap分区大小设置12、操作系统要求23、修改hosts24、安装包需求25、解压安装文件,安装jdk46、创建用户和组57、调整内核参数58、创建安装oracle的文件夹,并设置其相应权限给Oracle用户69、设置oracle环境变量610、以oracle身份登录图形界面进行安装611、设置oracle自动启动291、 swap分区大小设置rootcentos /# grep MemTotal /proc/meminfo MemTotal: 5975048 kBOn Linux x86: On Linux x86-64: At least 4 GB of RAM 2、 操作系统要求rootcentos /# 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 113、 修改hostsrootcentos /# vi /etc/hosts# Do not remove the following line, or various programs# that require network functionality will fail.6 centos4、 安装包需求rootcentos /# rpm -qa | grep binutils (查找包)binutils-.6-14.el5rootcentos CentOS# rpm -ivh compat-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 e8562897Preparing. # 100% 1:compat-libstdc+-33 # 100%On Linux x86:On Linux x86-64:pdksh-5.2.14-36.el5.x86_64.rpmunixODBC-2.2.11-7.1.i386.rpmunixODBC-2.2.11-7.1.x86_64.rpmunixODBC-devel-2.2.11-7.1.i386.rpmunixODBC-devel-2.2.11-7.1.x86_64.rpm5、 解压安装文件,安装jdkrootcentos soft# unzip -d /data linux.x64_11gR2_database_1of2.ziprootcentos soft# unzip -d /data linux.x64_11gR2_database_2of2.ziprootcentos soft# ./jdk-6u22-linux-x64-rpm.bin Unpacking.Checksumming.Extracting.UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-B). 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、 创建用户和组rootcentos /# groupadd oinstallrootcentos /# groupadd dbarootcentos /# groupadd operrootcentos /# useradd -g oinstall -G dba,oper oraclerootcentos /# id oracleuid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba),502(oper) context=root:system_r:unconfined_t:SystemLow-SystemHighrootcentos /# passwd oracleChanging password for user oracle.New UNIX password: BAD PASSWORD: it does not contain enough DIFFERENT charactersRetype new UNIX password: passwd: all authentication tokens updated successfully.7、 调整内核参数rootcentos /# vi /etc/security/limits.conforacle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536oracle soft stack 10240rootcentos /# sysctl -a |grep fs.aio-max-nr (查询内核参数,如果当前值大于推荐值则不用更改,否则要更改)fs.aio-max-nr = 65536rootcentos /# vi /etc/sysctl.conffs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586rootcentos /# sysctl p (使设置生效)8、 创建安装oracle的文件夹,并设置其相应权限给Oracle用户rootcentos /# mkdir -p /data/app/oracle/product/.0rootcentos /# chown -R oracle:oinstall /data/approotcentos /# chmod 775 /data/approotcentos /# chown -R oracle:oinstall /data/database9、 设置oracle环境变量rootcentos data# vi /home/oracle/.bash_profileLANG=enDISPLAY=6:0.0ORACLE_BASE=/data/app/oracleORACLE_SID=hisORACLE_HOME=$ORACLE_BASE/product/.0PATH=$ORACLE_HOME/bin:$PATH:$HOME/binLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/libCLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlibexport PATH LANG DISPLAY ORACLE_BASE ORACLE_SID ORACLE_HOME LD_LIBRARY_PATH CLASSPATH 10、 以oracle身份登录图形界面进行安装rootcentos # xhost +access control disabled, clients can connect from any hostrootcentos # su - oracleoraclecentos $ xclock先安装软件./runInstaller安装完成后,以root用户执行rootcentos /# ./data/app/oraInventory/orainstRoot.sh Changing permissions of /data/app/oraInventory.Adding read,write permissions for group.Removing read,write,execute permissions for world.Changing groupname of /data/app/oraInventory to oinstall.The execution of the script is complete.rootcentos /# ./data/app/oracle/product/.0/root.sh Running Oracle 11g root.sh script.The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /data/app/oracle/product/.0Enter 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.Finished product-specific root actions.安装数据库dbca配置监听netca继续刚才的DBCA配置配置网络监听11、 设置oracle自动启动1.) 编辑 /etc/oratab 最下一行his:/data/app/oracle/product/.0:N更改为:his:/data/app/oracle/product/.0:Y2.) 新建一个文件 vi /etc/init.d/oracle#!/bin/bash# oracledb This Starts/Stops the Oracle Server# chkconfig: 345 99 10# description: script for the Oracle Instance, Listener # /etc/init.d/oracledb# Run-level Startup script for the Oracle Listener and Instances# It relies on the information on /etc/oratabexport ORACLE_OWNR=oracleexport ORACLE_HOME=/data/app/oracle/product/.0echo Oracle Script init.dif ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME then echo Oracle startup: cannot start exit 1ficase $1 instart) # Oracle listener and instance startup echo -n Starting Oracle: su - $ORACLE_OWNR -c $ORACLE_HOME/bin/lsnrctl start su - $ORACLE_OWNR -c $ORACLE_HOME/bin/dbstart $ORACLE_HOME su - $ORACLE_OWNR -c $ORACLE_HOME/bin/emctl start dbconsole touch
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 长沙口腔市场六大机构深度研究报告:谁是综合实力真正的第一
- 2026年中国移动模拟笔试试题和答案解析
- 2026年卫生高级职称考试(传染性疾病控制)历年参考题库含答案详解
- 2026年事业单位财务会计考试真题及答案
- 隧道工程施工临时场地土地复垦方案报告书
- 2026年内分泌科考试试题及答案
- 2026年交安ABC证考试模拟试题及答案解析
- 2026年河北滦州市事业单位招聘笔试易考易错模拟试题试卷
- 2026年财会类招聘面试真题含答案解析
- 企业票据流转管控方案
- 2026“才聚齐鲁 成就未来”山东百特展览工程有限公司校园招聘4人备考题库及参考答案详解一套
- 2026上海虹口区初三三模物理(含答案)
- 2026年建筑施工焊工考试试题及答案
- 2026年上海市初三语文二模试题汇编《综合运用》含答案
- (2026版)《煤矿重大事故隐患判定标准》培训课件
- 2026年北京市西城区初三下学期二模英语试卷和答案
- 神经重症目标温度管理共识
- 2026生产安全事故应急预案模板
- 社区特殊人群服务管理操作规范
- 体检中心感染工作制度
- T-SZRCA 011-2025 人形机器人专用线缆技术规范
评论
0/150
提交评论