ORACLE INSTANCE – BASICS
- What is an Oracle Instance?
- What are the main components of an Oracle Instance?
- How is an Oracle Instance different from an Oracle Database?
- Can one Oracle Instance access multiple databases?
- Can multiple instances access a single database? Explain with an example.
- What happens to the instance when the database is closed?
- Is an instance required to be running to access database files?
- What is the relationship between background processes and memory structures?
- How do you identify whether an instance is running?
- Which views provide instance information?
2️⃣ INSTANCE STARTUP PHASES
Conceptual Questions
- What are the different phases of Oracle instance startup?
- What happens during STARTUP NOMOUNT?
- What files are required in NOMOUNT stage?
- What happens during STARTUP MOUNT?
- Which control file operations occur during mount phase?
- What happens during STARTUP OPEN?
- What is the difference between MOUNT and OPEN database?
- Can users connect during NOMOUNT stage?
- Which background processes start at each phase?
- What internal checks occur during database open?
Practical Questions
- How do you start an instance without opening the database?
- How do you start the database in restricted mode?
- How do you open a database in READ ONLY mode?
- What SQL commands are used for each startup phase?
- What happens if control files are missing during startup?
3️⃣ INSTANCE SHUTDOWN MODES
Conceptual
- What are the different shutdown modes in Oracle?
- Difference between SHUTDOWN NORMAL and IMMEDIATE?
- Difference between IMMEDIATE and TRANSACTIONAL?
- Why is SHUTDOWN ABORT considered unsafe?
- What happens internally during SHUTDOWN IMMEDIATE?
- Which shutdown mode performs instance recovery on next startup?
- Which shutdown mode waits for user sessions?
Scenario-Based
- Database is hanging and not responding—what shutdown method will you use?
- Users are running long transactions; how will you safely shutdown?
- DBA used SHUTDOWN ABORT accidentally—what should be done next?
- What happens if SHUTDOWN IMMEDIATE hangs?
- How do you identify active sessions blocking shutdown?
4️⃣ PARAMETER FILES (SPFILE & PFILE)
Basics
- What is a parameter file?
- Difference between PFILE and SPFILE?
- Why is SPFILE preferred over PFILE?
- Default location of SPFILE in Oracle 19c?
- Can Oracle start without a parameter file?
- What happens if SPFILE is corrupted?
Advanced
- How do you create a PFILE from SPFILE?
- How do you create an SPFILE from PFILE?
- Can you edit SPFILE manually?
- What is the significance of SCOPE parameter?
- What is the difference between SCOPE=MEMORY, SPFILE, BOTH?
- Can parameter changes be made dynamically?
- How do you identify whether instance is using SPFILE or PFILE?
5️⃣ IMPORTANT INITIALIZATION PARAMETERS
Memory & Performance
- What is SGA_TARGET?
- Difference between SGA_TARGET and SGA_MAX_SIZE?
- What is PGA_AGGREGATE_TARGET?
- Difference between ASMM and AMM?
- What parameter enables AMM?
- What happens if MEMORY_TARGET is set?
Database & Instance
- What is DB_NAME?
- What is DB_UNIQUE_NAME?
- What is CONTROL_FILES parameter?
- What is PROCESSES parameter?
- What is OPEN_CURSORS?
- What happens if PROCESSES limit is reached?
- What is UNDO_MANAGEMENT?
- What is UNDO_TABLESPACE?
- What is COMPATIBLE parameter?
6️⃣ ALERT LOG AND TRACE FILES
Basics
- What is an alert log file?
- What information does the alert log contain?
- Default location of alert log in Oracle 19c?
- What is ADR (Automatic Diagnostic Repository)?
- Difference between trace files and alert log?
Advanced / Troubleshooting
- When is a trace file generated?
- How do you enable SQL trace for a session?
- How do you identify background process trace files?
- What is the naming convention of trace files?
- How do you read alert log in real time?
- What files should be checked when database fails to start?
- What does ORA-600 error indicate?
- What does ORA-7445 error indicate?
7️⃣ INSTANCE SGA COMPONENTS
Basics
- What is SGA?
- What are the main components of SGA?
- What is Database Buffer Cache?
- What is Shared Pool?
- What is Redo Log Buffer?
- What is Large Pool?
- What is Java Pool?
- What is Streams Pool?
Advanced
- What happens when Shared Pool is exhausted?
- Difference between Library Cache and Data Dictionary Cache?
- What causes “library cache lock” waits?
- How do you monitor SGA usage?
- What dynamic views show SGA information?
- What happens if redo log buffer is too small?
8️⃣ ORACLE BASE & ORACLE HOME
Basics
- What is ORACLE_BASE?
- What is ORACLE_HOME?
- Difference between ORACLE_BASE and ORACLE_HOME?
- Why is ORACLE_BASE important?
- Can multiple ORACLE_HOMEs exist under one ORACLE_BASE?
- Default Oracle Base path in Linux?
Practical
- How do you identify ORACLE_HOME in a running instance?
- What happens if ORACLE_HOME is deleted accidentally?
- Can two databases share same ORACLE_HOME?
9️⃣ FILE NAMING CONVENTIONS & DEFAULT LOCATIONS
- Default location of datafiles in Oracle 19c?
- Default location of control files?
- Default location of redo log files?
- Naming convention of datafiles?
- Naming convention of control files?
- Naming convention of redo logs?
- Default location of password file?
- Default location of SPFILE?
- What is the purpose of OMF (Oracle Managed Files)?
- Advantages of using OMF?
🔟 TROUBLESHOOTING & SCENARIO-BASED QUESTIONS
- Database fails to start with ORA-01078 — how do you troubleshoot?
- Instance started but database does not open—possible reasons?
- Control file is missing—what steps will you follow?
- Parameter file is corrupted—how do you recover?
- Alert log shows “checkpoint not complete”—what does it mean?
- Database crashes frequently—what files will you analyze?
- Instance is consuming high memory—how will you troubleshoot?
- Users report slow logins—what SGA component might be the issue?
- Database hangs during shutdown—what diagnostic steps will you take?
- After reboot, database does not auto-start—why?
- ORA-04031 error occurs—what is the root cause and solution?
- Instance recovery takes too long—how will you reduce recovery time?
- Database opens but users cannot connect—what could be wrong?
- PROCESSES limit reached—how do you fix without restart?
1️⃣1️⃣ ADVANCED REAL-TIME SCENARIOS
- You changed a parameter dynamically, but it reverted after restart—why?
- Database started in NOMOUNT but control file is missing—next steps?
- Instance crashes due to power failure—what happens during next startup?
- You want to change DB_NAME—what steps are required?
- Alert log is growing very fast—how do you manage it?
- Instance starts but background processes are failing—how do you debug?
- DBA changed memory parameters incorrectly—database won’t start—what now?
