Installation instance of Oracle 8.1.6 under Redhat 7.0

Source: Internet
Author: User
Tags exit dba log mkdir requires domain name oracle database linux
Oracle
1. The purpose of this article
Install Oracle 8I Release 2 Enterprise version database server under Redhat 7.0
2. Pre-installation software preparation
RedHat7.0 2-Piece installation CD
oracle8161_tar.gz Download Address:
Http://technet.oracle.com/software/products/oracle8i/software_index.htm
glibc2.1 version (GNU C Library) Download Address:
Http://ftp.valinux.com/pub/support/hjl/glibc/sdk/2.1/i386-glibc-2.1-linux.tar.gz
3. I use the machine: PIII733 with 128M RAM. Oracle recommends using a minimum of 128MB memory, preferably 256MB or above.
4. Start Installation
A Hard Disk partitions
1. Oralcel recommends that the swap partition be 400M or twice times the physical memory of the system currently in use, but the bigger the better.
2. Partitions are delineated with two installation points,/u01 (for installing Oralce software) and/u02 (for storing database data),/U01 partition size,
Typical installation 750MB
Minimum installation 650MB
Custom Install 1000MB
These two installation points can be established in the "/" directory or other directory at installation time after the system is installed or completed
B. Installation must have: (choose Full Installation when installing RedHat7.0)
1.X Windows
2.Development Packages (C,GCC, etc.)
C. Decompression oracle8161_tar.gz, log in as root account, execute:
[ROOT@RH70/ROOT]CD/USR/SRC
[Root@rh70 Src]tar ZXVF oracle8161_tar.gz
Generates a ORALCE8IR2 directory under the/usr/src/directory, containing the files after the package is extracted
D. Installation of GLIBC 2.1 packs
RedHat7.0 installed is the glibc2.2. Oracle 8I cannot compile with glibc 2.2, and requires a GLIBC 2.1 SDK.
[ROOT@RH70/ROOT]CD/
[Root@rh70/]tar zxvf/usr/src/i386-glibc-2.1-linux.tar.gz
Hide the gcc,cc,ld in the/usr/bin directory to avoid being used by Oracle Installer
[Root@rh70/]cd/usr/bin
[Root@rh70 Bin]mkdir saved
[Root@rh70 bin]mv gcc cc LD saved
[Root@rh70 bin]ln-s/USR/I386-GLIBC-2.1-LINUX/BIN/I386-GLIBC21-LINUX-GCC gcc
[Root@rh70 bin]ln-s gcc cc
[Root@rh70 bin]ln-s/usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-ld LD
Hide libc.so,libdl.so,libm.so and libpthread.so files in the/usr/lib directory to avoid being used by Oracle Installer
[Root@rh70 BIN]CD. /lib
[Root@rh70 Lib]mkdir saved
[Root@rh70 lib]mv libc.so libdl.so libm.so libpthread.so
[Root@rh70 lib]mv libc.a libdl.a libm.a libpthread.a
E. Creating Oracle Accounts and Groups
Log in as root account, open a terminal window, create Oinstall and DBA Group
[Root@rh70/root]groupadd Oinstall
[Root@rh70/root]groupadd DBA
Create an Oracle account with Oinstall as primary group, DBA as secondary group
[Root@rh70/root]useradd oracle-g Oinstall-g dba
[ROOT@RH70/ROOT]PASSWD Oracle (set the password for Oralce account)
F. Create Oracle Software installation directory
[root@rh70/root]mkdir/u01/app/oracle/product/8.1.6
Modify the owning group and owner of the created directory
[Root@rh70/root]chown oracle:dba/u01/app/oracle/product/8.1.6
[Root@rh70/root]chown oracle:dba/u02
G. Setting up an Oracle user environment
Login with Oracle account to open terminal window
Using the Umask command to see if Umask is 022, if not 022, you need to add the instruction Umask 022 to the/home/oracle/.bash_profile file.
[Oracle@rh70 Oracle]umask
Using a text editor to open/home/oracle/.bash_profile, add the following settings for the environment variable:
#ORA_NLS =/u01/app/oracle/product/8.1.6/ocommon/nls/admin/data
#export Ora_nls
#NLS_LANG = "Simplified Chinese"
#export Nls_lang
Oracle_base=/u01/app/oracle
Export Oracle_base
oracle_home=/u01/app/oracle/product/8.1.6
Export Oracl_home
ORACLE_SID=ORA1 (custom, preferably not more than four characters)
Export Oracle_sid
Classpath=/u01/app/oracle/product/8.1.6/jdbc/lib/calsses111.zip
Export CLASSPATH
Ld_library_path=/u01/app/oracle/product/8.1.6/lib
Export Ld_library_path
Username= "Oracle"
Path= $PATH: $ORACLE _home: $ORACLE _home/bin: $ORACLE _home/dbs
Path= $PATH:/bin:/usr/bin:/usr/sbin:/usr/local:/usr/local/bin:/usr/bin/x11:/usr/x11r6/bin
Log out, log in again with the Oracle account, open the Terminal window, type the ENV directive to view the environment variables just set up.
[Oracle@rh70 oracle]env
H. Installing Oracle 8i Database software
1. Login with Oracle account, enter Xwindows, open terminal window
2.[oracle@rh70 Oracle]cd/usr/src/oracle8ir2
3.[oracle@rh70 Oralcle8ir2]./runinstaller
4. Check the source path for the Java-based Oracle Installer installation interface that appears:
/usr/src/oracle8ir2/stage/products.jar,
Destination path is set for the $ORACLE_HOME environment variable, click Next.
5. In the UNIX Group name window, type "Oinstall" and click Next;
6. A window pops up and requires/usr/app/oracle/product/8.1.6/orainstroot.sh to run as root.
Open a new terminal window
[Oracle@rh70 oralcle8ir2]su root (enter root password)
[Oracle@rh70 oralcle8ir2]cd $ORACLE _home
[Oracle@rh70 8.1.6]sh orainstroot.sh
Return to the window just popped up and click Retry.
7. Select "Oracle8i Enterprise edition8.1.6.1.0" on the appearing "Available Products" window and click Next.
8. Select Typical on the next screen
9. Prompt for the global database name, enter the name of the databases can be combined with the full domain name, such as Oradb.xxx.com,
Database name length does not exceed 8 characters
10. Verify Oracle_sid is correct, click Next
11. Prompt input DB files localtion, enter defined/u02
12. Finally on the Summary window, click Install
13. After the file is copied and joined, pop-up a request to run root.sh window
14. Return to the terminal window just opened with the root account
[Oracle@rh70 8.1.6]cd $ORACLE _home
[Oracle@rh70 8.1.6]sh root.sh
Press the Enten key when asking for local bin directory
[Oracle@rh70 8.1.6]exit exit root permission
[Oracle@rh70 8.1.6]exit end Terminal window
15. Return to request to run root.sh on the window, click OK
16.Oracle Net8 Configuration and Oracle database Configuration assistants boot, install NET8, and create databases.
At the end of Oracle database Configuration assistants, click OK on the pop-up Completion Windows creation window
18. On the end of installation screen, click Exit
Now all the Oralce 8i enterprise are installed!
You can then use the Oracle database management tools SVRMGRL, Sql*plus to test the installed database!




Related Article

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.