Em configuration in Oracle

Source: Internet
Author: User

Create an EM Database
Emca-repos create
Rebuilding an EM Database
Emca-repos recreate
Delete An EM Database
Emca-repos drop
Configure Database Control for the database
Emca-config dbcontrol DB
Delete Database Control Configuration of a Database
Emca-deconfig dbcontrol DB
Reconfigure the Database Control port. The default port is 1158.
Emca-reconfig ports
Emca-reconfig ports-dbcontrol_http_port 1160
Emca-reconfig ports-agent_port 3940
Set the oracle_sid environment variable and start the EM console service.
Emctl start dbconsole
Set the oracle_sid environment variable and stop the EM console service.
Emctl stop dbconsole
Set the oracle_sid environment variable to view the EM console service status.
Emctl status dbconsole

Steps for configuring dbconsole
Emca-repos create
Emca-config dbcontrol DB
Emctl start dbconsole
To reconfigure dbconsole
Emca-repos drop
Emca-repos create
Emca-config dbcontrol DB
Emctl start dbconsole

 

You can access the database through the EM dbconsole.
The main cause is that the host name is changed. The file name is changed: D:/Oracle/product/10.2.0/db_1/Solaris/J2EE/oc4j_dbconsole_colin.
Rename to D:/Oracle/product/10.2.0/db_1/Solaris/J2EE/OC4J_DBConsole_RX-01-07_orcl
Then reconfigure dbconsole and you will be OK.
Emca-config dbcontrol DB
Enter the following information:
Database Sid: orcl
Database Control configured for database orcl
You have chosen to configure Database Control to manage the database orcl
This operation will remove the existing configuration and default settings, and re-execute the configuration
Continue? [Yes (y)/NO (n)]: Y
Listener port: 1521
Sys user password:
Dbsnmp user password:
Password of the sysman User:
Password of the sysman User: email address of the notification (optional ):
Notification sending (SMTP) server (optional): the following settings have been specified

Database ORACLE_HOME .............. D:/Oracle/product/10.2.0/db_1

Database Host Name ...... RX-01-07
Listener port number ...... 1521
Database Sid ...... ora10g
Email Address of the notification ...............
Notification sending (SMTP) server ...............

-----------------------------------------------------------------
Continue? [Yes (y)/NO (n)]: Y
Bytes ----------------------------------------------------------------------------------------------------------------
2007-4-6 10:59:17 oracle. sysman. emcp. emconfig perform
Information: The operation is being recorded to D:/Oracle/product/10.2.0/db_1/export toollogs/emca/orcl/EMC
A_2007-04-06_10-57-52-Morning. log.
2007-4-6 10:59:20 oracle. sysman. emcp. util. dbcontrolutil stopoms
Information: The Database Control is being stopped (this operation may take some time )...
2007-4-6 10:59:32 oracle. sysman. emcp. util. dbcontrolutil startoms
Information: Starting Database Control (this operation may take some time )...
11:00:12 oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Information: The Database Control has been started successfully.
11:00:12 oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Warning: The Database Control shortcut cannot be created.
11:00:12 oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Information: >>>>>>>>>> Database Control URL is http: // RX-01-07: 1158/EM <
The Enterprise Manager configuration has been completed successfully.
Emca ended at 11:00:12

Http: // RX-01-07: 1158/EM OK

Select owner, segment_name, bytes from dba_segments where tablespace_name = 'tablespace name ';

 

 

Related Article

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.