迷彩 潜伏 隐蔽 伪装
分类:
2012-07-09 23:46:18
linux下oracle 10g安装(超级详细图解教程)
一,基本配置:
1.以root登录,挂载linux iso文件
[root@oracle ~]# cat /etc/sysconfig/network
[root@oracle ~]# mount /dev/cdrom /mnt/cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only
2. 检查包是否安装
[root@oracle ~]# cd /mnt/cdrom/Server/
libXp-1.0.0-8.1.el5.i386.rpm
binutils-2.17.50.0.6-12.el5.i386.rpm
compat-libstdc++-296-2.96-138.i386.rpm
control-center-2.16.0-16.el5.i386.rpm
gcc-4.1.2-46.el5.i386.rpm
gcc-c++-4.1.2-46.el5.i386.rpm
glibc-2.5-42.i386.rpm
glibc-common-2.5-42.i386.rpm
libstdc++-4.1.2-46.el5.i386.rpm
libstdc++-devel-4.1.2-46.el5.i386.rpm
pdksh-5.2.14-36.el5.i386.rpm
sysstat-7.0.2-3.el5.i386.rpm
[root@oracle Server]# rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm
[root@oracle Server]# rpm -ivh binutils-2.17.50.0.6-12.el5.i386.rpm
[root@oracle Server]# rpm -ivh compat-db-4.2.52-5.1.i386.rpm
[root@oracle Server]# rpm -ivh compat-libstdc++-296-2.96-138.i386.rpm
[root@oracle Server]# rpm -ivh control-center-2.16.0-16.el5.i386.rpm
[root@oracle Server]# rpm -ivh gcc-4.1.2-46.el5.i386.rpm
[root@oracle Server]# rpm -ivh gcc-c++-4.1.2-46.el5.i386.rpm
[root@oracle Server]# rpm -ivh glibc-2.5-42.i386.rpm
[root@oracle Server]# rpm -ivh glibc-common-2.5-42.i386.rpm
[root@oracle Server]# rpm -ivh libstdc++-4.1.2-46.el5.i386.rpm
[root@oracle Server]# rpm -ivh libstdc++-devel-4.1.2-46.el5.i386.rpm
[root@oracle Server]# rpm -ivh pdksh-5.2.14-36.el5.i386.rpm
[root@oracle Server]# rpm -ivh sysstat-7.0.2-3.el5.i386.rpm
3.修改/etc/hosts文件
[root@oracle ~]# echo "192.168.101.88 oracle.junjie.com" >>/etc/hosts
[root@oracle ~]# groupadd oper
[root@oracle ~]# useradd -g oinstall -G dba,oper oracle
[root@oracle ~]# echo 'zhu.110' |passwd --stdin oracle
passwd: all authentication tokens updated successfully.
[root@oracle ~]# vim /etc/sysctl.conf
net.ipv4.ip_local_port_range = 1024 65000
[root@oracle ~]# vim /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[root@oracle ~]# vim /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
[root@oracle ~]# mkdir -pv /u01/app/oracle
mkdir: created directory `/u01/app'
mkdir: created directory `/u01/app/oracle'
[root@oracle ~]# chown -R oracle:oinstall /u01/app/oracle/
[root@oracle ~]# chmod -R 775 /u01/app/oracle/
[root@oracle ~]# mkdir /u01/flash_recovery_area
[root@oracle ~]# chown oracle:oinstall /u01/flash_recovery_area/
[root@oracle ~]# chmod 755 /u01/flash_recovery_area/
二.安装oracle
[oracle@oracle ~]$ vim .bash_profile
export ORACLE_HOME=/u01/app/oracle/product/10.2.0
[oracle@oracle ~]$ . .bash_profile
[root@oracle ~]# umount /mnt/cdrom/
我使用的光盘是:(ora102forlinux.iso)
[root@oracle ~]# mount /dev/cdrom /mnt/cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only
dr-xr-xr-x 1 root root 2048 Jul 2 2005 database
#选择yes,退出
2.6 建立监听器:
netca
无法使用时,先配置.bash_profile
export PATH=$ORACLE_HOME/bin:$PATH
. .bash_profile
lsnrctl status
运行lsnrctl status查看监听器
2.7 创建数据库
命令:$dbca
三.测试
#在window是上输入查看信息
#在window是上输入,登录管理oracle数据库
至此,在linux下oracle 10g安装成功!
《完》
--xjzhujunjie
--2012/05/14