How to correctly set the ORACLE_HOME variable on Ubuntu 9.x?

后端 未结 9 1865
春和景丽
春和景丽 2020-12-23 13:34

I have the same problem as listed here: How to recover or change Oracle sysdba password although I did not lose the password, I entered it twice in the configure script orig

相关标签:
9条回答
  • 2020-12-23 14:10

    Usually the msb file not found problems are the result of an environment setting problem, but in your case I'm a little suspicious of the installation (I've never used the apt-get + configure method).

    To check the sanity of the installation:

    • ORACLE_HOME should be set to a directory path one level above the bin directory where sqlplus executable is found.
    • There should some .msb files under $ORACLE_HOME/sqlplus/mesg
    • There should be hundreds (not sure of the number with XE) of .msb files under $ORACLE_HOME (try find $ORACLE_HOME -name "*.msb" -print to show them)
    • Your PATH should include $ORACLE_HOME/bin.
    • All files under ORACLE_HOME should be owned by user:oracle group:dba.
    0 讨论(0)
  • 2020-12-23 14:10

    After installing weblogic and forms server on a Linux machine we met some problems initializing sqlplus and tnsping. We altered the bash_profile in a way that the forms_home acts as the oracle home. It works fine, both commands (sqlplus and tnsping) are executable for user oracle

    # .bash_profile
    
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
        . ~/.bashrc
    fi
    
    # User specific environment and startup programs
    
    PATH=$PATH:$HOME/bin
    
    export JAVA_HOME=/mnt/software/java/jdk1.7.0_71
    export ORACLE_HOME=/oracle/Middleware/Oracle_FRHome1
    export PATH=$PATH:$JAVA_HOME/bin:$ORACLE_HOME/bin
    export LD_LIBRARY_PATH=/oracle/Middleware/Oracle_FRHome1/lib
    export FORMS_PATH=$FORMS_PATH:/oracle/Middleware/Oracle_FRHome1/forms:/oracle/Middleware/asinst_1/FormsComponent/forms:/appl/myapp:/home/oracle/myapp
    
    0 讨论(0)
  • 2020-12-23 14:13

    You have to set LANG as well, look for files named 'sp1*.msb', and set for instance export LANG=us if you find a file name sp1us.msb. The error message could sure be better :)

    0 讨论(0)
  • 2020-12-23 14:18

    Had the same problem,

    All i had to do whas set the oracle shell variable:

    . /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
    

    Sorterd!

    0 讨论(0)
  • 2020-12-23 14:24

    Once I also got that same type of error.

    I.E:

    C:\oracle\product\10.2.0\db_2>SQLPLUS SYS AS SYSDBA
    Error 6 initializing SQL*Plus
    Message file sp1<lang>.msb not found
    SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
    

    This error is occurring as the home path is not correctly set. To rectify this, if you are using Windows, run the below query:

    C:\oracle\product\10.2.0\db_2>SET ORACLE_HOME=C:\oracle\product\10.2.0\db_2
    C:\oracle\product\10.2.0\db_2>SQLPLUS SYS AS SYSDBA
    
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Apr 16 13:17:42 2013
    
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    

    Or if you are using Linux, then replace set with export for the above command like so:

    C:\oracle\product\10.2.0\db_2>EXPORT ORACLE_HOME='C:\oracle\product\10.2.0\db_2'
    C:\oracle\product\10.2.0\db_2>SQLPLUS SYS AS SYSDBA
    
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Apr 16 13:17:42 2013
    
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    
    0 讨论(0)
  • 2020-12-23 14:25
    set <ORACLE_HOME> path variable
    

    example

    path ORACLE_HOME
    

    value is C:\oraclexe\app\oracle\product\10.2.0\server

    enter image description here

    0 讨论(0)
提交回复
热议问题