oracle數據庫未打開解決的方法


Microsoft Windows [版本號 6.1.7601]
版權全部 (c) 2009 Microsoft Corporation。保留全部權利。

C:\Users\Administrator>
C:\Users\Administrator>sqlplus / as sysdba;

SQL*Plus: Release 11.2.0.1.0 Production on 星期三 10月 29 09:50:55 2014

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


連接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Producti
With the Partitioning, OLAP, Data Mining and Real Application Testing opti

SQL> show user;
USER 為 "SYS"
SQL> conn scott/tiger;
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
進程 ID: 0
會話 ID: 0 序列號: 0


警告: 您不再連接到 ORACLE。
SQL> alter user scott account unlock identified by tiger;
SP2-0640: 未連接
SQL> conn / as sysdba;
已連接。
SQL> show user;
USER 為 "SYS"
SQL> alter user scott account unlock identified by tiger;
alter user scott account unlock identified by tiger
                                              *
第 1 行出現錯誤:
ORA-01109: 數據庫未打開


SQL> show user;
USER 為 "SYS"
SQL> startup
ORA-01081: 無法啟動已在執行的 ORACLE - 請首先關閉它
SQL> exit;
從 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Produ
With the Partitioning, OLAP, Data Mining and Real Application Testing opti

C:\Users\Administrator>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期三 10月 29 09:52:45 2014

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

SQL> startup
ORA-01031: insufficient privileges
SQL> show user;
USER 為 ""
SQL> exit

C:\Users\Administrator>sqlplus / as sysdba;

SQL*Plus: Release 11.2.0.1.0 Production on 星期三 10月 29 09:53:34 2014

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


連接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Producti
With the Partitioning, OLAP, Data Mining and Real Application Testing opti

SQL> show user;
USER 為 "SYS"
SQL> conn scott/tiger;
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
進程 ID: 0
會話 ID: 0 序列號: 0


警告: 您不再連接到 ORACLE。
SQL> conn / as sysdba;
已連接。
SQL> select 4+5 form dual;
select 4+5 form dual
                *
第 1 行出現錯誤:
ORA-00923: 未找到要求的 FROM keyword


SQL> select 4+5 from dual;

       4+5
----------
         9

SQL> select * from tab;
select * from tab
              *
第 1 行出現錯誤:
ORA-01219: 數據庫未打開: 僅同意在固定表/視圖中查詢


SQL> startup mount
ORA-01081: 無法啟動已在執行的 ORACLE - 請首先關閉它
SQL> shoutdown immediate
SP2-0734: 未知的命令開頭 "shoutdown ..." - 忽略了剩余的行。
SQL> shutdown immediate;
ORA-01109: 數據庫未打開


已經卸載數據庫。


ORACLE 例程已經關閉。
SQL> startup mount;
ORACLE 例程已經啟動。

Total System Global Area 1670221824 bytes
Fixed Size                  2176328 bytes
Variable Size            1174407864 bytes
Database Buffers          486539264 bytes
Redo Buffers                7098368 bytes
數據庫裝載完成。
SQL> alter database open;
alter database open
*
第 1 行出現錯誤:
ORA-01157: 無法標識/鎖定數據文件 7 - 請參閱 DBWR 跟蹤文件
ORA-01110: 數據文件 7: 'E:\MYTBS1.DBF'


SQL> alter database datafile 'E:\MYTBS1.DBF' offline drop
  2  ;

數據庫已更改。



SQL> alter database open;
alter database open
*
第 1 行出現錯誤:
ORA-01157: 無法標識/鎖定數據文件 8 - 請參閱 DBWR 跟蹤文件
ORA-01110: 數據文件 8: 'F:\MYTBS2.DBF'


SQL>  shutdown immediate;
ORA-01109: 數據庫未打開


已經卸載數據庫。
ORACLE 例程已經關閉。
SQL> startup mount;
ORACLE 例程已經啟動。

Total System Global Area 1670221824 bytes
Fixed Size                  2176328 bytes
Variable Size            1174407864 bytes
Database Buffers          486539264 bytes
Redo Buffers                7098368 bytes
數據庫裝載完成。
SQL> alter database open;
alter database open
*
第 1 行出現錯誤:
ORA-01157: 無法標識/鎖定數據文件 8 - 請參閱 DBWR 跟蹤文件
ORA-01110: 數據文件 8: 'F:\MYTBS2.DBF'


SQL> alter database datafile 'F:\MYTBS2.DBF' offline drop
  2  ;

數據庫已更改。



SQL>  shutdown immediate;
ORA-01109: 數據庫未打開


已經卸載數據庫。
ORACLE 例程已經關閉。


SQL> startup mount;
ORACLE 例程已經啟動。

Total System Global Area 1670221824 bytes
Fixed Size                  2176328 bytes
Variable Size            1174407864 bytes
Database Buffers          486539264 bytes
Redo Buffers                7098368 bytes
數據庫裝載完成。
SQL> alter database open;

數據庫已更改。



SQL> conn scott/tiger;
ERROR:
ORA-28002: the password will expire within 7 days


已連接。
SQL> alter user scott account unlock identified by tiger;

用戶已更改。

SQL> conn scott/tiger;
已連接。


SQL> show user;
USER 為 "SCOTT"
SQL> select ename from enp;
select ename from enp
                  *
第 1 行出現錯誤:
ORA-00942: 表或視圖不存在


SQL> select ename from emp;

ENAME
----------
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
KING
TURNER
JAMES
FORD

ENAME
----------
MILLER

已選擇12行。

SQL>


免責聲明!

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



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