当前位置: 首页 > 知识库问答 >
问题:

Oracle不可用11g R2

柴浩大
2023-03-14

我在一个环境中安装了几个月的Oracle 11g R2,它在过去的几个月中运行良好,但本周,我在连接时出现错误。

我的环境:Windows 7 64位SP1

所以我试图调查:

这是我的听众。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

我的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)
        )
      )

以下是我的调查过程:

  1. 使用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

    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)
    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

我的环境变量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

感谢如果有任何想法。

共有1个答案

申屠俊发
2023-03-14

抱歉,我找到了有线的东西,oracle初始化配置丢失了。非常感谢你。

 类似资料:
  • 我一直在研究一个从oracle数据库生成xml的查询 其中“column”是一种类型 列列表的类型为 和 问题是,这必须转换成postgres,因为CAST和MULTISET在postgres中是不可用的,所以有没有办法在postgres语法中实现这一点

  • 我一直在使用Oracle SOA Suit 12c人工任务组件。然而,我创建了一个简单的bpel流程,它接受一个输入,用于人工干预和用户分配所需的响应。该项目已成功部署到weblogic域soa_server1。现在,该web服务正在由oracle em进行测试- 其他详细信息Weblogic Server 12c、安装的SOA Quick Start 12c(12.2.2.1.0)以及使用数据库

  • 问题内容: 我在执行此查询时遇到问题。 给我 经过一番谷歌搜索后,我发现问题可能出在索引上,但是当我查看表和索引时,对我来说似乎还可以。 创建索引脚本看起来像这样 唯一令我感到奇怪的是,当我在SQL Developer中查看“表”属性中的“编辑表”时,可以看到索引的“操作状态”为FAILED。有谁知道这意味着什么?也许是数据库权利? 当我使用时它也能正常工作 代替 感谢您的任何建议 PS与我之前的

  • 问题内容: Oracle-函数不起作用 所以我不知道我在做什么错。我已经花了几个小时了,非常感谢您的帮助。 因此,基本上我有2个表,一个表被称为主列表,它是一个学生列表,另一个表被调用,它基本上具有该学生所注册课程的列表。 因此,我编写了一个函数,用于将登录学生的用户名(在本例中为)与学生列表进行比较,并确保登录用户是学生。然后,它将与表进行比较,以查找用户注册的任何程序。因此,从本质上讲,当我(

  • 2-在unix系统资源中创建一个文件夹,并将下载的文件移到那里 sudo mkdir-p/usr/local/java sudo mv/home/sfrj/downloads/jdk-6u37-linux-x64.bin/usr/local/java /jdk-6u37-linux-x64.bin 5.删除安装程序(不再需要) sudo rm JDK-6U37-Linux-x64.bin 到目前为