oracle - 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
解决方案
这可能由于 2 个原因而发生。1) Oracle 数据库没有正确启动。2)没有剩余空间,数据库崩溃/停止工作。
要更正,请登录远程数据库并检查数据库是否已启动,并且有足够的空间供数据库执行操作。
要检查数据库是否打开,在安装了 db 的远程计算机上,您可以使用 sql plus 登录并运行查询以检查数据库的状态。
推荐阅读
- ruby-on-rails - 尝试在我的 rails 5.x 应用程序中为我的自定义布局导入引导库
- excel - 将表情符号插入电子邮件正文 | “弹出”电子邮件工作正常
- iis - IIS 10 上的默认文档不起作用并返回 200
- iis-7.5 - IIS 7.5 HEAD 请求未到达我的 ashx 处理程序
- git - Git使用错误的电子邮件进行推送
- .htaccess - 重定向 htaccess 挣扎
- ruby-on-rails - ArgumentError:错误的参数数量(给定 0,预期为 1)尝试将参数传递给 application_controller
- python - 使用 Python 从一系列日期检查项目列表
- regex - 正则表达式匹配单引号、双引号和三引号之间的文本
- java - 如何在 Android Studio 中将 RadioGroup 元素的 ID 转换为字符串?