您的位置:首页 > 数据库 > Oracle

Oracle OCP认证考试题库解析052-5

2015-01-20 15:09 741 查看
QUESTION 5You want to enable archiving on your database. Presently, the database is running in NOARCHIVELOG mode.Given below are the steps to accomplish the task in random order: 1. Shut down the instance.2. Execute the ALTER DATABASE ARCHIVELOG command.3. Start up the instance and mount the database.4. Set the DB_RECOVERY_FILE_DEST initialization parameter to $ORACLE_HOME/dest_1.5. Open the database. Which is the correct sequence of steps for accomplishing the task? A. 4, 1, 3, 2, 5B. 1, 3, 4, 5, 2C. 1, 3, 2, 5; 4 not requiredD. 4, 1, 5, 2; 3 not requiredE. 1, 3, 4, 5; 2 not required Correct Answer: C
Explanation/Reference: 查看数据库是否为归档模式:SYS@ENMOEDU> archive log listDatabase log mode No Archive ModeAutomatic archival DisabledArchive destination USE_DB_RECOVERY_FILE_DESTOldest online log sequence 1Current log sequence 2 关闭数据库:SYS@ENMOEDU> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down. 数据库启动到mount:SYS@ENMOEDU> startup mountORACLE instance started.Total System Global Area 421724160 bytesFixed Size 2253864 bytesVariable Size 322964440 bytesDatabase Buffers 88080384 bytesRedo Buffers 8425472 bytesDatabase mounted. 修改数据库为归档模式:SYS@ENMOEDU> alter database archivelog; Database altered. 打开数据库:SYS@ENMOEDU> alter database open; Database altered. 再次查看归档模式:SYS@ENMOEDU> archive log listDatabase log mode Archive ModeAutomatic archival EnabledArchive destination USE_DB_RECOVERY_FILE_DESTOldest online log sequence 1Next log sequence to archive 2Current log sequence 2
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息