Oracle8i installation steps in linux9

Source: Internet
Author: User
Tags dba mkdir root directory linux
Oracle This installation step is through my days of practice and reference to other users of the document synthesis, only for the Redhat LINUX 9.0 installed Oracle 8.1.7. I would like to express my heartfelt thanks to those netizens.
Step 1: Prepare the Software
Download Jdk,sun Web site on the 1.4,1.3 can be.
Download Oracle Patches: glibc-2.1.3-stubs.tar.gz
Download glibc-2.1:i386.glibc-2.1-linux.tar.gz
Download binutils:binutils-2.10.91.0.2-3.i386.rpm

The above packages please do their own search, I do not provide

Step 2: Install glibc2.1
Copy the i386.glibc-2.1-linux.tar.gz to the root directory
Using the root user
Tar zxvf i386.glibc-2.1-linux.tar.gz

Step 3: Hide the file
Using the root user
Cd/usr/bin
MkDir saved
MV GCC cc LD saved
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

Cd/usr/lib
MkDir saved
MV libc.so libdl.so libm.so libpthread.so saved
MV LIBC.A LIBDL.A Libm.a libpthread.a saved

Step 4: Install the JDK
Install JDK, do not ask me how to install
Install using root user
Cd/usr/local
Ln-s/usr/java/j2sdk-1.2.1_0n Java


Step 5: Install Binutils
RPM-UVH--force--nodeps binutils-2.10.91.0.2-3.i386.rpm


Step 6: Create Oracle Users and Groups
Groupadd Oinstall
Groupadd dba
Useradd oracle-g oinstall-g dba
passwd Oracle
Chown-r oracle.dba/oracle
chmod 750/oracle


Step 7: Extract Oracle
Generates a DISK1 directory (recommended for Oracle users)

Step 8: Set the user environment
Change the Oracle user's. Bash_profile to the following content
#. Bash_profile

# get the aliases and functions
If [f ~/.BASHRC]; Then
. ~/.bashrc
Fi

# User specific environment and startup programs

Path= $PATH: $HOME/bin

Export PATH
Unset USERNAME
# +------------------------------------------------------------+
# | FILE:. Bash_profile |
# +------------------------------------------------------------+

Umask 022
Editor=vi; Export EDITOR
Term=xterm; Export TERM
tmpdir=/tmp; Export Tmpdir

# +--------------------------+
# | SETUP ORACLE Environment |
# +--------------------------+

Export ORACLE_SID=ORCL
Export Oracle_base=/oracle
Export Oracle_home= $ORACLE _base/product/8.1.7

Export Ld_library_path= $ORACLE _home/lib:/lib:/usr/lib:/usr/local/lib
Export tns_admin= $ORACLE _home/network/admin

Export Nls_lang=american_america. We8iso8859p1
Export ora_nls33= $ORACLE _home/ocommon/nls/admin/data

Export Oracle_owner=oracle
Export Oracle_term=xterm

#export Ldemulation=elf_i386_glibc21
Export gcc_exec_prefix=/usr/i386-glibc21-linux/lib/gcc-lib/
# +--------------------------+
# | LINUX STUFF |
# +--------------------------+

Export ld_assume_kernel=2.4
#source/usr/i386-glibc2.1-linux/bin/i386-glibc21-linux-env.sh

# +--------------------------+
# | SETUP SEARCH PATH |
# +--------------------------+

Path= $PATH: $ORACLE _home/bin:/opt/bin:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/x11r6/bin:/usr/local/java/bin :.
Export PATH
# +--------------------------+
# | SETUP JAVA Environment |
# +--------------------------+

Export Java_home=/usr/local/java

Export classpath=/oracle/product/8.1.7/jdbc/lib/classes12.zip:/oracle/product/8.1.7/jre:/oracle/product/8.1.7/ Jlib:/oracle/product/8.1.7/rdbms/jlib:/oracle/product/8.1.7/network/jlib:.

# +-------------+
# | "Greetings" |
# +-------------+
echo ". Bash_profile executed"

Run this file: source. bash_profile, or restart the user
Step 9: Install Oracle
Log on with an Oracle user
Export lang=en (to avoid garbled)
Runinstaller
When an Oracle patch is installed when an error occurs, a certain Oracle user installs the patch, or the installation process is a bit uncomfortable.
The installation process no longer describes
Step 10: Restore the System
RPM e. Force Nodeps bintuils-2.10.0.18
RPM IVH Force binutils High version
Cd/usr/bin
RM? f GCC CC LD
mv./saved/*.
RmDir daved
Cd/usr/lib
mv./saved/*.
RmDir daved

Step 11: Set up auto start, modify Oratab file
root# Vi/etc/oratab
Change the last N to Y
Simple service startup script:
Root#vi/etc/rc.local
Add the following:
Su? Oracle? C ' lsnrctl start '
Su? Oracle? C ' Dbstart '

Step 11: Set automatic shutdown
I don't know where to put the script to automatically shut down the database script when the system shuts down.

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.