• This example uses software: 1. Operating system: redhat Linux7.2 2, Database: Oracle 8i R2 (8.1.6) for Linux Enterprise Edition 3, Java Run Time Environment (JRE): JDK118_V3-GLIBC-2.TAR .bz2
• Software Download address: 1, Linux: 2, Oracle: Home Download Oracle 8i R2 (8.1.6) for Linux Enterprise Edition [275MB] ftp://ftp.oracle.com/pub/www/otn/li ... ACLE8161_TAR.GZ 3, JDK: JDK118_V3-GLIBC-2.1.3.tar.bz2 Downloads: http://www.blackdown.org or http://java.sun.com
• start installation:
1. First install the Redhat, install it as a Custom.
2, install Oracle 8i.
[root @ oradb / root] $
# Log in in root
[root @ ORADB / ROOT] $ GrouPadd OinsTall
# Create an Oinstall group
[root @ ORADB / ROOT] $ GROUPADD DBA
# Create a DBA group
[root @ ORADB / ROOT] $ uSERADD ORACLE -G OINSTALL -G DBA
# Building a new user Oracle in Oinstall and DBA group
[root @ oradb / root] $ passwd oracle
# Modify Oracle 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: Oinstall group, DBA group and Oracle users are Oracle installation needs
Note: After creating an Oracle user, the Linux system automatically creates the / home / oracle directory in the / home directory to use Oracle users,
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
# 到 / usr / local directory
[root @ ORADB / LOCAL] $ ls -l
# Copy J JDK118_V3-Glibc-2.1.3.tar.bz2 file to this directory
[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
# 解 压 in the current directory
TAR XVF JDK118_V3-glibc-2.1.3.tar
LN -S / usr / local / jdk118_v3 / usr / local / java
[root @ ORADB / LOCAL] $ ls -l
# At this time, there should be a Java directory in / usr / local directory.
Note: Just put the solution to the / usr / local / java directory, even if the Java installation is completed, oracle can correctly identify it.
[root @ ORADB / ORACLE] $ EXIT
# 退,, log in with Oracle users
[Oracle @ ORADB / ORACLE] $
[Oracle @ ORADB / ORACLE] $ ls -l [Oracle @ ORADB / ORACLE] $ TAR ZXVF ORACLE8161_TAR.GZ
# 解 Oracle compression package to the current directory
[Oracle @ ORADB / ORACLE] $ ls -a
# .bash_profile file is 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
# 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 path:
PATH = / 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
# 退,, log in with Oracle users to make the set environment
[Oracle @ ORADB / ORACLE] $
[Oracle @ ORADB / ORACLE] $ STARTX
# Enable a terminal (XTERM) after starting X-Windows.
(Graphic window) Running Runinstaller in the terminal
[Oracle @ ORADB / ORACLE] $ CD ORACLE8IR2
[Oracle @ ORADB / ORAINST] $ ./runinstaller
# Execute an Oracle installer
At this time, you can see the welcome screen of Oracle's new graphical OUI, follow the prompts to continue the installation process:
Welcome: Press Next
File Locations: Press Next
Unix group name: Nothing, press Next error, prompt to run with root privileges /Home/oracle/data/app/oracle/Product/8.1.6/orainstroot.sh
Back to the installation interface (graphics window) Press the RETRY button to continue installed,
Available Products: Select Oracle8i Enterprise Edition 8.1.6.1.0, press Next
Installation Types: Select Typical (540MB), press Next, at this time, a progress scale appears in the upper right corner of the screen.
Database Identification: Global Database Name: Enter Oracle8 (can be arbitrarily) SID: Keep ORASAH Press NextDatabase File Location: Any directory, this example is set to "/ home / oracle / data / app / oracle", press next, at this time, on the right Corner schedule continues to advance
Summary, a summary of the product you want to install, a summary of install, waiting ... You can see the Log file directory of the installation of the window bottom prompt, available for later query.
Popked the Setup Privileges window, prompt: Before the installation continues, you need to run a script "/home/oracle/data/app/racle/product/8.1.6/root.sh" in root,
screen display:
ENTER The Full Pathname of the Local Bin Directory: [/ usr / local / bin]: Enter
The system starts to perform some actions, the execution is complete, Ctrl Alt F7 is returned to OUI, press OK.
Database Creation Progress starts, gradually performing the following four processes Creating and Starting Oracle Instance Copying Database Files Initializing Database Database Creation Completed
The above four processes are completed, pop-up Oracle Database Configuration Assistant Alert window,
Tip: Database creation is complete, tell your database some basic information
Global Database 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 to complete the installation.
Exit the graphics window, return
[Oracle @ ORADB / ORACLE] $
At this time, the Oracle database has been successfully installed, and the database has been running, you can try it.
[Oracle @ ORADB / ORACLE] $ SQLPLUS SYSTEM / MANAGER
The following information appears:
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 PartInog 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.
Display SGA status Database mounted.
Database opened.
SVRMGR>
Close the database:
[Oracle @ ORADB / ORACLE] $ SVRMGRL
SVRMGR> Connect Internal
Connected.
SVRMGR> Shutdown
Database closed.
Database dismount.
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