Installing Oracle under Linux

Source: Internet
Author: User
Tags dba

1. Turn off the firewall and disable SELinux

Vi/etc/selinux/config Modify selinux=disabled, and then reboot if you do not want to restart using command Setenforce 0

2. Installing dependent Packages

# RPM-IVH libstdc++-devel-4.4.7-4.el6.x86_64.rpm

# RPM-IVH gcc-c++-4.4.7-4.el6.x86_64.rpm

# RPM-IVH compat-libcap1-1.10-1.x86_64.rpm
# RPM-IVH compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm

# RPM-IVH ksh-20100621-12.el6.x86_64.rpm
# RPM-IVH libaio-devel-0.3.107-10.el6.x86_64.rpm

# RPM-IVH oracleasm-support-2.1.5-1.el6.x86_64.rpm

can use

Yum Install-y compat-libstdc*
Yum Install-y elfutils-libelf*
Yum Install-y gcc*
Yum Install-y glibc*
Yum Install-y ksh*
Yum Install-y libaio*
Yum Install-y libgcc*
Yum Install-y libstdc*
Yum Install-y make*
Yum Install-y sysstat*

3. Create Oracle Users and Groups

(1) Create a group DBA

# Groupadd DBA
(2) Add user Oracle and add it to DBA Group

# USERADD-M-G DBA Oracle (4) tests if Oracle account is established # ID Oracle
(5) Create a new Oracle Password # passwd Oracle
Oracle

4. Add the Oracle user to the sudo group

Vi/etc/sudoers

Found it
Root all= (All) all this line, and then join at the bottom
Oracle All= (All) all
Enter wq! (because this is a read-only document so you need to add!) and press ENTER

5, configure the system kernel parameters

# vi/etc/sysctl.conf
Modify and add the following:

Fs.aio-max-nr =1048576
Fs.file-max =6815744
Kernel.shmmni = 4096

kernel.sem=5010 641280 5010 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=1048586
vm.hugetlb_shm_group=501

After editing, save and then execute: # sysctl–p

6. Editing

/etc/security/limits.conf

Add the following four lines
Oracle Soft Nproc 2047

Oracle Hard Nproc 16384

Oracle Soft Nofile 1024

Oracle Hard Nofile 65536

7. Edit/etc/pam.d/login

# Vi/etc/pam.d/login

Add the following two lines

Session required/lib64/security/pam_limits.so

Session Required Pam_limits.so

8, modify the/etc/profile

# Vi/etc/profile

if[$USER = "Oracle"];then
if[$SHELL = "/bin/ksh"];then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
9. Create an Oracle installation folder and a data storage folder

#mkdir/opt/oracle

#mkdir/opt/oracle/112

#mkdir/opt/orainventory

#chown-R oracle:dba/opt/oracle

#chown-R Oracle:dba/opt/orainventory

#chown-R oracle:dba/opt

10. Configure the Linux host

Check the/etc/hosts file for localhost records (point to 127.0.0.1), if not, there will be some problems in configuring the Oracle monitoring later, so that the monitoring can not be started, this record can be manually added here. Add the following configuration IP address plus host name Mapping
192.168.1.101 centos-oracle

11. Configure Oracle User Environment variables

#su Oracle

$ cd/home/oracle

$ VI. bash_profile

Modify and add the following content
Oracle_base=/opt/oracle #上面创建的Oracle安装文件夹

Oracle_home= $ORACLE _base/112

Oracle_sid=orcl
Ld_library_path= $ORACLE _home/lib

Path= $PATH: $ORACLE _home/bin: $HOME/bin
Export oracle_base oracle_home oracle_sid ld_library_path PATH
#PATH = $PATH: $HOME/bin

#export PATH
After saving, use the following command to make the settings effective: $ source/home/oracle/.bash_profile

12. Install Oracle and set up the relevant settings

Prepare to perform the database installation, if your operating system is Chinese, the installation will appear garbled, please use the following command $ export lang=en_us. UTF-8

II Installation of VNC

1. Open terminal using the Yum command to install VNC sever

2. Set the Vncserver to boot with the system.
Command: Chkconfig vncserver on

3. Modify the Vncserver configuration file.
Command: Vim/etc/sysconfig/vncservers

Add vncservers= "1:root" in the back
Vncserverargs

4. Set the Vncserver password (VNC client login is used).
Note Before setting the password, Su to the user you want to set. This demo is used by the root user.
Command: VNCPASSWD

5. Restart the Vncserver service.
Command: Service vncserver restart

Installation Oracle must be logged on with an Oracle user and then turn on VNC to remotely install Oracle to the Oracle user interface

Three

Install Linux Desktop Services

1. first check the operating level of the system and whether the desktop environment is installed

1. Use the command runlevel to view the current runlevel.

2. Use the command yum grouplist | more to see if the components of the desktop environment are installed

2.Yum groupinstall-y "desktop" "Desktop Platform" "Desktop Platform Development" "Fonts" "General Purpose Des Ktop "Graphical administration Tools" "Graphics Creation Tools" "Input Methods" "X Window System" "Chinese support [ ZH] "Internet Browser" Installation Interface Edition

3. Install the desktop environment software, and then modify the system start level of 5

Edit the/etc/inittab file, modify the boot level to 5, and then restart to enter the desktop environment. Because I am a remote environment, just using the command line, you can use VNC for desktop environment remote

Installing Oracle under Linux

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.