Java自学者论坛

 找回密码
 立即注册

手机号码,快捷登录

恭喜Java自学者论坛(https://www.javazxz.com)已经为数万Java学习者服务超过8年了!积累会员资料超过10000G+
成为本站VIP会员,下载本站10000G+会员资源,会员资料板块,购买链接:点击进入购买VIP会员

JAVA高级面试进阶训练营视频教程

Java架构师系统进阶VIP课程

分布式高可用全栈开发微服务教程Go语言视频零基础入门到精通Java架构师3期(课件+源码)
Java开发全终端实战租房项目视频教程SpringBoot2.X入门到高级使用教程大数据培训第六期全套视频教程深度学习(CNN RNN GAN)算法原理Java亿级流量电商系统视频教程
互联网架构师视频教程年薪50万Spark2.0从入门到精通年薪50万!人工智能学习路线教程年薪50万大数据入门到精通学习路线年薪50万机器学习入门到精通教程
仿小米商城类app和小程序视频教程深度学习数据分析基础到实战最新黑马javaEE2.1就业课程从 0到JVM实战高手教程MySQL入门到精通教程
查看: 521|回复: 0

ORA-01034:ORACLE not available问题的解决方法

[复制链接]
  • TA的每日心情
    奋斗
    2024-11-24 15:47
  • 签到天数: 804 天

    [LV.10]以坛为家III

    2053

    主题

    2111

    帖子

    72万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    726782
    发表于 2021-4-26 11:48:52 | 显示全部楼层 |阅读模式
    同时在自己电脑上装了oracle客户端和服务器,上次还能用呢,这次突然用不了.

    [oracle@R39i oracle]$ sqlplus scott/tiger

    SQL*Plus: Release 9.2.0.4.0 - Production on Mon Nov 24 11:06:50 2008

    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory

    [root@R39i root]# id oracle
    uid=500(oracle) gid=501(dba) groups=501(dba)
    [root@R39i root]# su - oracle
    [oracle@R39i oracle]$ lsnrctl start

    LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 24-NOV-2008 10:57:29

    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.

    Starting /oracle/product/9i/bin/tnslsnr: please wait...

    TNSLSNR for Linux: Version 9.2.0.4.0 - Production
    System parameter file is /oracle/product/9i/network/admin/listener.ora
    Log messages written to /oracle/product/9i/network/log/listener.log
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    TNS-12542: TNS:address already in use
    TNS-12560: TNS:protocol adapter error
    TNS-00512: Address already in use
       Linux Error: 98: Address already in use

    Listener failed to start. See the error message(s) above...

    [oracle@R39i oracle]$ lsnrctl status

    LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 24-NOV-2008 11:21:13

    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    STATUS of the LISTENER
    ==============================================
    [oracle@R39i oracle]$ lsnrctl status

    LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 24-NOV-2008 11:21:13

    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 9.2.0.4.0 - Production
    Start Date                24-NOV-2008 10:52:27
    Uptime                    0 days 0 hr. 28 min. 45 sec
    Trace Level               off
    Security                  OFF
    SNMP                      OFF
    Listener Parameter File   /oracle/product/9i/network/admin/listener.ora
    Listener Log File         /oracle/product/9i/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=R39i)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "mydata" has 1 instance(s).
    Instance "mydata", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully

    呵呵,原来监听已经启动了.
    [oracle@R39i oracle]$ sqlplus /nolog

    SQL*Plus: Release 9.2.0.4.0 - Production on Mon Nov 24 12:01:37 2008

    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

    SQL> connect /as sysdba
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.

    Total System Global Area 122754448 bytes
    Fixed Size                   451984 bytes
    Variable Size              88080384 bytes
    Database Buffers           33554432 bytes
    Redo Buffers                 667648 bytes
    Database mounted.
    Database opened.

    数据库就可以用了。

    总结,

    1,数据库没有打开时,其它用户是联不上的。
    2,如果用sys也打不开数据库,则可能是坏境变量的事了。

    可用下面的方法来检查,看是否和你预想的一样。

    env |grep ORACLE

    哎...今天够累的,签到来了1...
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|手机版|小黑屋|Java自学者论坛 ( 声明:本站文章及资料整理自互联网,用于Java自学者交流学习使用,对资料版权不负任何法律责任,若有侵权请及时联系客服屏蔽删除 )

    GMT+8, 2024-12-23 09:30 , Processed in 0.064841 second(s), 29 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表