Linux /Oracle : ORA-01034: ORACLE not available

来源:互联网 发布:mac拆卸软件 编辑:程序博客网 时间:2024/06/08 15:54

 

SQL> shutdown
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
SQL> exit
已断开连接
[oracle@bogon bin]$ vi .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
export ORACLE_BASE=/home/oracle/app
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 #之前这里多了一个 /符号
export ORACLE_SID=NEWDB
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"  #第三段和数据库端字符集一致
PATH=$ORACLE_HOME/bin:$PATH
DISPLAY=192.168.1.4:0.0

export ORACLE_BASE ORACLE_HOME ORACLE_SID NLS_LANG PATH DISPLAY

dbhome_1 后面多来/
去掉这个"/"后,运行就正常了。

[oracle@bogon bin]$ ./sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期三 9月 21 22:44:22 2011

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL> connect /as sysdba
已连接。
SQL> shutdown

^CORA-01013: 用户请求取消当前的操作

SQL> shutdown
^CORA-01013: 用户请求取消当前的操作

SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> exit

原创粉丝点击