Quick installation of Oracle Database 10 GB on RedHat AS3

Source: Internet
Author: User

Quickly install Oracle Database 10 GB on RedHat AS3:

Su-root

Dd if =/dev/zero of = tmpswap bs = 1 k count = 900000

Chmod 600 tmpswap

Mkswap tmpswap

Swapon tmpswap

Check the tmp space and run the command: $ df/tmp

If the temporary space is insufficient, you can create or specify another file to store the temporary file as follows:

Su-root

Mkdir/tmp

Chown root. root // tmp

Chmod 777 // tmp

Export TEMP =/

Export TMPDIR =/

After installing Oracle, close Oracle and delete the Temporary Folder:

Su-root

Rmdir/tmp

Unset TEMP

Unset TMPDIR


After checking the preceding items, modify the core parameter. Edit the/etc/sysctl. conf file and run the following command:

# Vi/etc/sysctl. conf

Add the following content to the end of the file:

Kernel. shmall = 2097152

Kernel. shmmax = 2147483648

Kernel. shmmni = 4096

Kernel. sem = 250 32000 100 128

Fs. file-max = 65536

Net. ipv4.ip _ local_port_range = 1024 65000


After editing, save and exit. Execute the # sysctl-p command to make the modification take effect.

Then, check whether the above operations are correct:

#/Sbin/sysctl-a | grep sem

#/Sbin/sysctl-a | grep shm

#/Sbin/sysctl-a | grep file-max

#/Sbin/sysctl-a | grep ip_local_port_range


Set Shell restrictions for Oracle users


It mainly modifies the nofile (maximum number of file descriptors that can be opened) and nproc (maximum number of processes available for a single user) parameters of Oracle users, run the ulimit-n command to check the nofile parameter and the ulimit-u command to check the nproc parameter. The specific modification is as follows:

# Vi/etc/security/limits. conf

Add the following rows

* Soft nproc 2047

* Hard nproc 16384

* Soft nofile 1024

* Hard nofile 65536

Check the limit and run the command: # ulimit-

Add the following row to the/etc/pam. d/login file:

Session required/lib/security/pam_limits.so

Edit the/etc/profile file and add the following content at the end of 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

After editing, save and exit.

Check and install patches

To install Oracle10g on RHEL of this version, you must have several software packages. Make sure that the following rpm packages are installed:

Make-3.79

Binutils-2.11

Openmotif-2.2.2-16

Setarch-1.3-1

Compat-db-4.0.14.5

Compat-gcc-7.3-2.96.122

Compat-gcc-c ++-7.3-2.96.122

Compat-libstdc ++-7.3-2.96.122

Compat-libstdc ++ devel-7.3-2.96.122


In addition, it is better to verify the gcc and glibc versions (required for gcc-3.2.3-2 or higher)

# Gcc-v

# Rpm-q glibc

Create Oracle users and related groups

# Su-root

#/Usr/sbin/groupadd oinstall

#/Usr/sbin/groupadd dba

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

# Passwd oracle

Create a path for $ ORACLE_BASE

Su-root

Mkdir-p/u/app/oracle

Chown-R oracle. oinstall/u

Create HOME path/u/app/oracle/product/10.1.0/db_1 for Oracle10g


Check and adjust Environment Variables

Log On As an oracle user

# Su-oracle

$ Cd

$ Vi. bash_profile

# Add the following content. Your specific value will not be exactly the same as this.

Export ORACLE_BASE =/u/app/oracle

Export ORACLE_HOME = $ ORACLE_BASE/product/10.1.0/db_1

Export ORACLE_SID = orcl10g

Export PATH = $ PATH: $ HOME/bin: $ ORACLE_HOME/bin

Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib

Export LC_CTYPE = en_US.UTF-8

Then run $ source. bash_profile to make the environment variable take effect. Run the $ set command to check whether it takes effect. Modify the owner of the two paths to Oracle and the group to Oinstall.

Start installing 10g

Unbind the downloaded file and run the following command:

Gunzip ship.db.cpio.gz

Decompress ship. db. cpio:

$ Cpio-idmv <ship. db. cpio

Disk1/stage/Components/oracle. server/10.1.0.2.0/1/DataFiles/build. jar

Disk1/stage/Components/oracle. server/10.1.0.2.0/1/DataFiles

Disk1/stage/Components/oracle. server/10.1.0.2.0/1

Disk1/stage/Components/oracle. server/10.1.0.2.0

Disk1/stage/Components/oracle. server

...

Run the command $ sh/u/install/runInstaller to view the beautiful installation interface of Oracle10g. Then, install 10g easily as prompted.

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.