Atikh's DBA blog
  • Home
  • Oracle
  • MySQL
  • MongoDB
  • PostgreSQL
  • Snowflake
  • About Me
  • Contact Us

Startup and Shutdown Oracle Database

 Atikh Shaikh     oracle     No comments   

There are different stages and types of Startup and Shutdown Oracle Database. To perform these operations user account must have administration privileges. Generally sys account is used to perform these operations.
Connect to database using below method, suppose database name is techon_db

$set ORACLE_SID=techon_db
$sqlplus /nolog

SQL>connect / as sysdba

STARTUP

techondba-startup-oracle-database

Different Stages of startup
NOMOUNT:  During NOMOUNT stage, memory gets allocated as per pfile/spfile memory parameters and mandatory background processes (for 11g- PMON,SMON, DBWn, LGWR, CKPT,RECO, MMON and MMNL) gets started

MOUNT:  During Mount stage, Oracle takes control file. Only sysdba will be able perform operations during these stage

OPEN: During Open stage, header of data files, control files and redo log files gets checked by Oracle for synchronization. Once it is done, database gets opened and ready for all users.

Different types of database startup

§  STARTUP
This will be perform all three operations NOMOUNT + MOUNT + OPEN with single command “startup”. Database will be available for all users


§  STARTUP NOMOUNT 
This command opens database in nomount mode and allocates memory and starts mandatory background processes.

§  STARTUP MOUNT
Startup mount will perform NOMOUNT + MOUNT in single step. It will allocate memory, starts mandatory background processes and acquires control file
§  STARTUP RESTRICT
Database will undergo with NOMOUNT, MOUNT and OPEN stage but it will be available only for SYSDBA or users having RESTRICTED_SESSION privilege

§  STARTUP FORCE
This command will perform SHUTDOWN ABORT + STARTUP. First it will perform shutdown abort and then start the database in open state. This type of startup requires instance recovery and it will be done by SMON during startup

SHUTDOWN


Different types of shutdown

§  SHUTDOWN | NORMAL

Default shutdown mode
It waits for all users to disconnect before completing the shutdown.
New connections or transaction cannot be made
Checkpoint process occurs and Oracle close and dismount the database before shutting down the instance.
Instance recovery will not be required for next startup

§  SHUTDOWN TRANSACTIONAL

New connections or transaction cannot be made
Wait to complete current transaction from users and then close its session to proceed with shutdown
Checkpoint process occurs and Oracle close and dismount the database before shutting down the instance.
Instance recovery will not be required for next startup

§  SHUTDOWN IMMEDIATE

New connection or transaction cannot be made
Oracle will forcefully close all database sessions and proceed with shutdown
Checkpoint process occurs and Oracle closes and dismounts the database before shutting down the instance.
Instance recovery will not be required for next startup

§  SHUTDOWN ABORT

Forcefully terminate user’s SQL statement and close all users currently connected
No checkpoint will occur and instance will be terminated directly.
Since checkpoint has not happened, the next startup will require instance recovery, which is automatically done by SMON
Recommended only if other options do not work


         Comment below if you need additional information

  • Share This:  
  •  Facebook
  •  Twitter
  •  Instagram
  •  Pin
  •  linkedin
  •  reddit
Email ThisBlogThis!Share to XShare to Facebook

Related Posts:

  • Oracle SCN : System Change NumberSystem Change Number SCN is a number generated in the database on the occurrence of an event in the database, the event could be DML statement execu… Read More
  • * ERROR at line 1: ORA-01219: database or pluggable database not open: queries allowed on fixed tables or views onlyAs a DBA, you must have come across the below error while working on pluggable databases ERROR at line 1:ORA-01219: database or pluggable da… Read More
  • using nid to change oracle database SID or oracle database nameIn this article, we will discuss using the nid utility to change database sid or database name without dropping and recreating the database, before st… Read More
  • Processing select statement in oracle database Understanding the execution of any query in the Oracle database needs an understanding of different components of the Oracle database such as SGA, … Read More
  • Granting access on dynamic views (ORA-02030: can only select from fixed tables/views)There were situations when the application team asks for access to dynamics views such as V$SESSION or similar dynamic views. Acce… Read More
Newer Post Older Post Home

0 comments:

Post a Comment

Author

Atikh Shaikh
View my complete profile

Categories

  • MongoDB (18)
  • Oracle 12c (30)
  • Oracle12cR2 New Feature (3)
  • PostgreSQL (20)
  • RMAN (10)
  • Snowflake (8)
  • mysql (23)
  • oracle (73)

Blog Archive

  • ▼  2018 (38)
    • ►  November (25)
    • ▼  December (13)
      • Starting and Stopping MongoDB
      • Oracle Database Architecture Physical and Logical
      • MongoDB Database Backup and Restore
      • Startup and Shutdown Oracle Database
      • Oracle 12c New features – Multitenant Database
      • MongoDB Storage Engines
      • Create Pluggable Database (PDB) in Oracle 12c
      • Warning: PDB altered with errors- opening PDB in O...
      • Oracle 12c: Starting and Stopping PDB
      • Know your Hostname in MySQL
      • Everything you need to know about Oracle Data Pump
      • List Databases, Tables, schemas and other basic c...
      • User Managed Backups in Oracle
  • ►  2019 (33)
    • ►  January (15)
    • ►  February (6)
    • ►  March (2)
    • ►  April (5)
    • ►  May (5)
  • ►  2020 (5)
    • ►  April (1)
    • ►  May (2)
    • ►  July (2)
  • ►  2021 (8)
    • ►  June (3)
    • ►  July (3)
    • ►  August (1)
    • ►  December (1)
  • ►  2022 (33)
    • ►  May (3)
    • ►  June (10)
    • ►  July (3)
    • ►  August (4)
    • ►  September (8)
    • ►  October (3)
    • ►  November (2)
  • ►  2023 (14)
    • ►  February (1)
    • ►  April (5)
    • ►  May (2)
    • ►  June (1)
    • ►  September (1)
    • ►  October (1)
    • ►  December (3)
  • ►  2024 (5)
    • ►  January (2)
    • ►  March (3)
  • ►  2025 (5)
    • ►  March (1)
    • ►  April (3)
    • ►  May (1)

Popular Posts

  • ORA-29283: invalid file operation: unexpected "LFI" error (1509)[29437]
    I was trying to export the schema in my windows PC, it got stuck with below error    C:\Users\shaik\Videos\technodba exp>expdp userid...
  • Oracle Dataguard Broker Configuration (DGMGRL)
    Data Guard Broker is a command-line interface that makes managing primary and standby databases easy. DBA can use a single command to switch...
  • PostgreSQL : How to get data directory location for PostgreSQL instance
    Sometimes, you start working on a PostgreSQL instance but forget about the data directory, here we will discuss different methods to know th...
  • ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES
    In previous articles, we have learned about user creation and grants  in MySQL in detail, but there are a few privileges called global priv...
  • Oracle 23ai : The all new Hybrid Read-Only for pluggable databases (PDBs)
      The latest Oracle database version, Oracle 23ai, introduced a new open mode called Hybrid Read-Only for pluggable databases (PDBs). Local ...

Labels

oracle Oracle 12c mysql PostgreSQL MongoDB oracle 19c Oracle23c oracle19c Orale PDB-CDB oracle12c python AWS Oracle ASM Virtualbox pluggable database storage engine

Pages

  • Disclaimer
  • Privacy Policy

Follow TechnoDBA

Copyright © 2025 Atikh's DBA blog | Powered by Blogger