R4RIN
Articles
Java 8
MCQS
Oracle DB MCQ Quiz Hub
Oracle DB Mcq Question Set 4
Choose a topic to test your knowledge and improve your Oracle DB skills
1. DCL Provides Commands To Perform Actions Like ______
Change The Structure Of Tables
Insert, Update Or Delete Records And Data Values
Authorizing Access And Other Control Over Database
None of the mentioned
2. To obtain the structure of an Oracle table, the command to use is:
STRUCTURE [TableName].
DESCRIBE [TableName].
DESCRIBE STRUCTURE [TableName].
DESC TABLE [TableName].
3. Database management systems are intended to _______
Eliminate data redundancy
Establish relationship among records in different files
Manage file access
All of the Mentioned
4. Database management systems are intended to _________
Eliminate data redundancy
Establish relationship among records in different files
Manage file access
All of the Mentioned
5. The Oracle environment of database is called as _______
Database Schema
Database Instances
Data Structure
All of the Mentioned
6. Collection of information stored in database at particular instance of time is called as _______
Instance of Database
Objects in Databases
Data structure
Database Schema
7. Oracle database’s design is also called as______
Database Abstraction
Database Instance
Database Schema
None of the mentioned
8. Map entities, attributes and relations in Oracle is represented by______
Conceptual Schema
Logical Schema
Physical Schema
All of the Mentioned
9. A ______ is used to logically group data together
Database
Tablespace
Datafiles
Object
10. A _____ is a set of tables physically stored together as one table that shares a common column
Index
Object
Datafiles
Cluster
11. Examine the following settings for the initialization parameters: MEMORY_MAX_TARGET=0 MEMORY_TARGET=500M SGA_TARGET=300M PGA_AGGREGATE_TARGET=70M Which statement is true about the memory management for the newly started database instance?
MEMORY_TARGET defines the maximum limit for SGA_TARGET
SGA_TARGET and PGA_AGGREGATE_TARGET combined will never grow beyond 500M
The value for MEMORY_MAX_TARGET is the sum of SGA_TARGET and PGA_AGGREGATE_TARGET
SGA_TARGET and PGA_AGGREGATE_TARGET will keep growing till a maximum of 300M and 70M, respectively
12. What type of failure occurs when Oracle fails due to an operating system or computer hardware failure?
Application failure
Instance Failure
Media Failure
Rollback failure
13. Which statement about sequences is not true?
A sequence is an object that generates a sequential series of unique numbers.
Sequences are most often used to provide values for surrogate keys.
NextVal and CurrVal are both sequence methods.
Sequences guarantee valid surrogate key values.
14. Which prefixes are available to Oracle triggers?
:new only
:old only
Both :new and :old
Neither :new nor :old
15. In creating a procedure, you may get a message if you have compile errors. Which of the following is true?
The line numbers reported match the line numbers you see in your text editor.
SQL*Plus will automatically show the errors to you.
To see the errors, enter SHOW ERRORS in SQL*Plus.
If there are no syntax errors, you will receive the message "NO ERRORS."
16. Which of the following is not true about indexes?
Indexes are created to enforce uniqueness on columns.
Indexes are created to enable fast retrieval by column values.
Columns that are frequently used with equal conditions in WHERE clauses are good candidates for indexes.
Indexes are created with the ALTER TABLE command.
17. Which of the following is not true of SQL views?
Oracle views cannot use the ORDER BY clause in view definitions.
Oracle views are created using the standard SQL-92 CREATE VIEW command.
Oracle views can by queried.
The SQL-92 standard does not allow the use of the ORDER BY clause in view definitions.
18. SQL*Plus will finish the statement and execute it when the user types in this:
A left slash ( ) followed by [Enter].
A colon ( : ) followed by [Enter].
A semicolon ( ; ) followed by [Enter].
A period ( . ) followed by [Enter].
19. Which of the following is NOT an Oracle-supported trigger?
BEFORE
DURING
AFTER
INSTEAD OF
20. After a table has been created, its structure can be modified using the SQL command:
UPDATE TABLE [TableName].
MODIFY TABLE [TableName].
ALTER TABLE [TableName].
CHANGE TABLE [TableName].
21. Which of the following is not true about modifying table columns?
You can drop a column at any time.
You can add a column at any time as long as it is a NULL column.
You can increase the number of characters in character columns or the number of digits in numeric columns
You cannot increase or decrease the number of decimal places.
22. Of the three ways to create an Oracle database, which one is the easiest and most recommended?
Using the Oracle Database Configuration Assistant.
Using the Oracle-supplied database creation procedures.
Using the SQL CREATE DATABASE command.
none of the above is correct.
23. What Oracle backup and recover file contains user and system data?
Control file
Datafile
OnLine ReDo file
Offline ReDo file
24. When using SQL*Plus, Oracle commands, column names, table names and all other database elements:
are case insensitive.
are case sensitive.
must always be in lower case.
must always be in upper case.
25. Which SQL phrase is not supported by Oracle?
ON DELETE CASCADE
ON UPDATE CASCADE
CREATE SEQUENCE [SequenceName]
DROP SEQUENCE [SequenceName]
26. What is the type of Oracle backup in which all uncommitted changes have been removed from the datafiles?
Full backup
Consistent backup
Inconsistent backup
Differential backup
27. You have linked SQL*Plus to an external text editor. To invoke the text editor for use within SQL*Plus, which command do you use?
Open [FileName]
Show [FileName]
Alter [FileName]
Edit [FileName]
28. The default extension for an Oracle SQL*Plus file is:
.txt.
.pls.
.ora.
.sql.
29. An Oracle System Change Number (SCN):
is a value that is incremented whenever a dirty read occurs.
is incremented whenever a deadlock occurs.
is a value that keeps track of explicit locks.
is a value that is incremented whenever database changes are made.
30. To see the contents of the SQL*Plus buffer, type:
CONTENTS.
BUFFER.
CURRENT.
LIST.
31. Oracle database is a ?
Centralised database
End-user database
Commercial database
Relational database
32. How many editions of the Oracle database there?
2
3
4
5
33. A __________ is a single field or combination of fields that contains a unique record.
Compound Key
Primary key
Foreign Key
Index
34. Which statement is used to create a table from an existing table by copying the columns of existing table?
CREATE TABLE new_table AS (SELECT * FROM old_table);
CREATE TABLE new_table (SELECT * FROM old_table);
CREATE TABLE new_table WHERE (SELECT * FROM old_table);
CREATE TABLE new_table LIKE (SELECT * FROM old_table);
35. A ________ is created by a query joining one or more tables.
Trigger
Procedure
Both A and B
View
36. Which query is used to add, modify, delete or drop colums of a table?
Update
Alter
Truncate
Drop
37. Which clause is used to remove the duplicate records from the result set?
Where
Group by
Like
Distinct
38. How many CREATE TRIGGER statements are there?
4
5
6
7
39. view is a virtual table that does not physically exist.
TRUE
FALSE
Can be true or false
Can not say
40. In your Oracle 10g database , you have scheduled a job to update the optimizer statistics at 05:00 pm every Friday. The job has successfully completed. Which three pieces of information would you check to confirm that the statistics have been collected? (Choose three.)
average row size
last analyzed date
size of table in bytes
size of table in database blocks
41. You are in the middle of a transaction and very crucial data has been modified. Because of a hardware failure, the instance has shut down before synchronizing all the database files. Which two statements are true? (Choose two.)
On startup, SMON coordinates instance recovery.
On startup, CKPT coordinates instance recovery.
On startup, use RMAN to perform instance recovery.
Uncommitted changes will be rolled back after the database is opened.
42. You are using the backup scheduler in Enterprise Manager (EM) to schedule a backup of your database. Which type of script does the backup scheduler generate?
SQL script
PL/SQL script
Operating System (OS) script
Recovery Manager (RMAN) script
43. Which step do you need to perform to enable a user with the SYSDBA privilege to log in as SYSDBA in iSQL*Plus?
The user must be granted the database administrator (DBA) privilege.
The user must be listed in the password file for the authentication.
No special setup is needed for the user to connect as SYSDBA in iSQL*Plus.
Set up a user in the Oracle Application Server Containers for J2EE (OC4J) user manager, and grant the webDba role to the user.
44. Which two statements regarding the LOGGING clause of the CREATE TABLESPACE. .. statement are correct? (Choose two.)
This clause is not valid for a temporary or undo tablespace.
If the tablespace is in the NOLOGGING mode, no operation on the tablespace will generate redo.
The tablespace will be in the NOLOGGING mode by default, if not specified while creating a tablespace.
The tablespace-level logging attribute can be overridden by logging specifications at the table, index, materialized view, materialized view log, and partition levels.
45. Which two statements are true about the primary key constraint in a table? (Choose two.)
It is not possible to disable the primary key constraint.
It is possible to have more than one primary key constraint in a single table.
The primary key constraint can be referred by only one foreign key constraint.
The primary key constraint can be imposed by combining more than one column.
46. You want the user APP_DBA to administer the Oracle database from a remote machine. APP_DBA is granted the SYSDBA privilege to perform administrative tasks on the database. Which file is used by the Oracle database server to authenticate APP_DBA?
control file
password file
listener controller file
control file and password file
47. Which three statements are true regarding the logical structure of the Oracle database? (Choose three.)
Each segment contains one or more extents.
Multiple tablespaces can share single data file.
A data block is the smallest unit of I/O for data files.
It is possible to have tablespaces of different block sizes in a database.
48. Which is the memory area that is created when a dedicated server process is started, and contains data and control information for that server process?
SGA
PGA
Shared Pool
Streams Pool
49. You find that the database performance degrades while you backup the PROD database using Recovery Manager (RMAN). The PROD database is running in shared server mode. The database instance is currently using 60% of total operating system memory. You suspect the shared pool fragmentation to be the reason. Which action would you consider to overcome the performance degradation?
Configure Java Pool to cache the java objects.
Configure Streams Pool to enable parallel processing.
Increase Shared Pool size to cache more PL/SQL objects.
Configure Large Pool to be used by RMAN and shared server.
50. You execute the following command to audit the database activities: SQL> AUDIT DROP ANY TABLE BY scott BY SESSION WHENEVER SUCCESSFUL; What is the effect of this command?
One audit record is created for the whole session if user SCOTT successfully drops one or more tables in his session.
One audit record is created for every session when any user successfully drops a table owned by SCOTT.
One audit record is created for each successful DROP TABLE command executed by any user to drop tables owned by SCOTT.
One audit record is generated for the session when SCOTT grants the DROP ANY TABLE privilege to other users in his session.
51. The SAVE_AMT column in the ACCOUNTS table contains the balance details of customers in a bank. As part of the year-end tax and interest calculation process, all the rows in the table need to be accessed. The bank authorities want to track access to the rows containing balance amounts exceeding $200,000, and then send an alert message to the administrator. Which method would you suggest to the bank for achieving this task?
implementing value-based auditing by using triggers
implementing fine-grained auditing with audit condition and event handler
performing standard database auditing to audit object privileges by setting the AUDIT_TRAIL parameter to EXTENDED
performing standard database auditing to audit SQL statements with granularity level set to ACCESS
52. Which three statements are true regarding the fine-grained auditing (FGA)? (Choose three.)
FGA is possible on SELECT statements only.
The audit trail for FGA is stored in the FGA_LOG$ table.
The audit trail for FGA is stored in the AUD_LOG$ table.
FGA enables a SQL predicate to define when to audit an event.
Submit