Home > Database > Oracle > How to close em in oracle

How to close em in oracle

WBOY
Release: 2022-05-24 16:17:11
Original
2712 people have browsed it

Method: 1. Use "emctl status dbconsole" to check em status; 2. Use "emctl stop dbconsole" to stop em from running; 3. Use "emca -deconfig dbcontrol db-repos drop" to close em. .

How to close em in oracle

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How to close em in oracle

1. First check the status of em

$ emctl status dbconsole
Copy after login

How to close em in oracle

2. If it is running, stop it first Run, this is a good habit

$ emctl stop dbconsole
Copy after login

How to close em in oracle

3. Then, execute the command

$ emca -deconfig dbcontrol db -repos drop
Copy after login

In fact, after completing this command, the following script is no longer needed, because I personally tested that all the following statements return the error that the object has been deleted.

However, it is not ruled out that sometimes there will be residues, so it is written as a script and saved so that it can be used at any time.

Create subsequent cleanup script

$ vim dropEM.sql

Then copy the following SQL statement to dropEM.sql and save it

drop public synonym setemviewusercontext;
drop public synonym mgmt_target_blackouts;
drop role mgmt_user;
drop user mgmt_view cascade;
drop user sysman cascade;
Copy after login

In sqlplus Call this script

SQL> @dropEM.sql
Copy after login

to completely delete EM.

Extended knowledge:

The default startup port of ORACLE 12C EM is 5500. In order to prevent abnormal attacks, it is recommended to close the service corresponding to this port to avoid the risk of attack. .

First check the services running on the Oracle server. The command is as follows:

How to close em in oracle

Use lsnrctl status to check the listening status.

How to close em in oracle

Recommended tutorial: "Oracle Video Tutorial"

The above is the detailed content of How to close em in oracle. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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