oracle 11.2.0 $emca -config dbcontrol db -repos create; 报错
STARTED EMCA at Jan 28, 2013 10:17:29 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: ALEX
Listener port number: 1521
Listener ORACLE_HOME [ F:\app\Tequila\product\11.2.0\dbhome_1 ]: cd F:\app\Tequila\product\11.2.0\dbhome_1
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Password for SYSMAN user: Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------
You have specified the following settings
Database ORACLE_HOME ................ F:\app\Tequila\product\11.2.0\dbhome_1
Local hostname ................ karmalab
Listener ORACLE_HOME ................ cd F:\app\Tequila\product\11.2.0\dbhome_1
Listener port number ................ 1521
Database SID ................ ALEX
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Jan 28, 2013 10:18:24 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at F:\app\Tequila\cfgtoollogs\emca\Alex\emca_2013_01_28_22_17_29.log.
Jan 28, 2013 10:18:25 PM oracle.sysman.emcp.util.FileUtil backupFile
WARNING: Could not backup file F:\app\Tequila\product\11.2.0\dbhome_1\sysman\config\emd.properties
Jan 28, 2013 10:18:25 PM oracle.sysman.emcp.util.FileUtil backupFile
WARNING: Could not backup file F:\app\Tequila\product\11.2.0\dbhome_1\sysman\config\emoms.properties
Jan 28, 2013 10:18:25 PM oracle.sysman.emcp.util.FileUtil backupFile
WARNING: Could not backup file F:\app\Tequila\product\11.2.0\dbhome_1\sysman\emd\targets.xml
Jan 28, 2013 10:18:25 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Jan 28, 2013 10:27:24 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Jan 28, 2013 10:27:31 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Jan 28, 2013 10:29:30 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Jan 28, 2013 10:29:30 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error updating F:\app\Tequila\product\11.2.0\dbhome_1\sysman\config\emoms.properties
Refer to the log file at F:\app\Tequila\cfgtoollogs\emca\Alex\emca_2013_01_28_22_17_29.log for more details.
Could not complete the configuration. Refer to the log file at F:\app\Tequila\cfgtoollogs\emca\Alex\emca_2013_01_28_22_17_29.log for more details.
SQL>
emca_2013_01_28_22_17_29.log
CONFIG: exception caught in copyFile:
oracle.sysman.emcp.exception.FileUtilException: Copying file F:\app\Tequila\product\11.2.0\dbhome_1\sysman\config\emoms.properties.emca to F:\app\Tequila\product\11.2.0\dbhome_1\sysman\config\emoms.properties
at oracle.sysman.emcp.util.FileUtil._copyFile(FileUtil.java:277)
at oracle.sysman.emcp.util.FileUtil.copyFile(FileUtil.java:618)
at oracle.sysman.emcp.util.FileUtil.copyFile(FileUtil.java:394)
at oracle.sysman.emcp.EMDBCConfig.updateEmomsProps(EMDBCConfig.java:926)
at oracle.sysman.emcp.EMDBCConfig.performConfiguration(EMDBCConfig.java:408)
at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:174)
at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:144)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:255)
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)
Caused by: java.io.FileNotFoundException: F:\app\Tequila\product\11.2.0\dbhome_1\sysman\config\emoms.properties (?????)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at oracle.sysman.emcp.util.FileUtil._copyFile(FileUtil.java:263)
... 11 more
Jan 28, 2013 10:29:30 PM oracle.sysman.emcp.EMDBCConfig updateEmomsProps
CONFIG: Copying file F:\app\Tequila\product\11.2.0\dbhome_1\sysman\config\emoms.properties.emca to F:\app\Tequila\product\11.2.0\dbhome_1\sysman\config\emoms.properties
Jan 28, 2013 10:29:30 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error updating F:\app\Tequila\product\11.2.0\dbhome_1\sysman\config\emoms.properties
Refer to the log file at F:\app\Tequila\cfgtoollogs\emca\Alex\emca_2013_01_28_22_17_29.log for more details.
Jan 28, 2013 10:29:30 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error updating F:\app\Tequila\product\11.2.0\dbhome_1\sysman\config\emoms.properties
at oracle.sysman.emcp.EMDBCConfig.performConfiguration(EMDBCConfig.java:413)
at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:174)
at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:144)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:255)
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)
Jan 28, 2013 10:29:30 PM oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to F:\app\Tequila\product\11.2.0\dbhome_1\oui
oracle
[解决办法]
是不是对文件的读写权限问题?