安装rhel 5时需要做的设置1:swap 最小2G2:secure Linux disabled(/etc/selinux/config文件SELINUX=disabled)3:选择的安装包:GNOME Desktop EnvironmentEditorsGraphical InternetText-based InternetDevelopment LibrariesDevelopment ToolsLegacy Software DevelopmentServer Configuration ToolsAdministration ToolsBaseLegacy Software SupportSystem ToolsX Window System
编辑/etc/hosts文件添加(ip 主机名):192.168.56.125 oracle10g
设置内核参数1:编辑/etc/sysctl.conf 添加:#kernel.shmall = 2097152#kernel.shmmax = 2147483648kernel.shmmni = 4096# semaphores: semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128#fs.file-max = 65536net.ipv4.ip_local_port_range = 1net.core.rmem_default=262144net.core.rmem_max=262144net.core.wmem_default=262144net.core.wmem_max=262144编辑完之后需要执行命令:/sbin/sysctl -p2:编辑/etc/security/limits.conf 添加:* soft nproc 2047* hard nproc 16384* soft nofile 1024* hard nofile 655363:编辑/etc/pam.d/login 添加 session required pam_limits.so4:编辑/etc/selinux/config 将SELINUX设置为disabled:SELINUX=disabled
安装oracle所需安装的rpm包rpm -Uvh setarch-2*rpm -Uvh make-3*rpm -Uvh glibc-2*rpm -Uvh libaio-0*rpm -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*rpm -Uvh openmotif-2*rpm -Uvh compat-db-4*如何安装rpm包,请参考我的经验:oracle rac 11g on rhel 6:[1]准备
编辑oracle环境[oracle@node1 ~]$ vi .bash_profileexport ORACLE_SID=orclexport ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1export PATH=$ORACLE_HOME/bin:$PATHexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/libif [ $USER = 'oracle' ]; then if [ $SHELL = '/bin/ksh' ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fifi
安装oracle 10.2.0.1 软件上传软件并解压[oracle@oracle10g 10.2.0.1]$ gunzip 10201_database_linux_x86_64.cpio.gz如果解压过程中报错请参考我的经验:invalid compressed data--format violated[oracle@oracle10g 10.2.0.1]$ cpio -idv < 10201_database_linux_x86_64.cpio [oracle@oracle10g database]$ ./runInstallerStarting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2 Failed <<<< Exiting Oracle Universal Installer, log for this session can be found at /u01/app/oraInventory/logs/installActions2014-10-26_07-03-07PM.log[oracle@oracle10g database]$ ./runInstaller -ignoresysprereqsStarting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2 Failed <<<< >>> Ignoring required pre-requisite failures. Continuing... Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-10-26_07-18-30PM. Please wait ...[oracle@oracle10g database]$ Oracle Universal Installer, Version 10.2.0.1.0 ProductionCopyright (C) 1999, 2005, Oracle. All rights reserved.
安装oracle 10.2.0.4 软件安装完oracle 10.2.0.1之后,先不要建库,直接安装安装oracle 10.2.0.4 软件[oracle@oracle10g Disk1]$ ./runInstaller Starting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1, asianux-2 or asianux-3 Passed All installer requirements met. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-10-26_08-05-15PM. Please wait ...[oracle@oracle10g Disk1]$ Oracle Universal Installer, Version 10.2.0.4.0 ProductionCopyright (C) 1999, 2008, Oracle. All rights reserved.
dbca 建库[oracle@oracle10g Disk1]$ dbca
创建监听[oracle@oracle10g Disk1]$ netca然后一直点击 next ,最后点击finish 即可
查看数据库版本[oracle@oracle10g ~]$ sqlplus / as sysdbaSQL*Plus: Release 10.2.0.4.0 - Production on Tue Oct 28 01:48:51 2014Copyright (c) 1982, 2007, Oracle. All Rights Reserved.Connected to an idle instance.SQL>