Microsoft Windows [版本 6.1.7600]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on 星期三 3月 7 11:04:43 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
已连接到空闲例程。
SQL> startup
ORACLE 例程已经启动。
ORACLE 例程已经启动。
Total System Global Area 1071333376 bytes
Fixed Size 1334380 bytes
Variable Size 301990804 bytes
Database Buffers 763363328 bytes
Redo Buffers 4644864 bytes
数据库装载完毕。
数据库已经打开。
Fixed Size 1334380 bytes
Variable Size 301990804 bytes
Database Buffers 763363328 bytes
Redo Buffers 4644864 bytes
数据库装载完毕。
数据库已经打开。
SQL> alter database backup controlfile to 'd:\app_bak\cf.ctl';
数据库已更改。
SQL> create tablespace test datafile 'D:\app\Administrator\oradata\orcl\test01.dbf' size 10M;
表空间已创建。
SQL> create table scott.t(id number,name varchar2(50)) tablespace test;
表已创建。
SQL> insert into scott.t values(1,'pp');
已创建 1 行。
SQL> insert into scott.t values(2,'ziling');
已创建 1 行。
SQL> commit;
提交完成。
SQL> shutdown abort
ORACLE 例程已经关闭。
SQL> startup mount;
ORA-03113: 通信通道的文件结束
SQL> exit
从 Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断
开
:\Users\Administrator>sqlplus / as sysdba
ORACLE 例程已经关闭。
SQL> startup mount;
ORA-03113: 通信通道的文件结束
SQL> exit
从 Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断
开
:\Users\Administrator>sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on 星期三 3月 7 11:11:33 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter session set nls_date_format='yyyymmdd hh24:mi:ss';
会话已更改。
SQL> recover database using backup controlfile until time '20120307 11:08:09';
ORA-00279: 更改 965979 (在 03/07/2012 11:04:54 生成) 对于线程 1 是必需的
ORA-00289: 建议:
D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_03_07\O1_MF_1_4_%U
ORA-00279: 更改 965979 (在 03/07/2012 11:04:54 生成) 对于线程 1 是必需的
ORA-00289: 建议:
D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_03_07\O1_MF_1_4_%U
_.ARC
ORA-00280: 更改 965979 (用于线程 1) 在序列 #4 中
ORA-00280: 更改 965979 (用于线程 1) 在序列 #4 中
指定日志: {=suggested | filename | AUTO | CANCEL}
D:\app\Administrator\oradata\orcl\REDO01.LOG
ORA-00283: 恢复会话因错误而取消
ORA-01244: 未命名的数据文件由介质恢复添加至控制文件
ORA-01110: 数据文件 6: 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\TEST01.DBF'
ORA-01112: 未启动介质恢复
SQL> alter database create datafile 6 as 'D:\app\Administrator\oradata\orcl\TEST
01.DBF';
数据库已更改。
SQL> recover database using backup controlfile;
ORA-00279: 更改 966342 (在 03/07/2012 11:07:03 生成) 对于线程 1 是必需的
ORA-00289: 建议:
D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_03_07\O1_MF_1_4_%U
ORA-00279: 更改 966342 (在 03/07/2012 11:07:03 生成) 对于线程 1 是必需的
ORA-00289: 建议:
D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_03_07\O1_MF_1_4_%U
_.ARC
ORA-00280: 更改 966342 (用于线程 1) 在序列 #4 中
ORA-00280: 更改 966342 (用于线程 1) 在序列 #4 中
指定日志: {=suggested | filename | AUTO | CANCEL}
D:\app\Administrator\oradata\orcl\REDO01.LOG
已应用的日志。
完成介质恢复。
SQL> alter database open resetlogs;
数据库已更改。
SQL> select * from scott.t;
ID NAME
---------- --------------------------------------------------
1 pp
2 ziling
---------- --------------------------------------------------
1 pp
2 ziling
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25989950/viewspace-718402/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/25989950/viewspace-718402/