--vmware server 2的下载地址
--vmware server 2的序列号
A2189-P4T08-1AHA2-40HRJ
A2189-P4T08-1AHA2-40HRJ
--centOS6的下载地址
--让网络变成共享模式
控制面板\网络和 Internet\网络连接-->本地连接-->属性-->共享-->允许其他网络用户通过次计算机的Internet连接来连接-->选择VMnet1
--登陆虚拟机
vmware infrastructur client
localhost:8333
anson
123
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
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
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
enter
skip
next
next
next
yes
create customer layout
next
--创建磁盘分区
--交换分区
--交换分区
new
swap
4096
force primary partition
ok
swap
4096
force primary partition
ok
--主分区
new
/
ext3
fill to maximum allowable size
force primary partition
ok
ext3
fill to maximum allowable size
force primary partition
ok
next
next
next
--配置网络参数ip地址
edit
manual coniguration
192.168.137.100
255.255.25.0
ipv6 no
192.168.137.100
255.255.25.0
ipv6 no
test1
192.168.137.1
192.168.137.1
next
continue
123456
123456
next
continue
123456
123456
next
--选择模式
server
customize now
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
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
reboot
forward
disabled
yes
disabled
yes
forward
forward
forward
continue
reboot
--登陆环境
root
123456
123456
--命令行启动
vi /etc/inittab
id:3:initdef
id:3:initdef
--关闭sendmail服务
setup
system services
sendmail no
ok
quit
reboot
setup
system services
sendmail no
ok
quit
reboot
xftp
192.168.137.100
root
123456
/root
-->linux_11gR2_database_1of2.zip
-->linux_11gR2_database_1of2.zip
-->rlwarp-037.tar.gz
-->linux_11gR2_examples.zip
-->linux_11gR2_database_1of2.zip
-->rlwarp-037.tar.gz
-->linux_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
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
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...
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
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
--生效
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
------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/oraInvertory
yes
next
finish
--运行脚本
/u01/oraInventory/orainstRoot.sh
/u01/oracle/root.sh
/u01/oracle/root.sh
------create database by using dbca
--修复32位程序在64位环境中的bug
-->p8670579_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
dbca
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15681893/viewspace-708231/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/15681893/viewspace-708231/