《vmbox_安装oracle e linux_计算机软件及应用_IT计算机_专业资料》由会员分享,可在线阅读,更多相关《vmbox_安装oracle e linux_计算机软件及应用_IT计算机_专业资料(90页珍藏版)》请在金锄头文库上搜索。
1、1 安装系统Virtual box 4.3Oracle linux 6.3Oracle 11g r2 Make sure Adapter 1 is enabled, set to Bridged Adapter, then click on the Adapter 2 tab. Make sure Adapter 2 is enabled, set to Bridged Adapter or Internal Network, then click on the System section.Move Hard Disk to the top of the boot order and unc
2、heck the Floppy option, then click the OK button.取消软驱跟硬盘的启动方式,然后okThe virtual machine is now configured so we can start the guest operating system installation.-下载的文件有问题?-重新下载-Virtuil box 新版本的问题,换成4.3.12试试点击启动2安装oracle linux 6.3skip选择语言选择存储设备Basic storage devicesYesHostname-rac1Configure network Edi
3、t-connect automatically-eth0,eth10Ipv4192.168.2.188 255.255.255.0 192.168.2.21172.168.1.18 vmac1-priv -r1 eth1时区Password-987064Replace existing linux systemWirteDesktop-oracle linux service-Customer later安装包rebootforwardNo.不要注册,no thankdsUsernameFullnamePassword不同步时区,Finish3安装virtual box的增强功能选择vbox的
4、安装目录VBoxGuestAdditions.iso并运行安装的过程中,出现building the main guestadditions module failedrootrac1 VBOXADDITIONS_4.3.20_96996# tail -f -n 200 /var/log/vboxadd-install.log /tmp/vbox.0/Makefile.include.header:97: * Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Mak
5、e again. Stop.Creating user for the Guest Additions.Creating udev rule for the Guest Additions kernel module.rootrac1 # cd /etc/yum.repos.d/rootrac1 yum.repos.d# mv public-yum-ol6.repo public-yum-ol6.repo.bakrootrac1 yum.repos.d# touch public-yum-ol6.reporootrac1 yum.repos.d# vi public-yum-ol6.repoo
6、el6name = Enterprise Linux 6.3 DVDbaseurl=file:/media/OL6.3 x86_64 Disc 1 20120626/Servergpgcheck=0enabled=1rootrac1 Packages# pwd/media/disk/Packages-放在后面创建oracle用户后执行,安装这些会默认创建oracle用户,oinstall组rootrac1 Packages# rpm -ivh oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64.rpm #baseurl=file:/med
7、ia/disk/Servermkdir /media/diskmount /dev/cdrom /media/disk/ rootrac1 # yum install oracle-rdbms-server-11gR2-preinstall-1.0-6.el6安装vbox增强功能的过程中,出现building the main guestadditions module failed解决办法:安装增强功能需要kernel-devel包,必须保证kernel-devel和kernel版本的一致。查看软件源中kernel-devel的版本:# yum update kernelrootrac1 y
8、um.repos.d# uname -r2.6.39-200.24.1.el6uek.x86_64rootrac1 yum.repos.d# yum update kernelLoaded plugins: refresh-packagekit, securitySetting up Update ProcessNo Packages marked for Updaterootrac1 yum.repos.d# rpm -qa |grep makemake-3.81-20.el6.x86_64rootrac1 yum.repos.d# rpm -qa |grep kernel-develroo
9、trac1 yum.repos.d# yum install kernel-develLoaded plugins: refresh-packagekit, securitySetting up Install Processrootrac1 yum.repos.d# yum update kernelLoaded plugins: fastestmirrorSetting up Update ProcessLoading mirror speeds from cached hostfile升级完后必须重启系统,新的kernel才能被使用yum install gcc make kernel-
10、develrootrac1 disk# rpm -qa|grep kernelkernel-uek-firmware-2.6.39-200.24.1.el6uek.noarchabrt-addon-kerneloops-2.0.8-6.0.1.el6.x86_64dracut-kernel-004-283.0.1.el6.noarchkernel-devel-2.6.32-504.3.3.el6.x86_64kernel-uek-2.6.39-200.24.1.el6uek.x86_64libreport-plugin-kerneloops-2.0.9-5.0.1.el6.x86_64kern
11、el-2.6.32-279.el6.x86_64kernel-2.6.32-504.3.3.el6.x86_64kernel-firmware-2.6.32-504.3.3.el6.noarchkernel-headers-2.6.32-279.el6.x86_64kernel-devel-2.6.32-279.el6.x86_64yum groupinstall Development Toolsexport MAKE=/usr/bin/gmake -i不安装增强功能,right ctrl +右键 进行鼠标的切换4 rac1系统设置1 Disable firewallrootrac1 # s
12、ervice iptables stopiptables: Flushing firewall rules: OK iptables: Setting chains to policy ACCEPT: filter OK iptables: Unloading modules: OK rootrac1 # chkconfig iptables offrootrac1 # chkconfig iptables -listiptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off2 Disable selinux vi /etc/selinux/confi
13、g Selinux=disablerootrac1 # vi /etc/selinux/config SELINUX=disabled3 /etc/hostsVi /etc/hosts copy ip 配置rootrac1 # vi /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4:1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.2.188 rac1192.168.2.
14、189 rac2#Private IP172.168.1.18 rac1-priv172.168.1.19 rac2-priv#Virtual IP192.168.2.137 rac1-vip192.168.2.138 rac2-vip#Scan IP192.168.2.139 rac-scanPing rac1Ssh rac1192.168.2.188 12crac1192.168.2.189 12crac2#Private IP172.168.1.18 12crac1-priv172.168.1.19 12crac2-priv#Virtual IP192.168.2.137 12crac1-vip192.168.2.138 12crac2-vip#Scan IP192.168.2.139 12crac-scanroot12crac1 # hostname12crac14创建用户和组rootrac1 # groupdel asmadmin2. rootrac1 # groupdel asmdba3. rootrac1 # groupdel a