Oracle 1ZO 082 Practice Tests
Oracle 1ZO 082 Practice Tests
Solution
Overall explanation
Explanation
Bigfile tablespaces are supported only for locally managed tablespaces with
automatic segment space management, with three exceptions: locally
managed undo tablespaces, temporary tablespaces, and the SYSTEM
tablespace.
https://docs.oracle.com/en/database/oracle/oracle-database/19/admin/managing-
tablespaces.html#GUID-7E376766-D99D-4274-BF00-8DC1E6FC5063
Domain
Managing Tablespaces and Datafiles
Question 2:
View the Exhibits and examine the structure of the COSTS and PROMOTIONS
tables.
You want to display PROD_IDS whose promotion cost is less than the highest
cost PROD_ID in a promotion time interval.
Exhibit 1.
Exhibit 2.
What will be the result?
Solution
Question 3:
Which two statements are true about UNDO and REDO? (Choose two.)
Solution
Overall explanation
Explanation
DML modifies Oracle database objects and only generates UNDO – False – it
generates REDO too.
DML modifies Oracle database objects and only generates REDO – False – it
generated UNDO too.
DML modifies Oracle database objects and generates UNDO and REDO – True
– In general, DML generates UNDO as well as REDO.
Domain
Managing Tables using DML statements
Question 4:
The ORCL database has RESUMABLE_TIMEOUT = 7200 and
DEFERRED_SEGMENT_CREATION = FALSE
FROM dba_objects);
2017-03-06T12:15:17.183438+05:30
Which are three actions any one of which the DBA could take to resume the
session? (Choose three.)
Overall explanation
Explanation
The error in alert log is about the tablespace quota so either space has to be
freed up or quota has to be increased.
If set to true, then segments for tables and their dependent objects (LOBs,
indexes) will not be created until the first row is inserted into the table.
Domain
Managing Users, Roles and Privileges
Question 5
Table EMPLOYEES contains columns including EMPLOYEE_ID, JOB_ID and
SALARY.
Question 7
Which two statements are true about views used for viewing tablespace and
datafile information? (Choose two.)
Overall explanation
Explanation
V$TABLESPACE displays tablespace information from the control file
Domain
Managing Tablespaces and Datafiles
Question 8Skip
In one of your databases, the user HR has the password HRMGR.
CONNECT HR/HRMGR@orcl -
Read here:
Client Connections
Domain
Configuring Oracle Net Services
Question 9
Examine the description of the PROMOTIONS table:
You want to display the unique promotion costs in each promotion category.
An inner join (sometimes called a simple join) is a join of two or more tables
that returns only those rows that satisfy the join condition.
Domain
Displaying Data from Multiple Tables Using Joins
Question 11
Which two statements are true about the results of using the INTERSECT
operator in compound queries? (Choose two.)
Question 12
Which two statements are true about the ORDER BY clause when used with a
SQL statement containing a SET operator such as UNION? (Choose two.)
Question 13Skipped
In one of your databases, you create a user, HR, and then execute this
command:
Overall explanation
Explanation
If a server parameter file was used to start up the database, then BOTH is
the default. If a parameter file was used to start up the database, then
MEMORY is the default, as well as the only scope you can specify.
Domain
Managing Tablespaces and Datafiles
Question 15
In the ORCL database, UNDOTBS1 is the active undo tablespace with these
properties:
1. A size of 100 MB
2. AUTOEXTEND is off
What will happen when the next update is attempted by any transaction?
Overall explanation
Explanation
Starting with Oracle Database release 19c, version 19.7, for both
AUTOEXTEND undo tablespaces and fixed-size undo tablespaces, the system
retains undo for at least the time specified in this parameter, and
automatically tunes the undo retention period to satisfy the undo
requirements of the queries.
In earlier versions of Oracle Database release 19c, the behavior is different
for the two types of undo tablespaces. For AUTOEXTEND undo tablespaces,
the system retains undo for at least the time specified in this parameter, and
automatically tunes the undo retention period to satisfy the undo
requirements of the queries. For fixed-size undo tablespaces, the system
automatically tunes for the maximum possible undo retention period, based
on undo tablespace size and usage history, and ignores UNDO_RETENTION
unless retention guarantee is enabled for the tablespace
Domain
Managing Undo
Question 16
Which three statements are true about GLOBAL TEMPORARY TABLES?
(Choose three.)
Overall explanation
Explanation
Domain
Using Subqueries to Solve Queries
Question 17
Which three statements are true about the tools used to configure Oracle
Net Services? (Choose three.)
Overall explanation
Explanation
(ADDRESS=(PROTOCOL=tcp)(HOST=host_name)(PORT=1521))
Oracle Net Services provides user interface tools and command-line utilities
to configure, manage, and monitor the network.
Domain
Configuring Oracle Net Services
Question 18
Examine this description of the TRANSACTIONS table:
Domain
Managing Sequences, Synonyms, Indexes
Question 20Skipped
Examine this command and some partial output:
You can combine multiple queries using the set operators UNION, UNION ALL,
INTERSECT, and MINUS. All set operators have equal precedence. If a SQL
statement contains multiple set operators, then Oracle Database evaluates
them from the left to right unless parentheses explicitly specify another
order.
Domain
Displaying Data from Multiple Tables Using Joins
Question 23
Which three Oracle database space management features will work with
both Dictionary and Locally managed tablespaces? (Choose three.)
Overall explanation
Explanation
SECUREFILE LOBs
Tables compressed with the following compression methods:
Domain
Managing Tablespaces and Datafiles
Question 24
Which two statements are true about the SET VERIFY ON command? (Choose
two.)
Overall explanation
Explanation
Domain
Managing Users, Roles and Privileges
Question 25
Which three statements are true concerning logical and physical database
structures? (Choose three.)
Overall explanation
Explanation
All tablespaces may have one or more data files - False - Bigfile tablespaces
can have only one datafile.
The extents of a segment must always reside in the same datafile - False -
Extents of a segment can span across multiple datafiles for smallfile
tablespaces as such tablespaces can have multiple datafiles.
A segment might have only one extent - True - If segment is very small, it
might have only one extent.
Segments can span multiple tablespaces - False - A segment can span only
one tablespace. For paritioned tables, different partitions can resize in
different tablespaces.
Domain
Managing Tablespaces and Datafiles
Question 26
Which two statements are true about Enterprise Manager Database Express?
(Choose two.)
Question 27Skipped
Evaluate these commands which execute successfully:
Which two statements are true about the ORD_ITEMS table and the ORD_SEQ
sequence? (Choose two.)
Overall explanation
Explanation
If sequence ORD_SEQ is dropped then the default value for column ORD_NO
will be NULL for rows inserted into ORD_ITEMS – False
Any user inserting rows into table ORD_ITEMS must have been granted
access to sequence ORD_SEQ – True
Sequence ORD_SEQ cycles back to 1 after every 5000 numbers and can
cycle 20 times – False
Domain
Managing Tables using DML statements
Question 28Skipped
Examine the description of the CUSTOMERS table:
For customers whose income level has a value, you want to display the first
name and due amount as 5% of their credit limit. Customers whose due
amount is null should not be displayed.
Overall explanation
Explanation
CURRENT_.... will return the data according to local session time zone.
Domain
Managing Data in Different Time Zone
Question 30
A database is configured to use automatic undo management with
temporary undo enabled.
Overall explanation
Explanation
By default, undo records for temporary tables are stored in the undo
tablespace and are logged in the redo, which is the same way undo is
managed for persistent tables. However, you can use the
TEMP_UNDO_ENABLED initialization parameter to separate undo for
temporary tables from undo for persistent tables. When this parameter is set
to TRUE, the undo for temporary tables is called temporary undo.
Question 31
Which two are true about a SQL statement using SET operators such as
UNION? (Choose two.)
Overall explanation
Explanation
The number of columns in all SELECT must be name, column names can be
different.
The data type group should be same.
You can combine multiple queries using the set operators UNION, UNION ALL,
INTERSECT, and MINUS. All set operators have equal precedence. If a SQL
statement contains multiple set operators, then Oracle Database evaluates
them from the left to right unless parentheses explicitly specify another
order.
Domain
Managing Sequences, Synonyms, Indexes
Question 32
Which two statements are true regarding a SAVEPOINT? (Choose two.)
Overall explanation
Explanation
SAVEPOINT can work only across soft DMLs like DELETE/UPDATE/INSERT etc,
not across hard DMLs like TRUNCATE or DDLs like CREATE INDEX etc.
Domain
Managing Tables using DML statements
Question 33
Which three statements are true about the DESCRIBE command? (Choose
three.)
Overall explanation
Explanation
DESCRIBE command doesn’t display primary key constraints, only NOT NULL
constraints.
It can be run from any tool which is able to run SQL in command prompt
mode.
Domain
Question 34
Which three statements about dropping and unused columns in an Oracle
database are true? (Choose three.)
Overall explanation
Explanation
Partition key columns cannot be dropped. – True. You will get error - ORA-
12984: cannot drop partitioning column
A column that is set to UNUSED still counts towards the limit of 1000
columns per table – True. Adding more columns will give this error until you
really drop the unused columns - ORA-01792: Maximum Number Of Columns
In A Table Or View Is 1000
Domain
Restricting and Sorting Data
Question 35
Examine this command:
When you run the ALTER DATABASE MOVE DATAFILE statement and a file
with the same name exists in the destination location, you can specify the
REUSE option to overwrite the existing file. When REUSE is not specified, and
a file with the same name exists in the destination location, the existing file
is not overwritten, and the statement returns an error.
Domain
Managing Tablespaces and Datafiles
Question 36Skipped
The SCOTT/TIGER user exists in two databases, BOSTON_DB and DALLAS_DB,
in two different locations.
How do you execute the command so that only SCOTT in BOSTON_DB can
access the SCOTT schema in DALLAS_DB?
Overall explanation
Explanation
You connect the required schema in source database and create the
database link pointing to the remote database.
Domain
Moving Data
Question 37
You need to calculate the number of days from 1 January 2019 until today.
Domain
Managing Tables using DML statements
Overall explanation
Explanation
Domain
Retrieving Data using the SQL SELECT Statement
Question 40Skipped
Which three statements are true about single-row functions? (Choose three.)
Overall explanation
Explanation
Single-row functions like DECODE, ROUND etc can be used in SELECT as well
as WHERE clauses of a SQL.
Example:
For a table, these functions can return as many results as the number of
rows in the table like ROUND(<column>) or just one results like SUM or
anything else too like SUM combined with GROUP BY.
Domain
Retrieving Data using the SQL SELECT Statement
Question 41
Which two statements are true about the rules of precedence for operators?
(Choose two.)
Overall explanation
Explanation
Domain
Managing Users, Roles and Privileges
Question 42Skipped
Which three statements are true about a self join? (Choose three.)
Overall explanation
Explanation
A self join SQL can be written in ANSI standard where 'JOIN' and 'ON'
keywords are used or in Oracle standard where 'WHERE' clause is used.
select e.*
from emp e
join dept d
on e.deptno = d.deptno
select e.*
Domain
Displaying Data from Multiple Tables Using Joins
Question 43Skipped
Which two statements are true about the DUAL table? (Choose two.)
Overall explanation
Explanation
Domain
Managing Storage
Question 44Skipped
Examine the description of the CUSTOMERS table:
You want to display details of all customers who reside in cities starting with
the letter D followed by at least two characters.
Question 46Skipped
In the spfile of a single instance database, LOCAL_LISTENER is set to
LISTENER_1.
Overall explanation
Explanation
The listener forwards client requests to supported services. These services
are dynamically registered with the listener. This dynamic registration
feature is called service registration. The registration is performed by the
Listener Registration (LREG) process. Dynamic service registration does not
require any manual configuration in the listener.ora file.
Domain
Configuring Oracle Net Services
Question 47Skipped
Which three statements are true about undo segments and the use of undo
by transactions in an Oracle database instance? (Choose three.)
Question 48Skipped
Which two statements are true about single row functions? (Choose two.)
Overall explanation
Explanation
FLOOR returns the largest integer equal to or less than a given number.
CONCAT can take any number of arguments in Oracle 21c but in Oracle 19c,
it takes only 2 arguments.
Read here -
https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/
CONCAT.html#GUID-D8723EA5-C93A-45C3-83FB-1F3D2A4CEAF2
TRUNC works are NUMBER and DATE values.
Domain
Using Single-Row Functions to Customize Output
Question 49Skipped
You want to apply the principle of Least Privilege in all your live databases.
Domain
Managing Users, Roles and Privilege
Question 50Skipped
You want to use table compression suitable for OLTP that will:
Advanced row compression caused minimum CPU Overload and is good for
OLTP/DSS.
Read here - About Table Compression
Domain
Managing Storage
Question 51Skipped
The EMPLOYEES table contains columns EMP_ID of data type NUMBER and
HIRE_DATE of data type DATE.
You want to display the date of the first Monday after the completion of six
months since hiring.
NEXT_DAY returns the date of the first weekday named by char that is later
than the date date. The return type is always DATE, regardless of the data
type of date.
Domain
Retrieving Data using the SQL SELECT Statement
Question 52Skipped
Which three statements are true about the Oracle Data Dictionary? (Choose
three.)
Overall explanation
Explanation
Data Dictionary views are created by joins of dictionary base tables, not
DBA-defined tables.
Base tables
These store information about the database. Only Oracle Database should
write to and read these tables. Users rarely access the base tables directly
because they are normalized and most data is stored in a cryptic format.
Views
These decode the base table data into useful information, such as user or
table names, using joins and WHERE clauses to simplify the information. The
views contain the names and descriptions of all objects in the data
dictionary. Some views are accessible to all database users, whereas others
are intended for administrators only.
The Oracle Database user account SYS owns all base tables and user-
accessible views of the data dictionary.
Domain
Managing Schema Objects
Question 53Skipped
You execute this command:
During the export operation, you detach from the job by using CTRL+C and
then execute this command:
Export> STOP_JOB=immediate -
Are you sure you wish to stop the job ([yes]/no): yes
Which two statements are true about the job? (Choose two.)
Overall explanation
Explanation
Purpose
Stops the current job, either immediately, or after an orderly shutdown, and
exits Export.
If the Data Pump control job table and dump file set are not disturbed when
or after the STOP_JOB command is issued, then the job can be attached to
and restarted at a later time with the START_JOB command.
Question 54Skipped
Which three statements are true about time zones, date data types, and
timestamp data types in an Oracle database? (Choose three.)
Overall explanation
Explanation
CURRENT_TIMESTAMP returns the current date and time in the session time
zone, in a value of data type TIMESTAMP WITH TIME ZONE. The time zone
offset reflects the current local time of the SQL session. If you omit precision,
then the default is 6. The difference between this function and
LOCALTIMESTAMP is that CURRENT_TIMESTAMP returns a TIMESTAMP WITH
TIME ZONE value while LOCALTIMESTAMP returns a TIMESTAMP value.
A TIMESTAMP data type column contains information about year, month, and
day – True
Year, month, and day values of date, as well as hour, minute, and second
values of time, where fractional_seconds_precision is the number of digits in
the fractional part of the SECOND datetime field.
DBTIMEZONE returns the value of the database time zone. The return type is
a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time
zone region name, depending on how the user specified the database time
zone value in the most recent CREATE DATABASE or ALTER DATABASE
statement.
SESSIONTIMEZONE returns the time zone of the current session. The return
type is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a
time zone region name, depending on how the user specified the session
time zone value in the most recent ALTER SESSION statement.
Read here - SESSIONTIMEZONE
Domain
Managing Data in Different Time Zone
Question 55Skipped
You have been tasked to create a table for a banking application.
3. Be used for calculating interest for the number of days the loan remains
unpaid
The database does not create an index segment when creating an unusable
index.
Read here
- https://docs.oracle.com/en/database/oracle/oracle-database/19/admin/
managing-indexes.html#GUID-FA0C46EC-DA22-4484-AF52-58BC0CBEEC81
When you make an existing index unusable, its index segment is dropped.
Private temporary tables are temporary database objects that are dropped at
the end of a transaction or session. Private temporary tables are stored in
memory and each one is visible only to the session that created it.
Question 57Skipped
Which three statements are true about advanced connection options
supported by Oracle Net for connection to Oracle Database instances?
(Choose three.)
Overall explanation
Explanation
-
Transparent Application Failover (TAF) is a feature of the Java Database
Connectivity (JDBC) Oracle Call Interface (OCI) driver.
SOURCE_ROUTE - When set to on, this parameter instructs Oracle Net to use
each address in the order presented until the destination is reached.
Question 58Skipped
Which three functions are performed by dispatchers in a shared server
configuration? (Choose three.)
Overall explanation
Explanation
Shared Server - When the first request is received from a client, the
Dispatcher process places this request on a common queue. The request is
picked up by an available shared server process. The Dispatcher process
then manages the communication between the client and the shared server
process.
Read here - Comparing DRCP to Dedicated Server and Shared Server
Question 59
What is true about non-equijoin statement performance? (Choose two.)
Overall explanation
Explanation
Question 60Skipped
Which two statements are true about the Automatic Diagnostic Repository
(ADR)? (Choose two.)
Overall explanation
Explanation
Oracle Clusterware ADR data is written under a root directory known as the
ADR base, not inside an Oracle Database schema.
Question 61Skipped
Which two statements are true regarding Oracle database space
management within blocks managed by Automatic Segment Space
Management (ASSM)?
(Choose two.)
Overall explanation
Explanation
PCTFREE defaults to 10% for all blocks in all segments for all compression
methods – False
This statement is mostly true but not fully. This statememt is false because
tables with COMPRESS or COMPRESS BASIC use a PCTFREE value of 0 to
maximize compression as per Oracle Support Doc ID 1223705.1.
PCTFREE has the same function in the statements that create and alter
tables, partitions, clusters, indexes, materialized views, materialized view
logs, and zone maps.
SPACE_USAGE Procedures
Insert operations always attempt to find blocks with free space appropriate
to the length of the row being inserted - True
Update operations always attempt to find blocks with free space appropriate
to the length of the row being updated – False
In a newly allocated data block, the space available for inserts is the block
size minus the sum of the block overhead and free space (PCTFREE).
Updates to existing data can use any available space in the block. Therefore,
updates can reduce the available space of a block to less than PCTFREE.
A block will always be eligible for inserts if the row is short enough to fit into
the block – False
A block becomes a candidate for row insertion when its used space falls
below PCTUSED.
Question 62Skipped
The INVOICE table has a QTY_SOLD column of data type NUMBER and an
INVOICE_DATE column of data type DATE.
Overall explanation
Explanation
Question 63Skipped
Examine the description of the SALES1 table:
SALES2 is a table with the same description as SALES1.
You want to display the rows from the SALES1 table which are not present in
the SALES2 table.
The operator MINUS is used to subtract the result set of one query from
another’s.
Question 64Skipped
In your data center, Oracle Managed Files (OMF) is used for all databases.
Examine this command which is about to be issued by a DBA logged into the
SALES database:
Which are two actions, either of which you could take to ensure that the
command executes successfully? (Choose two.)
Overall explanation
Explanation
Specify ADD to add to the tablespace a data file or temp file specified by
file_specification.
Question 65Skipped
In one of your databases, user KING is:
Overall explanation
Explanation
Externally authenticated users are authenticated by the operating system or
network service.
You can create users who are authenticated externally. Oracle Database
then relies on this external login authentication when it provides that specific
operating system user with access to the database resources of a specific
user.
Question 66Skipped
You want to write a query that prompts for two column names and the
WHERE condition each time it is executed in a session but only prompts for
the table name the first time it is executed.
The variables used in your query are never undefined in your session.
CONSTRAINT clause
a table-level constraint
NOT NULL
Specifies that this column cannot hold NULL values (constraints of this type
are not nameable).
PRIMARY KEY
Specifies the column that uniquely identifies a row in the table. The identified
columns must be defined as NOT NULL.
Note: If you attempt to add a primary key using ALTER TABLE and any of the
columns included in the primary key contain null values, an error will be
generated and the primary key will not be added. See ALTER TABLE
statement for more information.
UNIQUE
FOREIGN KEY
CHECK
PRIMARY KEY
Specifies the column or columns that uniquely identify a row in the table.
NULL values are not allowed.
UNIQUE
FOREIGN KEY
Note: If the foreign key consists of multiple columns, and any column is
NULL, the whole key is considered NULL. The insert is permitted no matter
what is on the non-null columns.
CHECK
Column constraints and table constraints have the same function; the
difference is in where you specify them. Table constraints allow you to
specify more than one column in a PRIMARY KEY, UNIQUE, CHECK, or
FOREIGN KEY constraint definition. Column-level constraints (except for
check constraints) refer to only one column.
Overall explanation
Explanation
The WHERE clause can be used to exclude rows before dividing them into
groups – True – WHERE clause is run before dividing the output in groups.
The WHERE clause can be used to exclude rows after dividing them into
groups – False – WHERE clause is run before dividing the output in groups.
Overall explanation
Explanation
The trace file and alert log contain information about errors.
Each server and background process can write to an associated trace file.
When an internal error is detected by a process, it dumps information about
the error to its trace file. Some of the information written to a trace file is
intended for the database administrator, and other information is for Oracle
Support Services. Trace file information is also used to tune applications and
instances.
Read here – About Monitoring Errors with Trace Files and the Alert Log
Question 70Skipped
Which four account management capabilities can be configured using Oracle
profiles? (Choose four.)
Overall explanation
Explanation
the number of hours for which an account is locked after the configured
number of login attempts has been reached - True
the number of days for which an account is locked after the configured
number of login attempts has been reached – True
You can use fractions of days for all parameters that limit time, with days as
units. For example, 1 hour is 1/24 and 1 minute is 1/1440.
PASSWORD_LOCK_TIME
Specify the number of days an account will be locked after the specified
number of consecutive failed login attempts. If you omit this clause, then the
default is 1 day.
If you specify a value for either of these parameters and specify UNLIMITED
for the other, then the user can never reuse a password.
the number of days for which an account may be inactive before it is locked -
True
INACTIVE_ACCOUNT_TIME
the maximum amount of CPU time allowed for a user's sessions before their
account is locked – False – Account will not get locked because CPU over
usage.
the ability to prevent a password from ever being reused – False – Not
possible to do this. Password can be reused after certain number of days as
set in the profile.
the maximum number of sessions permitted for a user before the account is
locked – False – Account will not get locked because of excessive number of
sessions.