Oracle DBA LAB Questions
1) Installation, Network & Instance Startup (15)
- Install Oracle 19c Grid Infrastructure + RDBMS (silent mode). Validate inventory and oraInst.loc.
- Configure listener.ora and tnsnames.ora for multiple services; prove service‑based failover.
- Database fails to start with
ORA-01078/LRM-00109— fix spfile/pfile mismatch and boot. - Change memory policy from AMM to ASMM and validate PGA/SGA behavior.
- Start a CDB in MOUNT, open only one PDB; keep others MOUNTED.
- Fix login storms from app: enable server‑side tracing for a specific service with
oradebug setospid. - Listener accepts connections but DB rejects with
ORA-12514— map the service correctly. - Database won’t register with listener automatically — fix LOCAL_LISTENER/REMOTE_LISTENER.
- Set up passwordless OS authentication for
sysdba; audit who used it. - Diagnose slow logon due to DNS — implement EZCONNECT and compare.
- Configure Connection Manager (CMAN) and route traffic via CMAN for a PDB service.
- Force dedicated vs shared server; demonstrate impact on session count.
- Implement server parameter change via
ALTER SYSTEM … SCOPEvariants and verify persistence. - Configure ADRCI purging rules; prove incident packaging.
- Simulate FRA‑full on startup; recover by moving archive logs.
π¦ 2) ASM, Storage, Filesystem & FRA (15)
- Create ASM disk groups (DATA, FRA) with normal redundancy; move datafiles from filesystem to ASM.
- Add disks to DATA; rebalance; monitor
v$asm_operation. - Drop an ASM disk and recover redundancy while DB stays online.
- Move online redo logs to ASM; fix
ORA-00313/00312on wrong path. - Configure and test Block Change Tracking; validate RMAN’s incremental speed.
- Diagnose FRA pressure; implement policy to auto‑delete backups safely.
- Create bigfile tablespace and compare extent map vs smallfile.
- Convert a heap object to ASSM locally managed; validate segment space usage.
- Detect I/O latency at ASM vs OS; correlate with
v$eventmetric. - Enable Hybrid Columnar Compression (HCC) on ACFS (where supported); measure compression.
- Toggle
filesystemio_optionsand test async/direct I/O behavior. - Diagnose
ORA-15032/15063while dropping diskgroup; fix resource usage. - Move TEMP to faster disk and right size TEMP files for parallel sorts.
- Simulate write errors on FRA; reconfigure archive destinations with
LOG_ARCHIVE_DEST_n. - Validate
DB_RECOVERY_FILE_DEST_SIZEusage; clear obsolete files.
π¦ 3) RMAN Backup/Restore, PITR & Block Media Recovery (20)
- Implement full + incr level 1 RMAN strategy with retention policy; verify
REPORT OBSOLETE. - Perform PITR of one PDB to timestamp without affecting other PDBs.
- Test block media recovery for a single corrupt block; prove
v$database_block_corruptionis cleared. - Restore SPFILE and CONTROLFILE to new host; mount and recover.
- Clone database to a new server via RMAN duplicate FROM ACTIVE DATABASE.
- Validate TDE backups — restore onto a clean server with wallet/certs.
- Recover from missing archived logs using incremental backup strategy.
- Implement backup compression and compare throughput/CPU.
- Execute crosscheck and fix catalog inconsistencies.
- Do a tablespace point-in-time recovery (TSPITR) for a single app tablespace.
- Protect controlfile autobackup; simulate total loss of datafiles.
- Create image copies +
RECOVER COPYroll forward nightly; switch to copy. - Restore to a lower patch home; fix compatibility mistakes.
- Validate backup performance: SBT vs disk, multiple channels, section size.
- Use catalog recovery area to register orphaned backups.
- Prove Flashback Database can recover from user error faster than PITR.
- Test guaranteed restore points; rollback after DDL batch.
- RMAN
DUPLICATE FOR STANDBYto seed Data Guard quickly. - Drill a disaster recovery full restore on an empty host; measure RTO/RPO.
- Verify FOREIGN ARCHIVE redo availability across sites.
π¦ 4) Data Guard & DGMGRL (Physical/Logical/FSFO) (25)
- Build Physical Standby (no Data Guard Broker); manage via SQL only.
- Convert to Data Guard Broker (DGMGRL); enable
Fast-Start Failoverwith an observer. - Perform switchover; validate services failover; fail back.
- Simulate log transport gap; resolve with incremental SCN rollforward.
- Diagnose
ORA-16810/ORA-16826status errors; fix. - Create Far Sync instance; measure latency improvements.
- Configure
real-time applyand validateAPPLY LAGnear zero. - Standby open read‑only with active sessions; test
ADG‑aware services. - Stop redo apply; perform reports; resume and catch up.
- Reinstate a previously failed primary using flashback.
- Resolve ARCH corruption at standby; fetch missing logs manually.
- Promote standby without broker; re‑create new standby from promoted primary.
- Logical standby setup; replicate a subset of tables; test DDL capture.
- Fix
LNS/RFShandshake issues; verify net timeout parameters. - Force‑redo transport compression; monitor bandwidth usage.
- Change protection mode (Max Perf/Avail/Prot) and observe commit latency.
- Use DBMS_ROLLING for rolling upgrade with near‑zero downtime.
- Test DGMGRL observer auto‑reinstate; capture logs.
- Optimize
redoTransportSettingsfor WAN; measure redo rates. - Detect and repair lost write symptoms between primary/standby.
- Automate read‑preferred routing to standby via services.
- Fix
ORA-10458/10459errors during apply. - Archive gap resolution with
FAL_CLIENT/FAL_SERVER. - Test Snapshot Standby for UAT; convert back cleanly.
- Validate FSFO thresholds and observer failover history.
π¦ 5) RAC / Grid Infrastructure (Clusterware, CRS, Services) (25)
- Install 2‑node RAC; validate SCAN listeners and VIPs.
- Start/stop cluster resources using
crsctlandsrvctl; document dependencies. - Relocate a RAC service to another instance; validate TAF/FAN behavior.
- Diagnose
gc cr requestandgc buffer busywaits; tune interconnect. - Configure services with
-failovertype TRANSACTIONand connection load balancing. - Simulate node eviction; analyze OSWatcher/TFA and
diag/traces. - Fix GNS/DNS misconfig causing SCAN resolution issues.
- Test Transparent Application Failover (TAF) and runtime load balancing.
- Recreate OCR backups; test OCR restore.
- Patch GI home using opatchauto; rollback scenario.
- Add a new node to a RAC cluster; then remove it gracefully.
- Validate HAIP for private interconnect redundancy.
- Convert single‑instance to RAC One Node; online relocate.
- Fix ASM instance not starting on one node; diagnose with
alert_+ASM. - Simulate voting disk loss and recovery steps.
- Configure
srvctlstart dependencies for services and PDBs. - Patch rolling (GI + DB) with zero database downtime; document.
- Implement application continuity for RAC; verify replay success rate.
- RAC instance crash during heavy DDL — review KDUMP and CRSD logs.
- Capture and tune GC wait classes with AWR compare reports.
- Validate CPU/memory NUMA placement for RAC instances.
- Test leaf node resource profiles (where applicable).
- Repair
HASstack failing to start on one node. - Simulate interconnect bandwidth saturation; remediate.
- Move online redo threads between ASM diskgroups.
π¦ 6) Multitenant (CDB/PDB), Upgrade & Patching (20)
- Create CDB with multiple PDBs; set services per PDB; test connect strings.
- Clone a PDB locally and via database link (remote clone).
- Plug a non‑CDB as PDB; fix non‑CDB to PDB compatibility issues.
- Use PDB lockdown profiles for least privilege.
- Implement per‑PDB resource manager plans; prove isolation.
- Move PDB between CDBs using TDE; manage wallets.
- Upgrade 12.2 → 19c using AutoUpgrade; analyze config and scripts.
- Patch with RU/RUR; rollback test; read
opatch lsinventory. - Convert non‑CDB backup catalog to CDB; validate RMAN metadata.
- Automate opening PDBs on restart; test triggers vs PDB SAVE STATE.
- PDB PITR using RMAN
recover pluggable databaseto SCN. - Diagnose PDB
ORA-65040open errors; fix stale undo segments. - Transport PDB across endian change using
XTTS v5style flow. - Validate PDB hot clone under load; fix blocking sessions.
- Set default temp for a PDB and verify local TEMP usage.
- Migrate users/roles/privs into a PDB securely.
- Implement AWR per‑PDB snapshots; view in AWR Warehouse.
- Fix invalid objects after patch/upgrade with
utlrp. - Automate quarterly patch runbook with pre/post checks.
- Validate application grants do not require CDB$ROOT privileges.
π¦ 7) Performance (AWR/ASH/ADDM), SQL Tuning & Optimizer (25)
- Capture AWR during a performance event; produce a delta report and isolate top wait classes.
- Use ASH to find “on‑CPU” vs “waiting” sessions; correlate to SQL_IDs.
- Diagnose
log file syncspikes; tune commit batching/log buffer. - Identify
db file sequential/scattered readroot causes; adjust indexing and I/O. - Drill cursor sharing and bind peeking; apply SQL Plan Baselines.
- Use SQLTXPLAIN (SQLT) or SPA (SQL Performance Analyzer) to fix a regression.
- Create SQL Profile / SPM Baseline for a regressed plan; verify capture/evolution.
- Detect cardinality estimate issues; experiment with extended stats/histograms.
- Pin point latch vs enqueue contention; propose changes.
- Prove benefit of
result_cacheon repetitive query. - Track hard parse storms; fix session cursor cache.
- Use dbms_xplan.display_cursor with
ALLSTATS LASTto verify row counts and time. - Optimize a star transformation with bitmap indexes; compare plans.
- Analyze PX (parallel execution) skew; fix DOP,
PQ_DISTRIBUTE. - Enable adaptive features properly (19c) and measure.
- Compare
optimizer_features_enableimpacts; lock a stable plan. - Analyze SQL Monitor active reports for long‑running SQL.
- Reduce
buffer busy waitshot block contention via partitioning or ITL. - Tune
library cache lock/pinwaits; test cursor sharing settings. - Find top segments by logical/physical reads; re‑layout storage.
- Reduce
gc(Global Cache) waits in RAC by service‑based routing. - Stabilize a batch using dbms_stats.set_table_prefs; manage feedback.
- Validate plan change cause after stats gather; test
NO_INVALIDATE. - Diagnose frequent parse time cpu spikes; fix misuse of literals.
- Build a performance baseline and daily diff reports.
π¦ 8) Undo/Redo, Space Management & Segment Ops (15)
- Diagnose “snapshot too old” with
ORA-01555; fix undo sizing and retention. - Recreate undo tablespace online; fix corrupted undo segment.
- Analyze
ITL waitandenq: TX - allocate ITL entry; increase INITRANS/space. - Shrink a high‑water mark; compare
SHRINK SPACEvsMOVE. - Rebuild a massive partitioned index online; maintain constraints.
- Implement SECUREFILE LOB and measure dedup/compress.
- Identify top segments with row chaining; adjust PCTFREE and block size.
- Diagnose freelist vs ASSM behavior on legacy tablespaces.
- Transport a tablespace between databases (same endian).
- Convert dictionary‑managed tablespace to locally managed.
- Fix
ORA-01652(unable to extend temp segment) without restart. - Reclaim space after large delete; evaluate
DBMS_SPACEfindings. - Deal with
ORA-30036(undo tablespace) during large operations. - Validate auto segment space management behavior under high DML.
- Create Heat Map/ILM policies for tiering cold segments.
π¦ 9) Data Pump, GoldenGate & Integration (15)
- Export one PDB’s schema with expdp; import into another PDB; map remap_schema/tablespace.
- Parallelize expdp/impdp; tune streams; resolve ORA‑390xx errors.
- Use transportable tablespaces via Data Pump; confirm metadata only.
- GoldenGate uni‑directional replicat; handle DDL replication.
- Resolve OGG data drift with
@markerandlogdump. - Configure Integrated Extract; register with database.
- Recover OGG after replicate abends; avoid gaps.
- Compare Data Guard vs GoldenGate for zero‑downtime migrations.
- Migrate schema with LOBs; ensure LOB retention and chunking.
- Mask sensitive data during impdp; use REMAP_DATA or DBMS_REDACT.
- Split a huge table export using partition filters; verify constraints.
- Use network‑link import to avoid staging.
- Diagnose
ORA-31693/39126during impdp; fix invalid objects. - Validate supplemental logging for OGG.
- Move OGG trails to ASM/ACFS and benchmark.
π¦ 10) Security, Auditing, TDE & Vaults (15)
- Enable Unified Auditing; capture logon, DDL, and privileged operations; purge policy.
- Implement TDE in CDB/PDB with per‑PDB keystores; test wallet auto‑open.
- Lock down
PUBLICgrants; audit risky system privileges. - Create Database Vault realms; restrict DBA from sensitive schemas.
- Configure Password Verify Function and profiles; test expirations/lockouts.
- Implement Data Redaction; prove effectiveness in app queries.
- Use Virtual Private Database (VPD) policy for row‑level access.
- Detect and remediate
UTL_HTTP/UTL_FILEmisuse. - Rotate TDE master keys; ensure backup/restore works post‑rotation.
- Capture Fine Grained Auditing (FGA) on a critical table.
- Validate TLS/TCPS for listener; configure wallets; test mutual auth.
- Block lateral movement by restricting external jobs/hosts.
- Secure
SYSaccess paths; enforce strong auditing on SYSDBA. - Inventory and remove unused database links.
- Verify Oracle roles/privileges drift with a baseline job.
π¦ 11) OEM/Cloud Control, Observability & Automation (10)
- Deploy OEM agents to RAC and DG; fix blocked ports/firewall.
- Create blackouts and maintenance windows; stop false alerts.
- Build custom metrics (redo rate, log file sync) and alerts.
- Automate AWR extraction and store in AWR Warehouse.
- Create Compliance Standard and evaluate targets for drift.
- Build a runbook to capture SR logs (TFA/ADRCI/OSW).
- Integrate OEM notifications with Teams/Slack via script.
- Automate patch prechecks and post‑checks; archive results.
- Build a daily health report (invalids, space, FRA, DG lag, AWR deltas).
- Simulate Sev‑1 and run incident lifecycle end‑to‑end.
π¦ 12) Cloud (OCI/Azure/AWS) & Exadata (10)
- Provision OCI DBCS and enable Data Guard across ADs.
- Configure Autonomous Database cloning and refreshable clones.
- Capture AWR on Exadata; analyze storage cell waits (
cell smart …). - Test Exadata Hybrid Columnar effects on scans.
- Validate OCPU scale up/down with minimal disruption.
- Encrypt at rest with OCI Vault; rotate keys; validate restore.
- Migrate on‑prem → OCI with ZDM (Zero Downtime Migration).
- Enable Data Guard Broker in DBCS and test FSFO.
- Validate
smart scaneligibility for specific queries. - Compare Exadata offload vs non‑offload behavior with plans.
Comments
Post a Comment