Oracle10g在rhel5.5上的安装

上传人:cl****1 文档编号:498605288 上传时间:2023-11-17 格式:DOC 页数:15 大小:1.49MB
返回 下载 相关 举报
Oracle10g在rhel5.5上的安装_第1页
第1页 / 共15页
Oracle10g在rhel5.5上的安装_第2页
第2页 / 共15页
Oracle10g在rhel5.5上的安装_第3页
第3页 / 共15页
Oracle10g在rhel5.5上的安装_第4页
第4页 / 共15页
Oracle10g在rhel5.5上的安装_第5页
第5页 / 共15页
点击查看更多>>
资源描述

《Oracle10g在rhel5.5上的安装》由会员分享,可在线阅读,更多相关《Oracle10g在rhel5.5上的安装(15页珍藏版)》请在金锄头文库上搜索。

1、Oracle10g在rhel5.5上的安装过程和注意的问题1.具体系统需求 swap 分区不小于2G selinux disable 状态 安装组件包括 GNOME Desktop Environment Editors Graphical Internet Text-based Internet Development Libraries Development Tools Legacy Software Development Server Configuration Tools Administration Tools Base Legacy Software Support Syste

2、m Tools X Window System在rhel5.5中浏览器用的是firefox3.6版本的.2.安装步骤 1 解包文件 unzip 10201_database_linux32.zip 2 配置主机名和地址 The /etc/hosts file must contain a fully qualified name for theserver: vi /etc/hosts 3设置kernel参数 Add the following lines to the /etc/sysctl.conf file: vi /etc/sysctl.confkernel.shmall = 2097

3、152kernel.shmmax = 2147483648kernel.shmmni = 4096# semaphores: semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default=262144net.core.rmem_max=262144net.core.wmem_default=262144net.core.wmem_max=262144Run the follo

4、wing command to change the current kernel parameters:/sbin/sysctl -pAdd the following lines to the /etc/security/limits.conf file: vi /etc/security/limits.conf* soft nproc 2047* hard nproc 16384* soft nofile 1024* hard nofile 65536Add the following line to the /etc/pam.d/login file, if it does not a

5、lready exist: vi /etc/pam.d/loginsession required /lib/security/pam_limits.soDisable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows: vi /etc/selinux/configSELINUX=disabledAlternatively, this alteration can be done using the GUI tool (System Admin

6、istration Security Level and Firewall). Click on the SELinux tab and disable the feature. 4 配置安装包和用户环境 Install the following packages:# From RedHat AS5 Disk 1cd /media/cdrom/Serverrpm -Uvh setarch-2*rpm -Uvh make-3*rpm -Uvh glibc-2*rpm -Uvh libaio-0*cd /eject# From RedHat AS5 Disk 2cd /media/cdrom/S

7、erverrpm -Uvh compat-libstdc+-33-3*rpm -Uvh compat-gcc-34-3*rpm -Uvh compat-gcc-34-c+-3*rpm -Uvh gcc-4*rpm -Uvh libXp-1*cd /eject# From RedHat AS5 Disk 3cd /media/cdrom/Serverrpm -Uvh openmotif-2*rpm -Uvh compat-db-4*cd /eject在linux的console中新建下列用户和群组Create the new groups and users:groupadd oinstallg

8、roupadd dbauseradd -g oinstall -G dba oraclepasswd oracleCreate the directories in which the Oracle software will be installed:mkdir -p /u01/app/oracle/product/10.2.0/db_1chown -R oracle.oinstall /u01 Login as root and issue the following command: xhost + 修改linux版本,因为oracle10g不支持rhel5.5的安装,支持rhel4的安

9、装.所以要做一下修改.Edit the /etc/redhat-release file replacing the current release information (Red Hat Enterprise Linux Server release 5 (Tikanga) with the following: vi /etc/redhat-releaseredhat-4设置Oracle环境变量 先后执行命令su - oracle和vi .bash_profile,在.bash_profile文件的最后面添加入以下内容。# Set the LD_ASSUME_KERNEL environ

10、ment variable only for Red Hat 9 and# for Red Hat Enterprise Linux Advanced Server 3 (RHEL AS 3) !# Use the Linuxthreads with floating stacks implementation instead of NPTL:export LD_ASSUME_KERNEL=2.4.1# Oracle Environmentexport ORACLE_BASE=/u01/app/oracle # 该值与第6节中创建的Oracle Base相同export ORACLE_HOME

11、=$ORACLE_BASE/product/10.2.0/db_1; # 与第6节中创建的Oracle Home相同export ORACLE_SID=orcl # Oracle数据库的系统标识符export ORACLE_TERM=xterm# export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc.# are not in $ORACLE_HOME/network/adminexport NLS_LANG=AMERICANexport ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/dataLD_LIB

12、RARY_PATH=$ORACLE_HOME/lib:/lib:/usr/libLD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/libexport LD_LIBRARY_PATH# 设置Oracle中相关命令的PATH环境变量export PATH=$PATH:$ORACLE_HOME/bin:/sbin:/tmp/OPatch最后执行命令source .bash_profile,使修改后.bash_profile文件立即生效。6.安装 重起系统,以oracle的身份登录,进行安装。InstallationLog into the oracle user

13、. If you are using X emulation then set the DISPLAY environmental variable:DISPLAY=:0.0; export DISPLAYStart the Oracle Universal Installer (OUI) by issuing the following command in the database directory:./runInstallerDuring the installation enter the appropriate ORACLE_HOME and name then continue

14、installation. For7.Post InstallationEdit the /etc/redhat-release file restoring the original release information:Red Hat Enterprise Linux Server release 5 (Tikanga)Edit the /etc/oratab file setting the restart flag for each instance to Y:ORCL:/u01/app/oracle/product/10.2.0/db_1:Y二、启动数据库# su - oracle /以oracle的身份启动。1,使用EM(enterprise managment)1.1启动EM$ORACLE_HOME/bin/emctl start dbconsole如果出现下面相关信息,说明服务启动TZ set to PRCOracle

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 工作计划

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号