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
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 (21)
  • RMAN (10)
  • Snowflake (8)
  • mysql (23)
  • oracle (74)

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 (7)
    • ►  March (1)
    • ►  April (3)
    • ►  May (2)
    • ►  August (1)
  • ►  2026 (1)
    • ►  January (1)

Popular Posts

  • PostgreSQL : pg_hba. conf configuration file
    In PostgreSQL, there are a number of configuration files, some of the files needs to be managed by postgres DBA, out of which  pg_hba.conf ...
  • User Managed Backups in Oracle
    Definition :Backup is real and consistent copy of data from database that could be used to reconstruct the data after and incident. ...
  • 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 : Creating a new pluggable database using PDB$SEED
    As a database administrator, you might come across creating a pluggable database, here is the method to create a pluggable database (PDB), F...
  • Oracle ASM Scrubbing
    What is ASM Scrubbing?   ASM scrubbing is a process used to identify and repair data corruption issues within an ASM disk group. ASM Scr...

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 © Atikh's DBA blog | Powered by Blogger