Quickly install Oracle on RedHat AS3
10g
Recently, our company's servers have installed Redhat AS 3, using English installation help documents successfully installed Oracle
10g
Here is the specific introduction to our installation process, I hope to help everyone. This article describes the installation of Oracle on Red Hat Enterprise Linux Advanced Server 3 (RHEL 3).
10g
, Oracle
10g
It is downloaded from the Internet, and it is assumed that everyone has the necessary steps and related knowledge. This article assumes that your Linux operating system is already installed on your server.
Download Oracle from OTN
10g
For Linux, the address is http://otn.oracle.com/software/products/Database/OrCle10g/index.html, note that we only download ship.db.cpio.gz. Then execute the command: cksum ship.db.cpio.gz
Configuring Redhat AS 3 Basic Requirements: Operating System Version: Red Hat Enterprise Linux Advanced Server 3 (rhelas3) kernel
2.4.21
-4.el on AN i686 Install the operating system in accordance with regular, remember to install the development tool (GCC and other necessary tools).
Check physical memory, execute command: grep memtotal / proc / meminfo
Check the switching space, execute the command: grep swaptotal / proc / meminfo
You can also create a temporary exchange space, the specific operation is as follows:
Su - root
DD if = / dev / zero of = tmpswap bs = 1k count = 900000
CHMOD 600 TMPSWAP
MKSWAP TMPSWAP
Swapon Tmpswap
Check TMP space, execute command: $ DF / TMP
If the temporary space is insufficient, another file can be created or specified to store temporary files, the operation is as follows:
Su - root
Mkdir /
Chown root.root /
Chmod 777 /
Export temp = /
Export tmpdir = /
After installed Oracle, turn off Oracle and delete a temporary folder:
Su - root
RMDIR /
Unset Temp
Unset tmpdir
After checking the items, you should modify the core parameters. Edit the /etc/sysctl.conf file, execute the following command:
#vi /etc/sysctl.conf Add to the following: 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 an exit, execute #sysctl -p command operations to make our changes take effect.
Then, you should check if the above operation is correct: # / sbin / sbin / sbin / sysctl -a | grep file-max # / sbin / sbin / sysctl -a | grep file-max # / sbin / sysctl -av | grep ip_local_port_range to set the shell for Oracle users mainly modify the parameters of the Oracle user about Nofle users and NPROC (maximum number of processes available for a single user), check the Nofile parameter ULIMIT -N, check the nproc parameter ULIMIT -U, specifically modified as follows: # vi /etc/security/limits.conf Add the following line * Soft NPROC 2047
* Hard Nproc 16384
* Soft Nofile 1024
* Hard Nofile 65536
Check the limit, execute the command: # Ulimit -a
Add the following line to /etc/pam.d/login file: session request /lib/security/pam_limits.so
Edit the / etc / profile file, add the following to 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 exit.
Check and install related patches
Install Oracle on this version of RHEL
10g
There are several packages that must have several packages. Verify that the following RPM packages have been installed: make-3.79binutils-2.11OpenMotif-
2.2.2
-16seTARCH-1.3-1 Compat-DB-4.0.14.5Compat-GCC-7.3-2.96.122Compat-GCC-C - 7.3-2.96.122compat-libstDC - 7.3-2.96.122compat-libstdc - DEVEL-7.3-2.96.122 In addition, it is best to verify the version of GCC and GLIBC (requires 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 / usradd -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
Oracle
10g
Create home path / u / app / oracle / product /
10.1.0
/ db_1
Check and adjust environment variables
Log in to Oracle User # SU - Oracle $ CD $ VI .BASH_PROFILE
# Add the following, your specific value should not be the same as this.
Export Oracle_base = / u / app / oracleExport Oracle_Home = $ Oracle_Base / Product /
10.1.0
/ db_1export oracle_sid = orcl
10g
Export Path = $ PATH: $ HOME / BIN: $ ORACLE_HOME / BINEXPORT LD_LIBRARY_PATH = $ ORACLE_HOME / lib: / usr / libeport lc_cType = en_us.utf-8 then execute $ source .bash_profile makes environment variables, execute whether the command is set to check if Take effect. Modify the owner of the two paths to Oracle, the group is Oinstall.
start installation
10g
Unlock the downloaded file, execute the command:
Gunzip ship.db.cpio.gz
Then decompress Ship.db.cpio:
$ CPIO -IDMV 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 / component / oracle.server ... Then execute the command: $ SH / U / Install / Runinstaller, you can see Oracle 10g The beautiful installation interface is easy to install according to the prompt. 10g . Reference article: 1. Installing Oracle Database 10g On Red Hat Enterprise Linux as 3 and 2.1, Red Hat 9, And On Red Hat Fedora Core 1 (http://www.puschitz.com/installingoracle 10g SHTML 2. Installing Oracle 10g ON RHEL AS 3 Step-by-Step