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

后端 未结 9 1867
春和景丽
春和景丽 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

    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
    

提交回复
热议问题