ORA-01075: you are currently logged on

來源:互聯網
上載者:User

我的dataguard因為ora-600錯誤導致備機hang住,使其無法登陸Oracle資料庫

參考: 

現象
[root@skate01 ~]# su - oracle
[oracle@skate01 ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.2.0 Production on Tue Feb 21 00:26:35 2012

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

ERROR:
ORA-01075: you are currently logged on

[oracle@skate01 ~]$

 

為了快速登入oracle,好迅速啟動oracle,這裡提供一種超暴力的方法

1.使用Linux的kill命令殺死所有與oracle有關的進程
$ ps -ef |grep $ORACLE_SID|grep -v grep|awk '{print $2}' | xargs kill -9

2.使用Linux的ipcs和ipcsrm命令釋放oracle佔用的共用記憶體
$ ipcs -m | grep oracle | awk '{print $2}' | xargs ipcrm shm

 

操作步驟:
[root@skate01 ~]# su - oracle
[oracle@skate01 ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.2.0 Production on Tue Feb 21 00:35:11 2012

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

ERROR:
ORA-01075: you are currently logged on


Enter user-name: sys
Enter password:
ERROR:
ORA-00600: internal error code, arguments: [KGHLKREM1], [0x838000020], [], [],
[], [], [], [], [], [], [], []
ORA-00600: internal error code, arguments: [KGHLKREM1], [0x838000020], [], [],
[], [], [], [], [], [], [], []

[oracle@skate01 ~]$
[oracle@skate01 ~]$


kill和oracle有關的進程
[oracle@skate01 ~]$ ps -ef |grep $ORACLE_SID|grep -v grep|awk '{print $2}'
1562
1564
1566
1570
1572
1574
1576
1578
1580
1582
1584
1586
1588
1592
1594
1596
3781
3862
3864
3866
3868
10085
10861
12321
12325
12327
12329
12331
12333
12335
12337
12339
12341
25253
25255
25311
29661


[oracle@skate01 ~]$ ps -ef |grep $ORACLE_SID|grep -v grep
oracle    1562     1  0  2011 ?        00:01:38 ora_pmon_skate01
oracle    1564     1  0  2011 ?        00:00:05 ora_psp0_skate01
oracle    1566     1  0  2011 ?        00:00:00 ora_vktm_skate01
oracle    1570     1  0  2011 ?        00:00:00 ora_gen0_skate01
oracle    1572     1  0  2011 ?        00:00:15 ora_diag_skate01
oracle    1574     1  0  2011 ?        00:00:00 ora_dbrm_skate01
oracle    1576     1  0  2011 ?        05:27:59 ora_dia0_skate01
oracle    1578     1  0  2011 ?        00:00:04 ora_mman_skate01
oracle    1580     1 21  2011 ?        14-07:36:04 ora_dbw0_skate01
oracle    1582     1  0  2011 ?        00:04:16 ora_lgwr_skate01
oracle    1584     1  0  2011 ?        00:13:26 ora_ckpt_skate01
oracle    1586     1  0  2011 ?        00:00:38 ora_smon_skate01
oracle    1588     1  0  2011 ?        00:00:00 ora_reco_skate01
oracle    1592     1  0  2011 ?        00:32:15 ora_mmnl_skate01
oracle    1594     1  0  2011 ?        00:00:00 ora_d000_skate01
oracle    1596     1  0  2011 ?        00:00:00 ora_s000_skate01
avahi     3781     1  0  2011 ?        00:00:00 avahi-daemon: registering [skate01.local]
oracle    3862     1  0  2011 ?        01:21:24 ora_arc0_skate01
oracle    3864     1  0  2011 ?        01:20:30 ora_arc1_skate01
oracle    3866     1  0  2011 ?        00:00:19 ora_arc2_skate01
oracle    3868     1  0  2011 ?        01:20:49 ora_arc3_skate01
oracle   10861     1  0 Feb20 ?        00:00:00 ora_mmon_skate01
oracle   12321     1  0  2011 ?        00:00:01 ora_mrp0_skate01
oracle   12325     1  4  2011 ?        3-00:19:33 ora_pr00_skate01
oracle   12327     1  0  2011 ?        02:39:29 ora_pr01_skate01
oracle   12329     1  0  2011 ?        02:21:16 ora_pr02_skate01
oracle   12331     1  0  2011 ?        02:29:30 ora_pr03_skate01
oracle   12333     1  0  2011 ?        02:30:53 ora_pr04_skate01
oracle   12335     1  0  2011 ?        02:34:36 ora_pr05_skate01
oracle   12337     1  0  2011 ?        02:17:54 ora_pr06_skate01
oracle   12339     1  0  2011 ?        02:24:47 ora_pr07_skate01
oracle   12341     1  0  2011 ?        02:22:16 ora_pr08_skate01
oracle   25253     1  1  2011 ?        18:28:18 oracleskate01 (LOCAL=NO)
oracle   25255     1  0  2011 ?        00:00:03 oracleskate01 (LOCAL=NO)
oracle   25311     1  0  2011 ?        00:02:45 oracleskate01 (LOCAL=NO)
oracle   29661     1  0 Jan24 ?        00:00:08 oracleskate01 (LOCAL=NO)


[oracle@skate01 ~]$ ipcs -m | grep oracle | awk '{print $2}'
2818055
[oracle@skate01 ~]$ ps -ef |grep $ORACLE_SID|grep -v grep|awk '{print $2}' | xargs kill -9
kill 3781: Operation not permitted

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.