Oracle 19C Practice Test
Oracle 19C Practice Test
Overall explanation
Explanation
This question is about system privileges accounts, the account which come
built-in with the database like SYS, SYSTEM, DBSNMP etc.
Question 2
You execute this command:
DATAFILE '/u01/app/oracle/sales01.dbf'
SIZE 5G
Which two statements are true about the SALES tablespace? (Choose two.)
Question 3Skipped
Which two queries execute successfully? (Choose two.)
Overall explanation
Explanation
If both arguments are numeric data types, then Oracle Database determines
the argument with the higher numeric precedence, implicitly converts the
other argument to that data type, and returns that data type. If the
arguments are not numeric, then they must be of the same data type, or
Oracle returns an error.
COALESCE returns the first non-null expr in the expression list. You must
specify at least two expressions. If all occurrences of expr evaluate to null,
then the function returns null.
Question 4Skipped
Which three actions are ways to apply the principle of least privilege?
(Choose three.)
Overall explanation
Explanation
Overall explanation
Explanation
An index block can contain row data. – True – IOT Index blocks can have row
data.
Row data is stored starting at the end of the block. – True – Writing of data
starts from the bottom towards up.
As the database fills a data block from the bottom up, the amount of free
space between the row data and the block header decreases.
A block header contains a row directory pointing to all rows in the block. –
True – Block Overhead contains Block header, Table directory, Row directory.
To be noted, although the question mentions "block header", it looks Oracle
is using the terms "block header" and "block overhead" interchangeably.
Strictly speaking, the block overhead and block header are different things.
Question 6Skipped
Examine this SQL statement:
FROM customers
WHERE country_id = 10
UNION
FROM customers
Overall explanation
Explanation
Only the columns or column aliases of the first SELECT are available in the
final output for ordering or any other purposes.
Question 7Skipped
Examine the description of the SALES1 table:
SALES2 is a table with the same description as SALES1.
You must display rows from SALES1 and SALES2 and wish to see the
duplicates too.
Overall explanation
Explanation
Data dictionary views join the base tables to other base tables mainly, and
may be some times to static views.
The Oracle Database user account SYS owns all base tables and user-
accessible views of the data dictionary.
Question 10Skipped
Which three statements are true regarding single row subqueries? (Choose
three.)
Question 11Skipped
Which two Oracle database space management features require the use of
locally managed tablespaces? (Choose two.)
Overall explanation
Explanation
SECUREFILE LOBs
Question 12Skipped
Which two statements are true about Enterprise Manager (EM) Express?
Question 13Skipped
Examine the description of the BOOKS_TRANSACTIONS table:
Question 14Skipped
Which three files are used by the conventional path SQL*Loader when the
TABLE option is not specified? (Choose three.)
Overall explanation
Explanation
Question 15Skipped
Examine the description of the MEMBERS table:
You want to display all cities that contain the string an. The cities must be
returned in ascending order, with the last names further sorted in
descending order.
Which two clauses must you add to the query? (Choose two.)
Question 16Skipped
Which three statements are true about views in an Oracle database? (Choose
three.)
Overall explanation
You can run CREATE OR REPLACE VIEW to recreate the view without needing
to run the grants again.
Specify WITH CHECK OPTION to indicate that Oracle Database prohibits any
changes to the table or view that would produce rows that are not included
in the subquery. When used in the subquery of a DML statement, you can
specify this clause in a subquery in the FROM clause but not in subquery in
the WHERE clause.
A set operator
A DISTINCT operator
A GROUP BY, ORDER BY, MODEL, CONNECT BY, or START WITH clause
Question 17Skipped
The sales table has columns PROD_ID and QUANTITY_SOLD of data type
number.
Question 20Skipped
Which two statements are true about UNDO and UNDO tablespaces? (Choose
two.)
Examine the description of the PRODUCT_STATUS table:
The STATUS column contains the values 'IN STOCK' or 'OUT OF STOCK' for
each row.
Overall explanation
Explanation
SELECT prod_id || q" 's not available" FROM product_status WHERE status =
'OUT OF STOCK'; -> It will error out with ORA-00904: "Q": invalid identifier.
The quote literal must start with single quote and end with single quote.
Question 22Skipped
A database is open in read-write mode. Which of the following processes will
surely be running? (Choose four)
Overall explanation
Explanation
Question 23Skipped
Which three statements are true about external tables in Oracle 18c and
later releases? (Choose three.)
Overall explanation
Explanation
Question 24Skipped
View the Exhibit and examine the structure of the PRODUCTS table.
Overall explanation
Explanation
The WITH CHECK clause has no effect when deleting rows from the
underlying table through the view. – True (mostly)
For a DELETE statement, if the join results in more than one key-preserved
table, then Oracle Database deletes from the first table named in the FROM
clause, whether or not the view was created WITH CHECK OPTION.
A DISTINCT operator
Views cannot be used to add rows to an underlying table if the table has
columns with NOT NULL constraints lacking default values which are not
referenced in the defining query of the view. – True
For you to insert into the table using the view, the view must contain all NOT
NULL columns of all tables in the join, unless you have specified DEFAULT
values for the NOT NULL columns.
Question 27Skipped
Examine this command:
DATAFILE 'undotbs_01.dbf'
SIZE 100M
AUTOEXTEND ON;
Which two actions must you take to ensure UNDOTBS01 is used as the
default UNDO tablespace? (Choose two.)
Overall explanation
Explanation
Question 28Skipped
Examine these statements executed in a single Oracle session:
Which three statements are true? (Choose three.)
Question 29Skipped
Examine the description of the SALES table:
The SALES table has 55,000 rows.
Explanation
This SQL will copy the whole table because of WHERE clause 1 = 1
Question 30Skipped
Examine these commands:
Which two statements are true about the sqlldr execution? (Choose two.)
Overall explanation
Explanation
Question 31Skipped
Which two statements are true about a self join? (Choose two.)
Question 32Skipped
Which three statements are true about table data storage in an Oracle
Database? (Choose three.
Question 33Skipped
The STORES table has a column START_DATE of data type DATE, containing
the date the row was inserted.
You only want to display details of rows where START_DATE is within the last
25 months.
Due to COMPACT clause, the table will be shrunk but HWM will not be
adjusted.
Question 35Skipped
You must create a tablespace of non-standard block size in a new file system
and plan to use this command:
The standard block size is 8k but other non-standard block sizes will also be
used.
Which two are requirements for this command to succeed? (Choose two.)
Overall explanation
Explanation
As the file is being created with fixed size, the /u02 file system must have at
least 100g space for the datafile.
Question 36Skipped
Which three statements are true about indexes and their administration in
an Oracle database? (Choose three.)
Overall explanation
Explanation
A DROP INDEX statement always prevents updates to the table during the
drop operation. – False – DROP Index will not cause any blocking.
A UNIQUE and non-unique index can be created on the same table column. –
True – It is possible as long as a given column is indexed along with other
columns.
Question 37Skipped
The orders table has a column ORDER_DATE of data type DATE.
Overall explanation
Explanation
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.
Read here - DEFERRED_SEGMENT_CREATION
Question 39Skipped
Which three activities are recorded in the database alert log? (Choose three.)
Overall explanation
Explanation
The alert log is a chronological log of messages and errors, and includes the
following items:
All internal errors (ORA-00600), block corruption errors (ORA-01578), and
deadlock errors (ORA-00060) that occur
The values of all initialization parameters that had nondefault values at the
time the database and instance start
Read here – About Monitoring Errors with Trace Files and the Alert Log
Question 40Skipped
Examine the description of the BOOKS table:
SAVEPOINT a;
ROLLBACK TO SAVEPOINT a;
ROLLBACK;
ADR can be used even if the database is down. For the same reason, ADR is
not stored in database schema, rather a separate file system.
It can be used database, grid or any Oracle product installed on the server.
Overall explanation
Explanation
Question 44Skipped
You start your database instance in NOMOUNT state.
Question 45Skipped
In the promotions table, the PROMO_BEGIN_DATE column is of data type
DATE and the default date format is DD-MON-RR.
Statement 1:
FROM order_items;
Statement 2:
FROM order_items -
GROUP BY order_id;
Which two statements are true?
Question 47Skipped
Which three statements are true about using SQL*Plus? (Choose three.)
Question 48Skipped
Which statement is true about database links?
Overall explanation
Explanation
Any user having CREATE PUBLIC DATABASE LINK system privilege can create
the public database link.
Question 50Skipped
Examine the description of the PRODUCTS table:
Question 52Skipped
Which two statements are true regarding indexes? (Choose three.)
Overall explanation
Explanation
Question 53Skipped
Which three statements are true about Oracle synonyms? (Choose three.)
Question 54Skipped
Which three statements are true about Deferred Segment Creation in Oracle
databases? (Choose three.)
Question 55Skipped
Which is the default column or columns for sorting output from compound
queries using SET operators such as INTERSECT in a SQL statement?
Overall explanation
Explanation
Specify ORDER BY to order rows within each row pattern partition. Use
column to specify one or more ordering columns. If you specify multiple
columns, then Oracle Database first sorts rows based on their values for the
first column. Rows with the same value for the first column are then sorted
based on their values for the second column, and so on. Oracle Database
sorts nulls following all others in ascending order.
SELECT
Question 56Skipped
Which three statements are true about the naming methods and their
features supported by Oracle database used to resolve connection
information? (Choose three.)
Overall explanation
The three true statements are:
1. Easy Connect supports TCP/IP and SSL. Easy Connect can be used with
both the TCP/IP and SSL network protocols.
2. Directory Naming can be used if Connect-Time Failover is required.
Directory Naming utilizes ldap.ora and allows configuring multiple
listener endpoints for Connect-Time Failover.
3. A client can connect to an Oracle database instance even if no client
side network admin has been configured. Methods like Easy Connect
and Local Naming eliminate the need for client-side TNS configuration.
The other statements are false:
Question 57Skipped
Which two statements are true about views? (Choose two.)
Overall explanation
Explanation
Normal views cannot be indexed, only materialized views can be indexed.
Question 58Skipped
Examine the description of the PRODUCT_DETAILS table:
Any NOT NULL column can be assigned as a primary key as long as there are
no duplicate values.
Question 59Skipped
Which three statements are true about connection strings and service names
used to connect to an Oracle database instance? (Choose three.)
Question 60Skipped
Which two statements are true about INTERVAL data types? (Choose two.)
Question 61Skipped
You want to apply the principle of Least Privilege in all your live databases.
Question 62Skipped
The CUSTOMERS table has a CUST_CREDIT_LIMIT column of data type
NUMBER.
Question 63Skipped
Which two tasks can you perform using DBCA for databases? (Choose two.)
Overall explanation
Explanation
This block size is used for the SYSTEM tablespace and by default in other
tablespaces. Oracle Database can support up to four additional nonstandard
block sizes.
Question 64Skipped
You execute this query:
Overall explanation
Explanation
It will give error - ERROR at line 1: ORA-01821: date format not recognized
Question 65Skipped
Which two are true about shrinking a segment online? (Choose two.)
Overall explanation
Explanation
The shrink clause lets you manually shrink space in a table, index-organized
table or its overflow segment, index, partition, subpartition, LOB segment,
materialized view, or materialized view log. This clause is valid only for
segments in tablespaces with automatic segment management. By default,
Oracle Database compacts the segment, adjusts the high water mark, and
releases the recuperated space immediately.
Question 66Skipped
Which two statements are true about the configuration and use of
UNDO_RETENTION with GURANTEED RETENTION? (Choose two.)
Overall explanation
Explanation
Question 67Skipped
Examine the description of the EMPLOYEES table:
Question 68Skipped
Which two statements are true about Oracle synonyms? (Choose two.)
Overall explanation
Explanation
Only users having system privilege CREATE PUBLIC SYNONYM can create
public synonyms.
A private synonym name has to be unique only within a schema, not across
the database.
Question 69Skipped
Your database instance is started with an SPFILE.
Overall explanation
Explanation
If database is running with spfile, the pfile will not get modified in any
circumstances. Default scope is BOTH (spfile and memory)
Question 70Skipped
Which three statements are true regarding indexes? (Choose three.)
Overall explanation
Explanation
An update to a table can result in updates to any or all of the table's indexes
– False – It is possible that none of the indexes will be updated. So instead of
"any or all", it should be "none or all".