Detailed explanation of installing Oracle 10g under RedHat 5

First, the installation environment
I am virtual RHEL5 in vmware, the allocated memory is 1G, and the SWAP partition is 1G. It is recommended that you change the SWAP partition to 2G. Otherwise, during the installation, it will prompt that the monitoring fails when the test step is reached. (Of course, it's fine if you force the installation)

List of recent updates

1. Install jdk in IBM's aix (updated on July 21)
2. Install jdk in Linux (CentOS) (updated on July 21)
3. Install weblogic in Linux (CentOS) (updated on July 22)
4. Install webLogic in Aix system (Updated on July 22) 5.
Create a weblogic domain in IBM aix (updated on July 23 )
6. Create a weblogic domain through VNC in linux (updated on July 23)
7. Install Oracle 10g in RedHat 5 in detail (July 23 ) 24 update) 8. Linux starts oracle instance (July 24 update) 9. Create oracle instance and network monitoring through VNC in linux (July 25 update) 10. The method of closing ip6 in linux (July 25 update) 11.Jconsole , jvisualvm tool introduction  12. Soupui calls webservies help document 13. Loadrunner calls Webservice interface test optimization 14. Loadrunner script reads XMl files 15. Remote Aix system using Xmanager 16. Xmanager graphical remote to aix system 17. Package common jar files The method of becoming an osgi bundle 18. Code inspection specification Checkstyle configuration 19. Webloigc 11g configuration cluster help document 20. Activemq cluster configuration document 21. Apache2.2+tomcat6 cluster configuration














22. Modify the computer name so that the oracle instance cannot be started
23. Import the configuration required by the virtual machine with the Oracle installer
24. Set the title for the tomcat and weblogic startup windows
25. Tomcat configuration download server
26. Start the virtual machine under win8 hyper-v function

27. windows, linux, aix query which program the port number is occupied by

28.  Recursively change directory permissions under linux

29. Apache configuration virtual directory

Second, the configuration before installing Oracle 10g Release2

1. Install the software packages required for Oracle 10g R2

# cd /mnt/cdrom/Server/ # 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 openmotif22-*# rpm -Uvh compat-db-4*










其中除了openmotif22-2.2.3-18和compat-db-4.2.52-5.1在第三张盘上,其余的包都在第一张盘上。
2. 修改/etc/redhat-release文件
因为Oracle 10g官方只支持到RHEL4为止,所以需要更改版本说明,编辑/etc/redhat-release文件,删除Red Hat Enterprise Linux Server release 5 (Tikanga),改为redhat-4
3. 修改内核参数
#vi /etc/sysctl.conf
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
使更改立即生效,使用下面的命令:
#sysctl -p
4. 建立安装Oracle需要的用户,组,及目录
#groupadd oinstall
#groupadd dba
#groupadd oper
#useradd -g oinstall -G dba oracle
#passwd oracle

#mkdir /oracle
#chown -R oracle:oinstall /oracle
#chmod -R 775 /oracle
安装oracle的目录建议安装在一个单独的分区或者磁盘上。
5. 设置oracle用户的shell limit
#vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
接下来更改/etc/pam.d/login文件,添加下面的内容,使shell limit生效:
#vi /etc/pam.d/login
session required pam_limits.so
6. 配置IP地址
安装RHEL的时候最好采用静态IP地址,如果当时选择的是DHCP,现在需要更改/etc/sysconfig/network-scripts/ifcfg-eth0文件
[root@TSM54-Test network-scripts]# cat ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:0C:29:4B:17:C4
ONBOOT=yes
IPADDR=192.168.68.98
NETMASK=255.255.255.0
GATEWAY=192.168.68.10
7. 配置oracle用户的环境变量
下面的操作,该用oracle用户登陆执行了。
为了防止安装oracle时出现乱码,先把语言环境改为英文,在终端里输入:
[oracle@TSM54-TEST ~]$export LC_CTYPE=en_US.UTF-8
接下来,编辑/home/oracle目录下的.bash_profile文件,添加如下内容:
export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
三.安装Oracle 10g
我把10201_database_linux32.zip放在/opt目录下,并通过
#unzip 10201_database_linux32.zip 解压,现在使用oracle用户到/opt/database目录下执行安装:
[oracle@TSM54-Test opt]$ cd /opt/database/
[oracle@TSM54-Test database]$ ls
doc install response runInstaller stage welcome.html
[oracle@TSM54-Test database]$ ./runInstaller
之后就是前台界面安装了就不做介绍了,直接讲安装后操作。
四、后续
1. 安装完成后,首先应该启动监听器。
监听器接受客户端的连接请求,并在验证证书后创建数据库连接。要使用OEM或iSQL*PLUS,必须先启动监听器。
[oracle@TSM54-Test database]$ lsnrctl start
[oracle@TSM54-Test database]$ lsnrctl stop
2. 使用Oracle Enterprise Manager 10g进行数据库控制
启动和停止OEM的命令为:
[oracle@TSM54-Test database]$emctl start dbconsole
[oracle@TSM54-Test database]$emctl stop dbconsole
3. 使用iSQL*Plus访问数据库
启动和停止iSQL*Plus命令:
[oracle@TSM54-Test database]$isqlplusctl start
[oracle@TSM54-Test database]$isqlplusctl stop
4. 启动和停止数据库
启动和停止数据库的最简单方法是从 OEM 控制台启动和停止。要从命令行执行此操作,请在以 oracle 身份登录后使用 SQL*Plus,如下所示:
启动:
$ sqlplus
SQL*Plus:Release 10.1.0.2.0 - Production on Sun Jun 13 22:27:48 2004
Copyright (c) 1982, 2004, Oracle.All rights reserved.
Enter user-name:/ as sysdba
Connected to an idle instance.
SQL> startup
停止:
$ sqlplus
 
SQL*Plus:Release 10.1.0.2.0 - Production on Sun Jun 13 22:25:55 2004
Copyright (c) 1982, 2004, Oracle.All rights reserved.
 
Enter user-name:/ as sysdba
 
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
 
SQL> shutdown immediate
五、卸载ORACLE
1. 运行 $ORACLE_HOME/bin/localconfig delete
2. rm -rf $ORACLE_BASE/*
3. rm -f /etc/oraInst.loc /etc/oratab
4. rm -rf /etc/oracle
5. rm -f /etc/inittab.cssd
6. rm -f /usr/local/bin/coraenv /usr/local/bin/dbhome /usr/local/bin/oraenv
7. 删除oracle用户和组。
注:卸载方法是来自google。我曾用此方法删除oracle 11g(安装11的时候选择的是ASM)。
六、关于Oracle 11g Release 1 的安装
Oracle 11gR1 已经支持RHEL5了,所以不用再更改redhat-release文件。
另外安装所依赖的包有如下:
binutils-2.17.50.0.6-2.el5 compat-libstdc++-33-3.2.3-61elfutils-libelf-0.125-3.el5elfutils-libelf-devel-0.125glibc-2.5-12glibc-common-2.5-12glibc-devel-2.5-12gcc-4.1.1-52gcc-c++-4.1.1-52libaio-0.3.106libaio-devel-0.3.106 libgcc-4.1.1-52libstdc++-4.1.1 libstdc++-devel-4.1.1-52.e15make-3.81-1.1sysstat-7.0.0unixODBC-2.2.11unixODBC-devel-2.2.11
















The other steps are no different from installing Oracle 10gR2 in Windows.

 

<!-- -->

Your friend zhanglin2 inserted background music for this email - download and play
 
Player loading...
sending...
 
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326493556&siteId=291194637