Oracle 9i installation under Red Hat Linux 7.3

xiaoxiao2021-03-06  39

This article will introduce Oracle Database 9i installation process under Linux, if you have experience in installing Oracle8i, then the following installation process is a small thing for you:

Hardware requirements:

Hard disk space: Installing the Oracle9i database at least 2.5GB of remaining space.

Temporary hard disk space: Oracle installer requires more than 400M or more temporary hard disk space during installation;

Memory: Installing Oralce 9i software requires at least 512M memory (I use 256MB memory during my personal installation).

installation:

1. Red Hat Linux 7.3:

Download Location: http://www.puschitz.com/redhatdownload.html

2. Oracle9i:

Download Location: http://otn.racle.com/software/prod.../linuxsoft.html (Note: 1. Version No. 9.2.0.1)

Unzipping Measures: Take Linux9i_Disk1.cpio.gz as an example.

Gunzipt Linux9i_disk1.cpio.gz

Cpio -idmv

Form three directories after unpacking: Installation Files:

(Disk1 Disk2 Disk3)

3. Binutils:

7.3 From NUTILS-2.11.90.0.8-9, it is easy to issue problems when installing, it is recommended to download binutils-2.10.0.18-1.i386.rpm

Download address: ftp: //ftp.redhat.com/pub/redhat/lin...i386.rpm, install binutils with root users:

RPM -UVH --force --Nodeps binutils-2.10.0.18-1.i386.0.18-1.i386.rpm

After the Oracle9i is installed, the version is restored:

RPM -UVH --force --Nodeps binutils-2.11.90.0.8-9.i386.rpm

4. JDK:

Download address: http://www.blackdown.org or http://java.sun.com

installation:

Bunzip2 -dc jdk118_v3-glibc-2.1.3.tar.bz2

TAR XVF JDK118_V3-glibc-2.1.3.tar

LN -S / usr / local / jdk118_v3 / usr / local / java

5. Configuring kernel parameters

Oracle9i works using resources such as Linux shared memory, exchange zones, and other resources, if your kernel parameter settings do not meet Oracle requirements, then there is a problem in installing ORACEL9i or using the process, so configuring the parameters of the system kernel are especially important and Key.

The configuration of the kernel parameters is generally configured under the / proc folder:

1) Allow the following commands in Root users;

2) Go to the directory / proc / sys / kernel; see the value of the Semaphore current parameter with a CAT command or more:

Cat Sem

The following results will appear after the command is running:

250 32000 32 128

The value of the parameter SEMMSL, 32000 is the value of the parameter SEMMNS, and 32 is the value of the parameter SemOPM, and 128 is the value of the parameter SemMNI.

4). Use the following command to modify the above parameters

Echo Semmsl_Value Semmns_Value Semopm_Value Semmni_Value> SEM

Semmsl_value, semmp, semmns_value, semopm_value, SemMni_Value replaces the corresponding value, and the order of these values ​​cannot be switched 5). Set the shared memory size, shared memory size is generally half of physical memory, here we assume that physical memory is 512M The value of shared memory 4294967295 is pushed, if your physical memory is 1G, the value here is 8589934590:

Echo 4294967295> SHMMAX

6 Add user:

Oracle requires a specific user (non-root user) in installation and use, according to Oracle's standard description, you need to add three special users and user groups, in order to easily install and use our installation and use to return Oracle to a specific The user is completed.

First create an Oracle installation group and user group, we have two user groups to name Oinstall, DBA, login in the system:

1) GroupAdd OinsTall

2) GroupAdd DBA

Add Oracle users:

1) UserAdd Oracle -g OinsTall -g DBA

2) Password Oracle

7. Create an installation directory: Taking the root user:

MKDIR / OPT / ORACLE

MKDIR / OPT / ORACLE / PRODUCT

MKDIR /OPT/Oracle/Product/9.0.1

Chown -r oracle.oinstall / OPT / ORACLE

MKDIR / VAR / OPT / ORACLE

Chown Oracle.dba / Var / OPT / ORACLE

CHMOD 755 / VAR / OPT / ORACLE

8. Set the Oracle environment:

Take Oracle users:

Vi /Home/oracle/.bash_profile

Export oracle_base = / opt / oracle

Export Oracle_Home = / OPT / ORACLE / Product / 9.0.1

Export Oracle_sid = SAH

Export Oracle_Term = xterm

Export NLS_LANG = American;

Export ORA_NLS33 = $ Oracle_Home / Ocommon / NLS / Admin / Data

Export LD_Library_Path = $ ORACLE_HOME / LIB: / LIB:

/ usr / lib: / usr / local / lib

Export Path = $ PATH: $ ORACLE_HOME / BIN;

ClassPath = $ oracle_home / jre: $ oracle_home / jlib: $ ORACLE_HOME / RDBMS / JLIB

ClassPath = $ ClassPath: $ Oracle_Home / Network / Jlib

9 start installation

1) CD / backup / disk1

2) ./runinstaller

There is a problem with problems in the installation: generally in accordance with the error prompt, if it is because of binutils problem, then it must be binutils version is wrong, it is recommended to install Binutils and then perform Oracle9i installation.

Oracle9i requires the password of the SYS and SYSTEM users in the installation database, and you can set your own password at will.

10. Start the database:

Note: SVRMGRL has not been supported in 9i, changed to DGMGRL

1) $ DGMGRL

2) Connect Sys / XXXX AS SYSDBA

3) STARTUP

(Note: 9i's tips and 8i vary, only two lines, this is not listed here) to this, Oracle9i is installed! Contact me: sahxinyu@163.com

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

New Post(0)