oracle資料庫未開啟解決辦法,oracle資料庫

來源:互聯網
上載者:User

oracle資料庫未開啟解決辦法,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 關鍵字


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>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.