Relationship between Oracle services and databases after Windows Installation

Source: Internet
Author: User

After oracle is installed in windows, some services will be created in windows, such as oracleoradb10g_home1tnslistener, which is used to listen to the Service port and oracleserviceorcl related to the instance to start the instance. oracledbconsoleorcl is used to start em.

Oracleoradb10g_home1tnslistener can be started using the LSNRCTL start command. Only after it is started can it listen to the port specified during installation, such as 1521, which serves multiple instances on the machine.

Oracleserviceorcl serves orcl instances. If a machine creates multiple databases and has multiple instances, each instance corresponds to such a service. You can run oradim-startup-Sid orcl.

Oracledbconsoleorcl corresponds to the em of the orcl instance. After the instance is started, you can access the EM through the URL.

The startup of oracleserviceorcl usually means that the corresponding database is also opened (start open). However, you can change the value from true to false by modifying ora_orcl_autostart of the Registry, after the service is started, the database does not start at this time.

At this time through sqlplus sys/sys as sysdba connection, you can see connected to an idle instance. At this time, the execution of SQL, will get the error: ORA-01034: Oracle not available.

At this time, the instance can be started through startup.

The executable file path is D: \ oracle \ product \ 10.2.0 \ db_1 \ bin \ oracle. EXE orcl, so we can use Oracle in CMD instead of starting this service. EXE orcl can also start the "part" function of this Service. The reason is that it is "part", because the instance cannot be connected through the network at this time:

1. Stop oracleserviceorcl. 2. Use oracle in cmd. EXT orcl starts the "service", 3 connects to the instance through sqlplus sys/sys as sysdba, and cannot connect to the instance through sqlplus sys/sys @ orcl as sysdba.

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.