ORACLE8.1.7 + TOMCAT3.2.1 installation manual

Source: Internet
Author: User
I. environment required software: 1, operating system: RedHatLinux6.22, database: Oracle8.1.63, Java operating environment: j2sdk-1_3_0_02-linux-rpm.bin4, TomCat: jakarta-tomcat-3.1.1.tar 2, before installation instructions: when partitioning, separate Oracle into one partition, and try to increase the partition size as much as possible. Now environment parameter settings

I. software required for the environment:
1. Operating System: RedHat Linux 6.2
2. Database: Oracle8.1.6
3. Java Runtime Environment: j2sdk-1_3_0_02-linux-rpm.bin
4, TomCat: jakarta-tomcat-3.1.1.tar

Ii. instructions before installation:
When partitioning, separate Oracle into one partition, and try to increase the partition size as much as possible. The current environment parameter setting directory is/oracle,
If any, change the environment parameter settings.
Log in as an Oracle user during installation. If the permission is involved during installation, upgrade to the root user. For example:
Unless otherwise specified, install it according to the default system configuration.
# Chown oracle. dba/oracle

3. Start installation:
1. Install RedHat 6.2 as a server.
(1) create a dba group
(2) create an oracle user
(3) Add the following lines to the/etc/profile file:
# Setup ORACLE environment
ORACLE_HOME =/oracle/OraHome1
Export ORACLE_HOME
ORACLE_SID = orcl
Export ORACLE_SID
ORACLE_TERM = xterm
Export ORACLE_TERM
ORACLE_OWNER = oracle8
Export ORACLE_OWNER
TNS_ADMIN =/oracle/config/8.1.6
Export TNS_ADMIN
CLASSPATH = $ ORACLE_HOME/jdbc/lib/classes111.zip
Export CLASSPATH
TOMCAT_HOME =/usr/local/tomcat
Export TOMCAT_HOME
JAVA_HOME =/usr/java/jdk1.3.0 _ 02
Export JAVA_HOME
CLASSPATH = $ CLASSPATH:/usr/java/jdk1.3.0 _ 02/lib:/usr/java/jdk1.3.0 _ 02/jre/lib
Export CLASSPATH

# Setup up the search paths:
PATH = $ PATH:/usr/local:/bin:/sbin
PATH = $ PATH:/usr/bin:/usr/sbin:/usr/local/bin: $ ORACLE_HOME/bin
PATH = $ PATH:/usr/java/jdk1.3.0 _ 02:/usr/java/jdk1.3.0 _ 02/bin:/usr/java/jdk1.3.0 _ 02/jre/bin
PATH = $ PATH:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin :.
Export PATH

2. Install the JAVA environment: (install as a root user)
Copy the file j2sdk-1_3_0_02-linux-rpm.bin to the directory/usr/local to run
(1),./j2sdk-1_3_0_02-linux-rpm.bin
(2), rpm-ivh j2sdk-1_3_0_02-linux-rpm
3. Install Oracle 8i R2 (8.1.6)
(1) copy the file to the/oracle directory and unpack it.
# Tar zxvf oracle81620.tar.gz
# Mkdir/oracle/database (as the database directory)
(2) run X-windows, enter the/oracle/Oracle8iR2 directory, and run the Oracle Installation program. ./RunInstaller
(3) Now you can see the JDK running graphical welcome interface. Follow the prompts to install the process:

Welcome:
Press next

File Locations:
The default value is/oracle/OraHome1. Press next

UNIX Group Name:
The default value is dba. Press next

The "oracle universal installer" interface is displayed.
"Please execute the/oracle/OraHome1/orainstRoot. sh script"

Available Products:
Select Oracel8i Enterprise Edition 8.1.6 and press next

Installation Types:
Select Custom. We recommend that you cancel Oracle Intermedia. Some technical documents indicate that the software is not running stably,
Select other options as needed.

Database Identification:
Global Database Name: Enter oracle8
SID: retain orcl
Press next

Database File Location:
/Oracle/database (select as needed)

Open a new console (character window)
Upgrade to the root permission and enter the/oracle/OraHome1 directory.
Run root. sh
Screen Display:
Enter the full pathname of the local bin directory: [/usr/local/bin]: Enter,
After the execution is complete, exit the interface, return to the previous interface, 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,
Configure the database as needed. If the database cannot be installed automatically, install it manually:
#/Oracle/OraHome1/bin/dbassist

End of Installation: press Exit to Exit OUI. Then, the Oracle database has been installed successfully.

(4) Oracle service start and stop:
Log on to the/Oracle/OraHome1 directory as an oracle user.
Svrmgrl
SVRMGRL> connect internal
SVRMGRL> startup (start the service)
SVRMGRL> shutdown IMMEDIATE (Stop Service)
SVRMGRL> quit

Start the listening service:
Lsnrctl
LSNRCTL> start (start Service)
LSNRCTL> stop (stop Service)
LSNRCTL> exit

4. install TOMCAT (3.1.1) (installed as a root user)
(1)、copy the jakarta-tomcat-3.1.1.tar on the optical disk to the/usr/local directory and unpack the package.
Change jakarta-tomcat to tomcat

(2) Tomcat and Apache connections
Modify/usr/local/tomcat/conf/tomcat. conf
Change Loadmodule Jserv_Module Libexec/mod_jserv.so:
Loadmodule jserv_Module/etc/httpd/modules

Copy mod_jserv.so on the CD to the/etc/httpd/modules directory.
# Cp/usr/local/tomcat/conf/tomcat. conf/etc/httpd/conf /.
# Vi/etc/httpd/conf/httpd. conf
Join
Include/etc/httpd/conf/tomcat. conf

(4) log out and log on again
Run the tomcat service:
/Usr/local/tomcat/bin/startup. sh (start the service)
/Usr/local/tomcat/bin/shutdown. sh (stop the service)
# Lynx http: // localhost/examples
If the jsp and servlet directories are displayed, Apache and Tomcat are connected successfully.

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.