首页 > 解决方案 > ORA-01034: ORACLE 在远程连接上不可用

问题描述

当我尝试从远程主机(我使用 oracle 即时客户端)连接到 Oracle 数据库时,出现以下错误:

ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3640
Additional information: 1108778635
Process ID: 0
Session ID: 0 Serial number: 0

但是,ORACLE_HOME在主机上设置正确,ORACLE_SID并且我可以轻松地从其主机连接到数据库:

SQL*Plus: Release 12.1.0.2.0 Production on Wed Jul 10 09:20:09 2019

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

Enter user-name: system
Enter password:
Last Successful login time: Wed Jul 10 2019 09:13:57 +03:00

Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

什么会导致这种行为?UPD:远程数据库上的侦听器状态:

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.71.2)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date                05-JUL-2019 08:56:16
Uptime                    6 days 23 hr. 29 min. 47 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/product/12.1.0/dbhome_1/log/diag/tnslsnr/epyc-gbu2/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.71.2)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "AGRO.GBUBDD.RU" has 1 instance(s).
Instance "AGRO", status UNKNOWN, has 1 handler(s) for this service...

UPD2:我用来连接远程数据库的命令:

sqlplus /nolog
connect system/oracle@192.168.71.2:1521/agro.gbubdd.ru

标签: oracleoracle12c

解决方案


这可能由于 2 个原因而发生。1) Oracle 数据库没有正确启动。2)没有剩余空间,数据库崩溃/停止工作。

要更正,请登录远程数据库并检查数据库是否已启动,并且有足够的空间供数据库执行操作。

要检查数据库是否打开,在安装了 db 的远程计算机上,您可以使用 sql plus 登录并运行查询以检查数据库的状态。


推荐阅读