ERROR: ORACLE initialization or shutdown in progress 解决方案

来源:互联网 发布:松下fpwin编程手册 编辑:程序博客网 时间:2024/06/06 03:28

前言:

         今天启动 Oracle 数据库,报如标题的错误;是因为前段时间感觉 Oracle 数据库东西大多占用磁盘空间,想删除一些;于是执行了 dba命令,将没用的数据库统统删除,将 dbf 和 dmp 文件也统统删除了;现在发现服务无法启动,连接时会提示如标题的错误信息,后来将错误信息贴到网上发现原来 dbf 和 dmp 不是说删除就能删除的;

解决方案如下:

Microsoft Windows [版本 6.1.7601]

版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on 星期六 8月 29 01:12:33 2015
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
SQL> connect system/hope;
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
进程 ID: 0
会话 ID: 0 序列号: 0
SQL> connect sys/hope as sysdba

已连接。

SQL> shutdown normal
ORA-01109: 数据库未打开
已经卸载数据库。

ORACLE 例程已经关闭。

SQL> start mount
SP2-0310: 无法打开文件 "mount.sql"
SQL> startup mount
ORACLE 例程已经启动。
Total System Global Area  535662592 bytes
Fixed Size                  1375792 bytes
Variable Size             322961872 bytes
Database Buffers          205520896 bytes
Redo Buffers                5804032 bytes
数据库装载完毕。
SQL> alter database open;
alter database open
*
第 1 行出现错误:
ORA-01157: 无法标识/锁定数据文件 5 - 请参阅 DBWR 跟踪文件
ORA-01110: 数据文件 5: 'E:\HIBERNATE\PROJECT FILES\ORACLE\DEMO.DBF'
SQL> alter database datafile 5 offline drop;
数据库已更改。
SQL> alter database open;
数据库已更改。
SQL> shutdown normal;
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup
ORACLE 例程已经启动。
Total System Global Area  535662592 bytes
Fixed Size                  1375792 bytes
Variable Size             322961872 bytes
Database Buffers          205520896 bytes
Redo Buffers                5804032 bytes
数据库装载完毕。
数据库已经打开。
SQL> conn
请输入用户名:  scott
输入口令:
ERROR:
ORA-28002: the password will expire within 7 days
已连接。

SQL>

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

0 0
原创粉丝点击