Install oracle10g on RHEL AS 3

xiaoxiao2021-03-06  76

Modify core parameters

#vi /etc/sysctl.conf

# ----------- Begin from Here ----------------------------------- ---

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

# -------------- End Here --------------------------------- -----------

After editing, save, execute

# / sbin / sysctl -p

Then, you should check if the above operation is 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 the SHELL limit for Oracle users

# vi /etc/security/limits.conf

# Add the following line

* Soft Nproc 2047

* Hard Nproc 16384

* Soft Nofile 1024

* Hard Nofile 65536

Add the following line to /etc/pam.d/login file

Session Required /LIB/Security/Pam_Limits.so

Edit / etc / profile file, add the following

IF [$ user = "oracle"]; then

IF [$ shell = "/ bin / ksh"]; then

Ulimit -P 16384

Ulimit -n 65536

Else

Ulimit -u 16384-N 65536

Fi

Fi

After that, execute $ unlimit verification.

Create users and related groups

# / usr / sbin / groupadd oinstall

# / usr / sbin / groupadd dba

# / usr / sbin / usradd -g oinstall -g dba oracle

Set Display Environmental Parameters

# export display = your_ipaddress: 0.0

Change your_ipaddress to your IP.

Or use root simple to execute

# xhost

Check and adjust environment variables

Log in to Oracle users

# SU - Oracle $ CD $ VI .BASH_PROFILE

# Add the following, your specific value should not be the same as this.

Export oracle_base = / u / app / oracle

Export Oracle_Home = $ Oracle_Base / Product / 10.1.0 / db_1

Export Oracle_sid = TEST

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 perform $ SOURCE .BASH_PROFILE

Enable environment variables to take effect. / U / app / oracle and other directories should be established and appropriate authorization.

Start installing 10g

$ SH / U / Install / Runinstaller

Finally, the system will prompt you to run the root.sh file. You can do it according to the prompt.

转载请注明原文地址:https://www.9cbs.com/read-93637.html

New Post(0)