Oracle Database Administration

Tests knowledge of Oracle Database Administration including RMAN backup and recovery, tablespaces, listener configuration, archivelog mode, background processes, and SQL operations.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What should you look at to compute the number of undo blocks written per second on disk ?

  1. V$UNDOSTAT
  2. V$TRANSACTION
  3. V$ROLLSTAT
  4. DBA_UNDO_EXTENTS
  5. DBA_ROLLBACK_SEGS
Question 2 Multiple Choice (Single Answer)

In user-managed backup and recover procedure, how are data files backed up ?

  1. Using SQL commands.
  2. Using SQL*Plus Commands.
  3. Using operating system commands.
  4. Using Recover Manager commands.
Question 3 Multiple Choice (Single Answer)

You have used the CROSSCHECK BACKUP command to verify that the backups recorded in the RMAN repository actually exist. Which command should you now use to check if any of the files were missing?

  1. LIST EXPIRED
  2. DELETE EXPIRED
  3. DELETE OBSOLETE
  4. CHANGE UNCATALOG
Question 4 Multiple Choice (Single Answer)

Which modifier is used to change listener parameters in the Listener Control utility environment?

  1. SET
  2. ALTER
  3. CHANGE
  4. UPDATE
Question 5 Multiple Choice (Single Answer)

Which background process reads the redo log buffer and writes it to a file ?

  1. ARCn
  2. DBWn
  3. CKPT
  4. LGWR
  5. PMON
  6. SMON
Question 6 Multiple Choice (Single Answer)

To increase the availability of an Advanced Replication environment, you can add a new master to a replication group without quiescing the group. This is achived _________________.

  1. Only when the new master site already has existing replication groups.
  2. By issuing a single command to create , populate, and activate the new master.
  3. When the master definition site is not the same for all of the master grouups.
  4. Without impacting end users who are executing data manipulation language (DML) commands on the replicated tables.
Question 7 Multiple Choice (Single Answer)

Which statement is ture regarding checkpoints and recovery ?

  1. A checkpoint defines the highest system change number (SCN)
  2. All redo entries higher or at the SCN are known to be written to the data files.
  3. Only the redo records containing SCNs higher then the checkpoint need to be applied during recovery.
  4. The LOG_CHECKPOINT_INTERVAL initialization paramter specifies the amount of time beteen incremental checkpoints.
Question 8 Multiple Choice (Single Answer)

Consider this syntax MERGE INTO t1 USING t2 ON (join predicate) .... What does the MERGE syntax do ?

  1. It performs a merge join of the row from T2 only if it does'nt exist in the T1 table.
  2. It creates a natural join of table T1 and T2 for all columns that have the same name.
  3. It creates a Cartesian prodcut of table T1 and table T2 for all columns that have the same name.
  4. For each row from T2, it updates the row if it exists witin table T1, otherwise it inserts the row into T1.
Question 9 Multiple Choice (Single Answer)

Examine the statement : DROP TABLESPACE IND2 INCLUDING CONTENTS AND DATAFILES; What is the result of the statement?

  1. The contents and data files belonging to the IND2 tablespace are dropped.
  2. The statement will only succeed if the IND2 tablespace was built using Oracle-Managed Files (OMF) data files.
  3. The statement will only succeed if the data files belonging to the IND2 tablespace are Oracle Managed Files (OMF) or of the database was created using OMF.
  4. The contents of the tablespace are dropped along with all its data files except those identical with Oracle-Managed Files (OMF) naming convention.
Question 10 Multiple Choice (Single Answer)

Your database is running in NOARCHIVELOG mode. Every night there is a backup taken using RMAN. During your startup this morning you received an error regarding DISK 3 on your server.This is the location of your data file for the SYSTEM tablespace. Which option is open to you?

  1. The data file needs to be restored by using operating system commands, because a data file movement must take place, and then the database can be recovered from RMAN.
  2. The data file needs to be restored by using operating system commands, since a data file movement must take place, and then the database must be recovered manually.
  3. From RMAN you can issue the commands RESTORE and RECOVER. RMAN automatically restores the data file on DISK 3 to another disk, based upon utilization statistics.
  4. From RMAN you can issue a SET NEWNAME command to update the data file location information in the control file, and then issue the RESTORE and RECOVER commands to recover the database.
Question 11 Multiple Choice (Single Answer)

Consider this RMAN command: RMAN> CONFIGURE RETENTION POLICY CLEAR; What is the effect of this command?

  1. Backups will never expire.
  2. It removes any retention policy.
  3. The DELETE OBSOLETE command will fail with an error.
  4. It sets the retention policy to the default of REDUNDANCY 1.
Question 12 Multiple Choice (Single Answer)

You have just run this syntax to start the listener from the Listener Control utility: LSNRCTL>START Starting /mstgelai/oracle/bin/tnslsnr: please wait... System parameter file is /u01/oracle/network/admin/listener.ora Log messages written to /u01/oracle/network/log/listener.log Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=stc-sun01-server)(PORT=1521))) Connecting to... The command completed successfully What is the name of the Listener you started?

  1. TNSLSNR
  2. LISTENER
  3. LOCAL_LISTENER
  4. DEFAULT_LSRN
Question 13 Multiple Choice (Single Answer)

The employees table is stored in the SAMPLE tablespace. The corresponding IPK_EMP index for the EMPLOYEES table's primary key is stored in INDX tablespace. Out of 12 partitions, only partition P1 of the SALES table is stored in the SAMPLE tablespace. Which object will be exported by this command ? exp system/manager tablespace=SAMPLE

  1. Only the EMPLOYEES table.
  2. Only the EMPLOYEES table and its corresponding primary key index.
  3. The EMPLOYEES table and partition P1.
  4. The EMPLOYEES table, IPK_EMP index, and the SALES table.
Question 14 Multiple Choice (Single Answer)

You want to drop the TBSI tablespace from your database. You also want to delete corresponding data files automatically, and not have to do it manually. What should you do ?

  1. User the DROP DATAFILE command.
  2. Use the DROP TABLESPACE command.
  3. Ensure that all database files are Oracle Managed Files(OMF) before using the DROP TABLESPACE command.
  4. Ensure that the DB_FILE_CREATE_DEST initialization parameter is set before using the DROP TABLESPACE command.
Question 15 Multiple Choice (Single Answer)

When performing an incomplete recovery of the whole database, what must be true about the data files that are restored ?

  1. All of the data files must be from a backup taken prior to the point in time to which you want to recover.
  2. Only the data files belonging from the SYSTEM tablespace must be from a backup taken prior to the point in time to which you want to recover.
  3. Only the data files that need recovery must be from a backup taken prior to the point in time which you want to recover.
  4. Only the data files belonging to the SYSTEM tablespace and the data files that need recovery must be from a backup taken prior to the point in time to which you want to recover.
Question 16 Multiple Choice (Single Answer)

You have performed the first step in placing your database into ARCHIVELOG mode. The second step is deciding whether the online redo log files are to be archived automatically or manually. which action should you take to enable archiving an instance startup?

  1. Set the LOG_ARCHIVE_START parameter to TRUE in the initialization parameter file.
  2. Automatic archive is the default when ARCHIVELOG mode is set. No further actions are required.
  3. Set the LOG_ARCHIVE_MAX_PROCESSES parameter to n (where n is the number of Archiver process) in the initialization parameter file.
  4. Immediately after setting the database in ARCHIVELOG mode, in SQL*Plus select automatic archiving using the syntax : ALTER DATABASE SET LOG_ARCHIVE_START=TRUE
Question 17 Multiple Choice (Single Answer)

You issue this statement ALTER DATABASE BACKUP CONTROLFILE TO TRACE; What does the statment generate ?

  1. A text copy of the control file.
  2. A binary copy of the control file.
  3. A file containing a SQL statement which will re-create the database.
  4. A file containing a SQL statement which will re-create the control file.
Question 18 Multiple Choice (Single Answer)

Which statement is true regarding RMAN components?

  1. Each target database requires its own recover catalog.
  2. RMAN scripts can be stored in the recovery catalog or the targer control file.
  3. A channel is a stream of data to a device type and corresponds to one server session.
  4. The RMAN executable interprets server session commands and establishes connections to the target database.
Question 19 Multiple Choice (Single Answer)

A user is running a long update batch file. Many tables are updated and all the statements are in one transaction. Before the process is finished, the user machine lost power. When the user calls you, what should you do as DBA?

  1. Do nothing, the PMON process handles everything.
  2. Shut down the database and restore all the tables the user was updating.
  3. Log in as DBA, clean up the partial updates in those tables, and do another manual backup.
  4. Use LogMiner to find out which records are changed based on the user’s ID, then roll back all those changes.
Question 20 Multiple Choice (Single Answer)

You need to enforce these two business rules: 1. No two rows of a table can have duplicate values in the specified column. 2. A column cannot contain null values. Which type of constraint ensure that both of the above rules are true ?

  1. Check
  2. Unique
  3. Not Null
  4. Primary Key
  5. Foreign Key