OCP11G实验环境安装⽂档(RedHat5.5+Oracle11g)
RedHat5.5 linux下Oracle11g软件安装
⼀、配置虚拟机
为了创建和配置虚拟机,你需要添加硬件设备如磁盘和cpu,在你开始安装之前,创建⼀个windows⽬录作为存放虚拟机的⽬录
⽬录不⼀定是E:\盘,⼀个⾃⼰磁盘空间⽐较⼤的硬盘就可以。
E:\>mkdir stu1(创建⽬录)
双击桌⾯上的虚拟机⼯作站图标以打开虚拟机
1.      Press CTRL-N to create a new virtual machine.
2.      New Virtual Machine Wizard:
a.      Virtual machine configuration: Select Custom(advanced).
b.      click Next to continue
3.      Virtual Machine Hardware compatibility: Click on Next.
4.      Select I will install the operating system later , Click on Next.
5.      Select a Guest Operating System:
a.      Guest operating system: Select Linux.
b.      Version: Select Red Hat Enterprise Linux 5 64-bit.
6.      Name the Virtual Machine:
a.      Virtual machine name: Enter “stu1”
b.      Location: Enter “E:\stu1”
7.      Processor Configuration:
a.      Number of Processors: Select "1".
b.      Number of cores per processor: Select "1".
c.        Click on Next.
8.      Memory for the Virtual Machine:
a.      Memory: Select "2048 MB"
b.      Click on Next
9.      Network Type:
a.      Network connection: Select Use network address translation(NAT)
10.  Select I/O Controller Types:
a.      I/O Controller types: Select LSI Logic(Recommended).
11.  Select a Disk:
a.      Disk: Select Create a new virtual disk.
12.  Select a Disk Type:
a.      Virtual Disk Type: Select SCSI (Recommended).
13.  Specify Disk Capacity:
a.      Maximum disk size(GB): Enter “30”
b.      Deselect Allocate all disk space now. To save space, you do not have to allocate all the disk space now.
c.Select split virtual disk into multiple files
d.click on Next
14.  Specify Disk File:
a.      Disk file: Enter “stu1.vmdk.”
b.      Click on Next
15.  Ready to create virtul machine
a.      Click on Finish.
⼆、安装和配置64位的Red Hat linux 5.5
双击刚刚安装好的虚拟机的CD/DVD,选择右侧的使⽤ISO⽂件,选择rhel-server-5.5-x86_64-dvd安装介质
1. VMware workstation:
Click on Power on this virtual machine.
Hit  Enter to install in graphical mode. Skip the media test and start the installation. Red Hat Enterprise Linux 5: Click on Next. Language Selection:  <select your language preference>. Keyboard Configuration:  U.S.English. installation Number: select entering installation Number
a.click  on“skip”
8. would you like to initialize this drive,erasing ALL DATA?
Click on  YES
9. Disk Partitioning Setup:create custom layout
10. Disk Setup: Allocate disk space on /dev/sda drive by double-clicking on /dev/sda free space for the mount points (/)
and swap space.
Add Partition:
_  Mount Point: /
_  File System Type: ext3
_  Start Cylinder: 1
_  End Cylinder: 3394
_  File System Type: Swap
_  Start Cylinder: 3395
_  End Cylinder: 3916
11.  Boot Loader Configuration: Select only the default /dev/sda1 and leave the rest unchecked.
12.  Network Configuration:
a.      Network Devices
_  Select and edit eth0
1.      SelectEnable IPv4 support
2.      De-selectEnable IPv6 support
3.      Select  Manual configuration
4.      IP Address: Enter “192.168.1.6”
5.      Netmask: Enter “255.255.255.0.”
6.      click  on  OK
b.      Hostname
_  Select manually and enter “stu1”
c.      Miscellaneous Settings
_  Gateway:<optional>
_  Primary DNS: <optional>
_  Secondary DNS: <optional>
d.      Click on Next
13.  Error with data ,select continue
14.  Time Zone Selection:<select your time zone>
15.  Set Root Password: <enter your root password>
16.  Select Customize now
17.  Package Group Selection:
a.Desktop Environments
GONME Desktop Environment
b.Applications
Graphical Internet
Text-based internet
c.Development
Development Libraries
Development Tools
l  Gcc44-4.4.0-6.el5.x86_64
l  Gcc44-c++-4.4.0-6.el5.x86_64
GNOME Software Development
KDE Software Development
Legacy Software Development
X Software Development
l  Openmotif-devel-2.3.1-2.el5_4.1.i386
l  Xorg-x11-server-sdk-1.1.1-48.76.el5.x86_64
d.Servers
Legacy Network Server
Server Configuration Tools
e.Base System
oracle ocp培训Administration Tools
Base
Java
Legacty Software Support
l  Compat-db-4.2.52-5.1.i386
OpenFabrics Enterprise Distribution
System Tools
l  Hwbrowser-0.arch
l  Sysstat-7.0.2-3.el5.x86_64
X Window System
f.Languages.
Chinese Support
18.  About to Install: Click on Next.
19.  congratulations,the installation is complete: Click on Reboot.
20.  Welcome: Click on Forward
21.  License Agreement: Select Yes, I agree to the License Agreement.
22.  Firewall:select Disabled,when see the warning click Yes
23.  SELinux :SELinux Setting,select Disabled,when warning click Yes
24.  Kdump: click on forward
25.  Date and Time: Set the date and time.
26.  Set Up Software Updates :No I prefer to register at a later time
27.  when you see the warning :No Thanks,I’ll connect later
28.  Finish Updates Setup:click on Forward
29.  Create User:Leave the entries blank and click on Forward
30.  When you see the warning , select continue
31.  Sound Card:click on Forward
32.  Additional CDs: Click on Finish
33.  When you see the warning , select Ok
Congratulations, you have just installed Red Hat Enterprise Linux on VMware Server!
34.使⽤ssh上传并安装unixODBC、unixODBC-devel和libaio-devel软件包
[root@instuctor pkg]# pwd
/root/pkg
[root@instuctor pkg]# ls
libaio-devel-0.3.106-5.x86_64.rpm
unixODBC-2.2.11-7.1.x86_64.rpm
unixODBC-devel-2.2.11-7.1.x86_64.rpm
35.根据需要配置vmware tools⼯具
三、配置Linux系统环境和oracle⽤户环境变量
对于Oracle软件在Linux 5系统下的安装,需要⽤户提前在Linux系统下做⼀些配置,从⽽满⾜安装Oracle软件的基本需求。以下0、1、2、3、4步使⽤root⽤户,第5和6步使⽤分别使⽤grid⽤户和oracle⽤户
0.要配置/etc/hosts 添加ip地址、主机,否则grid的netca配置的时候会报错。
[root@instuctor ~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1      localhost.localdomain localhost
192.168.1.6study
1.创建oracle⽤户和组
/usr/sbin/groupadd -g 501 oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 oper
/usr/sbin/groupadd -g 504 asmadmin
/usr/sbin/groupadd -g 505 asmoper
/
usr/sbin/groupadd -g 506 asmdba

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。