- 论坛徽章:
- 1
|
本帖最后由 蓦然princes 于 2015-04-02 14:13 编辑
环境说明:
oracle10gR2
Linux5.3
使用emca -repos recreate 进行重建仓库,提示连接错误。
我检查了listener.ora文件没有发现问题。
检查了/etc/hosts文件
--------------------------------------------------下面是/etc/hosts文件内容---------------------
[oracle@oracle11g orcl]$ more /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.74.4 oracle11g
[oracle@oracle11g orcl]$
-------------------------------------------------下面是listener状态--------------------------------------------------------------
[oracle@oracle11g orcl]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 01-MAR-2015 15:22:39
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=oracle11g)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 01-MAR-2015 14:43:37
Uptime 0 days 0 hr. 39 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/oracle/dbhome_11g/network/admin/listener.ora
Listener Log File /u01/oracle/diag/tnslsnr/oracle11g/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11g)(PORT=1521)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@oracle11g orcl]$
----------------------------------------------下面是emca -repos recreate结果 并且在指定的路径中没有提示中显示的log文件------------------------------------------
[oracle@oracle11g ~]$ emca -repos recreate
STARTED EMCA at Mar 1, 2015 2:47:37 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: orcl
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: yes
Mar 1, 2015 2:47:49 PM oracle.sysman.emcp.util.EMCALogManager addLogFileInternal
WARNING: Adding log file /u01/oracle/cfgtoollogs/emca/orcl/emca_2015_03_01_14_47_36.log failed. Messages will not be logged in this file.
Mar 1, 2015 2:47:49 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/oracle/cfgtoollogs/emca/orcl/emca_2015_03_01_14_47_36.log.
Mar 1, 2015 2:47:49 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Mar 1, 2015 2:47:50 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
[backcolor=Silver]WARNING: Error executing /u01/oracle/dbhome_11g/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle11g)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl))) -repos_user SYSMAN -action drop -verbose -output_file /u01/oracle/cfgtoollogs/emca/orcl/emca_repos_drop_2015_03_01_14_47_50.log
Mar 1, 2015 2:47:50 PM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error dropping the repository
Mar 1, 2015 2:47:50 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /u01/oracle/cfgtoollogs/emca/orcl/emca_repos_drop_<date>.log for more details.
Mar 1, 2015 2:47:50 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error dropping the repository
Refer to the log file at /u01/oracle/cfgtoollogs/emca/orcl/emca_2015_03_01_14_47_36.log for more details.
Could not complete the configuration. Refer to the log file at /u01/oracle/cfgtoollogs/emca/orcl/emca_2015_03_01_14_47_36.log for more details.
[oracle@oracle11g ~]$ |
|