4 Installation
Pre-Oracle Preparation
4.1 Basic Configuration
4.1.1 Shutdown Firewall
[root@oracle ~]# service iptables stop
Iptables:setting chains to Policy Accept:filter [OK]
iptables:flushing firewall rules: [OK]
iptables:unloading modules: [OK]
Turn off the iptables boot feature
[Root@oracle ~]# chkconfig iptables off
[Root@oracle ~]# Setup
1) as shown in the following figure, select firewall configuration and hit enter.
2) as shown in the following figure, deselect enabled, select OK, and hit enter.
3) as shown in the following figure, select Yes and hit enter.
4 as shown in the following figure, select Quit and tap Enter.
[Root@oracle ~]# service iptables status
Iptables:firewall is not running. 4.1.2 Off SELinux
Modify the/etc/selinux/config file as follows:
Change the selinux=enforcing to selinux=disabled.
[Root@oracle ~]# Vi/etc/selinux/config
# This file controls the ' state of ' SELinux on the system.
# selinux= can take one of these three values:
# Enforcing-selinux security policy is enforced.
# Permissive-selinux Prints warnings instead of enforcing.
# disabled-no SELinux policy is loaded.
Selinux=disabled
# selinuxtype= can take one of these two values:
# targeted-targeted processes are protected,
# Mls-multi level security protection.
selinuxtype=targeted
[Root@oracle ~]# Setenforce 0
[Root@oracle ~]# Getenforce
Permissive
[Root@oracle ~]#/usr/sbin/sestatus-v
SELinux status:enabled
SELINUXFS Mount:/selinux
Current Mode:permissive
Mode from config file:disabled
Policy version:24
Policy from config file:targeted
Process Contexts:
Current context:unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
Init Context:system_u:system_r:init_t:s0
/sbin/mingetty System_u:system_r:getty_t:s0
/usr/sbin/sshd system_u:system_r:sshd_t:s0-s0:c0.c1023
File Contexts:
Controlling Term:unconfined_u:object_r:user_devpts_t:s0
/etc/passwd System_u:object_r:etc_t:s0
/etc/shadow System_u:object_r:shadow_t:s0
/bin/bash System_u:object_r:shell_exec_t:s0
/bin/login System_u:object_r:login_exec_t:s0
/bin/sh System_u:object_r:bin_t:s0-> System_u:object_r:shell_exec_t:s0
/sbin/agetty System_u:object_r:getty_exec_t:s0
/sbin/init System_u:object_r:init_exec_t:s0
/sbin/mingetty System_u:object_r:getty_exec_t:s0
/usr/sbin/sshd System_u:object_r:sshd_exec_t:s0
[Root@oracle ~]# reboot
Broadcast Message from root@oracle.kely.com
(/dev/pts/0) at 20:30 ...
The system is going down for reboot now!
[Root@oracle ~]# Getenforce
Disabled
[Root@oracle ~]#/usr/sbin/sestatus-v
SELinux status:disabled 4.1.3 Configure Hosts file
Add the following on the last line of the/etc/hosts file:
192.168.0.18 Oracle Oracle.kely.com
[Root@oracle ~]# vi/etc/hosts
192.168.0.18 Oracle Oracle.kely.com
[Root@oracle ~]# Ping Oracle
PING Oracle (192.168.0.18) bytes of data.
Bytes from Oracle (192.168.0.18): icmp_seq=1 ttl=64 time=0.035 ms
Bytes from Oracle (192.168.0.18): icmp_seq=2 ttl=64 time=0.020 ms
^c
---oracle Ping Statistics---
5 Packets transmitted, 5 received, 0% packet loss, time 4587ms
RTT Min/avg/max/mdev = 0.020/0.034/0.039/0.008 ms
[Root@oracle ~]# Ping oracle.kely.com
PING Oracle (192.168.0.18) bytes of data.
Bytes from Oracle (192.168.0.18): icmp_seq=1 ttl=64 time=0.011 ms
Bytes from Oracle (192.168.0.18): icmp_seq=2 ttl=64 time=0.017 ms
^c
---oracle Ping Statistics---
2 packets transmitted, 2 received, 0% packet loss, time 1428ms
RTT Min/avg/max/mdev = 0.011/0.014/0.017/0.003 ms 4.2 Creating an Oracle user Group
[Root@oracle ~]# Groupadd Oinstall
[Root@oracle ~]# Groupadd dba
[Root@oracle ~]# useradd-g oinstall-g dba Oracle
Change the Oracle user's password to 1qaz@wsx.
[Root@oracle ~]# passwd Oracle
Changing password for user Oracle.
New Password:
Bad Password:it are based on a dictionary word
Retype new Password:
Passwd:all authentication tokens updated successfully.
[Root@oracle ~]# ID Oracle
uid=500 (Oracle) gid=501 (oinstall) groups=501 (Oinstall), 502 (dba) 4.3 create logic Volume
1 as shown in the following figure, select the virtual machine in turn-edit settings.
2) as shown in the following illustration, click Add.
3) as shown in the following figure, select the hard drive and click Next.