Another way for Linux to install Oracle

Source: Internet
Author: User
Tags dba parent directory

1. Download the dependency package:

Yum-y Install binutils compat-libcap1compat-libstdc++.i686 compat-libstdc++.x86_64 elfutils-libelf Elfutils-libelf-devel gcc gcc-c++ glibc.i686 glibc.x86_64 glibc-devel.i686 glibc-devel.x86_64 ksh libgcc.i686 libgcc.x86_64 libstdc++.i686 libstdc++.x86_64 libstdc++-devel.i686 libstdc++-devel.x86_64 libaio.i686 libaio.x86_64 libaio-devel.i686 libaio-devel.x86_64 libxext libxtst libX11 libxau libxcb libxi make Sysstat unixodbc-devel.i686 UnixODB c-devel.x86_64 unixodbc.i686 unixodbc.x86_64 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64

2. Configure static IP

Go to configuration file directory: cd/etc/sysconfig/network-scripts/

Edit the configuration file Add the identity section: Vi ifcfg-eth0

Restart Network: Service network restart

Test the network for normal ping www.baidu.com the indicated identity succeeded.

3. Change the parameters:

Use the vi/etc/sysctl.conf command to change the parameters and add the contents to the end:

FS.AIO-MAX-NR = 1048576

Fs.file-max = 6815744

Kernel.shmall = 2097152

Kernel.shmmax = 536870912

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 = 1048586

Immediate effect with #sysctl-p

4. Continue adding:

Use: vi/etc/security/limits.conf

Limits file: Detects the range of expression values for an integer data type.

Add a bit:

Oracle Soft Nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard Nofile 65536

Use: Vi/etc/pam.d/login Modify the login configuration file, add the file

Session Required Pam_limits.so

5. Modifying environment variables

Vi/etc/profile Add the file:

if [$USER = "Oracle"]; Then
if [$SHELL = "/bin/ksh"]; Then
Ulimit-p 16384 ulimit-n 65536
Else
Ulimit-u 16384-n 65536 fi
Fi

To execute the configuration file:

Source/etc/profile

6. Modify the Hosts file

What Hosts file is: responsible for IP address and domain name Express resolution files

Two: Create user groups:

1.

Create User: #groupadd DBA

User add: #useradd-G DBA Oracle

Password: #passwd Oracle

2. Create a Directory

Create parent directory and subdirectories: #mkdir-P/u01/app/oracle/product/
The root user of the directory U01 subdirectories and subdirectories is owned by Oracle: #chown-R oracle:dba/u01/

3. Setting Oracle User Environment variables

First switch to Oracle User: #su –oracle

Cd/home/oracle

Enter the environment to write: $ VI. bash_profile, insert the file

Export Oracle_base=/u01/app/oracle

Export Oracle_home= $ORACLE _base/product/11.2.0/db_1

Export Oracle_sid=ucit

Export path= $ORACLE _home/bin: $PATH

Export Ld_library_path= $ORACLE _home/lib:/usr/lib

Export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

Execution file Effective: source. bash_profile

To install Oracle:

Put the installation directory on the/home/oracle

Decompression command:

$CD/home/oracle

$unzip Linux_11gr2_database_1of2.zip

$unzip Linux_11gr2_database_2of2.zip

Command line Execution command: Export lang=en_us.utf-8

Enter database directory: CD database

Execute command:./runinstaller (under Oracle user)

Another way for Linux to install Oracle

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.