您的位置:首页 > 其它

删除了一个表空间的数据文件

2012-03-21 10:43 288 查看
问题的产生:删除了一个表空间的数据文件

解决方法:

C:\Documents and Settings\Administrator>sqlplus

SQL*Plus: Release 9.2.0.1.0 - Production on 星期四 8月 10 17:25:45 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

请输入用户名: sys/sys @oradb as sysdba;

SP2-0306: 无效选项。

用法: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]

其中 : : = [/][@] | /

请输入用户名: sys/sys as sysdba @oradb

SP2-0306: 无效选项。

用法: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]

其中 : : = [/][@] | /

请输入用户名: sys/sys as sysdba @oradb

SP2-0306: 无效选项。

用法: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]

其中 : : = [/][@] | /

SP2-0157: 在3次尝试之后无法 CONNECT 到 ORACLE, 退出 SQL*Plus

C:\Documents and Settings\Administrator>sqlplus

SQL*Plus: Release 9.2.0.1.0 - Production on 星期四 8月 10 17:26:58 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

请输入用户名: sys/sys @oradb as sysdba;

SP2-0306: 无效选项。

用法: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]

其中 : : = [/][@] | /

请输入用户名: sys

请输入口令:

ERROR:

ORA-01033: ORACLE initialization or shutdown in progress

请输入用户名:

ERROR:

ORA-01017: 无效的用户名/口令;拒绝登录

SP2-0157: 在3次尝试之后无法 CONNECT 到 ORACLE, 退出 SQL*Plus

C:\Documents and Settings\Administrator>

C:\Documents and Settings\Administrator>

C:\Documents and Settings\Administrator>sqlplus /nolog

SQL*Plus: Release 9.2.0.1.0 - Production on 星期四 8月 10 17:28:22 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> connect sys/ays as sysdba

已连接。

SQL> shutdown normal

ORA-01109: 数据库未打开

已经卸载数据库。

ORACLE 例程已经关闭。

SQL> startup mount

ORACLE 例程已经启动。

Total System Global Area 126950220 bytes

Fixed Size 453452 bytes

Variable Size 109051904 bytes

Database Buffers 16777216 bytes

Redo Buffers 667648 bytes

数据库装载完毕。

SQL> alter database open

2 ;

alter database open

*

ERROR 位于第 1 行:

ORA-01157: 无法标识/锁定数据文件 14 - 请参阅 DBWR 跟踪文件

ORA-01110: 数据文件 14: 'D:\ORACLE\ORADATA\ORADB\XUFANG.ORA'

SQL> alter database create datafile 14;

数据库已更改。

SQL> conn scott/tiger

ERROR:

ORA-01033: ORACLE initialization or shutdown in progress

警告: 您不再连接到 ORACLE。

SQL> alter database datafile 14 offline drop;

SP2-0640: 未连接

SQL> conn sys/sys

ERROR:

ORA-01033: ORACLE initialization or shutdown in progress

SQL> conn sys/sys as sysdba;

已连接。

SQL> alter database datafile 14 offline drop;

数据库已更改。

SQL> conn scott/tiger

ERROR:

ORA-01033: ORACLE initialization or shutdown in progress

警告: 您不再连接到 ORACLE。

SQL> connect sys/sys as sysdba

已连接。

SQL> shutdown normal

ORA-01109: 数据库未打开

已经卸载数据库。

ORACLE 例程已经关闭。

SQL> startup mount

ORACLE 例程已经启动。

Total System Global Area 126950220 bytes

Fixed Size 453452 bytes

Variable Size 109051904 bytes

Database Buffers 16777216 bytes

Redo Buffers 667648 bytes

数据库装载完毕。

SQL> alter database open

2 ;

数据库已更改。

SQL> shutdown normal

数据库已经关闭。

已经卸载数据库。

ORACLE 例程已经关闭。

SQL> startup

ORACLE 例程已经启动。

Total System Global Area 126950220 bytes

Fixed Size 453452 bytes

Variable Size 109051904 bytes

Database Buffers 16777216 bytes

Redo Buffers 667648 bytes

数据库装载完毕。

数据库已经打开。

SQL> conn scott/tiger;

已连接。

SQL>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: