How to configure and reconstruct Oracle 10 Gb em service-dbcontrol

Source: Internet
Author: User

Oracle10g em adopts the web method and is divided into two products: Database Control and grid control. This section describes how to create a single data dbcontrol. To install grid control, download a separate CD.

When using dbca to create a database, you can choose whether to enable dbcontrol.
Database



Create a sysman schema to save some data of EM, which is the repository of em ).

Use the command line tool emca
It can be created, modified, rebuilt, or deleted.Dbcontrol
.

 

SQL> select * from V $ version;

Banner
----------------------------------------------------------------

Oracle



Database 10g Enterprise Edition Release 10.2.0.1.0-Prod
PL/SQL release 10.2.0.1.0-Production
Core 10.2.0.1.0 Production
TNS for 32-bit windows: Version 10.2.0.1.0-Production
Nlsrtl version 10.2.0.1.0-Production

To create an EM database in the database, both the database and the listener must be started and work properly.


Create an EM Database



C:/> emca-repos create

Emca started at 22:32:43
Em configuration assistant 10.2.0.1.0 official version
Copyright (c) 2003,200 5, Oracle. All rights reserved.

Enter the following information:
Database Sid: Ning
Listener port: 1521
Sys user password:
Password of the sysman User:
Continue? [Yes (y)/NO (n)]: Y
2006-11-2 22:32:55 oracle. sysman. emcp. emconfig perform
Information: this operation is being recorded to F:/Oracle/product/10.2.0/db_1/export toollogs/emca/Ning/EMC
A_2006-11-02_10-32-43-Afternoon. log.
2006-11-2 22:32:55 oracle. sysman. emcp. emreposconfig createrepository
Information: creating the EM archives (this operation may take some time )...
2006-11-2 22:37:57 oracle. sysman. emcp. emreposconfig invoke
Information: You have created a Data Archiving database.
The Enterprise Manager configuration has been completed successfully.
Emca ended at 22:37:57

 


Configure dbcontrol



C:/> emca-config dbcontrol DB

 

 

 

 

Emca started at 22:49:47
Em configuration assistant 10.2.0.1.0 official version
Copyright (c) 2003,200 5, Oracle. All rights reserved.

Enter the following information:
Database Sid: Ning
Listener port: 1521
Sys user password:
Dbsnmp user password:
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 .......... F:/Oracle/product/10.2.0/db_1

Database Host Name ......
Listener port number ...... 1521
Database Sid ...... Ning
Email Address of the notification ...............
Notification sending (SMTP) server ...............

-----------------------------------------------------------------
Continue? [Yes (y)/NO (n)]: Y
2006-11-2 22:50:05 oracle. sysman. emcp. emconfig perform
Information: this operation is being recorded to F:/Oracle/product/10.2.0/db_1/export toollogs/emca/Ning/EMC
A_2006-11-02_10-49-47-Afternoon. log.
2006-11-2 22:50:05 oracle. sysman. emcp. databasechecks restart mreposchecks
Warning 'shared _ pool_size 'must be greater than or equal to 80 Mb.

2006-11-2 22:50:18 oracle. sysman. emcp. util. dbcontrolutil startoms
Information: Starting Database Control (this operation may take some time )...
2006-11-2 22:51:18 oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Information: The Database Control has been started successfully.
2006-11-2 22:51:18 oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Warning: The Database Control shortcut cannot be created.
2006-11-2 22:51:19 oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Information: >>>>>>>>>>> Database Control URL is
Http: // Ning:1158
/Em

<
The Enterprise Manager configuration has been completed successfully.
Emca ended at 22:51:19

 


Common command syntax:



Emca-repos create creates an EM Database

Emca-repos recreate re-creates an EM Database

Emca-repos drop delete an EM Database

Emca-config dbcontrol dB configure Database Control of the database

Emca-deconfig dbcontrol dB deletes the Database Control Configuration of a Database

Emca-reconfig ports reconfigure dB control and Agent ports

Emctl startConsole
Before starting the EM console service, you must set the oracle_sid environment variable.

Emctl stopConsole
To stop the EM console service, you must set the oracle_sid environment variable before use.

Note: View $ ORACLE_HOME/install/portlist. ini
File to know the port currently being used by dbcontrol, default dbcontrol http port1158
, The agent port is 3938. To reconfigure the port, run the following command:

Emca-reconfig ports-dbcontrol_http_port 1159

Emca-reconfig ports-agent_port 3939


Use the command line toolEmctl
Can start/stopConsole
Service, view service status, etc.


D:> emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996,200 6 Oracle Corporation. All rights reserved.
Http: // hostname: 1158/EM/console/aboutapplication


Starting Oracle Enterprise Manager 10g Database Control... the oracledb1_leni
Ng service is starting ..........
The oracledbappslening service was started successfully.

D:> emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996,200 6 Oracle Corporation. All rights reserved.
Http: // hostname: 1158/EM/console/aboutapplication


Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory e:/Oracle/ora10/hostname_ning/sysman/log

D:> emctl stop dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996,200 6 Oracle Corporation. All rights reserved.
Http: // hostname1158/EM/console/aboutapplication


The oracledbappslening service is stopping ..........
The oracledbappslening service was stopped successfully.

 


For example:

 


H:/Documents and Settings/Administrator> emca-repos drop

Emca started at 13:36:02
Em configuration assistant 10.2.0.1.0 official version
Copyright (c) 2003,200 5, Oracle. All rights reserved.

Enter the following information:
Database Sid: SG
Listener port: 1521
Sys user password:
Sys User Password: kyskys

Continue? [Yes (y)/NO (n)]: Y
2007-3-30 13:36:21 oracle. sysman. emcp. emconfig perform
Information: The operation is being recorded in C:/Oracle/product/10.2.0/db_1/export toollogs/emca/SG/emca _
2007-03-30_01-36-02-Afternoon. log.
2007-3-30 13:36:23 oracle. sysman. emcp. emreposconfig droprepository
Information: deleting the EM archives. This operation may take some time )...
2007-3-30 13:40:29 oracle. sysman. emcp. emreposconfig invoke
Information: The archive has been deleted successfully.
The Enterprise Manager configuration has been completed successfully.
Emca ended at 13:40:29

H:/Documents and Settings/Administrator> emca-repos create

Emca started at 13:42:26
Em configuration assistant 10.2.0.1.0 official version
Copyright (c) 2003,200 5, Oracle. All rights reserved.

Enter the following information:
Database Sid: SG
Listener port: 1521
Sys user password:
Password of the sysman User:

Continue? [Yes (y)/NO (n)]: Y
2007-3-30 13:42:43 oracle. sysman. emcp. emconfig perform
Information: The operation is being recorded in C:/Oracle/product/10.2.0/db_1/export toollogs/emca/SG/emca _
2007-03-30_01-42-25-Afternoon. log.
2007-3-30 13:42:44 oracle. sysman. emcp. emreposconfig createrepository
Information: creating the EM archives (this operation may take some time )...
2007-3-30 13:50:57 oracle. sysman. emcp. emreposconfig invoke
Information: You have created a Data Archiving database.
The Enterprise Manager configuration has been completed successfully.
Emca ended at 13:50:57

H:/Documents and Settings/Administrator> set oracle_sid = SG

H:/Documents and Settings/Administrator> emctl start dbconsole

Unable to determine local host from URL repository_url = http://wender-shengang.wo


Nderservice.com: % em_upload_port %/EM/upload/
.

H:/Documents and Settings/Administrator> emca-config dbcontrol DB

Emca started at 13:57:35
Em configuration assistant 10.2.0.1.0 official version
Copyright (c) 2003,200 5, Oracle. All rights reserved.

Enter the following information:
Database Sid: SG
Database Control configured for database SG
You have selected to configure Database Control to manage the database SG
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:
Notification Email Address (optional): kys-sg@sohu.com


Notification sending (SMTP) server (optional): smtp.sohu.com
-----------------------------------------------------------------

The following settings have been specified:

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

Database Host Name ...... wender-shengang.wonderservice.com
Listener port number ...... 1521
Database Sid ......
Email Address of the notification... kys-sg@sohu.com


The sending (SMTP) server of the notification ...... smtp.sohu.com

-----------------------------------------------------------------
Continue? [Yes (y)/NO (n)]: Y
2007-3-30 13:58:25 oracle. sysman. emcp. emconfig perform
Information: The operation is being recorded in C:/Oracle/product/10.2.0/db_1/export toollogs/emca/SG/emca _
2007-03-30_01-57-35-Afternoon. log.
13:58:27 oracle. sysman. emcp. databasechecks restore mreposchecks
Warning 'shared _ pool_size 'must be greater than or equal to 80 Mb.
2007-3-30 13:58:30 oracle. sysman. emcp. util. dbcontrolutil stopoms
Information: The Database Control is being stopped (this operation may take some time )...
2007-3-30 13:58:54 oracle. sysman. emcp. util. dbcontrolutil startoms
Information: Starting Database Control (this operation may take some time )...
14:00:25 oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Information: The Database Control has been started successfully.
14:00:27 oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Warning: The Database Control shortcut cannot be created.
14:00:27 oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Information: >>>>>>>>>> Database Control URL is http://wender-shengang.wonderservice.c


OM: 5500/EM <
The Enterprise Manager configuration has been completed successfully.
Emca ended at 14:00:28

H:/Documents and Settings/Administrator> emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996,200 5 Oracle Corporation. All rights reserved.
Http://wender-shengang.wonderservice.com: 5500/EM/console/aboutapplication


Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory c:/Oracle/product/10.2.0/db_1/wender-shengang.wo
Nderservice.com _ SG/sysman/log

H:/Documents and Settings/Administrator>

 

 

(End)

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.