Virtualbox+oracle Linux 6.3 installation of Oracle 11.2.3.0

Source: Internet
Author: User
Tags chmod dba iptables

Nothing to do, today under the virtual machine installed a single instance of ORACLE11G, hereby record sharing!

Software used: Virtualbox-4.0.8-71778-win.exe Oracle Linux 6.3 (V33411-01.ISO) oracle11g (p10404530_112030_linux-x86-64_ 1of7.zip, P10404530_112030_linux-x86-64_2of7.zip)

First, install Linux.

Virtual machine configuration: 1g memory, 30g HDD, one NIC (host-only mode)

Check memory condition # grep memtotal/proc/meminfo# grep swaptotal/proc/meminfo

In general, the installation of a graphical interface continues to go. It is important to note that you select Custom when the hard disk is assigned. I've built three new ones, one is swap=2g, one is boot=1g, the rest is given to the/root node

Second, the pre-installation configuration.

1. Set up the local virtual network card and the Etho under Linux.

In general, after installing the Linux system, in the local network connection will appear host-only network ip=192.168.56.1 mask =255.255.255.0 others do not fill.

Edit Vi/etc/sysconfig/network-scripts/ifcfg-eth0


Device=eth0
Nm_controlled=yes
Onboot=yes
Hwaddr=08:00:27:e6:97:fa
Type=ethernet
Bootproto=none
ipaddr=192.168.56.137
Prefix=24
gateway=192.168.56.1
Defroute=yes
Ipv4_failure_fatal=yes
Ipv6init=no
Uuid= "524b1577-d80a-4f9c-ad33-9480ebf5ddde"
Userctl=no

Then restart or service network restart to make it effective. This allows remote access through the Xshell or the CRT locally.

2. Set up the Hosts file.

Vi/etc/hosts Add a row below (IP address hostname. Domain name)

3. Modify kernel parameters (operate under root account): This must be set, or you will be reported some errors when installing Oracle

Edit the kernel parameter profile vi/etc/sysctl.conf, and under the file, modify or add the following line:

Fs.file-max = 6815744
fs.aio-max-nr=1048576
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 = 1048576

Sysctl-p; -Effective
Sysctl-a--View

4. Edit the system resource limit profile to add the following in the file/etc/security/limits.conf:

Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
Oracle Soft Stack 10240

5. Edit the file Vi/etc/pam.d/login, add the following line

Session required/lib/security/pam_limits.so
Session Required Pam_limits.so

Attention:
If the operating system is 64-bit, you should use a 64-bit so file
Session required/lib64/security/pam_limits.so

6. Edit the Vi/etc/profile file, add the following line (11gr1 is required, R2 not required):

if [$USER = "Oracle"]; Then
if [$SHELL = "/bin/ksh"]; Then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
This configuration takes effect as soon as the user Oracle logs on, and if the current Oracle user is logged in, you can log back in to make it effective.

7. Turn off the firewall
Stop 2 Firewall Services iptables (IPv4), Ip6tables (IPv6)
Service Iptables Stop
Service Ip6tables Stop

View Firewall Service Status
Service Iptables Status
Service Ip6tables Status

Prevent Firewall service from booting
Chkconfig iptables off
Chkconfig Ip6tables off

View Firewall service Boot status
Chkconfig–list | grep iptables

8. Turn off SELinux
Get SELinux status Getenforce
Modify SELinux profile to close SELinux
Vi/etc/selinux/config
selinux=disabled--Change the parameter enforcing to Disabled
Restarting the operating system
Close the currently open SELinux using the following command Setenforce 0

9. Create or modify users and groups that install the database

Groupadd Oinstall
Groupadd dba
Groupadd Oper
USERADD-G oinstall-g dba Oracle (if there is no use in the system to create Oracle user execute this sentence and Next statement)
Password Oracle
Usermod-g oinstall-g Dba,oper Oracle (if an Oracle user already exists in the system)

10. Create an Oracle installation directory and modify installation permissions

Mkdir-p/u01/app/oracle
Mkdir/u01/app/orainventory
Chown-r oracle:oinstall/u01/app/
Chmod-r 755/u01/app/*

11. Set environment variable Modify VI. Bash_profile Add the following to the file: switch Oracle Directory

Export Oracle_base=/u01/app/oracle
Export Oracle_home= $ORACLE _base/oracle/product/11.2.0/dbhome_1
Export ORACLE_SID=ORCL
Export path= $PATH: $HOME/bin: $ORACLE _home/bin
Export Ld_library_path= $ORACLE _home/lib:/usr/lib
Export oracle_base oracle_home oracle_sid ld_library_path PATH

source/home/oracle/.bash_profile--execute the following command to make the above settings effective immediately

12. Install the missing System package (using local yum) in Yum mode

(a). Hang up the Oracle-linux-6.3.iso in the VirtualBox

Cd/mnt

mkdir CDROM

mount/dev/cdrom/mnt/cdrom/

Mount:block Device/dev/cdrom is write-protected, mounting read-only---this hint indicates a successful mount

(b). cd/etc/yum.repos.d

MV Public-yum-ol6.repo Public-yum-ol6.repo.bak

VI Public-yum-ol6-local.repo

Increase

[Oel6_local]
Name = Enterprise Linux 6.3 DVD
baseurl=file:///mnt/cdrom/server/
Gpgcheck=0
Enabled=1

Yum Install Oracle-rdbms-server-11gr2-preinstall

13. Unzip and authorize two compressed packages

Perform xhost with root before installation to enable all users to access the graphical desktop

Unzip P10404530_112030_linux-x86-64_1of7.zip
Unzip P10404530_112030_linux-x86-64_2of7.zip
Chmod-r 700/home/oracle/database
Chown-r Oracle:oinstall/home/oracle/database
Su-oracle
./runinstaller

Problem: Installing Oracle encounters the above error: reported Exception in thread "main" Java.lang.NoClassDefFoundError

FIX: Find which packages are missing and install them. Rpm-q--queryformat%-{name}-%{version}-%{release}-%{arch} "\ n" \ compat-libstdc++-33 glibc-kernheaders glibc-headers Libaio LIBGCC Glibc-devel Xorg-x11-deprecated-libs

14. Run./runinstaller after installing the graphical interface step-by-step installation is OK. Pre-configured, there will be no problem with installation error. The picture just steals a lazy.

------Please point out the lack of advice to each other 2016-04-19

Virtualbox+oracle Linux 6.3 installation of Oracle 11.2.3.0

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.