Oracle8i installation under RedHat7.1 ~ 7.3

xiaoxiao2021-03-06  165

Oracle 8i installed in Redhat 7.1 ~ 7.3

Take Linux7.3 as an example

1. Ready to work:

1). Software list: Compat-EGCS-6.2-

1.1.2

.16.i386.RPM Compat-EGCS-C - 6.2-1.1.2.16.i386.rpm Compat-EGCS-OBJC-6.2-1.1.2.16.I386.RPM Compat-Glibc-6.2-2.1.3.2.i386.rpm Compat -Libs-6.2-3.i386.0-2-2.9.0.16.i386.0.2-3.386.91.0.2-3.i386.RPM glibc-2.1.3-stubs.tar.gz i386-glibc -2.1-linux.tar.gz J2SDK-1_4_2_05-Linux-i586-rpm.binlowux81701.tar If you are completely installed with Redhat 7.3, the top 6 packs have been installed, if not installed in the Redhat 7.3 CD.

Next, install the GLIBC2.1 package. Glibc2.1 is required when installing Oracle 8i. Since the GLIBC version of the Red Hat Linux 7.x and the above version is higher than version 2.1, the GLIBC must be downgraded. Otherwise an error occurs during installation, resulting in failure installation. Log in with the root account, perform the following command:

# CD /

#tar zxvf i386-glibc-2.1-linux.tar.gz

Hide / usr / bin directory GCC, CC, LD, avoid being used by Oracle Installer, code as follows:

# cd / usr / bin # mkdir mysaved # mv gcc cc ld mysaved # ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-gcc gcc # ln -s gcc cc # ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-LD LD

Hide / usr / lib directory Libc.so, libdl.so, libm.so and libpthread.so files, avoid being used by Oracle Installer, code as follows:

# cd / usr / lib # mkdir mysaved # mv libc.so libdl.so libm.so libpthread.so mysaved # mv libc.a libdl.a libm.a libpthread.a mysaved

2). Install Binutils-2.10.91.0.2-3.i386.0.0.2-3.i386.rpm, must be installed, don't forget, because he is related to the later LD, the LD: unrecognized emulation mode: ELF_I386_GLIBC21. Error.

RPM -UVH --force - Nodeps Binutils-2.10.91.0.2-3.i386.0.2-3.i386.0.0.2-3.i386.RPM Of course, if you are happy, you can restore 7.3.

// * 3). Install JDK

1.1.8

_v3 to / usr / local, this doesn't have to say Bunzip2 JDK118_V3.TAR.BZ2 TAR-XVF JDK118_V3.TAR LN -S JDK118_V3 Java

* /

3). Install JDK (here JDK

1.4.2

Take an example, the default is installed to / usr / below)

CHMOD X J2SDK-1_4_2_05-Linux-i586-rpm.bin

./ j2sdk-1_4_2_05-linux-i586-rpm.bin

RPM-IVH J2SDK-1_4_2_05-Linux-I586-RPMLN -S / USR / J2SDK-1_4_2_05 / usr / local / java

Set the Java environment after installation

Modify / etc / profile Add the following

# -----------------

# | Java environment |

# ------------------

Java_home = / usr / local / java

ClassPath = $ java_home / lib / dt.jar: $ java_home / lib / jaxp.jar: $ java_home / lib / Tools.jar: $ java_home / lib

PATH = $ PATH: $ java_home / bin

4) Get a patch - two Oracle's GLIBC-

2.1.3

-stubs.tar.gz, there is also the most important thing, all friends who have been loaded with Oracle 8.1.7 under Redhat 7.x are very annoyed by 97% of Linking Error. This package is the bug of this bug. In fact, it is a file --env_ctx.mk, how to use, don't worry, tell you later.

5) Prepare the user environment. GroupAdd DBAGROUPADD OINSTALL / / Optional UseRadd Oracle -g OinsTall -g DBAPASSWD ORACLE Enter the password for new users.

Create an installation directory (take / usr / local / oracle as an example) mkdir / usr / local / oracle

Mkdir / usr / local / oracle / products

MKDIR / USR / local / Oracle / Product / ORACLE / PRODUCT /

8.1.7

Chown -r oracle.dba / usr / local / oraclechmod -r 775 / usr / local / oracle

MKDIR / VAR / OPT / ORACLE

Chown -r oracle.dba / var / opt / oracle

Chown -775 / var / opt / oracle

Exit the system to log in with a newly built Oracle user. Edit / Home / Oracle directory .bash_profile, add the following:

#. /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh# --------------------------

# | Setup oracle environment |

# --------------------------

Oracle_base = / usr / local / oracle

Oracle_home = / usr / local / oracle / product /

8.1.7

Oracle_sid = Oracle8

Oracle_Term = ETERM

# NLS_LANG = American.america.zHS16GBK

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

LD_LIBRARY_PATH = $ ORACLE_HOME / LIB: / LIB: / USR / LIB: / USR / LOCAL / LIB

ClassPath = $ ClassPath: $ ORACLE_HOME / JDBC / LIB / CLASS12.Zip: $ ORACLE_HOME / JRE: $ ORACLE_HOME / JLIB: $ Oracle_Home / Rdbms / Jlib: $ Oracle_Home / Network / Jlib

Display = 192.168.0.125: 0.0

# --------------------------

# | Linux stuff |

# -------------------------- ZEXPORT GCC_EXEC_PREFIX = / USR / I386-GLIBC21-Linux / LIB / GCC-LIB /

Export ld_assume_kernel =

2.2.5

Export LDemulation = ELF_I386_GLIBC21

PATH = $ PATH: $ oracle_home / bin: /usr/i386-glibc-2.1-linux/i386-glibc21-linux/bin

Export Oracle_Base Oracle_Home ORACLE_SID ORACLE_TERM ORA_NLS33 LD_LIBRARY_PATH PATH CLASSPATH DISPLAY

Umask 022

The deployment is exited, it is recommended to reboot to prevent it.

5. Install Oracle

8.1.7

Start the installer, / MNT / CDROM / RUNINSTALLER (if you are installed from CD), the following installation screen appears:

Click Next to continue

Select the installation path and take a next step. Next, let you add the group name --oinstall, then perform ORAINSTROOT.SH with root users, but I have no appearance here, this is I have already installed, and then uninstall, I will have this step.

Select the installation product, choose the first one, the next step appears:

Select the installation type, you can choose the typical, you can choose JDK HOME.

Next, fill in the database SID, here is Oracle8,

Next, then the next step will appear in the installation schedule and the installation is officially started.

You can take a break, after 15 minutes later, you should see the following, wrong! ! ! !

This is the fault of Env_ctx.mk, open a Konsole window, put the downloaded env_ctx.mk copy to $ oracle_home / ctx / lib / directory, then retry.

The installation can be successfully completed. Take out the window at this time, run root.sh as root.

Note that there are two errors in root.sh:

RMF = / bin / rm -f modified to RMF = "/ bin / rm -f" ruid = `/ usr / bin / id | $ awk -f ('{print $ 2}' | $ awk -f) '{print $ 1} `Modified to Ruid =` / usr / bin / id | $ awk -f ('{print $ 2}' | $ awk -f) '{print $ 1}' `or download template root.sh

After completing the point OK. Net8 configuration window appears:

Don't worry about the next step, open a Konsole mouth, put the downloaded Oracle patch bag glibc-

2.1.3

-stubs.tar.gz, under $ oracle_home

TAR-XVZF / TMP / GLIBC-

2.1.3

-stubs.tar.gz

Then run,. / Setup_stubs.sh (maybe this name), after about 5 minutes, everything is OK. Return the installation screen, select Perform Typical Configuration, next step,

The above picture shows when creating a database

Database creation is complete.

Oracle Database Installation Process ends.

Open the Konsole window, run SQLPlus System / Manager @ Oracle8, you should be able to connect to the database. Run Oemapp DBASTUDIO, appear below Oracle DBA STUDIO. Everything is OK! Start and close the script

1) Start the script (dbstart)

#! / bin / bash

Su - Oracle <

. /Home/oracle/.bash_profile

Lsnrctl Start

SVRMGRL <

Connect Internal

Startup

Exit

Eoe

Exit

EOF

2) Close the script (dbstop)

#! / bin / bash

Su - Oracle <

. /Home/oracle/.bash_profile

LSNRCTL Stop

SVRMGRL <

Connect Internal

Shutdown immediate

Exit

Eoe

Exit

EOF

Then assign permissions and copy it to /etc/init.d

CHMOD X DBSTART

CHMOD X DBSTOP

Do connection

Ln -s /etc/init.d/dbstart /etc/rc3.d/s99dbstart

ln -s /etc/init.d/dbstop /etc/rc0.d/k10dbstop

This Oracle can run in Linux.

Note: Everything may be smooth during the installation process, there is no error in the document, so you can skip the new Env_ctx.mk file to do this.

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

New Post(0)