访问http://ocm2:4889/em后遇到503错误
Oracle 10g grid control 登录时报如下错误,从错误解释可以看出这是数据库连接问题。
Service Unavailable
Servlet error: Service is not initialized correctly. Verify that the repository connection information provided is correct.
一般安装Grid Control的计算机重启后数据库没有自动启动原因会导致以上错误。处理办法很简单那,即启动监听和repository数据库。
[@more@][oracle@ocm2 OracleHome]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Dec 8 17:21:58 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 448790528 bytes
Fixed Size 1219904 bytes
Variable Size 276824768 bytes
Database Buffers 163577856 bytes
Redo Buffers 7168000 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@ocm2 OracleHome]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-DEC-2012 17:29:08
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/OracleHome/db10g/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/OracleHome/db10g/network/admin/listener.ora
Log messages written to /u01/app/oracle/OracleHome/db10g/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ocm2)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 08-DEC-2012 17:29:08
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/OracleHome/db10g/network/admin/listener.ora
Listener Log File /u01/app/oracle/OracleHome/db10g/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ocm2)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@ocm2 OracleHome]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Dec 8 17:29:21 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> alter system register
2 ;
System altered.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@ocm2 OracleHome]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-DEC-2012 17:29:55
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 08-DEC-2012 17:29:08
Uptime 0 days 0 hr. 0 min. 47 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/OracleHome/db10g/network/admin/listener.ora
Listener Log File /u01/app/oracle/OracleHome/db10g/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ocm2)(PORT=1521)))
Services Summary...
Service "emrep" has 1 instance(s).
Instance "emrep", status READY, has 1 handler(s) for this service...
Service "emrep_XPT" has 1 instance(s).
Instance "emrep", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@ocm2 OracleHome]$
转自:http://blog.itpub.net/18841027/viewspace-1059877/