Oracle Database startup and shutdown in Linux, linuxoracle

Source: Internet
Author: User

Oracle Database startup and shutdown in Linux, linuxoracle

Sometimes you need to restart the Oracle database on Linux.

Start the database first, and then start the database listening.

A. Switch to oracle user identity, or use su-to switch both home and path to oralce user.

su oracle

B. Start Sqlplus (using SQL statements) Without Logon

sqlplus /nolog

C. Use the database administrator to connect to the database

connect /as sysdba

D. Start the database and exit the sqlplus command status.

Startup // exit sqlplusexit before enabling the listener

E. Start the listener and close the database.

Lsnrctl start shutdown immediate // close the database

F. startup some common parameters

  • Without parameters, start the database instance and open the database so that you can use the database. In most cases, this method is used!
  • Nomount: only starts database instances, but does not open the database. It is used when you want to create a new database, or when you need it!
  • Mount: used when renaming a database. In this case, the database is opened and can be used!

G. Some common shutdown Parameters

  • Normal: wait until all users are disconnected.
  • Immediate waits for the user to complete the current statement
  • Transactional waits for the user to complete the current transaction
  • Abort closes the database without waiting.
  • Normal requires that you close the database only after all connected users are disconnected. Sometimes it seems that the command is not running! New connections are not allowed after this command is executed.
  • Immediate disconnects the user after the user executes the statement being executed, and does not allow new users to connect.
  • Transactional disconnects after it supports executing the current transaction and does not allow new users to connect to the database.
  • Abort forcibly disconnects and closes the database.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.