简体   繁体   English

Oracle不可用11g R2

[英]Oracle not available 11g R2

I had one environment installed Oracle 11g R2 for few months, it was working well for past few months, but this week, I got error when I connect. 我在一个环境中安装了Oracle 11g R2了几个月,它在过去几个月中运行良好,但是在本周,连接时出现错误。

My environment: Windows 7 64 bit with SP1 我的环境:Windows 7 64位SP1

So I trying to investigate: 所以我试图调查:

Here is my listener.ora 这是我的listener.ora

# listener.ora Network Configuration File: D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
        )
        (SID_DESC =
          (SID_NAME = orcl)
          (ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
          (GLOBAL_DBNAME=orcl)
        )
      )
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
          )
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.100.134)(PORT = 1521))
          )
        )
      )

    ADR_BASE_LISTENER = D:\app\Administrator\product\11.2.0\dbhome_1\log

and my tnsnames.ora 和我的tnsnames.ora

# tnsnames.ora Network Configuration File: D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.

    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        )
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
        )
      )

    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.100.134)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
          (GLOBAL_NAME = orcl)
        )
      )

Here is my investigate process: 这是我的调查过程:

  1. using LSNRCTL to check listener status(sorry I translate from Chinese to English) 使用LSNRCTL检查侦听器状态(对不起,我将中文翻译成英文)
LSNRCTL> status
    Connect to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    Listener status
    ------------------------
    Alias                    LISTENER
    Version                  TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
    Start Date               24-12-2014 11:13:04
    Normal operation Time    0 day 0 hour 21 minute 32 second
    Trace Level              off
    Security                 ON: Local OS Authentication
    SNMP                     OFF
    Listener config file     D:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener log file        d:\app\administrator\product\11.2.0\dbhome_1\log\diag\tnslsnr\1300313-PC\listener\alert\log.xml
    Listener summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.100.134)(PORT=1521)))
    Service Summary...
    service "PLSExtProc" has 1 execute process.
      execute process "PLSExtProc", status UNKNOWN, has 1 handler for this service...
    service "orcl" has 1 execute process.
      execute process "orcl", status UNKNOWN, has 1 handler for this service...
    command complete
  1. Using TNSPING 使用TNSPING
D:\app\Administrator\product\11.2.0\dbhome_1\BIN>tnsping orcl

    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 24-12-2014 11:39:23

    Copyright (c) 1997, 2010, Oracle.  All rights reserved.

    Config file:
    D:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora

    Using TNSNAMES adaptor to parse alias
    try connecting (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.100.134)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = orcl) (GLOBAL_NAME = orcl)))
    OK (40 msec)
  1. Using SQLPLUS 使用SQLPLUS
D:\app\Administrator\product\11.2.0\dbhome_1\BIN>sqlplus / as sysdba

    SQL*Plus: Release 11.2.0.1.0 Production on Wednesday 12.24 11:43:17 2014
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connect to idle execution process.
    SQL> startup
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL'
    SQL> exit
    disconnected

    D:\app\Administrator\product\11.2.0\dbhome_1\BIN>sqlplus scott/tiger@orcl
    SQL*Plus: Release 11.2.0.1.0 Production on Wednesday 12.24 11:44:01 2014
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Process ID: 0
    Session ID: 0 Sequence: 0

my environment variable as 我的环境变量为

D:\app\Administrator\product\11.2.0\dbhome_1\BIN>echo %ORACLE_HOME%
    D:\app\Administrator\product\11.2.0\dbhome_1
    D:\app\Administrator\product\11.2.0\dbhome_1\BIN>echo %ORACLE_SID%
    orcl

Appreciated if any idea. 感谢任何想法。

Sorry, I found wired thing, that oracle init config missing. 抱歉,我发现有线问题,即缺少oracle init配置。 Thank you very much. 非常感谢你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM