How To Install Multiple Oracle databases on one host?

Source: Internet
Author: User

This article introduces how to install two versions of Oracle Database (oracle 10g/11g) on a host.
 
The system environment uses ol5.8 and uses oracle-validate-rpm to automatically configure the oracle system environment.
 
The installation path needs to be created manually. Here, you need to prepare two paths ($ oracle_base)
 
Ora11g:
Create an ORACLE software path
Mkdir-p/u01/app/oracle/product/11.2.0/db_1
Chown oracle: dba-R/u01
Chmod 744-R/u01
 
Set SHELL parameters for oracle users:
Vi/home/oracle/. bash_profile
ORACLE_BASE =/u01/app/oracle; export ORACLE_BASE

ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID = ora11g; export ORACLE_SID
ORACLE_TERM = vt100; export ORACLE_TERM
TNS_ADMIN = $ ORACLE_HOME/network/admin; export TNS_ADMIN
NLS_LANG = american_america.zhs16gbk; export NLS_LANG
ORA_NLS33 = $ ORACLE_HOME/ocommon/nls/admin/data; export ORA_NLS33
LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib; export LD_LIBRARY_PATH
LIBPATH = $ ORACLE_HOME/lib: $ ORACLE_HOME/ctx/lib; export LIBPATH
ORA_DB = $ ORACLE_HOME/dbs; export ORA_DB
CLASSPATH = $ ORACLE_HOME/JRE/lib: $ ORACLE_HOME/JRE/lib/rt. jar: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib; export CLASSPATH
PATH = $ ORA_CRS_HOME/bin: $ ORACLE_HOME/bin: $ PATH; export PATH
 
You can use the same dba oinstall group.

Ora10:
 
User: oracle10g
 
Useradd-d/home/oracle10g-u 54322-g oinstall-G dba oracle10g
 
Create an ORACLE software path:
Mkdir-p/u02/app/oracle/product/10.2.0/db_1
Chown oracle: dba-R/u02
Chmod 744-R/u02
 
Set SHELL parameters for oracle users:
Vi/home/oracle10g/. bash_profile
ORACLE_BASE =/u02/app/oracle; export ORACLE_BASE

ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID = ora10g; export ORACLE_SID
ORACLE_TERM = vt100; export ORACLE_TERM
TNS_ADMIN = $ ORACLE_HOME/network/admin; export TNS_ADMIN
NLS_LANG = american_america.zhs16gbk; export NLS_LANG
ORA_NLS33 = $ ORACLE_HOME/ocommon/nls/admin/data; export ORA_NLS33
LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib; export LD_LIBRARY_PATH
LIBPATH = $ ORACLE_HOME/lib: $ ORACLE_HOME/ctx/lib; export LIBPATH
ORA_DB = $ ORACLE_HOME/dbs; export ORA_DB
CLASSPATH = $ ORACLE_HOME/JRE/lib: $ ORACLE_HOME/JRE/lib/rt. jar: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib; export CLASSPATH
PATH = $ ORA_CRS_HOME/bin: $ ORACLE_HOME/bin: $ PATH; export PATH

  • 1
  • 2
  • Next Page

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.