设为首页 加入收藏

TOP

oracle数据库未打开解决办法(一)
2015-11-21 02:09:56 来源: 作者: 【 】 浏览:1
Tags: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: 数据库未打开


已经卸
首页 上一页 1 2 下一页 尾页 1/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇ORACLE在重要的表上限制某些IP、.. 下一篇MYSQL基础01(新增,修改,删除)

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: