ITPub博客

首页 > 数据库 > Oracle > 1Z0-053 V13.02 Q93

1Z0-053 V13.02 Q93

原创 Oracle 作者:cow977 时间:2016-06-20 11:01:33 0 删除 编辑
93.The database is configured in ARCHIVELOG mode and regular complete database backups are taken.
The loss of which two types of files may require a recovery with the RESETLOGS option? (Choose two)
A. Control files
B. Password files
C. Inactive online redo log file
D. Archived log files required to perform recovery
E. Newly created tablespace which is not backed up
Answer: AD

A、正确。
B、重新创建新的密码文件。
C、Inactive即是已经归档的重做日志,丢失后可以清除或删除重新创建。
D、正确,丢失需要恢复的归档日志,只能做不完全恢复。
E、可通过重做日志恢复。

SQL> select file#,name from v$datafile;

     FILE# NAME
---------- --------------------------------------------------
         1 C:\APPS\ORACLE\ORADATA\COW\SYSTEM01.DBF
         2 C:\APPS\ORACLE\ORADATA\COW\SYSAUX01.DBF
         3 C:\APPS\ORACLE\ORADATA\COW\UNDOTBS01.DBF
         4 C:\APPS\ORACLE\ORADATA\COW\USERS01.DBF
         5 C:\APPS\ORACLE\ORADATA\COW\EXAMPLE01.DBF

SQL> create tablespace test datafile 'C:\APPS\ORACLE\ORADATA\COW\test01.dbf' size 10m;

表空间已创建。

SQL> create table scott.test tablespace test as select * from scott.emp;

表已创建。

SQL> commit;

提交完成。

SQL> select count(*) from scott.test;

  COUNT(*)
----------
        14

SQL> insert into scott.test select * from scott.emp;      此部分数据未提交,恢复后将丢失。

已创建 14 行。

SQL> select count(*) from scott.test;

  COUNT(*)
----------
        28

SQL> shutdown abort;
ORACLE 例程已经关闭。
SQL> host del C:\APPS\ORACLE\ORADATA\COW\test01.dbf

SQL> startup
ORACLE 例程已经启动。

Total System Global Area 2538741760 bytes
Fixed Size                  2257872 bytes
Variable Size             520096816 bytes
Database Buffers         1996488704 bytes
Redo Buffers               19898368 bytes
数据库装载完毕。
ORA-01157: 无法标识/锁定数据文件 6 - 请参阅 DBWR 跟踪文件
ORA-01110: 数据文件 6: 'C:\APPS\ORACLE\ORADATA\COW\TEST01.DBF'


SQL> select file#,error from v$recover_file;

     FILE# ERROR
---------- -----------------------------------------------------------------
         6 FILE NOT FOUND

SQL> alter database datafile 6 offline;

数据库已更改。

SQL> alter database open;

数据库已更改。

SQL> alter database create datafile 'C:\APPS\ORACLE\ORADATA\COW\TEST01.DBF';
alter database create datafile 'C:\APPS\ORACLE\ORADATA\COW\TEST01.DBF'
*
第 1 行出现错误:
ORA-00603: ORACLE server session terminated by fatal error
ORA-27153: wait operation failed
ORA-27300: OS system dependent operation:WaitForSingleObject failed with
status: 6
ORA-27301: OS failure message: 句柄无效。
ORA-27302: failure occurred at: skgpwwait1
进程 ID: 10032
会话 ID: 191 序列号: 3


SQL> conn / as sysdba
已连接。
SQL> select file#,error from v$recover_file;

     FILE# ERROR
---------- -----------------------------------------------------------------
         6

SQL> alter database datafile 6 online;
alter database datafile 6 online
*
第 1 行出现错误:
ORA-01113: 文件 6 需要介质恢复
ORA-01110: 数据文件 6: 'C:\APPS\ORACLE\ORADATA\COW\TEST01.DBF'


SQL> recover datafile 6;
完成介质恢复。
SQL> alter database datafile 6 online;

数据库已更改。

SQL> select count(*) from scott.test;

  COUNT(*)
----------
        14

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/81227/viewspace-2120462/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 1Z0-053 V13.02 Q86
下一篇: 1Z0-053 V13.02 Q95
请登录后发表评论 登录
全部评论

注册时间:2011-03-02

  • 博文量
    698
  • 访问量
    893883