Error when creating EM:
Configuration: Failed to unlock Mgmt_view account
2013-4-29 22:47:03 Oracle.sysman.emcp.EMReposConfig Invoke
Critical: Unable to unlock all EM related accounts
2013-4-29 22:47:03 Oracle.sysman.emcp.EMConfig Perform
Critical: Unable to unlock all EM related accounts
For more information, see the log files in D:oraclecfgtoollogsemcaorclemca_2013_04_29_22_43_32.log.
2013-4-29 22:47:03 Oracle.sysman.emcp.EMConfig Perform
Configuration: Stack Trace:
Oracle.sysman.emcp.exception.EMConfigException: Unable to unlock all EM related accounts
At Oracle.sysman.emcp.EMReposConfig.invoke (emreposconfig.java:349)
At Oracle.sysman.emcp.EMReposConfig.invoke (emreposconfig.java:158)
At Oracle.sysman.emcp.EMConfig.perform (emconfig.java:253)
At Oracle.sysman.emcp.EMConfigAssistant.invokeEMCA (emconfigassistant.java:590)
At Oracle.sysman.emcp.EMConfigAssistant.performConfiguration (emconfigassistant.java:1453)
At Oracle.sysman.emcp.EMConfigAssistant.statusMain (emconfigassistant.java:574)
At Oracle.sysman.emcp.EMConfigAssistant.main (emconfigassistant.java:522)
2013-4-29 22:47:03 Oracle.sysman.emcp.EMConfig Restoreouiloc
Configuration: Restoring Oracle.installer.oui_loc to D:oracleproduct11.2.0dbhome_1oui
The log file was viewed because the following statement was executed:
2013-4-29 22:47:03 Oracle.sysman.emcp.util.PlatformInterface ExecuteCommand
Configuration: Performing cmd/c d:oracleproduct11.2.0dbhome_1sysmanadminscriptsemcaemcadbutil.bat "d:oracleproduct11.2.0dbhome_ 1sysmanadminscripts;d:oracleproduct11.2.0dbhome_1bin; " D:/oracle/product/11.2.0/dbhome_1/perl/binperl.exe d:oracleproduct11.2.0dbhome_ 1sysmanadminscriptsemcaemcadbutil.pl d:oracleproduct11.2.0dbhome_1 "(Description= (ADDRESS_LIST= ADDRESS= ( PROTOCOL=TCP) (host=pc201303231245) (port=1521))) (Connect_data= (service_name=orcl.ke3470.com))) "SYS SYSDBA Declare Repos_pwd VARCHAR2 (30); View_user VARCHAR2 (30); View_user_pwd VARCHAR2 (30); View_user_acc_status VARCHAR2 (30); Begin repos_pwd: =?; Sysman.mgmt_view_priv.get_view_user (View_user); Select Account_status into View_user_acc_status from Sys.dba_users where upper (username) = UPPER (View_user); IF view_user_acc_status like '%locked% ' THEN execute immediate ' alter user ' | | View_user | | ' Account unlock '; End IF; IF view_user_acc_status like '%expired% ' THEN sysman.mgmt_view_priv.set_view_user_creds (REPOS_PWD); Sysman.mgmt_view_Priv. Get_view_user_creds (View_user, view_user_pwd); Execute immediate ' alter user ' | | View_user | | ' Identified by ' | | View_user_pwd | | ''; End IF; End Error ORCL 1 sysman_pwd
But it is very strange that the individual to take out and do not have such a mistake, and then look forward to the log, found the execution of the above statement, reported another error:
2013-4-29 22:47:03 Oracle.sysman.emcp.util.PlatformInterface ExecuteCommand
Configuration: '? ' is not an internal or external command, nor is it a running program
or batch files.
You can see that this is the Windows CMD command prompt display error message, it is estimated that the internal command when the error occurred, and then look just opened cmd in the window at the first line of the prompt error message:
Here can be very sure that the problem is the Windows command line, such as the error is generally not encountered under Linux, the implementation of the following command, in the execution of CMD when the system automatically ran a command, but the command does not exist, so the errors. As long as it will automatically run empty:
REG ADD "Hkey_local_machinesoftwaremicrosoftcommand Processor"/V "AutoRun"////F
Then rerun the operation, no longer the above error.
The above statement adds a registry key that means the following:
/V: Represents the Value name to add Autorun
/d: Data to be allocated
/f: Do not prompt to force overwrite of existing data