環境變量配置無誤后,在sys用戶 在pl/sql上登錄時候報以下錯誤
ORA-01034: ORACLE not available
進程 ID: 0
會話 ID: 0 序列號: 0
然后運行控制台,有以下操作記錄
Microsoft Windows [版本 6.1.7601]
版權所有 (c) 2009 Microsoft Corporation。保留所有權利。
C:\Users\lijt>sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on 星期五 1月 5 08:25:29 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
請輸入用戶名: sys as system123
SP2-0306: 選項無效。
用法: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]]
其中 <logon> ::= <username>[/<password>][@<connect_identifier>]
<proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>]
請輸入用戶名: sys as sysdba
輸入口令:
已連接到空閑例程。
SQL> show parameter
ORA-01034: ORACLE not available
進程 ID: 0
會話 ID: 0 序列號: 0
SQL> startup open hstestdb
ORACLE 例程已經啟動。
Total System Global Area 3390558208 bytes
Fixed Size 2180464 bytes
Variable Size 2298481296 bytes
Database Buffers 1073741824 bytes
Redo Buffers 16154624 bytes
ORA-01504: ???? 'HSTESTDB' ??? db_name 'orcl' ???
SQL> lsnrctl start
SP2-0734: 未知的命令開頭 "lsnrctl st..." - 忽略了剩余的行。
SQL> gwpt as normal
SP2-0734: 未知的命令開頭 "gwpt as no..." - 忽略了剩余的行。
SQL> sqlplus
SP2-0042: 未知命令 "sqlplus" - 其余行忽略。
SQL> exit
從 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 斷
開
C:\Users\lijt>sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on 星期五 1月 5 08:48:31 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
請輸入用戶名: gwpt as normal
SP2-0306: 選項無效。
用法: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]]
其中 <logon> ::= <username>[/<password>][@<connect_identifier>]
<proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>]
請輸入用戶名:
之后,再在pl/sql上以 sys用戶登錄時,竟然可以成功登錄了,很詭異。。。。。。。。。
然后用普通用戶在pl/sql上登錄,卻又報以下錯誤
ora-01033:oracle initialization or shutdown in progress
然后重新啟動ORACLE相關服務,普通用戶也可正常登錄
對ORacle理解過淺,每次出現問題,都得解決很久,且不得要領,只能記錄下來,留個印象