解决oracle异常ORA-01012: not logged on

搜索相关解决方案有说必须先关闭所有oracle进程再重启的:kill -9 `ps -ef|grep oracle|awk '{print $2}'`

但依然不好使,得用shutdown abort这个命令

[root@xx ~]# su - oracle
上一次登录:四 10月 21 09:14:50 CST 2021pts/0 上
[oracle@xx]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.4.0 Production on Thu Oct 21 09:34:45 2021

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

SQL> conn /as sysdba
Connected to an idle instance.
SQL> shutdown
ORA-24324: service handle not initialized
ORA-24323: value not allowed
ORA-01090: shutdown in progress - connection is not permitted
SQL> startup
ORA-01031: insufficient privileges
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
ORA-01012: not logged on

SQL> select count(*) from dba_objects;
select count(*) from dba_objects
*
ERROR at line 1:
ORA-01012: not logged on

SQL> shutdown abort
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 1.3395E+10 bytes
Fixed Size                  2265904 bytes
Variable Size            7079988432 bytes
Database Buffers         6308233216 bytes
Redo Buffers                4759552 bytes
Database mounted.
Database opened.
SQL> exit


  • 3
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值