在rhel 5.4 上ORACLE 10G简单安装

[root@localhost ~]# groupadd dba
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# useradd -G dba -g oinstall oracle
[root@localhost ~]# passwd oracle
[root@localhost ~]# 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

[root@localhost ~]# sysctl -p

[root@localhost ~]# mkdir -p /u01/app/oracle
[root@localhost ~]# chown oracle:dba /u01/app/oracle/


[root@localhost ~]# vi /etc/pam.d/login 


session    required     pam_limits.so


[root@localhost ~]# vi /etc/security/limits.conf 

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536


[root@localhost ~]# vi /home/oracle/.bash_profile 

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=itspfdb
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


[root@localhost database]# chmod -R 755 /soft/database/


[root@itspf ~]# mkdir /media/disk


[root@itspf ~]# mount /dev/hda /media/disk



[root@itspf disk]# vi /etc/yum.repos.d/rhel-debuginfo.repo 


[rhel-debuginfo]
name=Red Hat Enterprise Linux
baseurl=file:///media/disk/Server/
enabled=1
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

yum install setarch-2*
yum install make-3*
yum install glibc-2*
yum install libaio-0*
yum install compat-libstdc++-33-3*
yum install compat-gcc-34-3*
yum install compat-gcc-34-c++-3*
yum install gcc-4*
yum install libXp-1* 
yum install readline*

tar -zxvf rlwrap-0.30.tar.gz
cd rlwrap-0.30
./configure
make
make install

[oracle@localhost ~]$vi ~/.bash_profile

alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
 

[oracle@localhost ~]$ xhost +

[oracle@localhost ~]$export DISPLAY=:1.0
[oracle@localhost ~]$ netca

[oracle@itspf ~]$ vi /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora 




 (SID_DESC =
      (GLOBAL_DBNAME = ITSPFDB)
      (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
      (SID_NAME  = ITSPFDB)
   )







评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值