1z0-082 - Question Oracle
1z0-082 - Question Oracle
Q1. Which two statements are true about the tools used to configure Oracle Net Services:
A) Oracle Net Manager can be used to locally configure naming methods on a database server.
B) Oracle Net Manager can be used to centrally configure listeners on any database server target.
C) Enterprise Manager Cloud Control can be used to centrally configure net service names for any database
server target
E) The Oracle Net Configuration Assistant is only used when running the Oracle Installer.
Q3. Which three actions are ways to apply the principle of least privilege?
A) setting the 07_DICTIONARY_ACCESSBILITY parameter to true
B) revoking execute privilege on UTL_SMTP, UTL_TCP, UTL_HTTP, and UTL_FILE from the PUBLIC user
C) revoking execute privilege on UTL_SMTP, UTL_TCP, UTL_HTTP, and UTL_FILE from the SYSTEM user
Q4. The CUSTOMERS table has a CUST_LAST_NAME column of data type VARCHAR2.
The table has two rows whose CUST_LAST_NAME values are Anderson and Ausson.
Which query produces output for CUST_LAST_NAME containing Oder for the first row and Aus for the
second?
A) SELECT REPLACE(SUBSTR(cust_last_name, -3), ‘An’, ‘O’) from customers;
Q5. Which two statements are true about GLOBAL TEMPORARY TABLES?
A) GLOBAL TEMPORARY TABLE rows inserted by a session are available to any other session whose user
has been granted select on the table.
D) A TRUNCATE command issued in a session causes all rows in a GLOBAL TEMPORARY TABLE for the
issuing session to be deleted.
Q6. Which two tasks can you perform using DBCA for databases?
A) Register a new database with an available Enterprise Manager Management server.
Q7. Examine the data in the CUST_NAME column of the CUSTOMERS table:
CUST_NAME
———————————-
Renske Ladwig
Jason Mallin
Samuel McCain
Allan MCEwen
Irene Mikkilineni
Julia Nayer
6 rows selected.
You want to display the CUST_NAME values where the last name starts with Mc or MC
Which two WHRE clauses give the required result?
Q8. 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.
The NLS_TERRITORY parameter is set to AMERICA in the session and, therefore, Sunday is the first day on
the week.
Q9. 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 types of analyses can be done using the DBMS_PRIVILEGE_CAPTURE package? (Choose two.)
C) analysis of privileges granted directly to a role that are then used by a user who has been granted that role
D) analysis of all privileges used by SYS user.
E) analysis of privileges granted indirectly to a role that are then used by a user who has been granted that role
Q10. Which two statements are true about undo segments and the use of undo by transactions in an
Oracle database instance? (Choose two.)
A) Undo segments can wrap around to the first extent when a transaction fills the last extend of the undo
segment
B) Undo segments can extend when a transaction fills the last extent of the undo segment
Q11. Which two statements are true about Database Instances and Real Application Clusters (RAC)?
A) A RAC database must have two or more instances.
WHERE country_id = 30
Identify three ORDER BY clauses, any one of which can complete the query successfully. (Choose three.)
B) ORDER BY 2, 1
C) ORDER BY 2, cust_id
D) ORDER BY CUST_NO
E) ORDER BY “CUST_NO”
D) SELECT customer_id CUSTID, transaction_date TRANS_DATE, amount + 100 DUES FROM transactions;
Q15. Which three statements are true about the naming methods and their features supported by Oracle
database used to resolve connection information?
A) Local naming can be used if Connect-Time Failover is required.
B) A client can connect to an Oracle database Instance even if no client side network admin has been configured.
E) Local Naming requires setting the TNS_ADMIN environment variable on the client side.
F) Directory Naming requires setting the TNS_ADMIN environment variable on the client side.
Q16. 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.
Q17. Which two statements are true about the PMON background process? (Choose two.)
A) It registers database services with all local and remote listeners known to the database instance
Q18. Table ORDER_ITEMS contains columns ORDER_ID, UNIT_PRICE and QUANTITY, of data type
NUMBER.
Examine these SQL statements:Statement 1:
Statement 2:
GROUP BY order_id;
C) Both statements will return NULL if either UNIT_PRICE or QUANTITY contains NULL.
Q19. Which two are true about transactions in the Oracle Database?
A) A session can see uncommitted updates made by the same user in a different session.
B) A DDL statement issued by a session with an uncommitted transaction automatically commits that
transaction.
D) DDL statements automatically commit only data dictionary updates caused by executing the DDL.
Q21. Which two statements are true about time zones, date data types, and timestamp data type in an
Oracle database?
A) The CURRENT_TIMESTAMP function returns data without time zone information
B) A TIMESTAMP WITH LOCAL TIMEZONE data type column is stored in the database using the time zone
of the session that inserted the row
D) The DBTIMEZONE function can return an offset from Universal Coordinated Time (UTC)
E) The SESSIONTIMEZONE function can return an offset from Universal Coordinated Time (UTC)
Which two actions must you take to ensure UNDOTBS01 is used as the default UNDO tablespace? (Choose
two.)
D) Make certain that the database operates in automatic undo management mode
D) ORDER BY 1, 2
Q24. Which two statements are true about INTERVAL data types?
A) INTERVAL DAY TO SECOND columns support fractions of seconds.
B) INTERVAL YEAR TO MONTH columns only support monthly intervals within a range of years.
C) 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.
Q25. Which three statements are true about the DESCRIBE command? (Choose three.)
A) It displays the PRIMARY KEY constraint for any column or columns that have that constraint
C) It displays the NOT NULL constraint for any columns that have that constraint
Q26. Which three statements are true about sequences in a single instance Oracle database? (Choose
three.)
A) A sequence can issue duplicate values
B) A sequence’s unallocated cached value are lost if the instance shuts down
D) Two or more tables cannot have keys generated from the same sequence
F) A sequence number that was allocated can be rolled back if a transaction fails
Q28. 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? (Choose two.)
Q29. Which two statements are true about the Oracle Data Dictionary? (Choose two.)
A) Data dictionary base tables can be queried directly
B) All data dictionary view join base tables to dynamic performance views.
E) Data Dictionary Views are always created with queries that join two or more base tables.
Q30. Which three statements are true about connection strings and service names used to connect to an
Oracle database instance?
A) A connection string must include the SID of a database instance.
B) A connection string including a service name must be defined in the tnsnames.ora file.
C) Different connection strings in the same tnsnames.ora file can contain the same service, host and port
parameters.
D) A single database instance can support connections for multiple service names.
Q31. Which two statements are true about table data storage in an Oracle database?
A) Multiple row pieces from the same row must be stored in different database blocks.
B) Index block free space is always contiguous in the middle of the block.
C) Data block free space is always contiguous in the middle of the block.
E) Multiple row pieces from the same row may be stored in different database blocks.
Q32. The SALES_Q1 and USERS tablespaces exist in one of your databases and TEMP is a temporary
tablespace.
Which three statements must be true so that the SALES user can create tables in SALES_Q1? (Choose three.)
B) The sales user must have a quota on the SALES_Q1 tablespace to hold the initial extends of all tables they
plan to create in their schema
C) The sales user must have been granted the CREATE SESSION privilege
D) The sales user must have their quota on the users tablespace removed
E) The sales user must have a quota on the SALES_Q1 tablespace to hold all the rows to be inserted into any
table in their schema
F) The sales user must have been granted the CREATE TABLE privilege
A) It overwrites the data for Alan and adds data for Curl and Bob
C) It generates a sql script that it uses to load data from EMP.DAT to EMP
D) It generates a log that contains control file entries, which can be used with normal SQL*Loader operations.
Q34. Which two statements are true about the DUAL table? (Choose two.)
A) It can be accessed only by the SYS user
E) It can be accessed by any user who has the SELECT privilege in any schema
F) It can display multiple rows and columns
C) the number of days for which an account may be logged in to one or more sessions before it is locked.
F) the maximum number of sessions permitted for a user before the password must be changed.
E) the number of days for which an account may be inactive before it is locked.
Q38.l Which two are benefits of external tables?
A) They can be queried while the database is in the MOUNT state like dynamic performance views.
B) They support DELETE which transparently deletes records in the file system as if they were table rows.
C) They can be queried, transformed, and joined with other tables without having to load the data first.
D) They support UPDATES which transparently updates records in the file system as if they were table rows.
E) The results of a complex join or aggregating function or both can be unloaded to a file for transportation to
another database.
Q40. Which four statements are true regarding primary and foreign key constraints and the effect they
can have on table data?
A) A table can have only one primary key but multiple foreign keys
B) A table can have only one primary key and one foreign key
C) The foreign key columns and parent table primary key columns must have the same names
D) It is possible for child rows that have a foreign key to remain in the child table at the time the parent row is
deleted
E) It is possible for child rows that have a foreign key to be deleted automatically from the child table at the time
the parent row is deleted.
F) Only the primary key can be defined at the column and table level
G) Primary key and foreign key constraints can be defined at both the column and table level
Q41. Which two statements are true about Enterprise Manager Database Express?
A) It is available only when the database is open
C) The same port number can be used for Database Express configurations for databases on different hosts
E) The same port number can be used for multiple Database Express configurations for multiple databases on the
same host
Q42. 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?
Q43. 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.
C) the first VARCHAR2 column in the first SELECT of the compound query
D) the first NUMBER OF VARCHAR2 column in the last SELECT of the compound query
E) the first NUMBER column in the first SELECT of the compound query.
B) It terminates.
A) PRODUCT_PRICE can be used in an arithmetic expression even if it has no value stored in it.
Q46. In one of your databases, you create a user, HR, and then execute this command:
GRANT CREATE SESSION TO hr WITH ADMIN OPTION;
D) Grant the CREATE SESSION privilege with ADMIN OPTION to other users
B) INTERSECT
C) SUBTRACT
D) UNION
E) MINUS
Q48. Which two statements are true about the Oracle join and ANSI join syntax?
A) The Oracle join syntax lacks the ability to do outer joins.
B) The Oracle join syntax perform better than the SQL:1999 compliant ANSI join syntax.
C) The Oracle join syntax performs less well than the SQL:1999 compliant ANSI join syntax.
D) The Oracle join syntax supports creation of a Catesian product of two tables.
E) The SQL:1999 compliant ANSI join syntax supports creation of a Cartesian prodcut of two tables.
B) The BETWEEN condition used with an non-equijoin sometimes performs better than using the >= and <=
conditions.
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.
Q50. Which three statements are true regarding single row subqueries?
A) A SQL statement may have multiple single row subquery blocks.
D) They must be placed on the right side of the comparison operator or condition.
E) They must be placed on the left side of the comparison operator or condition
U1 complains that the command is taking too long to execute. In the alert log, the database administrator (DBA)
finds this:
2017-03-06T12:15:17.183438+05:30
statement in resumable session ‘User U1(136), Session 1, Instance 1’ was suspended due to ORA-01536: space
quota exceeded for tablespace ‘DATA’
Which are three actions any one of which the DBA could take to resume the session? (Choose three.)
Q52. Which three statements are true about the Automatic Diagnostic Repository (ADR)?
A) It is only used for Oracle Database diagnostic Information.
D) It can be used for problem diagnosis of a database when that database’s instance is down.
B) The LOCAL_LISTENER database parameter is not set to a service name that refers to LISTENER_1
B) views
C) tables
D) clusters
E) Undo
F) stored procedures.
Q55. Which statement is true about database links?
A) Private database link creation requires the same user to exist in both the local and the remote databases.
D) A public database link can be used by a user connected to the local database instance to connect to any
schema in the remote database instance.
E) A database link created in a database allows a connection from that database’s instance to the target
database’s instance, but not vice versa.
Q56. Which two statements are true about views used for viewing tablespace and datafile information?
A) Tablespace free space can be viewed in V$TABLESPACE
E) A datafile can be renamed when the database is in MOUNT state and the new file name is displayed when
querying DBA_DATA_FILES after the database is opened
Q57. View the Exhibit and examine the description of the tables.
A) The statement will fail if a row already exists in the SALES table for product 23.
C) The statement will execute successfully and a new row will be inserted into the SALES table.
D) A product can have a different unit price at different times.
E) The statement will fail because a subquery may not be contained in a VALUES clause.
Q58. Which two Oracle database space management features require the use of locally managed
tablespaces?
A) Online segment shrink
Q59. You must create a tablespace of non-standard block size in a new file system and plan to use the
command:
E) The /u02 file system must have at least 100g space for the datafile.
Q60. In your data canter, Oracle Managed Files (OMF) is used for all databases.
All tablespaces are smallfile tablespaces.
Which are two actions, either one of which you could take to ensure that the command executes successfully?
B) Specify a path in the DATAFILE clause of the command specifying a location with at least 100M of available
space.
C) Ensure that DB_CREATE_FILE_DEST specifies a location with at least 100 Mb of available space.
D) The WITH CHECK clause prevents certain rows from being updated or inserted in the underlying table
through the view
E) The WITH CHECK clause prevents certain rows from being displayed when querying the view
Q62. Which three statements are true about inner and outer joins?
A) Outer joins can only be used between two tables per query
E) Outer joins can be used when there are multiple join conditions on two tables
Q63. The SALES table has columns PROD_ID and QUANTITY_SOLD of data type NfUMBER
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 prod_id FROM sales WHERE quantity_sold > 55000 and COUNT(*) > 10 GROUP BY
COUNT(*) >10;
C) SELECT prod_id FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id HAVING COUNT(*)
>10;
D) SELECT COUNT(prod_id) FROM sales GROUP BY prod_id WHERE quantity_sold > 55000;
E) SELECT COUNT(prod_id) FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id;
=========================================== ===========
==========================
TRANSACTION_TYPE VARCHAR2(3)
BORROWED_DATE DATE
BOOK_ID VARCHAR2(6)
MEMBER_ID VARCHAR2(6)
E) UNDO_RETENTION specifies for how long Oracle attempts to keep unexpired UNDO.
B) An update to a table can result in updates to any or all of the table’s indexes
D) A table belonging to one user cannot have an index that belongs to a different user
A) Only in memory
Q68. Which two statements are true about the SET VERIFY ON command?
A) It can be used only in SQL*Plus
B) It displays values for variables used only in the WHERE clause of a query
A) DML may be performed on tables with one or more extents in this data file during the execution of this
command
C) It overwrites any existing file with the name SALES02.DBF in /u02 by default
D) The “TO” clause containing the new file name must be specified even if Oracle Managed Files (OMF) is used
E) Tables with one or more extents in this data file may be queried during the execution of this command
Q70. Which two statements 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 number, but not names, 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 names and number of columns must be identical for all SELECT statements in the query.
E) The data type of each column returned by the second query must be automatically converted to the data type
of the corresponding column returned by the first query.
B) The query must use two different aliases for the table
C) It must be an equijoin
Q72. Which Three activities are recorded in the database alert log?
A) Data Definition Language (DDL) statements
D) deadlock errors
Q73. Which two statements are true about space-saving features in an Oracle Database?
A) Private Temporary Tables (PTTs) when used, are always dropped at the next COMMIT statement
E) A table that is truncated will always have all of its extents removed
C) A substitution variable used to prompt for a column name must be enclosed in single quotation marks
F) A substitution variable used to prompt for a column name must be enclosed in double quotation marks
C) The SHRINK operation causes rows to be moved to empty space starting toward the end of the ORDERS
segment
D) The SHRINK operation causes rows to be moved to empty space starting from the beginning of the ORDERS
segment
E) Queries and DML statements are allowed on ORDERS while the SHRINK is executing
Q77. Which statement is true about the INTERSECT operator used in compound queries?
A) Multiple INTERSECT operators are not possible in the same SQL statement
D) It ignores NULLs
EMP_NAME VARCHAR2(10)
DEPT_ID NUMBER(2)
SALARY NUMBER(8,2)
JOIN_DATE DATE
Q79. Which two statements are true about single row functions?
A) MOD : returns the remainder of a division operation
B) FLOOR : returns the smallest integer greater than or equal to a specified number
Q80. Which three statements are true about Deferred Segment Creation in Oracle databases?
A) Indexes inherit the DEFERRED or IMMEDIATE segment creation attribute from their parent table
B) Sessions may dynamically switch back and forth from DEFERRED to IMMEDIATE segment creation
D) It is supported for Index Organized Tables (IOTs) contained in locally managed tablespaces
Q81. Which two statements are true about User Authentication in an Oracle Database?
A) Password File authentication must be used for system-privileged administrative users
Q83. You currently have an active transaction in your session and have been granted SELECT access to
V$TRANSACTION.
Executing:
XID STATUS
================= ===============
0A0007000A070000 ACTIVE
In which three situations will re-executing this query still return a row but with a different XID, indicating a new
transaction as started?
A) After successfully executing a CREATE TABLE AS SELECT statement followed by a SELECT FOR
UPDATE statement
C) After successfully executing a CREATE TABLE statement followed by a CREATE INDEX statement
B) Update operations always relocate rows into blocks with free space appropriate to the length of the row being
updated
C) ASSM assigns blocks to one of four fullness categories based on what percentage of the block is allocated for
rows
D) The first block with enough free space to accommodate a row being inserted will always be used for that row
E) Insert operations always insert new rows into blocks with free space appropriate to the length of the row being
inserted
E) It has its own commands that are separate from any SQL statements
Q86. Which two statements are true about UNDO and REDO?
A) The generation of UNDO generates REDO
E) DML modifies Oracle database objects and generates UNDO and REDO