Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Oracle Database Administration I 1Z0-082 Exam Questions

Last updated: · 11 practice questions with answers and explanations

Page: 1 / 15 Total 142 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Managing Database Instances

Skill tested: Use instance startup stages to make a database available without opening its datafiles.

A maintenance team must change the location of a control file, but the database is currently open and users are connected. The change is specified in the server parameter file, and the DBA has already updated the relevant initialization parameter. The database must be restarted so Oracle reads the new setting. During the maintenance window, users must not be allowed to access the database before the change is verified, but the DBA needs the mounted control file to confirm that the instance started with the expected configuration. Which startup action is most appropriate?

Correct Answer: A. Restart the instance with STARTUP MOUNT, verify the mounted database, and open it after verification.
Explanation:

STARTUP MOUNT starts the instance, reads the control files, and mounts the database without opening the datafiles for normal user access. This gives the DBA the mounted state needed for verification while preventing users from connecting to an open database. STARTUP OPEN would expose it immediately; disabling accounts is an unnecessary and less reliable substitute for the required startup state. NOMOUNT does not read or mount the control files, so it cannot provide the requested mounted-database verification. STARTUP FORCE forces a shutdown and restart but does not mean the database remains mounted.

Question 2

New Multiple answers

Topic: Managing Users, Roles and Privileges

Skill tested: Apply least privilege with object grants and a tablespace quota for a schema user.

An application owner creates a reporting account that must query two tables owned by SALES and create tables only in the REPORT_DATA tablespace. The account must not create objects in other tablespaces, perform administrative actions, or receive broad system privileges. The tablespace is already available, and the account is not intended to inherit access through a role. Which two actions meet these requirements? Select two.

Correct Answer: C. Grant SELECT on each required SALES table directly to the reporting account.; D. Assign the account a quota on REPORT_DATA and leave its quota on other tablespaces at zero.
Explanation:

Direct SELECT grants on the two required objects provide only the requested read access, without relying on a role or granting system-wide access. A quota on REPORT_DATA permits the user to allocate space there; users have no quota on a tablespace unless one is assigned, and leaving other quotas at zero prevents object growth there. SELECT ANY TABLE is broader than needed, while CREATE ANY TABLE allows creation in other schemas and tablespaces subject to additional rules. DBA is an excessive administrative role and should not be used as a starting point for least privilege.

Question 3

New Single answer

Topic: Managing Storage

Skill tested: Recover space from a segment while retaining its existing table definition and data.

A transactional table has accumulated substantial free space inside its segment after a large purge. The tablespace has adequate free space overall, but the team wants the table's high-water mark reduced so full table scans read fewer blocks and the unused space can be returned to the tablespace. The table must remain online, preserve its rows and indexes, and keep its current definition. Which approach is most appropriate, assuming the segment and tablespace support the operation?

Correct Answer: C. Use ALTER TABLE with the SHRINK SPACE operation, enabling row movement if required.
Explanation:

Segment shrink compacts rows and can lower the high-water mark, returning reclaimable space to the tablespace while retaining the table and its data. Row movement must be enabled for the operation because rows may need to be relocated within the segment; applications must account for possible rowid changes. TRUNCATE removes all rows, and REUSE STORAGE does not preserve the requested data. Dropping and recreating the table is disruptive and risks dependent objects. Statistics collection updates optimizer metadata but does not compact a segment or release its unused blocks.

Question 4

New Single answer

Topic: Moving Data

Skill tested: Choose an external-table access method for querying delimited files without loading them first.

A finance team receives a large, read-only delimited file each night and must validate its records with SQL before deciding which rows to load into a database table. The source file remains on the database server, changes each night, and must not be copied into a staging table merely to inspect it. The database administrator wants SQL access to the file while keeping database storage use minimal. Which solution best meets the requirement?

Correct Answer: D. Define an external table with the appropriate access parameters and query it directly.
Explanation:

An external table presents data in an external file through SQL without storing the file's rows in a database segment. This allows the team to validate and filter records before choosing what to load, matching the read-only, minimal-storage requirement. SQL*Loader loads records into database tables, so it does not provide the requested query-before-load workflow. Data Pump Import operates on Data Pump dump files rather than serving as a general delimited-file reader. A global temporary table stores session- or transaction-scoped rows and does not directly map a server file.

Question 5

New Multiple answers

Topic: Configuring Oracle Net Services

Skill tested: Distinguish listener registration from client naming when diagnosing connection failures.

Clients on a new application subnet receive ORA-12154 for a service that is reachable from an administrator workstation. The database is open, its service is registered with the listener, and a listener status check shows the service as ready. The new clients use local naming, have no centrally deployed naming file, and must connect using a short, agreed service alias. Network routing and firewall access to the listener have been confirmed. Which two steps should the administrator take? Select two.

Correct Answer: A. Add an appropriate connect descriptor for the alias to the new clients' local tnsnames.ora files.; D. Configure the clients to use Easy Connect with the service name, host, and listener port instead of a local alias.
Explanation:

ORA-12154 indicates that the client could not resolve the connect identifier. Since the server-side listener already reports the database service as ready and local naming is in use, adding the alias's connect descriptor to the clients' tnsnames.ora resolves the missing mapping. Easy Connect is another valid way to connect without a locally defined alias, using a connect string that identifies the host, port, and service. Listener registration is a server-side service-discovery matter and is already working. Changing the database service name or listener timeout does not fix client-side name resolution.

Question 6

New Single answer

Topic: Managing Tablespaces and Datafiles

Skill tested: Configure Oracle Managed Files using database-level destination parameters.

A company provisions several databases with Oracle Managed Files so administrators do not need to specify datafile names manually. For one database, the DBA wants newly created permanent tablespaces to place their files under a designated filesystem directory. The directory exists, has appropriate permissions, and is not intended to replace the database's separate recovery-file destination. Which configuration should the DBA use?

Correct Answer: B. Set DB_CREATE_FILE_DEST to the designated directory before creating the permanent tablespaces.
Explanation:

DB_CREATE_FILE_DEST specifies the default location for Oracle Managed Files such as datafiles and applies when permanent tablespaces are created without explicit datafile names. This directly meets the request while keeping the recovery-file destination separate. DB_RECOVERY_FILE_DEST is for the fast recovery area, not the general OMF datafile destination. CONTROL_FILES identifies control files and does not determine new datafile placement. DB_CREATE_ONLINE_LOG_DEST_n controls destinations for online redo logs and control files, while manually naming every datafile defeats the stated goal.

Question 7

New Multiple answers

Topic: Managing Undo

Skill tested: Distinguish undo retention guarantees from undo space availability and transaction behavior.

A reporting service runs long read-consistent queries against a busy database using automatic undo management. A query sometimes fails with ORA-01555 after the undo tablespace becomes heavily used. The business requires Oracle to retain undo for a specified minimum period when possible, but the DBA must also understand the effect of guaranteeing that period because undo capacity is finite. Which two statements are accurate? Select two.

Correct Answer: B. Increasing undo tablespace capacity can help retain undo longer, but does not make UNDO_RETENTION alone an absolute guarantee.; C. RETENTION GUARANTEE prevents unexpired undo from being overwritten, but can cause DML to fail when space is exhausted.
Explanation:

With RETENTION GUARANTEE enabled for the undo tablespace, Oracle does not overwrite unexpired undo, helping preserve the requested retention period; the tradeoff is that transactions needing undo space can fail if the tablespace fills. Increasing capacity can reduce pressure and help retain undo, but UNDO_RETENTION is normally a target rather than an unconditional guarantee when space is needed. Manual undo management does not ensure unlimited read consistency. Redo records changes for recovery; redo is not a substitute for the undo data required to construct consistent-read versions.

Question 8

New Single answer

Topic: Restricting and Sorting Data

Skill tested: Apply row limiting after ordering to return the highest-ranked records deterministically.

An operations analyst must return the five most recent completed maintenance jobs, with the newest completion timestamp first. Several jobs can share the same timestamp, so the output must remain deterministic across executions. The report runs on Oracle Database 12c or later, and the analyst wants a concise SQL query rather than a legacy ROWNUM wrapper. Which query pattern satisfies the requirement?

Correct Answer: C. Order by completion timestamp descending and job_id, then apply FETCH FIRST 5 ROWS ONLY.
Explanation:

The row-limiting clause is applied after ORDER BY, so ordering by completion timestamp and a unique tie-breaker such as job_id before FETCH FIRST returns the intended top five deterministically. Filtering on ROWNUM before sorting selects an arbitrary set of rows and then sorts only that subset, which can omit newer jobs. FETCH FIRST belongs at the end of the query after ordering, not in the WHERE clause. DISTINCT removes duplicates but does not impose a row limit.

Question 9

New Single answer

Topic: Displaying Data from Multiple Tables Using Joins

Skill tested: Preserve unmatched parent rows by placing optional-side restrictions in an outer join condition.

A support dashboard lists every customer and the number of that customer's open cases. Customers with no open cases must still appear with a count of zero. A developer uses a left outer join from CUSTOMERS to CASES but places the condition CASES.STATUS = 'OPEN' in the WHERE clause; customers without a matching case disappear from the result. The query must preserve all customers and count only open cases. Which change is most appropriate?

Correct Answer: B. Move CASES.STATUS = 'OPEN' into the ON condition and count a non-null case key.
Explanation:

Putting the optional-side status restriction in the ON clause means only open cases can match, while the left outer join still preserves every customer. Counting a non-null case key then yields zero for customers with no matching open case. A WHERE predicate on CASES.STATUS rejects null-extended rows and effectively removes customers without cases. An inner join has the same exclusion problem. Moving only the key comparison does not preserve the requested semantics, and a full outer join would also introduce case rows without customers.

Question 10

New Multiple answers

Topic: Using SET Operators

Skill tested: Combine compatible query results while preserving duplicates and ordering set-operation output.

A compliance report combines current and archived audit events. The current and archive queries return the same three columns with matching data types. Events can legitimately occur in both sources, and every occurrence must remain in the report. The final report must sort by event timestamp descending, with event ID ascending as a tie-breaker. Which two SQL design choices satisfy these requirements? Select two.

Correct Answer: B. Place the final ORDER BY after the set-operation query and reference output columns or valid select-list positions.; D. Use UNION ALL between the two SELECT statements.
Explanation:

UNION ALL combines both result sets without eliminating duplicate rows, preserving every event occurrence as required. The ORDER BY for a compound query belongs at the end of the set-operation statement and orders the combined result; it can use output column names or valid select-list positions. UNION performs duplicate elimination, contrary to the requirement. Separate ORDER BY clauses do not establish the ordering of the combined output and are not the correct way to order a compound result. INTERSECT returns only rows common to both queries, not the union of current and archive events.

Question 11

New Single answer

Topic: Managing Data in Different Time Zones

Skill tested: Interpret session-local timestamps and time-zone-aware values in SQL output.

A global operations application stores event instants in a TIMESTAMP WITH TIME ZONE column. An analyst connects from a session configured for a different time zone than the database host and needs a report showing both the session's current local timestamp and the current timestamp with its time-zone information. The report must reflect the session time zone, not the operating system clock of the database server. Which statement correctly distinguishes the relevant SQL functions?

Correct Answer: C. CURRENT_TIMESTAMP returns the session time-zone-aware timestamp; LOCALTIMESTAMP returns the session-local timestamp without a time-zone component.
Explanation:

CURRENT_TIMESTAMP returns a TIMESTAMP WITH TIME ZONE value in the session time zone. LOCALTIMESTAMP also reflects the session's current local time, but returns TIMESTAMP without a time-zone component. Those distinctions let the report show a zone-aware value alongside a local timestamp while respecting the session configuration. Neither function is defined as using the client machine's operating-system time zone, and the two functions do not return the same data type. The host's time-zone setting is not the requested basis for the report.