当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 虚拟机上安装oracle 11g R2
帖子发表于 : 2010-06-11 0:19 

注册: 2007-05-31 0:25
帖子: 10
送出感谢: 0 次
接收感谢: 0 次
一。环境说明
机器:dell笔记本
主机系统:ubuntu 10.04桌面版,虚拟机软件(virtualbox 3.1.6,不要升级到3.2,好像3.2问题多多)
无线ip: 192.168.1.10
网关ip:192.168.1.1
虚拟机系统:ubuntu server 9.10,联网时网卡用"NAT",自动获取ip,和主机连时网卡用"Bridged Adapter",设定固定ip 192.168.1.21

二。安装日志
========================== virtualbox setup =========================
reference:
http://savvyadmin.com/virtualbox-wireless-bridging/
http://savvyadmin.com/virtualbox-host-i ... -with-nat/
http://savvyadmin.com/virtualbox-wirele ... with-dhcp/

Gateway ip: 192.168.1.1
Host Wireless Network ip: 192.168.1.10
Client ip: 192.168.1.21

Install the User Mode Linux utilities, for the tunctl application.
$ sudo apt-get install uml-utilities

ensure your /dev/net/tun interface has the appropriate permissions for the vboxusers group.
$ sudo chown root.vboxusers /dev/net/tun
$ sudo chmod g+rw /dev/net/tun

Add the following line of code to /etc/udev/rules.d/20-names.rules
----------------------------------
KERNEL=="tun", NAME="net/%k", GROUP="vboxusers", MODE="0660"
----------------------------------

create tap-setup.sh
----------------------------------
#!/bin/bash
# tap-setup.sh
# Change username accordingly
USER="laomie"
tap_up(){
tunctl -u $USER
sysctl net.ipv4.ip_forward=1
sysctl net.ipv4.conf.wlan0.proxy_arp=1
sysctl net.ipv4.conf.tap0.proxy_arp=1
ip link set tap0 up
route add -host 192.168.1.21 dev tap0
}
tap_down(){
sysctl net.ipv4.ip_forward=0
sysctl net.ipv4.conf.wlan0.proxy_arp=0
sysctl net.ipv4.conf.tap0.proxy_arp=0
tunctl -d tap0
}
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
else
case "$1" in
start)
tap_up
;;
stop)
tap_down
;;
*)
echo "Usage: $0 {start|stop}"
;;
esac
fi
exit 0
----------------------------------

Multiple Virtual Guest Machines
$ sudo route add -host 192.168.1.22 dev tap0

virtual client network setup
Attached to: Bridged Adapter
Name: tap0

========================== install utuntu server 9.10 =========================
http://mikesmithers.wordpress.com/2010/ ... ssh-setup/
http://mikesmithers.wordpress.com/2010/ ... ith-samba/

install ubuntu server with default.

installtion samba and ssh
$ sudo apt-get samba openssh-server
$ sudo mkdir -p /srv/samba/share
$ sudo chown nobody.nogroup /srv/samba/share

Add the following section at the end of the file /etc/samba/smb.conf
--------------------------------------------
[share]
comment = Samba Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
--------------------------------------------

uncommented this line in the file /etc/samba/smb.conf
--------------------------------------------
SO_RCVBUF=8192 SO_SNDBUF=8192
--------------------------------------------

========================== Pre-Requisite installtion =========================
referenct:
http://mikesmithers.wordpress.com/2010/ ... untu-9-10/
http://en.kioskea.net/faq/4405-linux-in ... -on-ubuntu
http://www.pythian.com/news/1355/instal ... epid-ibex/
http://mikesmithers.wordpress.com/2010/ ... untu-9-10/

Getting Required Packages
$ sudo su -
# apt-get install unzip build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm

Final Server Preparations
# ln -sf /bin/bash /bin/sh

Add users and groups
# addgroup oinstall
# addgroup dba
# addgroup nobody
# usermod -g nobody nobody
# useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle
# passwd oracle
# mkdir /home/oracle
# chown -R oracle:dba /home/oracle

Create symbolic links
# ln -s /usr/bin/awk /bin/awk
# ln -s /usr/bin/rpm /bin/rpm
# ln -s /usr/bin/basename /bin/basename

# mkdir /etc/rc.d
# for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d; done

Create the ORACLE_BASE directory
# mkdir -p /u01/app/oracle
# chown -R oracle:dba /u01

below should all be placed at the end of the file /etc/sysctl.conf
--------------------------------------------
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 1048576
net.core.wmem_max = 1048576
net.ipv4.ip_local_port_range = 9000 65535
fs.aio-max-nr = 1048576
--------------------------------------------

below should all be placed at the end of the file /etc/security/limits.conf
--------------------------------------------
oracle soft nproc 2047
oracle hard nproc 16384
oracle hard nofile 65536
oracle soft nofile 1024
--------------------------------------------

below should all be placed at the end of the file /etc/pam.d/login
--------------------------------------------
session required /lib/security/pam_limits.so
--------------------------------------------

Tunneling X over SSH
# apt-get install xserver-xorg xserver-xorg-core openbox x11-apps x11-xserver-utils

uncomment the allow forwarding parameter in /etc/ssh/sshconfig and set it to yes
--------------------------------------------
ForwardX11 yes
--------------------------------------------

convert DHCP network configuration to static IP configuration
--------------------------------------------
# iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.21
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
--------------------------------------------

reboot ubuntu (virtual client) and test X windows session via ssh on host terminal
$ ssh -X username@192.168.1.21
$ xclock

========================== Installing Oracle 11gR2 ==========================
copy oracle zip files from host to client via samba and unzip the files
$ sudo mv /srv/samba/share/linux_11gR2*.zip /home/oracle
$ cd /home/oracle
$ sudo chown oracle:oinstall linux_11gR2*.zip
$ unzip linux_11gR2_database_1of2.zip -d .
$ unzip linux_11gR2_database_2of2.zip -d .
$ rm -fr linux_11gR2*.zip

open X windows session via ssh on host terminal
$ ssh -X oracle@192.168.1.21
$ cd /home/oracle/database
$ ./runInstaller -ignoreSysPrereqs

follow below steps to install oracle
1 of 11. unchecked "i wish to ..." then next
2 of 11. select "install database software only" then next
3 of 11. next
4 of 11. add "japanese" and "simplified chinese" then next
5 of 11. next
6 of 11. next
7 of 11. next
8 of 11. next
9 of 11. "Fix & Check Again" then checked "ignore All" then next
10 of 11. finish


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 虚拟机上安装oracle 11g R2
帖子发表于 : 2010-06-11 8:20 
头像

注册: 2008-03-25 15:49
帖子: 25878
地址: 谁知道?
送出感谢: 8
接收感谢: 10
:em11
重复发帖要被tjj


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译