1z0-082: Oracle Database Administration I Topic 1
Question #: 1
Topic #: 1
You execute this command:
Sufficient storage is available in filesystem /u01.
Which two statements are true about the BIG_TBS tablespace? (Choose two.)
A. AUTOEXTEND is possible for the datafile
B. It must be bigger than the largest SMALLFILE tablespace
C. Additional data files may not be added
D. It will be a dictionary-managed tablespace by default
E. It will always have a 32K blocksize
Selected Answer: AC
Question #: 2
Topic #: 1
Which statement is true about the INTERSECT operator used in compound queries?
A. Multiple INTERSECT operators are not possible in the same SQL statement
B. It processes NULLs in the selected columns
C. INTERSECT is of lower precedence than UNION or UNION ALL
D. It ignores NULLs
Selected Answer: B
Question #: 3
Topic #: 1
Which three statements are true about advanced connection options supported by Oracle Net for connection to Oracle Database instances? (Choose three.)
A. Connect Time Failover requires the use of Transparent Application Failover (TAF)
B. Source Routing requires the use of a name server
C. Source Routing enables the use of Connection Manager (CMAN) which enables network traffic to be routed through a firewall
D. Load Balancing can balance the number of connections to dispatchers when using a Shared Server configuration
E. Load Balancing requires the use of a name server
F. Connect Time Failover requires the connect string to have two or more listener addresses configured
Selected Answer: CDF
Question #: 4
Topic #: 1
Which two statements are true about date/time functions in a session where NLS_DATE_FORMAT is set to DD-MON-YYYY HH24:MI:SS? (Choose two.)
A. CURRENT_TIMESTAMP returns the same date and time as SYSDATE with additional details of fractional seconds
B. SYSDATE can be queried only from the DUAL table
C. CURRENT_DATE returns the current date and time as per the session time zone
D. SYSDATE can be used in expressions only if the default date format is DD-MON-RR
E. SYSDATE and CURRENT_DATE return the current date and time set for the operating system of the database server
F. CURRENT_TIMESTAMP returns the same date as CURRENT_DATE
Selected Answer: CF
Question #: 5
Topic #: 1
A database is configured to use automatic undo management with temporary undo enabled.
An UPDATE is executed on a temporary table.
Where is the UNDO stored?
A. in the undo tablespace
B. in the SYSAUX tablespace
C. in the SGA
D. in the PGA
E. in the temporary tablespace
Selected Answer: E
Question #: 6
Topic #: 1
You have been tasked to create a table for a banking application.
One of the columns must meet three requirements:
1. Be stored in a format supporting date arithmetic without using conversion functions
2. Store a loan period of up to 10 years
3. Be used for calculating interest for the number of days the loan remains unpaid
Which data type should you use?
A. INTERVAL YEAR TO MONTH
B. INTERVAL DAY TO SECOND
C. TIMESTAMP WITH LOCAL TIMEZONE
D. TIMESTAMP
E. TIMESTAMP WITH TIMEZONE
Selected Answer: B
Question #: 7
Topic #: 1
In the spfile of a single instance database, LOCAL_LISTENER is set to LISTENER_1.
The TNSNAMES.ORA file in $ORACLE_HOME/network/admin in the database home contains:
Which statement is true?
A. Dynamic service registration cannot be used for this database instance
B. The LREG process registers services dynamically with the LISTENER_1 listener
C. LISTENER_1 must also be defined in the LISTENER.ORA file to enable dynamic service registration
D. There are two listeners named LISTENER and LISTENER_1 running simultaneously using port 1521 on the same host as the database instances
E. The definition for LISTENER_1 requires a CONNECT_DATA section to enable dynamic service registration
Selected Answer: B
Question #: 8
Topic #: 1
Which three statements are true concerning logical and physical database structures? (Choose three.)
A. All tablespaces may have one or more data files
B. The extents of a segment must always reside in the same datafile
C. A smallfile tablespace might be bigger than a bigfile tablespace
D. A segment can span multiple data files in some tablespaces
E. A segment’s blocks can be of different sizes
F. A segment might have only one extent
G. Segments can span multiple tablespaces
Selected Answer: CDF
Question #: 9
Topic #: 1
Which two statements are true regarding a SAVEPOINT? (Choose two.)
A. Rolling back to a SAVEPOINT can undo a CREATE INDEX statement
B. Rolling back to a SAVEPOINT can undo a TRUNCATE statement
C. Only one SAVEPOINT may be issued in a transaction
D. A SAVEPOINT does not issue a COMMIT
E. Rolling back to a SAVEPOINT can undo a DELETE statement
Selected Answer: DE
Question #: 10
Topic #: 1
Which three functions are performed by dispatchers in a shared server configuration? (Choose three.)
A. writing inbound request to the common request queue from all shared server connections
B. checking for outbound shared server responses on the common outbound response queue
C. receiving inbound requests from processes using shared server connections
D. sending each connection input request to the appropriate shared server input queue
E. broadcasting shared server session responses back to requesters on all connections
F. sending shared server session responses back to requesters on the appropriate connection
Selected Answer: ACF
Question #: 11
Topic #: 1
Which two statements are true about the SET VERIFY ON command? (Choose two.)
A. It can be used only in SQL*Plus
B. It displays values for variables used only in the WHERE clause of a query
C. It can be used in SQL Developer and SQL*Plus
D. It displays values for variables created by the DEFINE command
E. It displays values for variables prefixed with &&
Selected Answer: CD
Question #: 12
Topic #: 1
Which three statements are true about a self join? (Choose three.)
A. The ON clause must be used
B. The query must use two different aliases for the table
C. It must be an equijoin
D. It must be an inner join
E. The ON clause can be used
F. It can be an outer join
Selected Answer: BEF
Question #: 13
Topic #: 1
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.
Which query can be used?
A. SELECT &&col1, &&col2 FROM &table WHERE &&condition = &&cond;
B. SELECT &col1, &col2 FROM &&table WHERE &condition;
C. SELECT &col1, &col2 FROM ג€&tableג€ WHERE &condition;
D. SELECT ‘&&col1’, ‘&&col2’ FROM &table WHERE ‘&&condition’ = ‘&cond’;
E. SELECT &&col1, &&col2 FROM &table WHERE &&condition;
Selected Answer: B
Question #: 14
Topic #: 1
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.
Which query can be used?
A. SELECT * FROM customers WHERE city LIKE ‘D_%’;
B. SELECT * FROM customers WHERE city = ‘%D_’;
C. SELECT * FROM customers WHERE city LIKE ‘D_’;
D. SELECT * FROM customers WHERE city = ‘D_%’;
Selected Answer: A
Question #: 15
Topic #: 1
Examine this command:
Which two statements are true? (Choose two.)
A. DML may be performed on tables with one or more extents in this data file during the execution of this command.
B. The tablespace containing SALES1.DBF must be altered READ ONLY before executing the command.
C. The tablespace containing SALES1.DBF must be altered OFFLINE before executing the command.
D. If Oracle Managed Files (OMF) is used, then the file is renamed but moved to DB_CREATE_FILE_DEST.
E. The file is renamed and stored in the same location
Selected Answer: AE
Question #: 16
Topic #: 1
Which three statements are true about dropping and unused columns in an Oracle database? (Choose three.)
A. A primary key column referenced by another column as a foreign key can be dropped if using the CASCADE option.
B. An UNUSED column’s space is reclaimed automatically when the block containing that column is next queried.
C. An UNUSED column’s space is reclaimed automatically when the row containing that column is next queried.
D. Partition key columns cannot be dropped.
E. A DROP COLUMN command can be rolled back
F. A column that is set to UNUSED still counts towards the limit of 1000 columns per table
Selected Answer: ADF
Question #: 17
Topic #: 1
Which two statements are true regarding Oracle database space management within blocks managed by Automatic Segment Space Management (ASSM)?
(Choose two.)
A. PCTFREE defaults to 10% for all blocks in all segments for all compression methods
B. ASSM assigns blocks to one of four fullness categories based on what percentage of the block is allocated for rows
C. Update operations always attempt to find blocks with free space appropriate to the length of the row being updated
D. Insert operations always attempt to find blocks with free space appropriate to the length of the row being inserted
E. A block will always be eligible for inserts if the row is short enough to fit into the block
Selected Answer: BD
Question #: 18
Topic #: 1
Evaluate these commands which execute successfully:
Which two statements are true about the ORD_ITEMS table and the ORD_SEQ sequence? (Choose two.)
A. If sequence ORD_SEQ is dropped then the default value for column ORD_NO will be NULL for rows inserted into ORD_ITEMS
B. Any user inserting rows into table ORD_ITEMS must have been granted access to sequence ORD_SEQ
C. Column ORD_NO gets the next number from sequence ORD_SEQ whenever a row is inserted into ORD_ITEMS and no explicit value is given for ORD_NO
D. Sequence ORD_SEQ cycles back to 1 after every 5000 numbers and can cycle 20 times
E. Sequence ORD_SEQ is guaranteed not to generate duplicate numbers
Selected Answer: C
Question #: 19
Topic #: 1
Which three instance situations are possible with the Oracle Database server without multi-tenant? (Choose three.)
A. two or more instances on separate servers all associated with one database
B. one instance on one server associated with one database
C. one instance on one server associated with two or more databases on the same server
D. one instance on one server not associated with any database
E. one instance on one server associated with two or more databases on separate servers
Selected Answer: ABD
Question #: 20
Topic #: 1
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.)
A. Column positions must be used in the ORDER BY clause
B. Only column names from the first SELECT statement in the compound query are recognized
C. The first column in the first SELECT of the compound query with the UNION operator is used by default to sort output in the absence of an ORDER BY clause
D. Each SELECT statement in the compound query must have its own ORDER BY clause
E. Each SELECT statement in the compound query can have its own ORDER BY clause
Selected Answer: BC
Question #: 21
Topic #: 1
Which four account management capabilities can be configured using Oracle profiles? (Choose four.)
A. the number of hours for which an account is locked after the configured number of login attempts has been reached
B. the number of days for which an account may be inactive before it is locked
C. the maximum amount of CPU time allowed for a user’s sessions before their account is locked
D. the ability to prevent a password from ever being reused
E. the number of password changes required within a period of time before a password can be reused
F. the number of days for which an account is locked after the configured number of login attempts has been reached
G. the maximum number of sessions permitted for a user before the account is locked
Selected Answer: ABDF
Question #: 22
Topic #: 1
Which three statements are true about single-row functions? (Choose three.)
A. They can be used only in the WHERE clause of a SELECT statement
B. The argument can be a column name, variable, literal or an expression
C. The data type returned can be different from the data type of the argument
D. They can be nested to any level
E. They can accept only one argument
F. They return a single result row per table
Selected Answer: BCD
Question #: 23
Topic #: 1
You want to use table compression suitable for OLTP that will:
1. Compress rows for all DML statements on that table
2. Minimize the overheads associated with compression
Which compression option is best suited for this?
A. COLUMN STORE COMPRESS FOR QUERY LOW
B. ROW STORE COMPRESS BASIC
C. COLUMN STORE COMPRESS FOR ARCHIVE LOW
D. COLUMN STORE COMPRESS FOR ARCHIVE HIGH
E. ROW STORE COMPRESS ADVANCED
Selected Answer: E
Question #: 24
Topic #: 1
Which two statements are true about space-saving features in an Oracle Database? (Choose two.)
A. Private Temporary Tables (PTTS) store metadata in memory only
B. An index created with the UNUSABLE attribute has no segment
C. If they exist for a session, Private Temporary Tables (PTTs) are always dropped at the next COMMIT OR ROLLBACK statement
D. An index that is altered to be UNUSABLE will retain its segment
E. A table that is truncated will always have its segment removed
Selected Answer: AB
Question #: 25
Topic #: 1
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
B. It frees resources held by abnormally terminated processes
C. It records checkpoint information in the control file
D. It frees unused temporary segments
E. It kills sessions that exceed idle time
Selected Answer: BE
Question #: 26
Topic #: 1
In which three situations does a new transaction always start? (Choose three.)
A. when issuing a SELECT FOR UPDATE statement after a CREATE TABLE AS SELECT statement was issued in the same session
B. when issuing a TRUNCATE statement after a SELECT statement was issued in the same session
C. when issuing a CREATE TABLE statement after a SELECT statement was issued in the same session
D. when issuing the first Data Manipulation Language (DML) statement after a COMMIT OR ROLLBACK statement was issued in the same session
E. when issuing a CREATE INDEX statement after a CREATE TABLE statement completed successfully in the same session
F. when issuing a DML statement after a DML statement failed in the same session
Selected Answer: BCE
Question #: 27
Topic #: 1
Examine the description of the SALES1 table:
SALES2 is a table with the same description as SALES1.
Some sales data is duplicated in both tables.
You want to display the rows from the SALES1 table which are not present in the SALES2 table.
Which set operator generates the required output?
A. INTERSECT
B. UNION ALL
C. UNION
D. SUBTRACT
E. MINUS
Selected Answer: E
Question #: 28
Topic #: 1
Your database instance is started with a PFILE.
Examine these parameters:
You want to increase the size of the buffer cache.
Free memory is available to increase the size of the buffer cache.
You execute the command:
SQL> ALTER SYSTEM SET DB_CACHE_SIZE=1024M;
What is the outcome?
A. The value is changed only in the PFILE and takes effect at the next instance startup
B. The value is changed for the current instance and in the PFILE
C. It fails because the SCOPE clause is missing
D. Change is applied to the current instance, but does not persist after instance restart
Selected Answer: D
Question #: 29
Topic #: 1
Which three Oracle database space management features will work with both Dictionary and Locally managed tablespaces? (Choose three.)
A. Oracle Managed Files (OMF)
B. Online table segment shrink
C. Online index segment shrink
D. Automatic data file extension (AUTOEXTEND)
E. Capacity planning growth reports based on historical data in the Automatic Workload Repository (AWR)
Selected Answer: ADE
Question #: 30
Topic #: 1
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.)
A. You can no longer monitor it
B. You can reattach to it and monitor it
C. It is paused and can be resumed
D. It continues to run in the background
E. It terminates
Selected Answer: BC
Question #: 31
Topic #: 1
In one of your databases, you create a user, HR, and then execute this command:
GRANT CREATE SESSION TO hr WITH ADMIN OPTION;
Which four actions can HR perform? (Choose four.)
A. Revoke the CREATE SESSION privilege from other users
B. Revoke the CREATE SESSION privilege from user HR
C. Log in to the database instance
D. Grant the CREATE SESSION privilege with ADMIN OPTION to other users
E. Execute DDL statements in the HR schema
F. Execute DML statements in the HR schema
Selected Answer: ABCD
Question #: 32
Topic #: 1
Which two statements are true about the WHERE and HAVING clauses in a SELECT statement? (Choose two.)
A. Aggregating functions and columns used in HAVING clauses must be specified in the SELECT list of a query
B. WHERE and HAVING clauses can be used in the same statement only if applied to different table columns
C. The HAVING clause can be used with aggregating functions in subqueries
D. The WHERE clause can be used to exclude rows before dividing them into groups
E. The WHERE clause can be used to exclude rows after dividing them into groups
Selected Answer: CD
Question #: 33
Topic #: 1
Which two statements are true about UNDO and REDO? (Choose two.)
A. The generation of UNDO generates REDO
B. DML modifies Oracle database objects and only generates UNDO
C. The generation of REDO generates UNDO
D. DML modifies Oracle database objects and only generates REDO
E. DML modifies Oracle database objects and generates UNDO and REDO
Selected Answer: AE
Question #: 34
Topic #: 1
The SCOTT/TIGER user exists in two databases, BOSTON_DB and DALLAS_DB, in two different locations.
Each database has a tnsnames.ora file defining DALLAS_DB as a service name.
Examine this command:
CREATE DATABASE LINK dblink1 CONNECT TO scott IDENTIFIED BY tiger USING ‘dallas_db’;
How do you execute the command so that only SCOTT in BOSTON_DB can access the SCOTT schema in DALLAS_DB?
A. as SCOTT in DALLAS_DB
B. as SCOTT in BOSTON_DB
C. as SCOTT in BOSTON_DB and SYS in DALLAS_DB
D. as SYS in both the databases
E. as SCOTT in both the databases
Selected Answer: B
Question #: 35
Topic #: 1
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
B. It can be used from SQL Developer
C. It displays the NOT NULL constraint for any columns that have that constraint
D. It can be used to display the structure of an existing view
E. It displays all constraints that are defined for each column
F. It can be used only from SQL*Plus
Selected Answer: BCD
Question #: 36
Topic #: 1
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.
Which query should be used?
A. SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT FROM customers WHERE cust_income_level IS NOT NULL AND due_amount IS NOT NULL;
B. SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT FROM customers WHERE cust_income_level != NULL AND cust_credit_level !=NULL;
C. SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT FROM customers WHERE cust_income_level <> NULL AND due_amount <> NULL;
D. SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT FROM customers WHERE cust_income_level != NULL AND due_amount != NULL;
E. SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT FROM customers WHERE cust_income_level IS NOT NULL AND cust_credit_limit IS NOT NULL;
Selected Answer: E
Question #: 37
Topic #: 1
The INVOICE table has a QTY_SOLD column of data type NUMBER and an INVOICE_DATE column of data type DATE.
NLS_DATE_FORMAT is set to DD-MON-RR.
Which two are true about data type conversions involving these columns in query expressions? (Choose two.)
A. CONCAT (qty_sold, invoice_date) : requires explicit conversion
B. invoice_date = ’15-march-2019′ : uses implicit conversion
C. invoie_date > ’01-02-2019′ : uses implicit conversion
D. qty_sold BETWEEN ‘101’ AND ‘110’ : uses implicit conversion
E. qty_sold = ‘0554982’ uses implicit conversion
Selected Answer: DE
Question #: 38
Topic #: 1
Which three are types of segments in an Oracle Database? (Choose three.)
A. undo
B. index
C. stored procedures
D. sequences
E. tables
F. clusters
Selected Answer: BEF
Question #: 39
Topic #: 1
Which two statements are true about the results of using the INTERSECT operator in compound queries? (Choose two.)
A. Column names in each SELECT in the compound query can be different
B. The number of columns in each SELECT in the compound query can be different
C. Reversing the order of the intersected tables can sometimes affect the output
D. INTERSECT returns rows common to both sides of the compound query
E. INTERSECT ignores NULLs
Selected Answer: AD
Question #: 40
Topic #: 1
Which two statements are true about single row functions? (Choose two.)
A. MOD : returns the quotient of a division operation
B. FLOOR : returns the smallest integer greater than or equal to a specified number
C. TRUNC : can be used with NUMBER and DATE values
D. CONCAT : can be used to combine any number of values
E. CEIL : can be used for positive and negative numbers
Selected Answer: CE