Solve the problem that the OEM cannot be opened
Emctl start dbconsole
Set oracle_sia = xsgj
Emctl start dbconsole
Set oracle_hostname = localhost
Emctl start dbconsole
Change the Oracle-> product-> 11.1.0-db_1> gmx-PC_XSCJ name to localhost_xscj
Change the oc4j_DBConsole_gmc-pc_XSCJ in Oracle> product> 11.1.0> db_1> Solaris> J2EE to oc4j_dbconsole_localhost_xscj.
The oracledbconsoleorcl service is stopped due to the following errors:
The specified path cannot be found.
The main cause is that the host name is changed or the IP address is changed. The corresponding file name is changed:
D: \ oracle \ product \ 10.2.0 \ db_1 \ Solaris \ J2EE \ oc4j_dbconsole_192.168.0.136_dgtest (change the new IP address or machine name)
D: \ oracle \ product \ 10.2.0 \ db_1 \ asdfjkl_dgtest (change the new IP address or machine name)
Find the port used by em in the D: \ oracle \ product \ 10.2.0 \ db_1 \ install \ portlist. ini file.
Microsoft Windows XP [version
5.1.2600]
(C) Copyright
1985-2001 Microsoft Corp.
C: \ Documents ents and Settings \ youandy> set oracle_sid = dgtest
C: \ Documents ents and Settings \ youandy> emca-repos recreate
Emca started
2008-3-25 8:17:19
Em configuration assistant 10.2.0.1.0 official version
Copyright
(C) windows, Oracle. All rights reserved.
Enter the following information:
Database Sid: dgtest
Listener port: 1521
Sys user password:
Password of the sysman User:
Password of the sysman User:
Continue? [Yes (y)/NO (n)]: Y
8:17:48 oracle. sysman. emcp. emconfigperform
Information: The operation is being recorded to D: \ oracle \ product \ 10.2.0 \ db_1 \ export toollogs \ emca \ dgtest \ e
Mca_2008-03-25_08-17-19-Morning. log.
8: 17: 49oracle. sysman. emcp. emreposconfigdroprepository
Information: deleting
Em
Archive library (this operation may take some time )...
8:19:37 oracle. sysman. emcp. emreposconfiginvoke
Information: The archive has been deleted successfully.
2008-3-25 8: 19: 37oracle. sysman. emcp. emreposconfigcreaterepository
Information: Creating
Em
Archive library (this operation may take some time )...
8:23:04 oracle. sysman. emcp. emreposconfiginvoke
Information: You have created a Data Archiving database.
Completed Successfully
Enterprise Manager Configuration
Emca
Ended at 8:23:04
C: \ Documents ents and Settings \ youandy> emctl start dbconsole
Environment Variable oracle_sid not defined. Please defineit.
C: \ Documents ents and Settings \ youandy> setoracle_sid = dgtest
C: \ Documents ents and Settings \ youandy> emctl startdbconsole
Oracle Enterprise Manager 10g Database Control release10.2.0.1.0
Copyright (c) 1996,200 5 Oracle Corporation.
All rights reserved.
Http: // 192.168.0.136: 1158/EM/console/aboutapplication
Starting Oracle Enterprise Manager 10 gdatabase control... oracledbconsoledgtest
The service is starting.
.
The oracledbconsoledgtest service cannot be started.
System error.
System Error
3.
The specified path cannot be found.
C: \ Documents andsettings \ youandy>
C: \ Documents ents and Settings \ youandy> emca-config dbcontrol DB
Emca started
2008-3-25 8:37:02
Em configuration assistant 10.2.0.1.0 official version
Copyright
(C) windows, Oracle. All rights reserved.
Enter the following information:
Database Sid: dgtest
The database dgtest has been configured
Databasecontrol
You have selected the configuration
Database Control for database management
Dgtest
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:
Invalid username/password.
Sysman
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 ................ D: \ oracle \ product \ 10.2.0 \ db_1
Database Host Name
... Asdfjkl
Listener port number
...... 1521
Database
Sid ...... dgtest
Email Address of the notification
...............
Notification sender
(SMTP) Server
...............
-----------------------------------------------------------------
Continue? [Yes (y)/NO (n)]: Y
8:38:11 oracle. sysman. emcp. emconfigperform
Information: The operation is being recorded to D: \ oracle \ product \ 10.2.0 \ db_1 \ export toollogs \ emca \ dgtest \ e
Mca_2008-03-25_08-37-02-Morning. log.
2008-3-25 8: 38: 14oracle. sysman. emcp. util. portmanagerisportinuse
Warning: specified port
5540
Already in use.
2008-3-25 8: 38: 14oracle. sysman. emcp. util. portmanagerisportinuse
Warning: specified port
5520
Already in use.
2008-3-25 8: 38: 14oracle. sysman. emcp. util. portmanagerisportinuse
Warning: specified port
1158
Already in use.
2008-3-25 8: 38: 14oracle. sysman. emcp. util. dbcontrolutilstopoms
Information: stopping
Database Control (this operation may take some time )...
8:38:26 oracle. sysman. emcp. util. dbcontrolutilstartoms
Information: Starting
Database Control (this operation may take some time )...
8:39:06 oracle. sysman. emcp. emdbpostconfig1_mconfiguration
Info: started successfully
Databasecontrol
8:39:10 oracle. sysman. emcp. emdbpostconfig1_mconfiguration
Warning: Unable to create
Databasecontrol
Shortcut
8: 39: 10oracle. sysman. emcp. emdbpostconfig1_mconfiguration
Information: >>>>>>>>>>> Database Control URL is
Http: // asdfjkl: 1158/EM <
Completed Successfully
Enterprise Manager Configuration
Emca
Ended at 8:39:10
C: \ Documents ents and Settings \ youandy>
Re-log on to the IE column. OK.
Certificate -----------------------------------------------------------------------------------------------------------------------------------
After the computer name is changed, all Oracle services cannot be started.
We recommend that you do not modify the computer name at will, because it is troublesome to modify many Oracle configurations after you modify the computer name.
My original computer name is 53m6df34f7.
The modified computer name is sgliuya2.
First, solve the oracledbconsole * service.
Run the command emctl start dbconsole In the CMD window and the following information is displayed:
C: \ Documents andsettings \ LiuYa> emctl start dbconsole
Oracle Enterprise Manager 10g Database Control release10.2.0.1.0
Copyright (c) 1996,200 5 Oracle Corporation. All rightsreserved.
Http: // 53m6df34f7: 1158/EM/console/aboutapplication
Starting Oracle Enterprise Manager 10g Database Control... oracledbconsolemap Server
Is starting.
The oracledbconsolemap service cannot be started.
System error.
System Error 3.
The specified path cannot be found.
Some connections change the name of your computer, so you are prompted that the specified path cannot be found.
You can modify the corresponding configuration file to solve the problem, but it is too troublesome. You can use the following method to solve the problem:
Run the command in the CMD window: emca-repos recreate
C: \ Documents andsettings \ LiuYa> emca-repos recreate
Emca started at 10:22:31
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: orcl
Listener port: 1521
Sys user password:
Password of the sysman User:
Continue? [Yes (y)/NO (n)]: Y
10:22:47 oracle. sysman. emcp. emconfig perform
Information: The operation is logged to D: \ oracle \ product \ 10.2.0 \ db_1 \ export toollogs \ emca \ map \ emca.
_ 2009-1-30_10-22-31-Morning. log.
10:22:48 oracle. sysman. emcp. emreposconfigdroprepository
Information: deleting the EM archives. This operation may take some time )...
10:24:02 oracle. sysman. emcp. emreposconfig invoke
Information: The archive has been deleted successfully.
10:24:02 oracle. sysman. emcp. emreposconfigcreaterepository
Information: creating the EM archives (this operation may take some time )...
10:26:08 oracle. sysman. emcp. emreposconfig invoke
Information: You have created a Data Archiving database.
The Enterprise Manager configuration has been completed successfully.
Run emca-config dbcontrol dB.
Oracleoradb10g_home1tnslistener and oracleservice:
Modify the listener. ora and tnsnames. ora configuration files under the D: \ oracle \ product \ 10.2.0 \ db_1 \ Network \ ADMIN directory.
Change the original computer to the current computer name or localhost.
After completing the above operations, start the OEM Program and run the following exception:
Java. Lang. Exception: exception in sending request: NULL
The solution was found on the Oracle Forum:
Http://forums.oracle.com/forums/thread.jspa? Threadid = 320574 & tstart = 0 & messageid = 1374397
Find the following file
D: \ oracle \ product \ 10.2.0 \ db_1 \ sysman \ config \ EMD. Properties
The default value of agenttzregion is GMT, which can be changed to your time zone. For example:
Agenttzregion = Asia/Shanghai
For a list of time zones, see D: \ oracle \ product \ 10.2.0 \ db_1 \ sysman \ admin \ supportedtzs. lst.
Restart oracledbconsole <Sid>
After entering the OEM, the following exception occurs:
Java. Lang. Exception: ioexception in sending request: connectionrefused
1. emctl resettz agent
2. emctl stop dbconsole
3. emctl start dbconsole
Solution
The following are similar questions found in the Forum:
Solution for Oracle 10.2.0.3 RAC
1. Stop the dbconsole
2. Change <ORACLE_HOME>/sysman/admin/default_collection/rac_database.xml.
Lines (59-62) from
<Collectionitem name = "agentsideresponse" Upload = "no">
<Schedule>
<Intervalschedule interval = "5" time_unit = "min"/>
</Schedule>
To
<Collectionitem name = "agentsideresponse" Upload = "no">
<Scheduleoffset_type = "incremental">
<Intervalschedule interval = "5" time_unit = "min"/>
</Schedule>
3. Start the dbconsole and try again
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/liuya1985liuya/archive/2009/01/30/3855197.aspx