How To Install Multiple oracle databases on one host

Source: Internet
Author: User

How to install multiple versions of oracle Database on one host this article takes installing two versions of oracle Database on one host (oracle 10g/11g) as an example to give a brief introduction. The system environment uses ol5.8 and uses oracle-validate-rpm to automatically configure the oracle system environment. The installation path must be manually created. Here, two paths ($ oracle_base) ora11g must be prepared: Create the ORACLE software path mkdir-p/u01/app/oracle/product/11.2.0/db_1chown oracle: dba-R/u01chmod 744-R/u01 set oracle User SHELL parameters: vi/home/oracle /. export =/u01/app/oracle; export ORACLE_BASE ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME ORACLE_SID = empty; export ORACLE_SID ORACLE_TERM = vt100; export ORACLE_TERM TNS_ADMIN = $ ORACLE_HO ME/network/admin; export TNS_ADMIN NLS_LANG = export; 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 can use the same dba oinstall group. Ora10: user: oracle10guseradd-d/home/oracle10g-u 54322-g oinstall-G dba oracle10g create ORACLE software path: mkdir-p/u02/app/oracle/product/10.2.0/db_1chown oracle: dba-R/u02chmod 744-R/u02 set oracle User SHELL parameters: vi/home/oracle10g /. bash_profileORACLE_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 = vt10 0; 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_HOM E/JRE/lib/rt. jar: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib; export classpath path = $ ORA_CRS_HOME/bin: $ ORACLE_HOME/bin: $ PATH; export PATH installation problems encountered and solutions; (a) oracle 10201 is not authenticated on ol5.x and rhel5.x, so in Linux install Oracle Reports Checking operating system version must be redhat-3, SuSE-9, redhat-4, UnitedLin ..... In the process of installing oralce in Linux, if the Linux release version is not the recommended version of oracle, the following error may be reported, causing runInstaller to fail: Checking operating system version: must be redhat-3, suSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2Failed <can solve this problem in either of the following ways: 1. Modify the Linux release tag, such as when installing oracle on a redhat-5, change the file '/etc/redhat-release' from Red Hat Enterprise Linux Server release 5 (Tikanga) to Red Hat Enterprise Linux Server release 4 (Tikanga) 2. run The-ignoreSysPreReqs parameter is added to the Installer, for example,./runInstaller-ignoreSysPreReqs. However, this method is not recommended because it may miss the detection of Kernel Parameters of the operating system and required packages of oracle. (B) oraInventory Permission denied the following error is often encountered during Oracle database and application installation: All installer requirements met. you do not have sufficient permissions to access the inventory '/u01/app/oracle/oraInventory '. installation cannot continue. make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied this is because different users are used to install multiple versions of database or application software on the same machine. By default, Oracle uses/etc/oraInst. loc File The parameter in is used as the oraInventory directory. If a new user does not have the correct permissions, the preceding error occurs. To solve this problem, you can specify parameters for runInstaller during installation and use different oraInventory directories.. /RunInstaller-invPtrLoc/u02/app/oracle/oraInst. loc --------/* '/u02/app/oracle/oraInst. loc 'oracle will automatically create this directory */(c) when installing the second data set (I first installed oracle11g and then installed oracle10g), it seems that I only need to execute a script, however, no problems were found during subsequent detection. 1. ORA-27125: unable to create shared memory segment solution: the ORA-27125 error on the Oracle document is described as: ORA-27125: unable to create shared memory segment Cause: shmget () call failed Action: contact Oracle support. The problem found to be related to hugetbl on linux. The solution is also simple. First, check the oracle user group information:

[oracle10g@lixora ~]$ id oracle   uid=54322(oracle) gid=502(oinstall) groups=502(oinstall),501(dba)    [oracle@yans1 ~]$ more /proc/sys/vm/hugetlb_shm_group    0
Run the following command as root to add the dba group to the system kernel: # echo 54322>/proc/sys/vm/hugetlb_shm_group 2. "Last login: Fri Jun 28 11:40:55 2013 from 192.168.1.2
[root@lixora ~]# /u02/app/oracle/product/10.2.0/db_1/root.sh
Running Oracle10 root. sh script... the following environment variables are set as: ORACLE_OWNER = oracle10g ORACLE_HOME =/u02/app/oracle/product/10.2.0/db_1Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in/usr/local/bin. overwrite it? (Y/n) Select the default value here.

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.