Oracle common start and stop commands

First, start and stop listening

Oracle started listening, stop, and status View

Start the Oracle listener:

 lsnrctl start

 

Stop the Oracle listener:

lsnrctl stop

 

Oracle listener state

lsnrctl status

 

Oracle listener overload:

lsnrctl reload

Note: If you made changes to the monitor configuration files, do not want to stop listening, consider lsnrctl reload command! It will not affect the connected session

Two, em start and stop

em start

emctl start dbconsole
 
em stop
emctl stop dbconsole
 
em Status
emctl status dbconsole

 

Third, start and stop database
First introduced the four states of the database

shutdown status: oracle database is not started;

nomount status: SGA and background process has been started;

mount Status: read parameter control file, with sysdba privileges can be backed up some data and restore operations, other users can not access;

open state; other users from accessing.

 

Normally startup command database

startup;

startup nonount;
alter database mount;
alter database open;

 

Database closing command

Normal database

shutdown immediate;

Forced to close the database (database is not properly closed when)

shutdown abort;

 

Guess you like

Origin www.cnblogs.com/black-start/p/10973843.html