Start Oracle database: Use the command $ORACLE_HOME/bin/sqlplus /nolog to connect to the database. Log in using the command connect / as sysdba. Start the database using the command startup. Stop the Oracle database: Connect to the database using the command $ORACLE_HOME/bin/sqlplus /nolog. Log in using the command connect / as sysdba. Stop the database using the shutdown command.
Oracle database start and stop commands
Start Oracle database
To start the Oracle database, use the following command:
<code>$ORACLE_HOME/bin/sqlplus /nolog</code>
Then, use the following command to connect to the database and start it:
<code>connect / as sysdba startup</code>
Stop the Oracle database
To stop the Oracle database, use the following command:
<code>$ORACLE_HOME/bin/sqlplus /nolog</code>
Then, use the following command to connect to the database and stop it:
<code>connect / as sysdba shutdown</code>
Additional options
In addition to the basic start and stop commands, there are a few other options available to control the behavior of the database:
STARTUP
statement Specify different launch modes, such as NOMOUNT
, MOUNT
, and OPEN
. ABORT
or IMMEDIATE
option of the SHUTDOWN
statement to force it Stop it. The above is the detailed content of oracle database start and stop commands. For more information, please follow other related articles on the PHP Chinese website!