Configure the Oracle 10g installation environment in Linux

Source: Internet
Author: User

RedHat linux as 5 and Oracle10g are used in oracle10g installation in linux.


1. Install System Patches first
[Root @ oracle rpm] # rpm-ivh libXp -*

Warning: libXp-1.0.0-8.i386.rpm: Header V3DSA signature: NOKEY, key ID 82fd17b2

Preparing... ######################################## ### [100%]

1: libXp ####################################### #### [50%]

2: libXp-devel ##################################### ###### [100%]

[Root @ oracle rpm] #

2. Modify core operating system parameters
Vi/etc/sysctl. conf


Kernel. msgmax = 65536

# Controls the maximum shared segment size, in bytes

Kernel. shmmax = 536870912

# Controls the maximum number of sharedmemory segments, in pages

Kernel. shmall = 2097152

Kernel. shmmni = 4096

Kernel. sem = 250 32000 100 128

Fs. file-max = 65536

Net. ipv4.ip _ local_port_range = 1024 65000

Net. core. rmem_default = 1048576

Net. core. rmem_max = 1048576

Net. core. wmem_default = 262144

Net. core. wmem_max = 262144


The following command does not need to be restarted.
/Sbin/sysctl-p


Set shell call restrictions
Vi/etc/security/limits. conf


* Soft nproc 2047

* Hard nproc 16384

* Soft nofile 1024

* Hard nofile 65536

Vi/etc/pam. d/login
Session required pam_limits.so


Create a user
[Root @ oracle rpm] # groupadd oinstall

[Root @ oracle rpm] # groupadd dba

[Root @ oracle rpm] # useradd-g oinstall-gdba-m oracle

[Root @ oracle rpm] # passwd oracle

Changing password for user oracle.

New UNIX password:

Bad password: it does not contain enoughDIFFERENT characters

Retype new UNIX password:

Passwd: all authentication tokens updatedsuccessfully.


[Root @ oracle rpm] # mkdir/opt/ora10g

[Root @ oracle rpm] # mkdir/opt/ora10g/product

[Root @ oracle rpm] # mkdir/opt/ora10g/oradata


[Root @ oracle rpm] # chown-R oracle: oinstall/opt/ora10g

[Root @ oracle rpm] # su-oracle


[Oracle @ oracle ~] $ Vi. bash_profile


PATH = $ PATH: $ HOME/bin


Export TMP =/tmp

Export TMPDIR = $ TMP

Export ORACLE_BASE =/opt/ora10g

ExportORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1

Export ORACLE_SID = orcl
Export ORACLE_TERM = xterm

Export PATH =/usr/sbin: $ PATH

Export PATH = $ ORACLE_HOME/bin: $ PATH

Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64:/usr/x11R6/lib64

ExportCLASSPATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib

Export LD_ASSUME_KERNEL = 2.6.18

Export NLS_LANG = "SIMPLIFIEDCHINESE_CHINA.UTF8"

Umask 022

If [$ USER = "oracle"]; then

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

Ulimit-p 16384

Ulimit-n 65536
Else

Ulimit-u 16384-n 65536

Fi

Fi

 

 

# Modify/etc/redhat-release

Echo '# Red Hat Enterprise Linux Server release 5.3 (Tikanga)

Redhat-4 '>/etc/redhat-release


[Oracle @ oracle ~] $ Source. bash_profile


Copy the software to the/opt/app directory created by Alibaba Cloud.

Xhost +

Su-oracle

[Oracle @ oracle database] $ LANG = C

[Oracle @ oracle database] $./runInstaller

 

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.