Professional Documents
Culture Documents
Lab#4 Redo Log and Control File Multiplexing, Archive Redo Log Files, SPFile
Lab#4 Redo Log and Control File Multiplexing, Archive Redo Log Files, SPFile
Database File Locations: The modifications that you make to a database should
comply with the optimal flexible architecture guidelines. You must decide where to
store the new redo log files and control file to be added to your database.
System Object File Name Size
New Redo Log USERXXXredo01b.log Same as existing Redo Log Files
Files USERXXXredo02b.log
Control File #3 USERXXXcontrol03.ctl Same as existing Control Files.
Tasks for this Lab
1. Startup your instance. Connect as the DBA user for your database.
2. Archive Log Files (1 point).
a. Take the steps necessary to turn on automatic archive logging (ARCHIVELOG
mode). You must decide where to store archive log files. List the location you
selected here in your report. List all of the commands that you execute in order
to turn on automatic archive logging.
b. After automating archive logging, cause the system to execute a Redo Log File
switch. Query the V$INSTANCE view to determine the status of archived logs as
follows:
SELECT instance_name, archiver, status FROM v$instance;
3. Multiplex the Redo Log Files for your database (2 points).
a. Add an additional Redo Log File) to each of the two existing Redo Log Groups
for your database (see the above table for the file names; use the same file size
as the existing Redo Log Files) so that you will end up with two Redo Log Files
that are identical within two Redo Log Groups.
o You must determine where to locate the files for each group.
o In order to develop an OFA-compliant Redo Log File Grouping, you may need to
both add Redo Log Files and to relocate the existing Redo Log Files.
o NOTE: When you add new members to the groups, one or more of the new
members may be listed as INVALID—switching log file groups 2 or 3 times
will CLEAR the INVALIDstatus.
b. Query both V$LOG and V$LOGFILE to verify the result as follows:
SELECT group#, members, status, bytes FROM v$log;
COLUMN member FORMAT A50;
SELECT group#, member, type FROM v$logfile;
4. Add a Log Group (2 points).
a. Add an additional Redo Log Group with two Redo Log Files in the
group. Number this Group 3 as shown in the table above. Make the files 4M in
size in this group. You must decide where to locate the Redo Log Files in this
new Redo Log Group (use disk drives that are available to you as
appropriate). You must also select appropriate file names for the new Redo Log
Files.
b. Requery V$LOG and V$LOGFILE as shown above.
END OF ASSIGNMENT