OCP-1Z0-052-V8.02-121题

121. After performing a clean shut down of the database instance for maintenance, you mount the

database and then execute a command to open the database:

SQL> ALTER DATABASE OPEN;

Which two statements are true? (Choose two.)

A.The online redo log files and online data files are opened.

B.All the online data file headers are checked for consistency.

C.Instance recovery is performed before opening the database.

D.The path and existence of all the log file members are checked.

Answer: AB  

答案解析:

参考:http://blog.csdn.net/rlhua/article/details/12237245


 数据库操作正常意味着实例已启动、数据库已装载且已打开。在数据库操作正常时,任何有效用户都可连接到数据库,而且可执行典型数据访问操作。

打开数据库过程包括执行以下任务:
• 打开数据文件
• 打开联机重做日志文件
如果尝试打开数据库时任一数据文件或联机重做日志文件不存在,则Oracle 服务器返回错误。
在最后这个阶段,Oracle 服务器会验证是否可以打开所有数据文件和联机重做日志文件,还会检查数据库的一致性。如有必要,系统监视器(SMON) 后台进程将启动实例恢复。可以在受限模式下启动数据库实例,以便只让有管理权限的用户使用该实例。要在受限模式下启动实例,可在“Advanced Startup Options(高级启动选项)”页上选择“Restrict access to database(限制对数据库的访问)”选项。
或者在启动Open模式时,添加restrict关键字:startup restrict,
设置或取消受限状态:alter system enabledisable restricted session;
命令:
sys@TEST0924> alter database open;
Database altered.
原文地址:https://www.cnblogs.com/hzcya1995/p/13316956.html