Oracle and Tomcat installation ____oracle

Source: Internet
Author: User
Tags dba unpack

First, the environment needs the software:
1, operating system: RedHat Linux 6.2
2. Database: Oracle8.1.6
3, Java Operating environment: J2sdk-1_3_0_02-linux-rpm.bin
4, Tomcat:jakarta-tomcat-3.1.1.tar

Second, the installation before the description:
Divide the Oracle into a separate area on the partition, and try to be as big as possible. Now the Environment parameter set directory is/oracle,
If you have any changes, please change the settings of the environment parameters.
Log in as an Oracle user during installation, such as a problem involving permissions during the installation process, upgrade to root user;
Without special instructions, install according to the default configuration of the system.
# chown Oracle.dba/oracle

Third, start installation:
1, install Redhat 6.2, install in server way.
(1), build a DBA group
(2), build an Oracle User
(3), add the following line in 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 Java Environment: (Install as root user)
Copy file J2sdk-1_3_0_02-linux-rpm.bin to directory/usr/local 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) (Oracle User
(1), copy the file to the/oracle directory will unpack the package
# tar ZXVF oracle8161_tar.gz
# mkdir/oracle/database (as database directory)
(2), run X-windows, enter the/oracle/oracle8ir2 directory, perform the Oracle Setup program .../runinstaller
(3) You can see the graphical welcome interface that the JDK is running, and follow the prompts to install the process:

Welcome:
Press Next

File Locations:
Default is/oracle/orahome1, press Next

UNIX Group Name:
Default to DBA, press Next

"Oracle Universal Installer" interface pops up
"Please execute the/oracle/orahome1/orainstroot.sh script"

Available Products:
Select oracel8i Enterprise Edition 8.1.6, press Next

Installation Types:
Choose Custom, the proposed Oracle intermedia cancellation, some technical information that the software is not very stable operation,
Other depending on the desired choice.

Database Identification:
Global Database Name: Input Oracle8
SID: Preserve ORCL
Press Next

Database File Location:
/oracle/database (choose according to your own circumstances)

Open a new console (character window)
Upgrade to root, enter/oracle/orahome1 directory
Run root.sh
Screen display:
Enter the full pathname to the local bin Directory:[/usr/local/bin]: Enter,
Execution completed, exit this interface, return to the previous interface, press 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 completed, the Oracle Database Configuration Assistant Alert window pops up,
Configure the database to suit your needs. If the database cannot be installed automatically, install it manually:
#/oracle/orahome1/bin/dbassist

End of installation, Exit Oui by exit, at which point the Oracle database has been successfully installed.

(4), the start and stop of Oracle service:
Login to the/ORACLE/ORAHOME1 directory with Oracle users
Svrmgrl
Svrmgrl>connect Internal
Svrmgrl>startup (Start 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 root)
(1), copy the Jakarta-tomcat-3.1.1.tar on the CD to the/usr/local directory and unpack the package.
Rename Jakarta-tomcat to Tomcat

(2), Tomcat and Apache connections
Modify/usr/local/tomcat/conf/tomcat.conf
Replace the Loadmodule Jserv_module libexec/mod_jserv.so with the following:
Loadmodule Jserv_module/etc/httpd/modules

Copy the mod_jserv.so on the disc 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), Exit and login again
To run the Tomcat service:
/usr/local/tomcat/bin/startup.sh (Start service)
/usr/local/tomcat/bin/shutdown.sh (stop service)
# Lynx Http://localhost/examples
If the JSP, servlet directory is displayed, Apache and Tomcat are connected successfully

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.