Installation of oracle8i under redhat7.1~7.3

Source: Internet
Author: User
Tags exit chmod dba log connect oracle database installation oracle database linux
Oracle
Oracle 8i Installation manual under Redhat 7.1~7.3

The following take linux7.3 as an example

1. Preparatory work:

1). List of software:
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.rpm
compat-libstdc++-6.2-2.9.0.16.i386.rpm
binutils-2.10.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.bin
Linux81701.tar

If you are fully installed Redhat 7.3, the first 6 packages have been installed, if not, please install them on Redhat 7.3 CD-ROM.



Next, install the glibc2.1 package. Oracle 8i installation requires glibc2.1. Since the glibc version of Red Hat Linux 7.x and above is higher than version 2.1, the glibc must be degraded. Otherwise, an error occurs during installation, causing the installation to fail. Log in with the root account and execute the following command:

# CD/

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



Hide gcc, cc, LD in the/usr/bin directory to 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 the libc.so, libdl.so, libm.so, and libpthread.so files in the/usr/lib directory and 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. Installation of binutils-2.10.91.0.2-3.i386.rpm, must be installed, do not forget, because he and later LD-related, do not install will appear LD:
Unrecognized emulation MODE:ELF_I386_GLIBC21 error.

RPM-UVH--force--nodeps binutils-2.10.91.0.2-3.i386.rpm

Of course, if you are happy to be able to restore the 7.3 after the installation.



*3). Install Jdk1.1.8_v3 to/usr/local, that's not much to say.
BUNZIP2 jdk118_v3.tar.bz2
TAR-XVF Jdk118_v3.tar
Ln-s jdk118_v3 Java

*/

3). Install JDK (take jdk1.4.2 for example, install by default to/usr/)

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-rpm

Ln–s/usr/j2sdk-1_4_2_05/usr/local/java

Setting up 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 the patch Pack--Two Oracle glibc-2.1.3-stubs.tar.gz, and one of the most critical, all under Redhat 7.x installed Oracle
8.1.7 friends are 97% linking error made very annoyed, this bag is the tube of this bug, is actually a file--env_ctx.mk, how to use, don't worry, a will tell you.

5. Prepare the user environment.
Groupadd dba
Groupadd Oinstall//optional
Useradd oracle-g oinstall-g dba
passwd Oracle

Enter the password for the new user.

Create the installation directory (for example,/usr/local/oracle)

Mkdir/usr/local/oracle

Mkdir/usr/local/oracle/product

mkdir/usr/local/oracle/product/8.1.7
Chown–r oracle.dba/usr/local/oracle
Chmod–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 on to the new Oracle user.
Edit the. Bash_profile in the/home/oracle directory and 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/classes12.zip: $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms /jlib: $ORACLE _home/network/jlib

display=192.168.0.125:0.0

# +--------------------------+

# | LINUX STUFF |

# +--------------------------+ Z

Export 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

Disk exit, recommended reboot, safekeeping.



5. Install Oracle 8.1.7

Start the installer,

/mnt/cdrom/runinstaller (if you are installing from CD)

The following installation screen appears:




Click Next to continue







Select the installation path and go directly to the next step. The next step is to let you add the installation group name-oinstall and then execute the orainstroot.sh with the root user, but I do not appear here, this is the one I have installed, and then uninstall, and that's it.





Choose to install the product, choose the first one, the following screen appears:







Select the type of installation, where you can choose a typical, next to the JDK home.







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







Next, the next step will be the installation progress, the installation has officially begun.







You can go to take a break, 15 minutes after coming back, this time you see should be the following, error!!!!







This is the fault of ENV_CTX.MK, new open a konsole window, the download env_ctx.mk copy to $oracle_home/ctx/lib/directory, and then retry.







The installation can be completed successfully. When you jump out of the window, run as root root.sh







Notice that there are two errors in the root.sh:



Rmf=/bin/rm-f

Amended to

rmf= "/bin/rm-f"

Ruid= '/usr/bin/id| $AWK-f (' {print $} ' | $AWK-f) ' {print $} '

Amended to

Ruid= '/usr/bin/id| $AWK-f (' {print $} ' | $AWK-f) ' {print $} '

or download template root.sh



Click OK when you are done. The Net8 configuration window appears:







Don't worry. Next, open a new Konsole port, the download of the ORACLE patch package 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 (Perhaps this name), about 5 minutes later, everything OK. Return to the installation screen, selection perform typical configuration, next,







When you create a database, the image above







Database creation completed.







The Oracle database installation process is complete.



You should be able to connect to the database by opening the Konsole window and running Sqlplus system/manager@oracle8. Running Oemapp Dbastudio, the following Oracle
DBA Studio. Everything ok!









Start and close scripts

1 startup script (Dbstart)

#! /bin/bash

su-oracle<

. /home/oracle/.bash_profile

Lsnrctl start

svrmgrl<

Connect Internal

Startup

Exit

EoE

Exit

Eof

2) Close script (dbstop)

#! /bin/bash

su-oracle<

. /home/oracle/.bash_profile

Lsnrctl stop

svrmgrl<

Connect Internal

Shutdown immediate

Exit

EoE

Exit

Eof



Then assign executable permissions and copy to/ETC/INIT.D



Chmod +x Dbstart

Chmod +x Dbstop



In making a connection



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



Ln–s/etc/init.d/dbstop/etc/rc0.d/k10dbstop



Oracle will be able to operate normally under Linux.





Note: During the installation process, it may be all right and the error in the document will not occur, so you can skip copying the new Env_ctx.mk file. This continues.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.