Oracle 8i R2 (8.1.6) Enterprise Edition installation instance on Redhat linux7.2

Source: Internet
Author: User

• Software used in this example:
1. Operating System: RedHat Linux7.2
2. Database: Oracle 8i R2 (8.1.6) for Linux Enterprise Edition
3. Java Runtime Environment (JRE): jdk118_v3-glibc-2.1.3.tar.bz2

• Software:
1. Linux:
2. Oracle:
Download Oracle 8i R2 (8.1.6) for Linux Enterprise Edition [275 MB] from your Oracle hometown
Ftp://ftp.oracle.com/pub/www/otn/li...acle8161_tar.gz
3. JDK: jdk118_v3-glibc-2.1.3.tar.bz2
: Http://www.blackdown.org or http://java.sun.com

• Start installation:

1. First install RedHat and install it in M mode.

2. Install Oracle 8i.

[Root @ oradb/root] $ # log on to [root @ oradb/root] $ groupadd oinstall # create an oinstall group [root @ oradb/root] $ groupadd DBA # create DBA group [root @ oradb/root] $ useradd Oracle-G oinstall-g dba # create a user oracle [root @ oradb/root] $ passwd Oracle # modify Oracle in the oinstall and DBA groups user Password [root @ oradb/root] $ mkdir/home/Oracle/data [root @ oradb/root] $ chown oracle. DBA/home/Oracle/data [root @ oradb/root] $ chmod 750/home/Oracle/Data

Note: The oinstall group, dba group, and oracle users are required for oracle installation.

Note: After an oracle user is created, the linux system automatically creates the/home/oracle directory under the/home directory for oracle users to use,

Oracle users have all permissions for this directory,

For convenience, this example installs the oracle System in the oracle user data directory.

[Root @ oradb/root] $ CD/user/local # To the/usr/local directory [root @ oradb/local] $ LS-L # copy J jdk118_v3-glibc-2.1.3.tar.bz2 files to this directory under [root @ oradb/local] $ bunzip2-DC jdk118_v3-glibc-2.1.3.tar.bz2 [root @ oradb/local] $ tar xvf jdk118_v3-glibc-2.1.3.tar # unzip tar xvf jdk118_v3-glibc-2.1.3.tar ln-S/usr/local under the current directory /jdk118_v3/usr/local/Java [root @ oradb/local] $ LS-L # in this case, the/usr/local directory should contain the Java directory.

Note: As long as the extracted file is placed in the/usr/local/java directory, even if java installation is completed, oracle can correctly identify it.

[Root @ oradb/Oracle] $ exit # exit, log on to [Oracle @ oradb/Oracle] $ [Oracle @ oradb/Oracle] $ LS-L [Oracle @ oradb/Oracle] $ tar zxvf oracle81620.tar.gz # decompress the Oracle compressed package current Directory [Oracle @ oradb/Oracle] $ LS-#. the bash_profile file is a hidden attribute [Oracle @ oradb/Oracle] $ more. bash_profile # view. bash_profile file content [Oracle @ oradb/Oracle] $ VI. bash_profile # edit. bash_profile file, enter the following content # setup Oracle environment export oracle_base =/home/Oracle/data/APP/Oracle export ORACLE_HOME = $ ORACLE_HOME/product/8.1.6 export oracle_sid = orasah export oracle_term = VT100 export oracle_owner = oracle8 export tns_admin = $ ORACLE_HOME/product/8.1.6/Network/admin export classpath = $ ORACLE_HOME/jdbc/lib/classes111.zip # Set up the search paths: path =/usr/local/JRE/bin:/usr/local/JDK/bin:/sbin Path = $ path:/usr/bin:/usr/sbin: /usr/local/bin: $ ORACLE_HOME/bin Path = $ path:/usr/local/sbin:/usr/bin/X11:/usr/x11r6/bin :. export path [Oracle @ oradb/Oracle] $ exit # log out and log on again as an oracle user, to make the set environment effective [Oracle @ oradb/Oracle] $ [Oracle @ oradb/Oracle] $ startx # enable a terminal (xterm) after starting X-Windows ), (Graphic window) Run runinstaller [Oracle @ oradb/Oracle] $ CD oracle8ir2 [Oracle @ oradb/orainst] $. /runinstaller # Run the Oracle installer

Now you can see the welcome image of oracle's new graphical OUI and follow the prompts to continue the installation process:

Welcome: Press next

File Locations: Press next

UNIX Group Name: no additional information. If an error occurs when you press next, the system prompts you to run/home/oracle/data/app/oracle/product/8.1.6/orainstRoot. sh with the root permission.

Return to the installation page (Graphic window) and press Retry to continue the installation,

Available Products: Select Oracle8i Enterprise Edition 8.1.6.1.0 and press next

Installation Types: select Typical (540 MB) and press next. A progress ruler is displayed in the upper-right corner of the screen.

Database Identification:
Global Database Name: Enter oracle8 (optional)
SID: retain orasah
Press next

Database File Location: any directory. In this example, set it to "/home/oracle/data/app/oracle" and press Next. Then, the Progress ruler in the upper-right corner of the screen continues to move forward.

The following is a Summary of the product you want to Install. Press Install. The Install screen appears. Wait... you can see the installation and other log file directories prompted at the bottom of the window for future query.

The Setup Privileges window pops up, prompting you to run a script "/home/oracle/data/app/oracle/product/8.1.6/root. sh" as root before the installation continues ",

Screen Display:

Enter the full pathname of the local bin directory: [/usr/local/bin]: Enter

The system starts to execute some actions. After the execution is completed, press CTRL + ALT + F7 to return to OUI and press OK.

Starting from Database Creation Progress, perform the following four steps
Creating and starting Oracle instance
Copying database files
Initializing database
Database creation completed

The preceding four processes are completed. The Oracle Database Configuration Assistant Alert window is displayed,

Tip: After the database is created, it will show you some basic information about the database.

Global databse name: oracle8 database system identifier (SID): orasah SYS account password: change_on_install SYSTEM account password: manager press OK

End of Installation: press Exit to Exit OUI and complete the Installation.

Exit the graph window and return

  [oracle@oradb /oracle]$

At this time, the oracle database has been installed successfully and the database has been started and run. You can try it.

  [oracle@oradb /oracle]$sqlplus system/manager

The following information is displayed:

  SQL*Plus: Release 8.1.6.0.0 - Production on Fri Oct 26 22:21:32 2002  (c) Copyright 1999 Oracle Corporation. ALL rights reserved.  Connected to:  Oracle8i Enterprise Edition Release 8.1.6.1.0 - Production  With the Partitioning option  JServer Release 8.1.6.0.0 - Production  SQL> 

Start the database:

[Oracle @ oradb/oracle] $ svrmgrl SVRMGR> connect internal Connected. SVRMGR> startup ORACLE instance started. displays the SGA status Database mounted. Database opened. SVRMGR>

Close the database:

  [oracle@oradb /oracle]$ svrmgrl  SVRMGR> connect internal  Connected.  SVRMGR> shutdown  Database closed.  Database dismounted.  ORACLE instance shut down.  SVRMGR>

Start listener

  [oracle@oradb /oracle]$ lsnrctl  LSNRCTL> start  LSNRCTL> exit

Stop listener

  [oracle@oradb /oracle]$ lsnrctl  LSNRCTL> stop  LSNRCTL> exit

View listener status

  [oracle@oradb /oracle]$ lsnrctl  LSNRCTL> status  LSNRCTL> exit
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.