Oracle DBA interview questions and answers for production database administrators
Oracle DBA interview questions focus on keeping production databases running: starting and stopping instances safely, designing and testing RMAN backups, running Data Guard switchovers, applying patches, managing users and space, and triaging errors at 2 a.m. Interviewers want to hear the exact checks you run and in what order, and whether you have actually restored a database rather than only backed one up. Expect scenario questions far more than definitions.
By Evin JohnPublished 7 min read
What Oracle DBA interviews look for
An Oracle DBA role is mostly about risk: data that must not be lost, maintenance windows that must not overrun, and incidents that must be fixed without making them worse. Interviews reflect that. A typical loop has a screening call on your environments (versions in broad terms, single instance or RAC, on premises or cloud, database count and size), a technical round with a senior DBA that is heavy on scenarios, and sometimes a practical task such as writing an RMAN script or reading an alert log excerpt. If you also need the engine internals and Oracle SQL quirks, prepare with Oracle Database interview questions; for vendor-neutral DBA topics, see database administrator interview questions.
- Environment walk-throughDescribe the estate you ran: how many databases, how backups and standbys were set up, and how you were paged.
- Core operationsStartup and shutdown, files that matter, users, space and the listener. Quick, precise answers expected.
- Recovery and availabilityRMAN strategy, restore tests, Data Guard roles. The interviewer will push on what you have done, not read.
- Incident scenariosAn error or symptom is described and you talk through triage, the fix, and how to stop it recurring.
Core operations questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Walk through the startup stages. | Instance lifecycle | NOMOUNT reads the parameter file, allocates memory and starts background processes. MOUNT reads the control file. OPEN opens datafiles and online redo logs. Some tasks, such as re-creating a control file, need a specific stage. |
| Compare the shutdown modes. | Safe operations | NORMAL waits for all sessions to log off; TRANSACTIONAL waits for transactions to finish; IMMEDIATE rolls back active work and closes cleanly; ABORT stops at once and needs instance recovery on the next start. IMMEDIATE is the usual choice before maintenance. |
| spfile or pfile? | Configuration | The spfile is a binary server parameter file that ALTER SYSTEM can update persistently. The pfile is plain text. You can create one from the other, which is handy when a bad parameter stops the instance starting. |
| What is the password file for? | Privileged access | It lets users with SYSDBA and similar privileges authenticate remotely, including when the database is not open. Standby databases need a matching copy. |
| How does a client find the database? | Networking | The listener accepts connections for registered services; clients connect by host, port and service name, through an easy-connect string or a tnsnames entry. lsnrctl status shows which services are registered. |
| Where do you look first when something breaks? | Diagnostics | The alert log and the trace files it points to, found through the diagnostic repository (adrci helps search them). Then the wait events of the affected sessions. |
| What is ARCHIVELOG mode and why does production use it? | Recoverability | Filled redo logs are archived before reuse, which allows online backups and recovery to a point in time. Without it you can only restore to the last cold backup. |
| How should redo log groups be set up? | Redo design | At least two members per group on separate storage, and groups large enough that switches are not happening every minute or two under peak load. |
| How do you create a user with sensible defaults? | Security | Assign a default and temporary tablespace, a quota, a profile with password and lock rules, and only the roles needed. Avoid granting DBA or ANY privileges to application accounts. |
| What is a profile used for? | Policy | Password rules (lifetime, reuse, failed login attempts and lock time) and optional resource limits per user. |
RMAN backup and recovery questions
Every senior Oracle DBA interview spends real time here. The question behind the questions is simple: when the database is gone, how long until it is back, and how much data is lost? Tie each answer to the recovery time and recovery point the business agreed to.
- Level 0 versus level 1 incremental? Level 0 copies every used block and is the base. Level 1 copies blocks changed since a previous backup: differential since the last level 1 or 0, cumulative since the last level 0. Cumulative backups make restores shorter at the cost of larger backups.
- What does block change tracking do? It records changed blocks in a small file so a level 1 backup reads only those blocks instead of scanning every datafile.
- Redundancy or recovery window retention? Redundancy keeps a set number of backups; a recovery window keeps whatever is needed to recover to any point within a number of days. A window maps more directly to the business promise.
- Why turn on control file autobackup? The control file and spfile are backed up after every backup and structural change, so you can restore them even with no recovery catalog.
- Recovery catalog or control file only? A catalog in a separate database keeps longer history, stored scripts and metadata for many databases. The control file alone works but loses old records over time.
- How do you prove a backup is usable?
RESTORE DATABASE VALIDATEreads the backup pieces without restoring, and a scheduled full restore to another host proves the whole procedure, including the steps people forget. - Crosscheck, expired and obsolete? CROSSCHECK marks backups missing from storage as expired. Obsolete means no longer needed under the retention policy. Delete each deliberately, not in a blanket script nobody reads.
- A user dropped a table an hour ago. What are your options? Flashback drop from the recycle bin if it is still there, a flashback query or flashback table if undo allows, table recovery from RMAN backups where available, or a point-in-time restore to an auxiliary instance and an export of the table.
- Walk through a full restore after losing all datafiles. Start in NOMOUNT, restore the control file if needed, mount, restore the database, recover with archived logs to the target time, then open with RESETLOGS when recovery was incomplete, and take a fresh backup straight away.
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS;
RUN {
BACKUP INCREMENTAL LEVEL 1 DATABASE PLUS ARCHIVELOG;
DELETE NOPROMPT OBSOLETE;
}
-- weekly check that the pieces can actually be read
RESTORE DATABASE VALIDATE;Data Guard, patching and Data Pump questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Physical or logical standby? | Data Guard basics | A physical standby applies redo block for block and is an exact copy. A logical standby applies SQL derived from redo, allowing some differences, with more restrictions on data types. |
| Switchover versus failover? | Role changes | Switchover is planned: primary and standby swap roles with no data loss and the old primary becomes a standby. Failover is unplanned: the standby becomes primary after the primary is lost, and data loss depends on the protection mode. |
| Name the protection modes. | Trade-offs | Maximum performance sends redo asynchronously; maximum availability waits for the standby when it can; maximum protection refuses commits if no synchronized standby confirms. Each trades commit latency for data loss risk. |
| What is apply lag and how do you watch it? | Monitoring | How far the standby is behind in applying redo. The Data Guard broker and standby views report transport and apply lag; alert on both. |
| Can the standby serve reads? | Licensing awareness | A physical standby can be opened read-only while applying redo with the Active Data Guard option, which Oracle licenses separately. Confirm licensing before suggesting it. |
| How do you apply a database patch? | Change process | Read the patch notes, test in a lower environment, back up, apply binaries with OPatch (often into a new home to shorten downtime), then run datapatch to apply the SQL part to each database, and check the registry afterwards. |
| How do you keep downtime low during patching? | Planning | Out-of-place patching with a pre-built home, rolling patches across RAC nodes where the patch supports it, or a Data Guard standby-first approach. |
| Data Pump or RMAN for a copy of one schema? | Tool choice | Data Pump (expdp and impdp) is a logical export by schema or table, good for moves and refreshes, with options such as remapping schemas. It is not a substitute for physical backups of the database. |
| How would you migrate a large database to new hardware? | Migration | Options include RMAN duplicate, a Data Guard standby on the new host followed by a switchover, transportable tablespaces, or Data Pump for smaller sets. Choose by size, downtime allowed and platform change. |
On-call and senior scenario questions
| Symptom | Likely cause | What to say you would do |
|---|---|---|
| Applications hang and new connections fail with ORA-00257. | The archiver cannot write: the destination or fast recovery area is full. | Check space in the archive destination or FRA, back up and remove archived logs through RMAN (not by deleting files by hand), or add space. Then fix the cause: a failed backup job or a retention gap. |
| ORA-01653: unable to extend a table. | The tablespace is full. | Add a datafile or resize one, or enable autoextend with a sensible maximum. Then look at growth trends and alerting so it does not surprise you again. |
| ORA-04031 errors on a busy system. | Shared pool memory cannot satisfy an allocation, often from fragmentation or many unshared statements. | Check for literal SQL that defeats cursor sharing, review memory sizing, and ask developers to use bind variables. Flushing the pool is a short-term relief, not a fix. |
| Users report everything froze for one module. | Blocking locks | Find the blocker in v$session, see what it is running and who owns it, and contact the owner before killing the session. Then find why a transaction stayed open. |
| The database got slow right after a release. | A plan change or new SQL | Compare top SQL and wait events before and after (AWR or ASH where the Diagnostics Pack is licensed, Statspack otherwise), find the regressed statement, and pin a known good plan while the fix is prepared. |
| Standby apply lag keeps growing. | Transport or apply problem | Check whether redo is arriving (network, archive gaps) or arriving but not applied (apply process stopped, I/O on the standby). Resolve gaps before the primary purges the logs needed. |
| Someone ran a DELETE without a WHERE clause in production. | Human error | Stop further damage, check whether flashback query or table can recover the rows within undo retention, otherwise restore to a point in time on an auxiliary instance and copy the rows back. |
SELECT s.sid, s.serial#, s.username, s.sql_id, s.event, s.blocking_session
FROM v$session s
WHERE s.blocking_session IS NOT NULL
ORDER BY s.blocking_session;- How do you decide on a maintenance window for a risky change? Agree on the outage the business can absorb, rehearse the change on a copy, write a rollback with a decision point, and take a backup just before.
- How do you secure an Oracle database beyond passwords? Least privilege roles, locked default accounts, unified auditing of privileged actions, network encryption, and encryption at rest where the Advanced Security option or a cloud service provides it.
- How would you standardize a hundred databases? Gold images for homes, scripted creation, the same backup and monitoring templates, and a central inventory of versions and patch levels.
- What do you hand over at the end of an on-call shift? Open incidents, anything still recovering, changes made, and what to watch, written down rather than said in passing.
Fictional example
- Interviewer
- You are paged: the application is down and the alert log shows archiver errors. What do you do?
- Candidate
- First I confirm it in the alert log and check where archived logs go, usually the fast recovery area, and how full it is. If it is full, the quickest safe fix is to back up the archived logs with RMAN and let RMAN delete them, or to raise the FRA size if the disk has room. I would not delete files from the operating system, because RMAN would then think they still exist. Once the archiver resumes and sessions recover, I tell the incident channel. In the morning I would find why space ran out: in my experience it is often a backup job that failed silently for a few nights. So the follow-up is alerting on backup failures and on FRA usage well before it reaches the limit.
Oracle DBA practice plan
- Days 1 and 2: install a lab database on a virtual machine or container using a free edition Oracle offers for developers (check Oracle's site for the current name and limits). Practice every startup and shutdown mode and read the alert log after each.
- Days 3 and 4: turn on ARCHIVELOG mode, configure RMAN, take level 0 and level 1 backups, then delete a datafile on purpose and recover it.
- Day 5: fill a small tablespace and an archive destination on purpose, and fix each the right way.
- Day 6: create blocking locks from two sessions and find them with v$session; practice explaining the fix out loud.
- Day 7: rehearse three incident stories from your own work: symptom, triage, fix, and what you changed afterwards.
Scenario rounds for DBAs are judged on sequence: what you check first, what you avoid doing, and when you escalate. Natively, an AI interview assistant for Mac and Windows, transcribes a mock DBA round on your machine so you can see whether you reached for the alert log before guessing. In practice it can read an error message or an RMAN script from a screenshot and suggest points you skipped, and with Pro or the free trial it can use the résumé and job description you add. The transcript and notes are kept for review later.
Questions people ask
What Oracle DBA questions are asked in interviews?
Startup stages and shutdown modes, spfile and password file, the listener and alert log, RMAN levels and retention, restore and recovery steps, Data Guard switchover and failover, patching, Data Pump and incident scenarios.
How do I answer an RMAN question in an Oracle DBA interview?
Tie the strategy to the agreed recovery time and recovery point, explain level 0 and level 1 backups and retention, and describe a restore you actually tested, not only the backup.
What on-call scenarios do Oracle DBA interviews use?
A stuck archiver, a full tablespace, shared pool errors, blocking sessions, a slow database after a release, standby lag, and accidental data deletion. Answer with triage order, fix and prevention.
How is an Oracle DBA interview different from an Oracle Database interview?
DBA rounds focus on operations: backups, availability, patching, security and incidents. Engine internals and Oracle SQL behavior come up too, but the scenarios carry most of the weight.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
