解決oracle之ORA-01075: you are currently logged on

####################

 

1.問題如下:

[oracle@xxx ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 7 08:20:33 2023

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

ERROR:
ORA-01075: you are currently logged on


Enter user-name: ^C
[oracle@xxx ~]$
[oracle@xxx ~]$
[oracle@xxx ~]$
[oracle@xxx ~]$ sqlplus / as sysdba\
> ^C

 

2.使用ipcs和ipcsrm命令釋放oracle佔用的共享內存

[root@xxx tmp]# ipcs -m | grep oracle | awk '{print $2}' | xargs ipcrm shm
resource(s) deleted
[root@xxx tmp]#

 

若oracle進程沒有被kill的話,就先kill掉

# 使用Linux的kill命令殺死所有與oracle有關的進程
[root@xxx tmp]# ps -ef |grep $ORACLE_SID|grep -v grep|awk '{print $2}' | xargs kill -9

 

 

3.再次登錄,成功

[oracle@xxx ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 7 08:22:15 2023

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

Connected to an idle instance.

SQL>

 

 

 

 

 

 

 

 

 

 

####################

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章