请启动归档,
c:\>sqlplus "/as sysdba"
SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 6月 28 08:48:00 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> archive log list
数据库日志模式 非存档模式
自动存档 禁用
存档终点 C:\oracle\ORADATA\arc
最早的概要日志序列 118
当前日志序列 120
SQL> alter tablespace users offline immediate;
alter tablespace users offline immediate
*
ERROR 位于第 1 行:
ORA-01145: 除非启用了介质恢复,否则不允许紧急脱机
SQL> shutdown immediate;
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup mount;
ORACLE 例程已经启动。
Total System Global Area 114367248 bytes
Fixed Size 453392 bytes
Variable Size 75497472 bytes
Database Buffers 37748736 bytes
Redo Buffers 667648 bytes
数据库装载完毕。
SQL> alter database archivelog;
数据库已更改。
SQL> alter database open;
数据库已更改。
SQL> alter tablespace users offline immediate;
表空间已更改。
SQL> alter tablespace users online;
alter tablespace users online
*
ERROR 位于第 1 行:
ORA-01113: 文件 4 需要介质恢复
ORA-01110: 数据文件 4: 'C:\ORACLE\ORADATA\U3\USERS01.DBF'
SQL> recover tablespace users;
完成介质恢复。
SQL> alter tablespace user online;
alter tablespace user online
*
ERROR 位于第 1 行:
ORA-02140: 无效的表空间名称
SQL> alter tablespace users online;
表空间已更改。
SQL>