First, start ORM Error
C:\Documents and Settings\hostname>emctl start Dbconsole
environment variable ORACLE_SID not defined. Please define it.
Second, set up Oracle_sid
C:\Documents and Settings\hostname>set ORACLE_SID=ORCL
Third, start OEM, there are new mistakes
C:\Documents and Settings\hostname>emctl start Dbconsole
Unable to determine the local host from URL repository_url=http://hostname:%em_upload_port%/em/upload/
Four, set Dbcontrol (follow the prompts, the final OEM will automatically start)
C:\Documents and Settings\hostname>emca-config Dbcontrol db
EMCA started in 2010-8-26 16:37:28
EM Configuration Assistant 10.2.0.1.0 Official edition
Copyright (c) 2003,%, Oracle. All rights reserved.
Enter the following information:
Database SID:ORCL
Database control has been configured for DB ORCL
You have chosen to configure database control to manage databases ORCL
This action will remove the existing configuration and default settings and perform the configuration again
Do you want to continue? [Yes (y)/no (N)]: Y
Listener Port number: 1521
SYS User's password:
DBSNMP User's password:
Sysman User's password:
Sysman User's password: email address of notification (optional): hostname@organ.gov.cn
Notification of the sender (SMTP) server (optional): mail.organ.gov.cn
-----------------------------------------------------------------
The following settings are specified
Database Oracle_home .......... E:\oracle\product\10.2.0\db_1
Database host name ... hostname------
Listen to the program port number ....... 1521
Database SID ... orcl. ........
e-mail address of the notification ..... hostname@organ.gov.cn
Notification of the sender (SMTP) server .... mail.organ.gov.cn...
-----------------------------------------------------------------