RedHat Linux7.2 Oracle 8i R2 (8.1.6) Enterprise version installation instance

Source: Internet
Author: User
Tags bz2 exit continue dba ftp connect oracle database linux
Oracle
• This example uses the software:
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 Download Address:
1, Linux:
2, Oracle:
Download Oracle 8i R2 (8.1.6) for Linux Enterprise Edition [275MB] to Oracle's home
Ftp://ftp.oracle.com/pub/www/otn/li...acle8161_tar.gz
3, jdk:jdk118_v3-glibc-2.1.3.tar.bz2
Download Address: http://www.blackdown.org or http://java.sun.com

• Start Installation:

1. Install Redhat First and install it by custom way.

2, install Oracle 8i.

[root@oradb/root]$ #以root方式登录 [root@oradb/root]$ groupadd oinstall #创建oinstall组 [root@oradb/root]$ groupadd DBA #创建dba组 [root@oradb/root]$ useradd oracle–g oinstall-g dba #在oinstall及dba组中建新用户oracle [root@oradb/root]$ passwd Oracle #修改oracle用户口令 [root@oradb/root]$ mkdir/home/oracle/data [root@oradb/root] $chown oracle.dba/home/or Acle/data [Root@oradb/root] $chmod 750/home/oracle/data

Note: Oinstall groups, DBA groups, and Oracle users are required for Oracle installations

Note: After the Oracle user is created, the Linux system automatically creates the/home/oracle directory under the/home directory for use by Oracle users.

Oracle users have all the permissions on this directory,

For convenience, this example installs the Oracle system in the Oracle User Data Directory

[root@oradb/root]$ cd/user/local #到/usr/local directory [root@oradb/local]$ ls-l #把j jdk118_v3-glibc-2.1.3. tar.bz2 files are copied to this directory [root@oradb/local]$ bunzip2-dc jdk118_v3-glibc-2.1.3.tar.bz2 [root@oradb/local]$ tar xvf jdk118_v3-g Libc-2.1.3.tar #在当前目录下解压 tar xvf jdk118_v3-glibc-2.1.3.tar ln-s/usr/local/jdk118_v3/usr/local/java [root@oradb/l ocal]$ ls-l #这时, Java directory should exist in/usr/local directory

Note: As long as the solution of the file into the/usr/local/java directory even if the installation of Java, Oracle can correctly identify the

  [root@oradb/oracle]$ exit #退出, re-logon with Oracle user [oracle@oradb/oracle]$ [oracle@oradb/oracle]$ ls-l] [oracle@oradb /oracle]$ tar zxvf oracle8161_tar.gz #解压oracle压缩包到当前目录 [oracle@oradb/oracle]$ ls-a #.bash_profile file is a hidden property [ora cle@oradb/oracle]$ more. Bash_profile #查看. bash_profile file content [oracle@oradb/oracle]$ vi. bash_profile #编辑. bash_prof Ile file and enter the following # Setup ORACLE environment Export oracle_base=/home/oracle/data/app/oracle export oracle_home= $ORACLE _h ome/product/8.1.6 Export Oracle_sid=orasah Export oracle_term=vt100 export oracle_owner=oracle8 export tns_admin= $ORAC Le_home/product/8.1.6/network/admin Export classpath= $ORACLE _home/jdbc/lib/classes111.zip # Set up the search Paths:pa Th=/usr/local/jre/bin:/usr/local/jdk/bin:/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 #退出 to log on as an Oracle user to make the setting environment effective [ORACLE@ORADB/ORACLe]$ [oracle@oradb/oracle]$ startx #启动X-windows, enable a terminal (Xterm), (graphics window) run in the terminal Runinstaller [oracle@oradb/oracle]$ CD Oracle8ir2 [oracle@oradb/orainst]$./runinstaller #执行oracle安装程序

At this point you can see the Oracle's new graphical OUI welcome and follow the prompts to continue the installation process:

Welcome: Press Next

File Locations: Press Next

UNIX Group Name: Nothing is added, press Next error, prompt to run with root permissions/home/oracle/data/app/oracle/product/8.1.6/orainstroot.sh

Back to the Installation Interface (graphics window) Press Retry button, you can continue to install the

Available Products: Select Oracle8i Enterprise Edition 8.1.6.1.0, press Next

Installation Types: Select Typical (540MB) and press Next when a progress ruler appears in the upper-right corner of the screen

Database Identification:
Global Database Name: Input Oracle8 (optionally)
SID: Preserve Orasah
Press Next

Database File Location: Any directory, this example is set to "/home/oracle/data/app/oracle", press Next, then the progress ruler in the upper right corner of the screen continues to move forward

Appear summary, to you want to install the product make a summary press install, appear install picture, wait ... You can see the windows at the bottom of the installation and other log file directory, available for later inquiries.

Pop Up the setup Privileges window, prompting that you need to run a script "/home/oracle/data/app/oracle/product/8.1.6/root.sh" with root before the installation continues.

Screen display:

Enter the full pathname to the local bin Directory:[/usr/local/bin]: Enter

The system starts to perform some actions, completes, Ctrl+alt+f7 presses returns OUI, presses OK.

The Database creation progress begins with the following 4 steps
Creating and Starting Oracle instance
Copying database files
Initializing database
Database Creation completed

The above 4 procedures are complete, and the Oracle Database Configuration Assistant Alert window pops up,

Hint: Database creation complete, tell you some basic information about the database

Global DATABSE Name:oracle8 Database system identifier (SID): Orasah SYS account Password:change_on_install system Accoun T Password:manager Press OK
End of installation, Exit Oui by exit, complete installation.
Exit the graphics window and return to

[oracle@oradb/oracle]$

At this point, the Oracle database has been installed successfully, and the database has been started to run, you can try

[Oracle@oradb/oracle] $sqlplus System/manager

The following information appears:

Sql*plus:release 8.1.6.0.0-production on Fri Oct 22:21:32 2002 (c) Copyright 1999 Oracle Corporation.  All rights reserved. Connected to:oracle8i Enterprise Edition release 8.1.6.1.0-production and the partitioning option Jserver release 8 .1.6.0.0-production sql>

To start a database:

[oracle@oradb/oracle]$ svrmgrl svrmgr> Connect internal Connected.  Svrmgr> Startup ORACLE instance started.  Displays the SGA status Database mounted.  Database opened. Svrmgr>

To close the database:

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

Start the Listener

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

Stop Listener

[oracle@oradb/oracle]$ lsnrctl lsnrctl> Stop lsnrctl> exit

Viewing 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.