Windows7下CentOS5.6+11gR2,安装

--vmware server 2的下载地址
--vmware server 2的序列号
A2189-P4T08-1AHA2-40HRJ
--centOS6的下载地址
 
 
--让网络变成共享模式
控制面板\网络和 Internet\网络连接--&gt本地连接--&gt属性--&gt共享--&gt允许其他网络用户通过次计算机的Internet连接来连接--&gt选择VMnet1
--登陆虚拟机
vmware infrastructur client
localhost:8333
anson
123
--创建虚拟机
file->new->
customer
pennsylvania
linux
red hat enterprise Linux 5(32)
2
2048
hostonly
28
allocate all disk space now   NO
split disk into 2GB  yes
scsi(0:0)
independent
--配置虚拟机环境
edit virtual machine settings
cd/dvd drive1
datastore iso file
connect at power on
--安装CentOS5.6配置参数
enter
skip
next
next
next
yes
create customer layout
next
--创建磁盘分区
--交换分区
new
swap
4096
force primary partition
ok
--主分区
new
/
ext3
fill to maximum allowable size
force primary partition
ok
next
next
--配置网络参数ip地址
edit
manual coniguration
192.168.137.100
255.255.25.0
ipv6 no
test1
192.168.137.1
next
continue
123456
123456
next
--选择模式
server
customize now
--desktop environments
GNOME Desktop Environment
--applications
editors
--development
all kde  no
--servers
none
--base system
administration tools
base
legacy software support
system tools
x windows tools
next
reboot

forward
disabled
yes
disabled
yes
forward
forward
forward
continue
reboot
--登陆环境
root
123456
--命令行启动
vi /etc/inittab
id:3:initdef
--关闭sendmail服务
setup
system services
sendmail no
ok
quit
reboot

--xshell
root
123456
ifconfig
vi /etc/resolv.conf
nameserver 202.103.24.68
ping www.google.com

xftp
192.168.137.100
root
123456
/root
--&gtlinux_11gR2_database_1of2.zip
--&gtlinux_11gR2_database_1of2.zip
--&gtrlwarp-037.tar.gz
--&gtlinux_11gR2_examples.zip
pwd
ls -l
tar zxvf rlwrap-0.37.tar.gz
cd rlwarp-037
ls
./configure && make && make install
which rlwrap
unzip linux_11gR2_database_1of2.zip
unzip linux_11gR2_database_2of2.zip

-----configura environments
cd /
mkdir u01
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba -d /u01/oracle oracle
passwd oracle
oracle
oracle
cd /u01
mv /root/database/ .
cd ..
pwd
chown -R oracle:oinstall /u01
pwd
su - oracle
pwd
ls -la
vi .bash_profile
ORACLE_SID=walnute
ORACLE_BASE=/u01r
ORACLE_HOME=$ORACLE_BASE/oracle
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin:$PATH
DISPLAY=192.168.137.1:0.0
export ORACLE_SID ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH PATH DISPLAY
stty erase ^h
alias sqlplus="rlwrap sqlplus"
alias rman="rlwrap rman"
exit
su - oracle
env | grep ORA
------install required RPM packages
su - oracle
exit
--检查包是否安装
rpm -qa | grep binu...
libaio-devel-0.3.106-5.i386
numactl-devel-0.9.8-11.el5.i386
pdksh-5.2.14-36.el5.i386
sysstat-7.0.2-3.el5_5.1.i386
unixODBC-2.2.11-7.1.i386
unixODBC-devel-2.2.11-7.1.i386
ls -l
rpm -ivh *.rpm
------configure kernel parameters
/etc/security/limits.conf
oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  1024
oracle              hard    nofile  65536
oracle              soft    stack   10240
/etc/pam.d/login
session required pam_limits.so
/etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
--生效
sysctl -p
------install oracle software by using OUI
xmanager passive
su - oracle
cd /u01/database
env | grep DIS
./runInstaller
zhangwenjie@gxlu.com.cn
next
install database
single...
english
simple chinese
enterprise
next
--需要调整到/u01下,有读写权限
/u01/oraInvertory
yes
next
finish
--运行脚本
/u01/oraInventory/orainstRoot.sh
/u01/oracle/root.sh
------create database by using dbca
--修复32位程序在64位环境中的bug
--&gtp8670579_112010_LINUX.zip
cd /root
unzip p8670579_112010_LINUX.zip
mv 8670579 /u01/
chown -R oracle:oinstall /u01
su - oracle
cd 8670579
$ORACLE_HOME/OPatch/opatch apply
Y
dbca

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15681893/viewspace-708231/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/15681893/viewspace-708231/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值