oracle数据库未打开解决的方法

时间:2023-03-09 13:33:44
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>