Most of them are looking for information, but the problem is finally solved.
Http://topic.csdn.net/u/20090322/10/798CAD3D-FF19-4B0E-9335-DC2CCB40E40E.html
1, emca-repos drop
2, emca-config dbcontrol DB-repos create
Note that the listener port is input when the listener port is input.
The following are my operations:
C: \ Documents ents and Settings \ Administrator> emca-repos drop
Emca started at 16:53:50
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
ListenersProgramPort: 1521
Sys user password:
Password of the sysman User:
Password of the sysman User:
Continue? [Yes (y)/NO (n)]: Y
2009-4-1 16:54:01 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_2009-04-01_04-53-50-Afternoon. log.
2009-4-1 16:54:01 oracle. sysman. emcp. emreposconfig droprepository
Information: deleting the EM archives. This operation may take some time )...
2009-4-1 16:54:53 oracle. sysman. emcp. emreposconfig invoke
Information: The archive has been deleted successfully.
The Enterprise Manager configuration has been completed successfully.
Emca ended at 16:54:53
C: \ Documents ents and Settings \ Administrator> emca-config dbcontrol DB-repos create
Emca started at 16:56:32
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
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 ...... perfect
Listener port number ...... 1521
Database Sid ...... orcl
Email Address of the notification ...............
Notification sending (SMTP) server ...............
-----------------------------------------------------------------
Continue? [Yes (y)/NO (n)]: Y
2009-4-1 16:57: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_2009-04-01_04-56-32-Afternoon. log.
2009-4-1 16:57:18 oracle. sysman. emcp. util. dbcontrolutil stopoms
Information: The Database Control is being stopped (this operation may take some time )...
2009-4-1 16:57:21 oracle. sysman. emcp. emreposconfig createrepository
Information: creating the EM archives (this operation may take some time )...
2009-4-1 16:58:56 oracle. sysman. emcp. emreposconfig invoke
Information: You have created a Data Archiving database.
2009-4-1 16:59:04 oracle. sysman. emcp. util. dbcontrolutil startoms
Information: Starting Database Control (this operation may take some time )...
16:59:44 oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Information: The Database Control has been started successfully.
16:59:44 oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Warning: The Database Control shortcut cannot be created.
16:59:44 oracle. sysman. emcp. emdbpostconfig configure mconfiguration
Information: >>>>>>>>>> Database Control URL is http: // perfect: 5500/EM <
The Enterprise Manager configuration has been completed successfully.
Emca ended at 16:59:44
If the precedingCodeAn error occurred while creating the archive. You can try the code and re-execute the above steps:
Http://www.itpub.net/viewthread.php? Tid = 1024970
Logon sqlplus as user SYS or system, and drop the sysman account and management objects:
SQL> drop user sysman cascade;
SQL> drop role mgmt_user;
SQL> drop user mgmt_view cascade;
SQL> drop public synonym mgmt_target_blackouts;
SQL> drop public synonym setemviewusercontext;