REDHAT Linux Install Oracle9i [Turn]

xiaoxiao2021-03-06  14

Http://feehoo.vip.sina.com/2005/03/redhat-linux-oracle9i.html

1. Preparation before installation, this part can be performed under the character terminal.

Install the package and patch package:

P3006854_9204_linux.zip hit before running Runinstaller.

P3238244_9204_linux.zip Repair the patch of the Agent error.

P2617419_210_Generic.zip hits the patch required for 3238244 patches.

The following 1 to 7 are logged in with the root user, and 8, 9 is logged in Oracle.

1, install the required package

Check if there are several packages in the system:

Compat-libstdc - 7.3-2.96.122

COMPAT-GCC-C - 7.3-2.96.122

Compat-libstdc - DEVEL-7.3-2.96.122

Compat-DB-4.0.14-5

Compat-GCC-7.3-2.96.122

Tcl-devel-8.3.5-92.i386.ipm

OpenMotiF21-2.1.30-8

Setarch-1.3-1

Other related packages (may need when installing the above package):

Glibc-KemheadSers-2.4-8.34.i386.rpm

GLIB-Headers-2.3.2-95.20.i386.rpm

Glib-dereL-2.3.2-95.20.i386.rpm

If the package is not yet, the relevant RPM file is found from the RHAS3U2 CD3 and CD4.

2. Establish Oracle users and passwords with root users

# GroupAdd Oinstall (Unix Group name: oinstall while installing Oracle)

# GroupAdd DBA

# useradd -g oinstall -g dba oracle

# Passwd Oracle

Then log in with an Oracle user, copy all files on the Oracle 9.2.0.4 disc to the Oracle home directory.

3, prepare the file directory:

# mkdir -p /opt/oracle/product/9.2.0

# MKDIR / VAR / OPT / ORACLE

# chown oracle.dba / var / opt / oracle

# chown -r oracle.dba / opt / oracle

4, set the kernel parameters, adjust the signal lights and shared memory:

Modify /etc/sysctl.conf this file, add the following statement:

Kernel.shmmax = 2147483648

Kernel.shmmni = 4096

Kernel.shmall = 2097152

Kernel.sem = 250 32000 100 128

fs.file-max = 65536

Net.IPv4.ip_local_port_range = 1024 65000

SEM 4 parameters are SEMMSL in turn (the maximum number of semapons per user); SEMMNS (maximum number of system semapons); Semopm (number of SemOPM system calls operates); SemMni (maximum number of systems has a maximum number of systems).

SHMMAX maximum shared memory, the official document suggests is 1/2 of memory

SHMMNI minimum shared memory 4096kb.

SHMALL all memory size.

5, set Oracle's requirements for files:

Edit file: /etc/security/limits.conf Add the following statement:

Oracle Soft Nofile 65536

Oracle Hard Nofile 65536

Oracle Soft NPROC 16384 Oracle Hard Nproc 16384

6, GCC downgrade

#su - root

#mv / usr / bin / gcc / usr / bin / gcc323

#LN -S / USR / BIN / GCC296 / USR / BIN / GCC

#mv / usr / bin / g / usr / bin / g 323

#LN -S / USR / BIN / G 296 / USR / BIN / G

7, log in to the root user

P3006854_9204_linux.zip patch installation:

#CD / HOME / ORACLE

#unzip p3006854_9204_linux.zip

#CD 3006854

#SH rhe13_pre_install.sh

Applying Patch ...

Patch SuccessFully Applied

8. Log in with Oracle users, set the environment of Oracle users

Open the .bash_profile file, join the following:

Export oracle_base = / opt / oracle

Export Oracle_Home = / OPT / ORACLE / Product / 9.2.0

Export Path = $ PATH: $ Oracle_Home / BIN: $ Oracle_Home / Apache / Apache / BIN

Export Oracle_owner = ORACLE

Export Oracle_sid = BOSS

Export Oracle_Term = xterm

Export ld_assume_kernel = 2.4.1

EXPORT THREADS_FLAG = Native

Export ld_library_path = $ ld_library_path: $ Oracle_Home / LIB

Export NLS_LANG = American_america.zHS16GBK

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

9. Log in with Oracle, release the installation file

#zzcat ship_9204_linux_disk1.cpio.gz | CPI -IDMV

#zzcat ship_9204_linux_disk2.cpio.gz | CPI -IDMV

#zzcat ship_9204_linux_disk3.cpio.gz | CPI -IDMV

This step will generate three folders: Disk1, Disk2, Disk3

Second, start formal installation, this part must be done under XWindow.

2 terminal windows are recommended during installation

1, open a window, switch to root users

Export oracle_base = / opt / oracle

Export Oracle_Home = / OPT / ORACLE / Product / 9.2.0

(Oracle is installed in these)

2, open a window, first switch to the root user, then execute

#xhost

(XHOST Disable Access Control, client can connect from any host)

This command is used to ensure that Oracle users call X11, otherwise they cannot be installed

Then switch to Oracle users

#su - Oracle

#export lang = en_us

Run in the Oracle home directory: # / home / oracle / disk1 / runinstaller

Precautions during the installation process:

1. Let you enter unix group name: oinstall in the installation

2. Select Software ONLY in the installation. Do not build a database.

3, play patch:

Switch to the root terminal (maintain Oracle_Home, Oracle_Base environment variable terminal): First install OPATCH.

#CD / HOME / ORACLE

#unzip p2617419_210_generic.zip

Archive: p2617419_210_generic.zip

Creating: Opatch /

Creating: Opatch / DOCS /

INFLATING: OPATCH / DOCS / FAQ

......

Inflating: readme.txt

#export path = $ path: / home / oracle / Opatch: / sbin

(Modify PATH to include uncompressed Opatch and sbin directory)

# unzip p3238244_9204_linux.zip

# cd 3238244

# OPATCH APPLY

If you prompt the Home variable error to perform statement:

#export oracle_base = / OPT / ORACLE

#export oracle_Home = / OPT / Oracle / Product / 9.2.0

Success's prompts appear on all installation.

After the patch is finished, reelink is a .mk file, switch to the Oracle user window.

CD $ ORACLE_HOME / Network / LIB

Make -f INS_OEMAGENT.MK INSTALL

You can start the Agent service.

Finally switch to the Oracle terminal, execute

#dbca

Built Oracle Database

If DBCA executes an error exits, modify the file /op/Oracle/Product/9.2.0/bin/dbca, comment out of 118, 121, 123, 124, I also tried to install JDK, put The path of JRE points to this or solves the problem.

After the database creation is complete, modify / etc / oratab, change the last N of the BOSS to Y, then execute the dbstart boot database

The database may not be able to start, report the error of can't find init file ... You need to copy a initialization file:

Cp /opt/oracle/admin/boss/pfile/initboss.ora.* /opt/oracle/product/9.2.0/dbs/initboss.ora

You can re-execute dbstart. '

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

New Post(0)