Home > Database > Oracle > body text

How to start and shut down oracle

PHPz
Release: 2023-04-18 09:29:22
Original
12172 people have browsed it

Oracle database is a very popular relational database management system, mostly used in large enterprise-level systems. When using Oracle database, startup and shutdown are one of the most basic operations, so it is very important to master the startup and shutdown operations of Oracle.

1. Oracle startup operation

1. Start the Oracle instance

For manually installed Oracle database systems, there are many ways to start the Oracle instance. The most common way is to use the sqlplus command line tool to start the operation. The steps are as follows:

Step 1: Open the command prompt, enter the expression "sqlplus / as sysdba", and then press the Enter key.

Step 2: Enter the Oracle system administrator account and password you set, and then press Enter to enter the Oracle internal management interface.

Step 3: Enter the expression "startup" and press Enter to start the Oracle instance.

2. Start the Oracle service

In some Windows systems, the Oracle service is set to start at startup by default. If the setting is unsuccessful, you can manually start the Oracle service through the following steps:

Step 1: Open the "Computer Management" console, select "Services and Applications" - "Services".

Step 2: Find Oracle-related services, such as OracleServiceORCL or OracleJobSchedulerORCL, etc., double-click to enter the properties interface.

Step 3: In the properties interface, set the service status to "Running" and set the startup type to "Automatic" or "Manual".

3. Start the Oracle listener

The Oracle listener is the network service of the database and is responsible for receiving requests from external sources and forwarding them to the database. There are many ways to start the Oracle listener. The most commonly used method is that users can directly perform the following operations on the command line interface:

Step 1: Open the command prompt, enter the expression "lsnrctl start", and press the Enter key.

Step 2: Wait for a period of time until keyword prompts such as "Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL...") appear, indicating that the Oracle listener is started successfully.

2. Oracle shutdown operation

1. Close the Oracle instance

When stopping the Oracle instance, use the sqlplus command line tool to perform the following operations:

Step 1: Open the command prompt and enter the expression Type "sqlplus / as sysdba" and press the Enter key.

Step 2: Enter the Oracle system administrator account and password you set, and then press the Enter key to enter the Oracle internal management interface.

Step 3: Enter the expression "shutdown", then enter "immediate" or "normal" to shut down, and finally press the Enter key to stop the Oracle instance.

2. Shut down the Oracle service

When closing the Oracle service, you can use the following methods:

Step 1: Open the "Computer Management" console, select "Services and Applications" - "Services".

Step 2: Find the Oracle-related service and double-click to enter the properties interface.

Step 3: In the properties interface, set the service status to "Stop" and set the startup type to "Manual" or "Disabled" ”.

3. Close the Oracle listener

When stopping the Oracle listener, you can use the following operations:

Step 1: Open the command prompt and enter the expression “lsnrctl stop" and press Enter.

Step 2: Wait for a period of time until keyword prompts such as "Listener Stop..." appear, indicating that the Oracle listener has been stopped.

Summary : The above are the detailed steps for starting and shutting down Oracle. I hope it will be helpful to everyone. Mastering these basic operating skills can make us more proficient in operating Oracle databases. Of course, different versions of Oracle database systems may be different. , so we need to make appropriate adjustments and debugging according to our actual situation.

The above is the detailed content of How to start and shut down oracle. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!