Tutorial on installing Oracle 10 Gb database on Linux

Source: Internet
Author: User

Tutorial on installing Oracle 10 Gb database on Linux

Oracle Database software can run on almost all Windows/Unix operating systems. It is recommended that you learn to use it because of the ease of access and open source of linux systems. (RedHat 5.3 32bit is used this time)

1) install the Linux operating system

Portal:

2) configure the Linux operating environment

1. Install the required software package. (For Linux installation software packages, we recommend that you use the command rpm-ivh Name. rpm to install the installation package. Generally, the installation package is stored on the disc and automatically mounted to/media after the disc is inserted)

--------------------------------------------------------------------------------

Installing Oracle 12C in Linux-6-64

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian

--------------------------------------------------------------------------------

Rpm-ivh setarch-2 *
Rpm-ivh make-3 *
Rpm-ivh glibc-2 *
Rpm-ivh libaio-0 *
Rpm-ivh compat-libstdc ++-33-3 *
Rpm-ivh compat-gcc-34-3 *
Rpm-ivh compat-gcc-34-c ++-3 *
Rpm-ivh gcc-4 *
Rpm-ivh libXp-1 *
Rpm-ivh openmotif-2 *
Rpm-ivh compat-db-4 *
Rpm-ivh binutils -*
Rpm-ivh control-center -*
Rpm-ivh gcc-c ++ -*
Rpm-ivh glibc-common -*
Rpm-ivh gnome-libs -*
Rpm-ivh libstdc ++ -*
Rpm-ivh libstdc ++-devel -*

Ps:

The installation packages required for installing oracle in each version of linux are different. You can view the required packages in the oracle online document. The installation methods are the same.

If you encounter something similar to glibc-devel> = 2.2.90-12 is needed by compat-gcc-34-3.4.6-4.i386, it means you need to install glibc-devel before installing the compat-gcc package, therefore, rpm-ivh glibc-devel * is installed before compat-gcc is installed. The following is an example:

2. Set kernel parameters (/etc/sysctl. conf)

Vi/etc/sysctl. conf

Kernel. shmall = 2097152

Kernel. shmmax = 4294967295

Kernel. shmmni = 4096

# Semaphores: semmsl, semmns, semopm, semmni

Kernel. sem = 250 32000 100 128

Fs. file-max = 101365

Net. core. rmem_default = 262144

Net. core. rmem_max = 4194304

Net. core. wmem_default = 262144

Net. core. wmem_max = 1048586

Net. ipv4.ip _ local_port_range = 1024 65000

#/Sbin/sysctl-p (make it take effect immediately)

For specific parameter definitions, see the official documentation. We also recommend an article about Kernel Parameters by David dai. The following is a portal:

3. user resource settings

Vi/etc/security/limits. conf

Oracle soft nproc 2047

Hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

4. User shell resource settings

/Etc/profile: This file sets the environment information for each user in the system. When the user logs on for the first time, this file is executed. and from/etc/profile. the configuration file in the d directory Collects shell settings.

For the Bourne, Bash, or Korn shell, add the following lines to the/etc/profile file:

If [$ USER = "oracle"]; then

If [$ SHELL = "/bin/ksh"]; then

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi

5. Set User login verification Module Settings

Vi/etc/pam. d/login

Session required/lib/security/pam_limits.so

Session required pam_limits.so

Ps:

We usually log in to run a program login.

We are not a user. If so, let's use shell. If not, we won't be able to get in.

The/etc/pam/login file is the authentication of the modules required during the verification process.

Is it correct to break our account password according to the settings.

When there is a problem with this file, the verification will fail, even though my account password is normal, it cannot be entered.

6. Disable SELINUX

Edit/etc/selinux/config and set SELINUX to SELINUX = disabled.

7. Add oracle users and groups and set their passwords

#/Usr/sbin/groupadd oinstall

#/Usr/sbin/groupadd dba

#/Usr/sbin/useradd-g oinstall-G dba oracle-d/u01

# Chmod-R 777/u01

# Chown oracle: oinstall/u01

# Passwd oracle

8. Modify the operating system version information (because oracle10g does not pass redhat5.3, we want to lie to it that we are 4.0)

Vi/etc/redhat-release

Comment out # Red Hat Enterprise Linux Server release 5.2 (Tikanga)

Add redhat-4

9. Set oracle user environment variables

Su-oracle (switch to oracle user)

Vi. bash_profile

Add the following content:

ORACLE_BASE =/u01; export ORACLE_BASE

ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME

ORACLE_SID = WILLSON; export ORACLE_SID

PATH = $ ORACLE_HOME/bin: $ PATH; export PATH

LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib; export LD_LIBRARY_PATH

CLASSPATH = $ ORACLE_HOME/jre: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib; export CLASSPATH

Save and exit

Su-oracle re-login to make the environment take effect

Env Verification

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

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.