ORA-01034: ORACLE not available解決


問題現象:

alter user scott account unlock;

ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

[oracle@rhel ~]$ echo $ORACLE_SID
xxxx
[oracle@rhel ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Tue Sep 12 14:58:57 2017

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

Connected to an idle instance.

SQL> select userenv('language') from udal;
select userenv('language') from udal
* ERROR at line 1: ORA-01034: ORACLE not available Process ID: 0 Session ID: 0 Serial number: 0

問題解決:

確認當前實例對不

export ORACLE_SID=xxxx     --設置

echo $ORACLE_SID=xxxx     --查看

查看監聽狀態

lsnrctl status

 sqlplus sys/123123@sznfpt as sysdba  #明確登錄的用戶及實例,就OK了

[oracle@rhel ~]$ sqlplus sys/123123@sznfpt as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Tue Sep 12 15:02:47 2017

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> 
SQL> 
SQL> alter user scott account unlock;

User altered.

SQL> 
SQL> 
SQL> alter user scott identified by 123123;

User altered.

SQL> 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM