![Oracle Database MCQ Banner Oracle Database MCQ Banner](https://static.placementpreparation.io/cdn-cgi/image/metadata=keep,quality=60,width=1440,height=500,f=auto,fit=cover/aptitude-images/aptitude/category/v2/webps/oracle-database-mcq-banner-web.webp)
Q91
Q91 A query using indexes is not performing well. What might be the reason?
Index is fragmented
Index is invalid
Statistics are outdated
Query syntax is incorrect
Q92
Q92 A SQL statement takes too long to execute. What could be the issue?
Poor indexing strategy
Excessive disk I/O
High contention for resources
All of the above
Q93
Q93 What is the purpose of user management in Oracle Database?
To define database structures
To manage database users and their privileges
To perform backups
To optimize queries
Q94
Q94 Which command is used to create a new user in Oracle Database?
CREATE ACCOUNT username IDENTIFIED BY password;
ADD USER username WITH password;
CREATE USER username IDENTIFIED BY password;
NEW USER username WITH password;
Q95
Q95 What is the purpose of the GRANT command in Oracle?
To delete user accounts
To revoke privileges
To assign privileges to users
To modify table structures
Q96
Q96 What does the ALTER USER command do in Oracle?
Changes user attributes
Deletes user accounts
Assigns privileges
Modifies table structures
Q97
Q97 What is the difference between a role and a privilege in Oracle?
Roles are more granular; privileges are broad
Roles are predefined; privileges are user-defined
Roles group privileges; privileges define specific actions
Roles are for users; privileges are for tables
Q98
Q98 Write a query to create a user named "john" with the password "password123".
CREATE USER john IDENTIFIED BY password123;
CREATE ACCOUNT john PASSWORD password123;
ADD USER john WITH password123;
NEW USER john IDENTIFIED password123;
Q99
Q99 Write a query to grant the SELECT privilege on the "employees" table to "john".
GRANT SELECT ON employees TO john;
GRANT READ ON employees TO john;
ASSIGN SELECT employees TO john;
PERMIT SELECT ON employees TO john;
Q100
Q100 Write a query to revoke the UPDATE privilege on the "employees" table from "john".
REVOKE UPDATE ON employees FROM john;
REMOVE UPDATE employees FROM john;
DELETE PRIVILEGE UPDATE ON employees FROM john;
REMOVE PRIVILEGE UPDATE FROM john;
Q101
Q101 Write a query to create a role named "HR_MANAGER" with the SELECT and UPDATE privileges on the "employees" table.
CREATE ROLE HR_MANAGER; GRANT SELECT, UPDATE ON employees TO HR_MANAGER;
CREATE ROLE HR_MANAGER WITH SELECT, UPDATE;
GRANT SELECT, UPDATE TO ROLE HR_MANAGER;
CREATE HR_MANAGER ROLE WITH PRIVILEGES;
Q102
Q102 A user cannot log in to the database. What could be the issue?
User account is locked
User lacks privileges
Table is missing
Query syntax error
Q103
Q103 A GRANT command fails with "ORA-01031: insufficient privileges." What is the cause?
User lacks GRANT option
Table does not exist
Database is in restricted mode
Invalid syntax
Q104
Q104 A user cannot perform SELECT queries after being granted SELECT privilege. What could be the issue?
Privilege not committed
Object does not exist
User was not granted access to the schema
User is locked
Q105
Q105 What is the purpose of the Data Pump utility in Oracle?
To optimize queries
To perform high-speed export and import operations
To create backups
To manage user privileges
Q106
Q106 Which command is used to export data using the Data Pump Export utility?
EXPDP
IMPDP
EXPORT
IMPORT
Q107
Q107 What is the function of the "DIRECT" parameter in Data Pump Export?
Compresses data during export
Skips validation
Improves performance by bypassing the buffer
Encrypts the data
Q108
Q108 What is the difference between FULL and SCHEMA mode in Data Pump Export?
FULL exports all objects; SCHEMA exports only objects in a specific schema
FULL exports only data; SCHEMA exports data and metadata
FULL requires admin privileges; SCHEMA does not
FULL is faster than SCHEMA mode
Q109
Q109 Write a Data Pump Export command to export a schema named "HR."
EXPDP SYSTEM/password SCHEMAS=HR DIRECTORY=exp_dir DUMPFILE=hr_exp.dmp LOGFILE=hr_exp.log;
EXPDP HR/password FULL=y DIRECTORY=exp_dir DUMPFILE=full_exp.dmp LOGFILE=full_exp.log;
EXPORT HR/password SCHEMA_ONLY DIRECTORY=exp_dir DUMPFILE=hr_only.dmp;
EXPDP SYSTEM/password SCHEMA HR DIRECTORY=exp_dir LOG=hr_exp.log;
Q110
Q110 Write a Data Pump Import command to import a dump file named "hr_exp.dmp."
IMPDP SYSTEM/password DIRECTORY=exp_dir DUMPFILE=hr_exp.dmp LOGFILE=hr_imp.log;
IMPDP HR/password FILE=hr_exp.dmp LOG=hr_imp.log DIRECTORY=exp_dir;
IMPORT SYSTEM/password FILE=hr_exp.dmp LOGFILE=hr_imp.log DIRECTORY=exp_dir;
IMPDP HR/password FILE=hr_only.dmp LOGFILE=imp_hr.log DIRECTORY=exp_dir;
Q111
Q111 Write a command to export only tables "employees" and "departments" using Data Pump.
EXPDP SYSTEM/password TABLES=employees,departments DIRECTORY=exp_dir DUMPFILE=table_exp.dmp LOGFILE=table_exp.log;
EXPDP SYSTEM/password TABLE_ONLY=employees,departments DIRECTORY=exp_dir FILE=table_exp.dmp LOG=table_exp.log;
EXPORT SYSTEM/password TABLE=employees,departments DIRECTORY=exp_dir FILE=table_exp.dmp LOG=table_exp.log;
EXPDP SYSTEM/password TABLES=employees,departments FILE_ONLY=table_exp.dmp LOG=table_exp.log DIRECTORY=exp_dir;
Q112
Q112 A Data Pump Export command fails with "ORA-39002: invalid operation." What is the likely cause?
Incorrect directory parameter
Insufficient privileges
Incorrect syntax
File does not exist
Q113
Q113 A Data Pump Import fails with "ORA-31655: no data objects selected." What could be the cause?
Dump file does not exist
Incorrect SCHEMAS parameter
Dump file corrupted
Target database is offline
Q114
Q114 What is the purpose of Oracle Net Services?
To connect Oracle databases and client applications
To back up data
To monitor user sessions
To optimize queries
Q115
Q115 Which file stores the network configuration for Oracle Database?
listener.ora
tnsnames.ora
sqlnet.ora
All of the above
Q116
Q116 What is the role of the Oracle Listener?
Handles SQL queries
Facilitates connections to the database
Monitors database performance
Manages backups
Q117
Q117 What is the difference between dedicated and shared server configurations?
Dedicated assigns one process per client; shared uses fewer server processes
Shared requires more memory; dedicated requires less
Dedicated is faster; shared is more secure
Both configurations are identical
Q118
Q118 Write a command to start the Oracle Listener.
lsnrctl start
lsnrctl begin
start listener
listener start
Q119
Q119 Write a command to view the status of the Oracle Listener.
lsnrctl status
show listener status
listener status
status listener
Q120
Q120 Write a command to reload the Oracle Listener configuration.
lsnrctl reload
reload listener
listener reload
lsnrctl reconfigure