SlideShare a Scribd company logo
1 of 3
Download to read offline
Startup and shutdown Method



When startup command is issued. Oracle looks for the parameter file in following order.

1.Spfile<SID>.ora

2.init<SID>.ora

Oracle look for the parameter file in $ORACLE_HOME/dbs

We can startup the database instance with following options.

1.startup

2.startup nomount

3.Startup mount

startup pfile=’/location/filename’

4.startup upgrade

5.startup mount restrict

1.startup:-

1.It will read the parameter file.

2.It will starts the background processes and allocate memory(SGA). – Instance started.

3.It reads the controlfile. –Instance mounted.

4.Physically checks the datafiles and redolog files.

5.Checks the SCN number of the datafiles and controlfiles.

It is used in normal situations.

If the SCNs in the control files don’t match some of the SCNs in the data files headers—the background
process(smon) will automatically perform an instance recovery before opening the database.

2.startup mount:--

It will do 1,2 and 3.

It will not do 4 and 5.
Can be used when:-- Recovery is needed for the entire database, Flashback is to be performed, any
feature like archive log is to be enabled or disabled.

3.startup nomount:--

It will do 1 and 2.

It will not do 3,4 and 5.

Can be used when:-- Creating database and creating controlfile.

4.startup upgrade:--

It will do 1 to 5 and

6.Give the option of upgrading database.

7. Users cannot connect to the database.

Can be used to upgrade the database dictionary.

Database must be shutdown and restarted for users to connect.

5. startup mount restrict:--

It will read 1,2 and 3.

It will not read 4 and 5.

Used when the database is dropped.



Changing the status:--

Alter database mount;

This command can be used when database is in nomount state, this will read the controlfiles and mount
the database.

Alter database open;

This command can be used when database is mounted.

This will read the datafiles and redolog file and will check if the datafiles are consistent. Allows the users
to connect to the database.

Alter database close;

This command can be used when database open. This will release the datafiles and redolog files.
User connections will not be allowed. Status will change to mount.

Alter database dismount;

This command can be used when database is at mount state. This will release the control file and change
the status to nomount.

The database can be shutdown with the following options:--

Shutdown:--

No new user connections can be made to the database once the command is issued. Oracle waits for all
users to exit their sessions before shutting down the database. No instance recovery is needed when
you restart database, it will be consistent when it’s shut down in this way. Oracle closes the data files
and terminates the background processes. Oracle’s SGA is deallocated.

Shutdown transactional:--

No new user connections are permitted once the command is issued. Existing users can’t start a new
transaction and will be disconnected. If a user has a transaction in progress, oracle will wait until the
transaction is completed before disconnecting the user. After all existing transactions are completed.
Oracle shuts down the instance and deallocates memory. Oracle writes all redo log buffers and data
block buffers to disk. No instance recovery is needed because the database is consistent.

Shutdown immediate:--

No new user connections are allowed once the command is issued. Oracle immediately disconnects all
users. Oracle terminates all currently executing transactions. For all transactions terminated midway,
oracle will perform a rollback so that database ends up consistent. Sometimes oracle may be busy
rolling back the transactions it just terminated. Oracle terminates the background processes and
deallocates memory. No instance recovery is needed upon starting up the database because it is
consistent when shut down.

Shutdown abort:--

No new connections are permitted once the command is issued. Existing sessions are terminated,
regardless of whether they have an active transaction or not. Oracle doesn’t roll back the terminated
transactions. Oracle doesn’t write the redo log buffers and data buffers to disk. Oracle terminates the
background processes, deallocates memory immediately, and shutdown. Upon restarting, oracle will
perform an automatic instance recovery, because the database isn’t guaranteed to be consistent when
shut down.

More Related Content

What's hot

Pluggable database tutorial 2
Pluggable database tutorial 2Pluggable database tutorial 2
Pluggable database tutorial 2Osama Mustafa
 
DBA 3 year Interview Questions
DBA 3 year Interview QuestionsDBA 3 year Interview Questions
DBA 3 year Interview QuestionsNaveen P
 
Upgrade EBS DB from 11g to 12c.
Upgrade EBS DB from 11g to 12c.Upgrade EBS DB from 11g to 12c.
Upgrade EBS DB from 11g to 12c.Osama Mustafa
 
All Oracle-dba-interview-questions
All Oracle-dba-interview-questionsAll Oracle-dba-interview-questions
All Oracle-dba-interview-questionsNaveen P
 
Database decommission process
Database decommission processDatabase decommission process
Database decommission processK Kumar Guduru
 
Performance Tuning Tool01-Statspack
Performance Tuning Tool01-StatspackPerformance Tuning Tool01-Statspack
Performance Tuning Tool01-StatspackZhaoyang Wang
 
Oracle Linux 7 Beta First Look (Installations)
Oracle Linux 7 Beta First Look (Installations)Oracle Linux 7 Beta First Look (Installations)
Oracle Linux 7 Beta First Look (Installations)Osama Mustafa
 
Cloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step ProcedureCloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step ProcedureOrazer Technologies
 
Native tables in NonStop SQL/MX
Native tables in NonStop SQL/MXNative tables in NonStop SQL/MX
Native tables in NonStop SQL/MXFrans Jongma
 
Concepts of NonStop SQL/MX: Part 3 - Introduction to Metadata
Concepts of NonStop SQL/MX: Part 3 - Introduction to MetadataConcepts of NonStop SQL/MX: Part 3 - Introduction to Metadata
Concepts of NonStop SQL/MX: Part 3 - Introduction to MetadataFrans Jongma
 

What's hot (20)

Pluggable database tutorial 2
Pluggable database tutorial 2Pluggable database tutorial 2
Pluggable database tutorial 2
 
141 Pdfsam
141 Pdfsam141 Pdfsam
141 Pdfsam
 
DBA 3 year Interview Questions
DBA 3 year Interview QuestionsDBA 3 year Interview Questions
DBA 3 year Interview Questions
 
Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4
 
21 Rac
21 Rac21 Rac
21 Rac
 
Upgrade EBS DB from 11g to 12c.
Upgrade EBS DB from 11g to 12c.Upgrade EBS DB from 11g to 12c.
Upgrade EBS DB from 11g to 12c.
 
141 Rac
141 Rac141 Rac
141 Rac
 
41 Pdfsam
41 Pdfsam41 Pdfsam
41 Pdfsam
 
All Oracle-dba-interview-questions
All Oracle-dba-interview-questionsAll Oracle-dba-interview-questions
All Oracle-dba-interview-questions
 
8i standby
8i standby8i standby
8i standby
 
21
2121
21
 
Database decommission process
Database decommission processDatabase decommission process
Database decommission process
 
Oracle shutdown
Oracle shutdownOracle shutdown
Oracle shutdown
 
241 Pdfsam
241 Pdfsam241 Pdfsam
241 Pdfsam
 
Performance Tuning Tool01-Statspack
Performance Tuning Tool01-StatspackPerformance Tuning Tool01-Statspack
Performance Tuning Tool01-Statspack
 
Oracle Linux 7 Beta First Look (Installations)
Oracle Linux 7 Beta First Look (Installations)Oracle Linux 7 Beta First Look (Installations)
Oracle Linux 7 Beta First Look (Installations)
 
Cloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step ProcedureCloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step Procedure
 
Native tables in NonStop SQL/MX
Native tables in NonStop SQL/MXNative tables in NonStop SQL/MX
Native tables in NonStop SQL/MX
 
Concepts of NonStop SQL/MX: Part 3 - Introduction to Metadata
Concepts of NonStop SQL/MX: Part 3 - Introduction to MetadataConcepts of NonStop SQL/MX: Part 3 - Introduction to Metadata
Concepts of NonStop SQL/MX: Part 3 - Introduction to Metadata
 
261 Pdfsam
261 Pdfsam261 Pdfsam
261 Pdfsam
 

Viewers also liked

Introduction to sql server
Introduction to sql serverIntroduction to sql server
Introduction to sql serverVinay Thota
 
Controlfilemanagement
ControlfilemanagementControlfilemanagement
ControlfilemanagementVinay Thota
 
Curso basicoseguridadweb slideshare9
Curso basicoseguridadweb slideshare9Curso basicoseguridadweb slideshare9
Curso basicoseguridadweb slideshare9tantascosasquenose
 
Hype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerHype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerLuminary Labs
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsLinkedIn
 

Viewers also liked (8)

Introduction to sql server
Introduction to sql serverIntroduction to sql server
Introduction to sql server
 
Backup&recovery
Backup&recoveryBackup&recovery
Backup&recovery
 
Controlfilemanagement
ControlfilemanagementControlfilemanagement
Controlfilemanagement
 
Tablespaces
TablespacesTablespaces
Tablespaces
 
Basic commands
Basic commandsBasic commands
Basic commands
 
Curso basicoseguridadweb slideshare9
Curso basicoseguridadweb slideshare9Curso basicoseguridadweb slideshare9
Curso basicoseguridadweb slideshare9
 
Hype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerHype vs. Reality: The AI Explainer
Hype vs. Reality: The AI Explainer
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving Cars
 

Similar to Startupandshutdown

Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklistمسلم islam
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklistpraveen_01236
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architectureSoumya Das
 
Oracle database hot backup and recovery
Oracle database hot backup and recoveryOracle database hot backup and recovery
Oracle database hot backup and recoveryArun Sharma
 
The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer ...
The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer  ...The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer  ...
The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer ...ParshantiniRoy
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architectureMartin Berger
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1Chien Chung Shen
 
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdfAlireza Kamrani
 
Kp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan userKp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan userDesty Yani
 
Standby db creation commands
Standby db creation commandsStandby db creation commands
Standby db creation commandsPiyush Kumar
 
ProstgreSQLFailoverConfiguration
ProstgreSQLFailoverConfigurationProstgreSQLFailoverConfiguration
ProstgreSQLFailoverConfigurationSuyog Shirgaonkar
 
Oracle Database Backup
Oracle Database BackupOracle Database Backup
Oracle Database BackupHandy_Backup
 

Similar to Startupandshutdown (20)

Oracle ORA Errors
Oracle ORA ErrorsOracle ORA Errors
Oracle ORA Errors
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklist
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklist
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
Oracle database hot backup and recovery
Oracle database hot backup and recoveryOracle database hot backup and recovery
Oracle database hot backup and recovery
 
Oracle11g notes
Oracle11g notesOracle11g notes
Oracle11g notes
 
The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer ...
The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer  ...The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer  ...
The Ultimate Guide to Upgrade ocp java 6, 7 &amp; 8 to java se 11 developer ...
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architecture
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1
 
Oracle startup phases and concepts
Oracle startup phases and conceptsOracle startup phases and concepts
Oracle startup phases and concepts
 
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
 
Kp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan userKp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan user
 
Standby db creation commands
Standby db creation commandsStandby db creation commands
Standby db creation commands
 
Oracle backup
Oracle backupOracle backup
Oracle backup
 
ProstgreSQLFailoverConfiguration
ProstgreSQLFailoverConfigurationProstgreSQLFailoverConfiguration
ProstgreSQLFailoverConfiguration
 
Xpp c user_rec
Xpp c user_recXpp c user_rec
Xpp c user_rec
 
Oracle Database Backup
Oracle Database BackupOracle Database Backup
Oracle Database Backup
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
Oracle Dataguard
Oracle DataguardOracle Dataguard
Oracle Dataguard
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 

Startupandshutdown

  • 1. Startup and shutdown Method When startup command is issued. Oracle looks for the parameter file in following order. 1.Spfile<SID>.ora 2.init<SID>.ora Oracle look for the parameter file in $ORACLE_HOME/dbs We can startup the database instance with following options. 1.startup 2.startup nomount 3.Startup mount startup pfile=’/location/filename’ 4.startup upgrade 5.startup mount restrict 1.startup:- 1.It will read the parameter file. 2.It will starts the background processes and allocate memory(SGA). – Instance started. 3.It reads the controlfile. –Instance mounted. 4.Physically checks the datafiles and redolog files. 5.Checks the SCN number of the datafiles and controlfiles. It is used in normal situations. If the SCNs in the control files don’t match some of the SCNs in the data files headers—the background process(smon) will automatically perform an instance recovery before opening the database. 2.startup mount:-- It will do 1,2 and 3. It will not do 4 and 5.
  • 2. Can be used when:-- Recovery is needed for the entire database, Flashback is to be performed, any feature like archive log is to be enabled or disabled. 3.startup nomount:-- It will do 1 and 2. It will not do 3,4 and 5. Can be used when:-- Creating database and creating controlfile. 4.startup upgrade:-- It will do 1 to 5 and 6.Give the option of upgrading database. 7. Users cannot connect to the database. Can be used to upgrade the database dictionary. Database must be shutdown and restarted for users to connect. 5. startup mount restrict:-- It will read 1,2 and 3. It will not read 4 and 5. Used when the database is dropped. Changing the status:-- Alter database mount; This command can be used when database is in nomount state, this will read the controlfiles and mount the database. Alter database open; This command can be used when database is mounted. This will read the datafiles and redolog file and will check if the datafiles are consistent. Allows the users to connect to the database. Alter database close; This command can be used when database open. This will release the datafiles and redolog files.
  • 3. User connections will not be allowed. Status will change to mount. Alter database dismount; This command can be used when database is at mount state. This will release the control file and change the status to nomount. The database can be shutdown with the following options:-- Shutdown:-- No new user connections can be made to the database once the command is issued. Oracle waits for all users to exit their sessions before shutting down the database. No instance recovery is needed when you restart database, it will be consistent when it’s shut down in this way. Oracle closes the data files and terminates the background processes. Oracle’s SGA is deallocated. Shutdown transactional:-- No new user connections are permitted once the command is issued. Existing users can’t start a new transaction and will be disconnected. If a user has a transaction in progress, oracle will wait until the transaction is completed before disconnecting the user. After all existing transactions are completed. Oracle shuts down the instance and deallocates memory. Oracle writes all redo log buffers and data block buffers to disk. No instance recovery is needed because the database is consistent. Shutdown immediate:-- No new user connections are allowed once the command is issued. Oracle immediately disconnects all users. Oracle terminates all currently executing transactions. For all transactions terminated midway, oracle will perform a rollback so that database ends up consistent. Sometimes oracle may be busy rolling back the transactions it just terminated. Oracle terminates the background processes and deallocates memory. No instance recovery is needed upon starting up the database because it is consistent when shut down. Shutdown abort:-- No new connections are permitted once the command is issued. Existing sessions are terminated, regardless of whether they have an active transaction or not. Oracle doesn’t roll back the terminated transactions. Oracle doesn’t write the redo log buffers and data buffers to disk. Oracle terminates the background processes, deallocates memory immediately, and shutdown. Upon restarting, oracle will perform an automatic instance recovery, because the database isn’t guaranteed to be consistent when shut down.