Restart Oracle Database Command

Source: Internet
Author: User


Restart the Oracle database command to restart the database (two database instances and listening services need to be started) execute the following command to require oracle users. If the current user is root, switch to the oracle user first. The command is as follows: su-oracle (1) Start the brasdv1 instance: In the environment variable, ORACLE_SID is brasdv1, input sqlplus/nolog, SQL> prompt, and enter conn/as sysdba. After the connection is successful, start the database: after the database is restarted successfully, enter exit to exit sqlplus. Www.2cto.com (2) Start the bradev instance and enter the export ORACLE_SID = bradev command, which is used to set the current oracle instance as bradev. Enter sqlplus/nolog, SQL> prompt, and then enter conn/as sysdba. After the connection is successful, start the database: After the startup database is restarted successfully, enter exit to exit sqlplus. (3) start the database listening service and input lsnrctl start in the command line. This command does not need to be executed in sqlplus. After completing the preceding operations, you can use the pl/SQL tool on the local machine to test the connection.
 

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.