安装都是顺利的,监听也都是正常启动,但连数据库就报错,求助各位帮忙!
报错信息:
ORA-01034:ORACLE not available
ORA-27101:shared memory realm does not exist

解决方案 »

  1.   

    呵呵,这个很明显你的windows下服务是启动了,但是数据库实例并没有启动的,呵呵。此时需要使用操作系统认证模式进去,将数据库实例启动起来才可以,另外本机直接链接默认情况下不需要监听。SQL> conn scott/a
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    警告: 您不再连接到 ORACLE。
    SQL> startup;
    ORACLE 例程已经启动。Total System Global Area  612368384 bytes
    Fixed Size                  1250428 bytes
    Variable Size             205523844 bytes
    Database Buffers          398458880 bytes
    Redo Buffers                7135232 bytes
    数据库装载完毕。
    数据库已经打开。
    SQL> conn scott/a
    已连接。呵呵,你是不是机器上安装了多个ORACLE,不知道自己登陆的是哪一个,在windows上如果要登录指定的,可以使用网络访问服务名方式访问,另外可以在本机使用set oracle_id=sid名字 然后在使用sqlplus就O了。
      

  2.   

    中间漏掉一个步骤,没有拷贝到哈,当你第一步链接失败的时候,先要使用:
    SQL> conn / as sysdba
    已连接到空闲例程。然后再执行:startup;操作。
      

  3.   

    这是oracle官方英文文档ORA-01034 ORACLE not availableCause: Oracle was not started. Possible causes include the following:The SGA requires more space than was allocated for it.
    The operating-system variable pointing to the instance is improperly defined.
    Action: Refer to accompanying messages for possible causes and correct the problem mentioned in the other messages. If Oracle has been initialized, then on some operating systems, verify that Oracle was linked correctly. See the platform-specific Oracle documentation.
      

  4.   

    好像还是有问题,真是很棘手:conn sys/fantasy as sysdba;
    已连接到空闲例程
    select sysdate from dual;
    第一行出现错误:
    ORA-01034:ORACLE not available
    show user;
    USER为"SYS"
    怎么是连接到空闲例程?
      

  5.   

    我启动了数据库,但还是有异常:
    SQL> startup;
    ORACLE 例程已经启动。
    Total System Global Area 612368384 bytes
    Fixed Size 1250428 bytes
    Variable Size 205523844 bytes
    Database Buffers 398458880 bytes
    Redo Buffers 7135232 bytes
    数据库已经关闭
    到底怎么回事啊
      

  6.   

    dos下 
    sqlplus /nologconn /as sysdbastartup