Oracle Database Administration I Exam Number: 1Z0-082
Oracle Database Administration I Exam Number: 1Z0-082
4. Which two statements are true about the Oracle join and ANSI join syntax?
A. The Oracle join syntax supports creation of a Cartesian product of two tables.
B. The SQL: 1999 compliant ANSI join syntax supports creation of a Cartesian
product of two tables.
C. The Oracle join syntax lacks the ability to do outer joins.
D. The Oracle join syntax performs better than the SQL: 1999 compliant ANSI join
syntax.
E. The Oracle join syntax performs less well than the SQL: 1999 compliant ANSI
join syntax.
5. In the PROMOTIONS table, the PROMO_BEGIN_DATE column is of data type
DATE and the default date format is DD-MON-RR.
Which two statements are true about expressions using PROMO_BEGIN_DATE
contained in a query?
A. TO_NUMBER (PROMO_BEGIN_DATE) - 5 will return a number.
B. PROMO_BEGIN_DATE - SYSDATE will return an error.
C. PROMO_BEGIN_DATE - 5 will return a date.
D. PROMO_BEGIN_DATE - SYSDATE will return a number.
E. TO_DATE (PROMO_BEGIN_DATE * 5) will return a date.
8. Which three actions are ways to apply the principle of least privilege?
A. enabling Unified Auditing
B. revoking execute privilege on UTL_SMTP, UTL_TCP, UTL_HTTP, and UTL_
FILE from the PUBLIC user
C. setting the O7_DICTIONARY_ ACCESSIBILITY parameter to true
D. revoking execute privilege on UTL_SMTP, UTL_TCP, UTL_HITP , and
UTL_FILE from the SYSTEM user
E. using Access Control Lists (ACLs)
F. setting the REMOTE_ OS_ AUTHENT parameter to true
11. Which two statements are true about the rules of precedence for operators?
A. The concatenation operator | | is always evaluated before addition and subtraction
in an expression.
B. The + binary operator has the highest precedence in an expression in a SQL
statement.
C. Multiple parentheses can be used to override the default precedence of operators
in an expression.
D. NULLs influence the precedence of operators in an expression.
E. Arithmetic operators with equal precedence are evaluated from left to right
within an expression.
12. Which three statements are true about connection strings and service names used
to connect to an Oracle database instance?
A. A connection string including a service name must be defined in the
tnsnames.ora file.
B. A service name is created by a listener.
C. Different connection strings in the same tnsnames.ora file can contain the same
service name, host and port parameters.
D. A single database instance can support connections for multiple service names.
E. A connection string must include the SID of a database instance.
F. A single connection string can refer to multiple database instances.
13. Examine the description of the PRODUCT DETAILS table:
17. Which two tasks can you perform using DBCA for databases?
A. Register a new database with an available Enterprise Manager Management
server.
B. Enable flashback database for an existing database.
C. Configure a nonstandard block size for a new database.
D. Change the standard block size of an existing database.
E. Configure incremental backups for a new database.
18. Which three statements are true about the Automatic Diagnostic
Repository(ADR)?
A. It is only used for Oracle Database diagnostic information.
B. The ADR base is specified in the DIAGNOSTIC_DEST database parameter.
C. It is held inside an Oracle database schema.
D. It is a file-based repository held outside any database.
E. It can be used for problem diagnosis of a database when that database's instance
is down.
19. Which two statements are true about the SET VERIFY ON command?
A. It can be used in SQL Developer and SQL*Plus.
B. It can be used only in SQL*Plus.
C. It displays values for variables prefixed with & & .
D. It displays values for variables created by the DEFINE command.
E. It displays values for variables used only in the WHERE clause of a query.
20. Which two statements are true about UNDO and REDO?
A. The generation of REDO generates UNDO.
B. DML modifies Oracle database objects and only generates REDO.
C. DML modifies Oracle database objects and only generates UNDO.
D. The generation of UNDO generates REDO.
E. DML modifies Oracle database objects and generates UNDO and REDO.
21. Which two are true about a SQL statement using SET operators such as UNION?
A. The data type group of each column returned by the second query must match
the data type group of the corresponding column returned by the first query.
B. The names and number of columns must be identical for all SELECT statements
in the query.
C. The data type of each column returned by the second query must exactly match
the data type of the corresponding column returned by the first query.
D. The number, but not names, of columns must be identical for all SELECT
statements query.
E. The data type of each column returned by the second query is automatically
converted to the data type of the corresponding column returned by the first
query.
24. Which two statements are true about undo segments and the use of undo by
transactions in an Oracle database instance?
A. A single transaction may use multiple undo segments simultaneously.
B. Undo segments can be stored in the SYSAUX tablespace.
C. Undo segments can be stored in the SYSTEM tablespace.
D. Undo segments can wrap around to the first extent when a transaction fills the
last extend of the undo segment.
E. Undo segments can extend when a transaction fills the last extent of the undo
segment.
25.
26. You want to apply the principle of Least Privilege in all your live databases.
One of your requirements is to revoke unnecessary privileges from all users who have
them using Privilege Analysis.
Which two are types of analyses that can be done using the
DBMS_PRIVILEGE_CAPTURE package?
A. analysis of privileges that a user has on other schema's objects
B. analysis of all privileges used by the sys user.
C. analysis of privileges granted indirectly to a role that are then used by a user who
has been granted that role
D. analysis of privileges that a user has on their own schema objects
E. analysis of privileges granted directly to a role that are then used by a user who
has been granted that role
27. You need to calculate the number of days from 1st January 2019 until today.
Dates are stored in the default format of DD-MON-RR.
Which two queries give the required output?
A. SELECT TO_DATE(SYSDATE, 'DD/MONTH/YYYY') - '01/JANUARY/2019'
FROM DUAL;
B. SELECT ROUND(SYSDATE - '01-JAN-2019') FROM DUAL;
C. SELECT SYSDATE - TO DATE('01-JANUARY-2019') FROM DUAL;
D. SELECT ROUND (SYSDATE - TO DATE('01/JANUARY/2019')) FROM
DUAL;
E. SELECT TO_CHAR(SYSDATE, 'DD-MON-YYYY') - '01-JAN-2019' FROM
DUAL;
28.
You need to display last names and credit limits of all customers whose last name
starts with A or B in lower or upper case, and whose credit limit is below 1000.
Examine this partial query:
SELECT cust_last name, cust_credit_limit FROM customers
Which two WHERE conditions give the required result?
A. WHERE (INITCAP(cust_last_name) LIKE 'A%' OR INITCAP(cust_last_name)
LIKE 'B%')
AND cust_credit_limit < 1000;
B. WHERE UPPER(cust_last_name) BETWEEN UPPER(' A%' AND ' B%')
AND ROUND(cust_credit_limit) < 1000;
C. WHERE (UPPER(cust_last_name) LIKE ' A%' OR UPPER(cust_last_name)
LIKE ' B%')
AND ROUND(cust_credit_limit) < 1000;
D. WHERE UPPER(cust_last name) IN (' A%', ' B%')
AND cust_credit_limit < 1000;
E. WHERE (UPPER(cust_credit_limit) LIKE INITCAP('A') OR UPPER(cust_last
name) LIKE INIICAP('B'))
AND ROUND(cust_credit_limit) < ROUND (1000);
29. Which two statements are true about single row functions?
A. TRUNC : can be used only with NUMBER data types.
B. MOD : returns the remainder of a division operation.
C. FLOOR : returns the smallest integer greater than or equal to a specified number.
D. CONCAT : can be used to combine any number of values.
E. CEIL : can be used for positive and negative numbers.
30. The ORDERS table has a column ORDER_DATE of data type DATE.
The default display format for a date is DD-MON-RR.
Which two WHERE conditions demonstrate the correct usage of conversion
functions?
A. WHERE order_date > TO_CHAR(ADD_MONTHS(SYSDATE, 6), 'MON DD
YYYY')
B. WHERE order_date > TO_DATE('JUL 10 2018', 'MON DD YYYY')
C. WHERE TO_CHAR(order_date, 'MON DD YYYY') = 'JAN 20 2019'
D. WHERE order_date IN (TO_DATE('Oct 21 2018', 'Mon DD YYYY'), TO
CHAR('Nov 21 2018', Mon DD YYYY'))
E. WHERE order_date > TO_DATE(ADD_MONTHS(SYSDATE, 6), 'MON DD
YYYY')
31. 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.
Examine this SQL statement:
SELECT prod_id
FROM costs
WHERE promo_id IN
(SELECT promo_id
FROM promotions
WHERE promo_cost < ALL
(SELECT MAX(promo_cost)
FROM promotions
GROUP BY (promo_end_date - promo_begin_date)));
What will be the result?
A. It gives an error because the ALL keyword is not valid.
B. It gives an error because the GROUE BY clause is not valid.
C. It executes successfully but does not give the required result.
D. It executes successfully and gives the required result.
33. Which two statements are true about GLOBAL TEMPORARY TABLES?
A. A DELETE command on a GLOBAL TEMPORARY TABLE cannot be rolled
back.
B. A GLOBAL TEMPORARY TABLE'S definition is available to multiple
sessions.
C. GLOBAL TEMPORARY TABLE space allocation occurs at session start.
D. A TRUNCATE command issued in a session causes all rows in a GLOBAL
TEMPORARY TABLE for the issuing session to be deleted.
E. GLOBAL TEMPORARY TABLE rows inserted by a session are available to any
other session whose user has been granted select on the table.
34.
35. Which three statements are true about the naming methods and their features
supported by Oracle database used to resolve connection information?
A. Directory Naming can be used if Connect-Time Failover is required.
B. Local naming can be used if Connect-Time Failover is required.
C. Local Naming requires setting the TNS_ ADMIN environment variable on the
client side.
D. A client can connect to an Oracle database instance even if no client side network
admin has been configured.
E. Easy Connect supports TCP/IP and SSL.
F. Directory Naming requires setting the TNS_ADMIN environment variable on
the client side.
36. You must create a tablespace of non-standard block size in a new file system and
plan to use this command:
CREATE TABLESPACE ns_tbs
DATAFILE'/u02/oracle/data/nstbs_f01.dbf'
SIZE 100G
BLOCKSIZE 32K;
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?
A. DB_32K_CACHE_SIZE must be set to a value that can be accommodated in the
SGA.
B. DB_32K_CACHE_SIZE must be less than DB_CACHE_SIZE.
C. The operating system must use a 32k block size.
D. DB_32K_CACHE_SIZE should be set to a value greater than
DB_CACHE_SIZE.
E. DB_CACHE_SIZE must be set to a size that is smaller than
DB_32K_CACHE_SIZE
F. The /u02 file system must have at least 100g space for the datafile.
37. Which two statements are true about the DUAL table?
A. It can be used to display only constants or pseudo columns.
B. It can be accessed by any user who has the SELECT privilege in any schema.
C. It can be accessed only by the SYS user.
D. It can display multiple rows but only a single column.
E. It can display multiple rows and columns.
F. It consists of a single row and single column of VARCHAR2 data type.
40. Which two statements are true about uno and UNDO tablespaces?
A. There can be only one UNDO tablespace created in a database.
B. An UNDO tablespace may be owned by only one instance.
C. An instance will crash if the active undo tablespace is lost.
D. UNDO segments are owned by SYSTEM.
E. UNDO segments are owned by SYSBACKUP.
41. Which three statements are true about data block storage in an Oracle Database?
A. A block header contains a row directory pointing to all rows in the block.
B. An index block can contain row data.
C. A data block header is of a fixed length.
D. Row data is stored starting at the end of the block.
E. A table block must always contain row data.
45. Which two statements are true about INTERVAL data types?
A. INTERVAL YEAR TO MONTH columns support yearly intervals.
B. INTERVAL YEAR TO MONTH columns only support monthly intervals within
a range of years.
C. INTERVAL DAY TO SECOND columns support fractions of seconds.
D. INTERVAL YEAR TO MONTH columns only support monthly intervals within
a single year.
E. The YEAR field in an INTERVAL YEAR TO MONTH column must be a
positive value.
F. The value in an INTERVAL DAY TO SECOND column can be copied into an
INTERVAL YEAR TO MONTH column.
46. The SALES table has columns PROD_ID and QUANTITY_SOLD of data type
NUMBER.
Which two queries execute successfully?
A. SELECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*)
> 10 GROUP BY prod_id HAVING COUNT(*) > 10;
B. SELECT COUNT(prod_id) FROM sales GROUP BY prod_id WHERE
quantity_sold > 55000;
C. SELECT prod_id FROM sales WHERE quantity_sold > 55000 GROUP BY
prod_id HAVING COUNT(*) > 10;
D. SELECT COUNT(prod_id) FROM sales WHERE quantity_sold > 55000
GROUP BY prod_ id;
E. SEIECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*)
> 10 GROUP BY COUNT(*) > 10;
49. Which two statements are true about User Authentication in an Oracle Database?
A. REMOTE_LOGIN_PASSWORDFILE must be set to exclusive to permit
password changes for system-privileged administrative users.
B. Password authentication must be used for system-privileged administrative users.
C. Password File authentication is supported for any type of database user.
D. Password File authentication must be used for system-privileged administrative
users.
E. Operating System authentication may be used for system-privileged
administrative users.
50. Which two queries execute successfully?
A. SELECT COALESCE(100, NULL, 200) FROM DUAL;
B. SELECT NULLIF(100, 'A') FROM DUAL;
C. SELECT NULLIF(100, 100) FROM DUAL;
D. SELECT NULLIF(NULL, 100) FROM DUAL;
E. SELECT COALESCE(100, 'A') FROM DUAL;
51. Which is the default column or columns for sorting output from compound queries
using SET operators such as INTERSECT in a SQL statement?
A. the first column in the last SELECT of the compound query
B. the first NUMBER column in the first SELECT of the compound query
C. the first VARCHAR2 column in the first SELECT of the compound query
D. the first NUMBER or VARCHAR2 column in the last SELECT of the compound
query
E. the first column in the first SELECT of the compound query
55.
58. In your data center, Oracle Managed Files (OMF) is used for all databases.
All tablespaces are smallfile tablespaces.
SALES_Q1 is a permanent user-defined tablespace in the SALES database
Examine this command which is about to be issued by a DBA logged in to the SALES
database:
ALTER TABLESPACE sales_q1 ADD DATAFILE;
Which are two actions, either one of which you could take to ensure that the
command executes successfully?
A. Specify a path in the DATAFILE clause of the command specifying a location
with at least 100M of available space.
B. Add the AUTOEXTEND ON clause with NEXT set to 100M.
C. Ensure that DB_CREATE_FILE_DEST specifies a location with at least 100 Mb
of available space.
D. Ensure that DB_RECOVERY_FILE_DEST and DB_CREATE_FILE_DEST
each specify locations with at least 50 Mb of available space.
E. Ensure that DB_RECOVERY_FILE_DEST and DB_CREATE_FIZE_DEST
each specify locations with at least 50 Mb of available space.
59.
60. Which three statements are true about sequences in a single instance Oracle
database?
A. A sequence's unallocated cached values are lost if the instance shuts down.
B. Sequences can always have gaps.
C. Two or more tables cannot have keys generated from the same sequence.
D. A sequence can issue duplicate values.
E. A sequence number that was allocated can be rolled back if a transaction fails.
F. A sequence can only be dropped by a DBA.
63. In one of your databases, you create a user, HR, and then execute this command:
GRANT CREATE SESSION TO hr WITH ADMIN OPTION;
Which three actions can HR perform?
A. Execute DDL statements in the HR schema.
B. Grant the CREATE SESSION privilege with ADMIN OPTION to other users.
C. Revoke the CREATE SESSION privilege from other users.
D. Execute DML statements in the HR schema.
E. Revoke the CREATE SESSION privilege from user HR.
F. Log in to the database instance.
64.
66.
The status column contains the values 'IN STOCK' or 'out OF STOCK' for each row.
Which two queries will execute successfully?
A. SELECT prod_id || q'('s not available)' FROM product_status WHERE status =
'OUT OF STOCK' ;
B. SELECT prod_id || q'('s not available)' "CURRENT AVAILABILITY" FROM
product_status WHERE status = 'OUT OF STOCK' ;
C. SELECT prod_ id || q" 's not available" FROM product_status WHERE status =
'OUT OF STOCK';
D. SELECT prod_id || q'('s not available)' 'CURRENT AVAILABILITY' FROM
product_status WHERE status = 'OUT OF STOCK' ;
E. SELECT prod_id "CURRENT AVAILABILITY" || q'('s not available)' FROM
Product_status WHERE status = 'OUT OF STOCK';
F. SELECT prod_id q 's not available" FROM product_status WHERE status =
'OUT OF STOCK';
69. Which two statements are true about the configuration and use of
UNDO_RETENTION with no GUARANTEED RETENTION?
A. UNDO_RETENTION specifies for how long Oracle attempts to keep unexpired
UNDO.
B. Unexpired UNDO is always retained.
C. Active UNDO is always retained.
D. UNDO_ RETENTION specifies for how long Oracle attempts to keep expired
and unexpired UNDO.
E. UNDO_ RETENTION specifies how long all types of UNDO are retained.
70. Which three statements are true about Deferred Segment Creation in Oracle
databases?
A. Sessions may dynamically switch back and forth from DEFERRED to
IMMEDIATE segment creation.
B. Indexes inherit the DEFERRED or IMMEDIATE segment creation attribute
from their parent table.
C. It is supported for Index Organized Tables (IOTs) contained in locally managed
tablespaces.
D. It is the default behavior for tables and indexes.
E. It is supported for SYS-owned tables contained in locally managed tablespaces.
71. Which two statements are true about the PMON background process?
A. It records checkpoint information in the control file.
B. It rolls back transactions when a process fails
C. It frees resources held by abnormally terminated processes.
D. It registers database services with all local and remote listeners known to the
database instance.
E. It frees unused temporary segments.
72. Which two Oracle database space management features require the use of locally
managed tablespaces?
A. Automatic data file extension (AUTOEXTEND)
B. Oracle Managed Files (OMF)
C. Free space management with bitmaps
D. Server-generated tablespace space alerts
E. Online segment shrink