Common Oracle commands

Source: Internet
Author: User

Oracle uses the following command line in windows:
Net start
Oracleserviceorcl // start the ORACLE service [oracleserviceorcl is the actual service name]
Net stopOracleserviceorcl // stop the ORACLE service
Net startOracleoradb10g_home1tnslistener // start the ORACLE listener service
Net stopOracleoradb10g_home1tnslistener // stop the ORACLE listening service
Net startOracledbconsoleorcl // start the ORACLE console service (EM)
Emctl startDbconsole // start the ORACLE console service (EM) (the function is the same as the command above)
Net stopOracledbconsoleorcl // stop the ORACLE console service (EM)
Emctl stopDbconsole // stop the ORACLE console service (EM) (same command)

Common service names are as follows (if ORCL is ORACLE_SID at installation ):

  

 

Lsnrctl [start | stop | status]//StartListener: Stop the listener and view the listener status;
Tnsping <tns name>// Test whether tns can be connected successfully
Net [start | stop]Oracleserviceorcl // start the Database Service

Example:

E: \> lsnrctl status // check the listener status:
E: \> net start OracleServiceORADB // start the Database Service
E: \> sqlplus/Nolog
SQL> connSystem/qqqqqq @ oradb as sysdba
SQL> exit

E: \> oemapp console
E: \> net stop OracleServiceOEMREP // stop the Database Service

 

 

 

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.