OMS Startup Fails during Repository Connection Attempt due to_310772.1
OMS Startup Fails during Repository Connection Attempt due to Database Connectivity Problems and Console Access Fails with '503 Service Unavailable' (Doc ID 310772.1)
In this Document
Symptoms |
Cause |
Solution |
References |
Applies to:
Enterprise Manager Base Platform - Version 10.1.0.4 to 10.2.0.5 [Release 10.1 to 10.2]
Information in this document applies to any platform.
***Checked for relevance on 05-Oct-2011***
Checked for relevance on 16-Jul-2013
Symptoms
Starting the OMS using 'opmnctl startall' completes successfully and the output of 'opmnctl status' shows:
opmnctl: starting opmn and all managed processes...
$ opmnctl status
Processes in Instance: EnterpriseManager0.hostname.domain
-------------------+--------------------+---------+---------
ias-component | process-type | pid | status
-------------------+--------------------+---------+---------
HTTP_Server | HTTP_Server | 12125 | Alive
LogLoader | logloaderd | N/A | Down
dcm-daemon | dcm-daemon | N/A | Down
OC4J | home | 12126 | Alive
OC4J | OC4J_EM | 12127 | Alive
OC4J | OC4J_EMPROV | 12128 | Alive
OC4J | OCMRepeater | 12129 | Alive
WebCache | WebCache | 12138 | Alive
WebCache | WebCacheAdmin | 12131 | Alive
DSA | DSA | N/A | Down
But trying to access the Grid Console URL from the browser fails with the error:
Servlet error: Service is not initialized correctly. Verify that the repository
connection information provided is correct.
The 'emctl status oms' command returns:
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
Oracle Management Server is not functioning because of the following reason:
Connection to the repository failed. Verify that the repository connection information provided is correct.
The
java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521)))(CONNECT_DATA=(SID=emrep)))
OR
jdbc.ConnectionCache _getConnection.352 - Io exception: The Network Adapter could not establish the connection
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
Cause
This issue could be caused by the following :
- The value of oracle.sysman.eml.mntr.emdRepConnectDescriptor in
- The value of oracle.sysman.eml.mntr.emdRepConnectDescriptor in
Without a correct descriptor in this file, the OMS cannot find a repository and will fail to start.
- The value of oracle.sysman.eml.mntr.emdRepConnectDescriptor in
Solution
To implement the solution, please execute the following steps:
1. Stop the opmn components:
opmnctl stopall
2. Take a backup of the the existing
3. Edit the following line in the emoms.properties file:
4. Review the syntax above carefully. Each paranthesis and value is required.
5. Test to see if the above connect descriptor works:
a) Edit the connect descriptor and remove the escape characters '\':
b) Test the connection string as follows:
./sqlplus sysman/
If the connection is successful then move to step 6 else re-check:
- hostname, port, SID/Service_name is correct
- there is a listener running on hostname/port specificed in the connect descriptor
- the listener on the specified port has a valid service for this repository database and the connections are not 'blocked'.
- the database is actually in status Open
6. Save the changes to the emoms.properties file.
7. Stop and re-start the OMS:
opmnctl startall
Try connecting to the Grid Console URL from the browser
References
NOTE:285087.1 - How to Move a Grid Control Repository to a 10.1.0.3 Database

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1159366/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- sourcetree github clone 報錯 hg clone fails with “repository not found“GithubAI
- OGG Connection test fails with: weblogic.transaction.internal.TimedOutException:AIWebException
- QT during startup program with code 0xc0000135(139)QT
- Bug 12725963 - New database connection fails with ORA-12541 after vip failoverDatabaseAI
- mysqldump: Error 2013: Lost connection to MySQL server during query when dumpingMySqlErrorServer
- cassandra啟動報錯:Exiting due to error while processing commit log during initialization.ErrorWhileMIT
- Mysql mysql lost connection to server during query 問題解決方法MySqlServer
- MySQL報錯ERROR 2013 (HY000): Lost connection to MySQL server during queryMySqlErrorServer
- OMS
- startup,startup mount,startup nomount之間的區別
- OMS Log Files 位置
- Will attempt to recover by breaking constraintAI
- [!] Attempt to read non existent folder `***********`
- startup nomount
- This is the easiest to observe during the gameGAM
- Cannot retrieve repository metadata (repomd.xml) for repositoryXML
- attempt to index local ‘result‘ (a nil value)Index
- Bundle the repository
- Cannot retrieve repository metadata (repomd.xml) for repository: baseXML
- nacos Connection refused (Connection refused)
- querydsl報錯: Attempt to recreate a file for type
- Online Book Repository
- DDD與Repository
- SpokenEnglish01_ When's it due?
- MySQL Server Startup ScriptMySqlServer
- Nginx配置max_fails fail_timeoutNginxAI
- Connection
- *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[APPException
- Message from debugger: Terminated due to signal 13
- JPA Repository之JpaRepositoryImplementation
- repository 模式的小解模式
- 如何使用 Repository 模式模式
- "bare repository" learning by examples
- [20200302]startup dba.txt
- 4.1.2 關於Startup部署
- Jetpack之Startup快速掌握Jetpack
- java.net.ConnectException: Connection refused (Connection refused)JavaException
- LGWR (ospid: 29534): terminating the instance due to error 4021Error
- pip install 提示:Could not install packages due to an EnvironmentErrorPackageError