Cuestionario 01
Cuestionario 01
Cuestionario 01
INFORMTICA
FACULTAD DE INGENIERIA Semestre 2014-II
CUESTIONARIO PRACTICO #01
QUESTION NO: 1
Identify the memory component from which memory may be allocated for:
Session memory for the shared serverBuffers for I/O slavesOracle Database
Recovery Manager
(RMAN) backup and restore operations
A. Large Pool
B. Redo Log Buffer
C. Database Buffer Cache
D. Program Global Area (PGA)
QUESTION NO: 2
You executed the following command to create a tablespace called SALES_DATA:
SQL> CREATE TABLESPACE sales_data
DATAFILE SIZE 100M
SEGMENT SPACE MANAGEMENT AUTO;
Which two statements are true about the SALES_DATA tablespace? (Choose two)
A. The database automatically determines the extent-sizing policy for the
tablespace.
B. The segments are automatically shrunk when the contents are removed from
them.
C. The allocation of extents within the tablespace is managed through the
dictionary tables.
D. The space utilization description of the data blocks in segments is recorded in
bitmap blocks.
E. The space utilization description of the data blocks in segments is managed
through free lists.
QUESTION NO: 3
You 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, 5
B. 1, 3, 4, 5, 2
C. 1, 3, 2, 5; 4 not required
D. 4, 1, 5, 2; 3 not required
E. 1, 3, 4, 5; 2 not required
QUESTION NO: 4
You want to check the details of few errors that users have reported. You search
for the alert log file and execute few commands to find the location of the alert log
file.
View the Exhibit and check the commands executed.
What is the location of the alert_orcl.log file?
A. ORACLE_HOME/dbs
B. ORACEL_HOME/rdbms
C. /u01/app/oracle/admin/orcl/adump
D. /u01/app/oracle/flash_recovery_area
E. ORACLE_BASE/diag/rdbms/orcl/alert
F. ORACLE_BASE/diag/rdbms/orcl/orcl/trace
QUESTION NO: 5
See the Exhibit:
Which statements are true regarding the USERS tablespace? (Choose all that
apply.)
A. A bitmap is used to record free extents
B. Free extents information is managed within the tablespace
C. Free extents information is managed in the SYSAUX tablespace
D. The data dictionary tables are updated when extents are allocated or
deallocated
QUESTION NO: 6
Which three statements regarding the server parameter file (SPFILE) are true?
(Choose three.)
A. An SPFILE is a binary file
B. An SPFILE cannot reside on a client
C. An SPFILE cannot contain static parameters
D. An SPFILE can store changes persistently across instance restarts
E. An SPFILE can be read by the database server, but it is not written to by the
server
F. An SPFILE must be created manually, before creating a database, even if you
use the
Database Configuration Assistant (DBCA) to create the database
QUESTION NO: 7
Your test database is configured to run in NOARCHIVELOG mode. One of the data
files in the USERS tablespace is lost due to a media failure. You notice that all the
online redo logs have been overwritten since the last backup.
What would you do to recover the data file?
A. Take the USERS tablespace offline and re-create the lost data file
B. Shutdown the instance, restore the data file from the last consistent backup and
restart the database instance
C. Shutdown the instance, restores all the database files from the last consistent
backup and restart the database instance
D. Take the USERS tablespace offline, restore all the data files of the USERS
tablespace from the last consistent backup and make the tablespace online
QUESTION NO: 8
The instance abnormally terminates because of a power outage.
Which statement is true about redo log files during instance recovery?
A. Inactive and current redo log files are required to accomplish recovery
B. Online and archived redo files are required to accomplish instance recovery
C. All redo log entries after the last checkpoint are applied from redo log files to
data files
D. All redo log entries recorded in the current log file until the checkpoint position
are applied to data files
QUESTION NO: 9
Examine the command:
SQL>ALTER USR skd ACCOUNT LOCK;
Which two statements are true after the command is executed? (Choose two.)
A. The SKD user cannot log in to the database instance
B. The objects owned by the SKD user are not accessible to any user
C. The other users can access the objects owned by the SKD user, on which they
have access
D. The password for the SKD user expires and the user is forced to change the
password at the next log in
QUESTION NO: 10
For which database operation would you need the database to be in the MOUNT
state?
A. Renaming the control files
B. Re-creating the control files
C. Dropping a user in your database
D. Dropping a tablespace in your database
E. Configuring the database instance to operate in the ARCHIVELOG or
NOARCHIVELOG modes
QUESTION NO: 11
SQL> CREATE BIGFILE TABLESPACE MRKT
2 DATAFILE '/u01/app/oracle/oradata/orcl/mrkt.dbf' size 10M LOGGING
3 EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
Tablespace created.
SQL> ALTER DATABASE DEFAULT TABLESPACE MRKT;
Database altered.
Which two statements are true regarding the MRKT tablespace? (Choose two.)
A. No more data files can be added to the tablespace.
B. Segment space is managed by free lists in the tablespace.
C. A user created without being assigned a default tablespace uses this
tablespace.
D. The tablespace can be dropped with the current setting with segments present
in it.
QUESTION NO: 12
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 files 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
QUESTION NO: 13
Examine the command that is used to create a table:
SQL> CREATE TABLE orders (
oid NUMBER(6) PRIMARY KEY,
odate DATE,
ccode NUMBER (6),
oamt NUMBER(10,2)
) TABLESPACE users;
Which two statements are true about the effect of the above command? (Choose
two.)
A. A CHECK constraint is created on the OID column.
B. A NOT NULL constraint is created on the OID column.
C. The ORDERS table is the only object created in the USERS tablespace.
D. The ORDERS table and a unique index are created in the USERS tablespace.
E. The ORDERS table is created in the USERS tablespace and a unique index is
created on the OID column in the SYSTEM tablespace.
QUESTION NO: 14
Which two statements correctly describe the relation between a data file and the
logical database structures? (Choose two)
A. An extent cannot spread across data files.
B. A segment cannot spread across data files.
C. A data file can belong to only one tablespace.
D. A data file can have only one segment created in it.
E. A data block can spread across multiple data files as it can consist of multiple
operating system
(OS) blocks.
QUESTION NO: 15
Which two statements are true regarding a tablespace? (Choose two.)
A. It can span multiple databases
B. It can consist of multiple data files
C. It can contain blocks of different files
D. It can contains segments of different sizes
E. It can contains a part of nonpartitioned segment
QUESTION NO: 16
Which statements listed below describe the data dictionary views?
1. These are stored in the SYSTEM tablespace
2. These are the based on the virtual tables
3. These are owned by the SYS user
4. These can be queried by a normal user only if
O7_DICTIONARY_ACCESSIBLILITY parameter
is set to TRUE
5. The V$FIXED_TABLE view can be queried to list the names of these views
A. 1 and 3
B. 2,3 and 5
C. 1,2, and 5
D. 2,3,4 and 5
QUESTION NO: 17
In which situation may the UNDO_RETENTION parameter be ignored, even if it is
set to a value?
A. When the data file of the undo tablespace is autoextensible
B. When there are more than one undo tablespace available in the database
C. When the undo tablespace is of a fixed size and retention guarantee is not
enabled
D. When the undo tablespace is autoextensible and retention guarantee is not
enabled
QUESTION NO: 18
Your database is open and the LISTENER listener is running. The new DBA of the
system stops the listener by using the command: LSNRCTL> STOP
What happens to the sessions that are presently connected to the database
instance?
A. The sessions are able to perform only queries
B. The sessions are not affected and continue to function normally
C. The sessions are terminated and the active transactions are rolled back
D. The sessions are not allowed to perform any operations till the listener is started
QUESTION NO: 19
Which two statements are true regarding listeners? (Choose two.)
A. Listeners use only the TCP/IP protocol.
B. Multiple listener processes can run simultaneously on a host.
C. Multiple database instances can be registered with a single listener.
D. The listener-related errors can be traced only at the administrative level.
E. Only one database instance can be registered with a single listener at any time.
QUESTION NO: 20
You have issued a SHUTDOWN ABORT command to bring down your database
instance.
Consider the steps that will be performed later when you open the database:
1. SGA is allocated.
2. Control file is read.
3. Redo log files are opened.
4. Instance recovery is started.
5. Background processes are started.
6. Data file headers are checked for consistency.
7. Server parameter file or the initialization parameter file is read.
Which option has the correct order in which these steps occur?
A. 7, 1, 5, 2, 3, 6, 4
B. 1, 2, 3, 7, 5, 6, 4
C. 7, 1, 4, 5, 2, 3, 6
D. 1, 7, 5, 4, 2, 3, 6
QUESTION NO: 21
Given below is a list of scenarios:
1. A user terminates his session abnormally.
2. The connection between the server and the client application terminates
because of a network
failure.
3. A schema is accidentally dropped.
4. The tablespace is accidentally dropped from the database.
5. The hard disk gets corrupted and the data files in the disk are lost.
6. The database instance abnormally shuts down because of power failure.
Which scenarios require DBA intervention to perform recovery?
A. 1, 3, and 6
B. 4, 5, and 6
C. 3, 4, and 5
D. 1, 2, and 6
QUESTION NO: 22
Which three operations require undo data? (Choose three.)
A. Committing a transaction
B. Flashing back a transaction
C. Recovering a failed transaction
D. Running a read-consistent query
E. Changing a tablespace status from READ ONLY to READ WRITE
QUESTION NO: 23
Which of these is true about undo tablespace?
A. Undo tablespace is a temporary tablespace
B. Undo tablespace has only one datafile
C. Undotablespace has a datafile which is reused in cyclic manner
QUESTION NO: 24
Your database is in shutdown state. What will happend if you issue next command:
SQL> startup
A. instance will started
B. instance started and DB is mounted
C. instance started, DB opened and finally mounted
D. instance started, DB mounted and finally opened
QUESTION NO: 25
All the database users are presently connected to the database instance and
working. The HR
user has opened three database sessions and executed the following command in
one of his
sessions:
SQL> UPDATE persons SET ccode='U031' WHERE ccode='U029';
123 rows updated.
SQL> DELETE FROM persons WHERE exp='Y';
3 rows deleted.
The SYS user opens a new session after HR executed the above commands.
Which sessions can see the effect of the UPDATE and DELETE commands?
A. All sessions of the HR user only
B. All sessions of the HR user and the SYS user
C. The session of the HR user that executed the commands
D. All the sessions for which the database users have access privilege to the
PERSONS table