冷备份系统后,然后重启DB Listener和DB没报什么错误,再起通过命令adstrtal.sh apps/apps来启动Apps Server的时候报错 [oracle@bej301441 scripts]$ adstrtal.sh apps/apps You are running adstrtal.sh version 120.15.12010000.3 adstrtal.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong. USAGE: adstrtal.sh <appsusername/appspassword> adstrtal.sh <applications_username/applications_password> -secureapps adstrtal.sh -nodbchk adstrtal.sh: exiting with status 1
如果DB有问题的话,那么./adstrtal.sh apps/apps 是不会启动的。
解决过程:
然后检查DB的情况,尝试用sqlplus来连instance. [oracle@bej301441 mc3yd213_bej301441]$ sqlplus apps/apps@mc3yd213
SQL*Plus: Release 10.1.0.5.0 - Production on Sat Jun 30 03:18:39 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12537: TNS:connection closed
Enter user-name:
sqlplus不能连上instance,那么应该是数据库的问题。
ping服务器的IP
C:\Documents and Settings\ptian>ping 10.182.74.181
Pinging 10.182.74.181 with 32 bytes of data:
Reply from 10.182.74.181: bytes=32 time=229ms TTL=57
Reply from 10.182.74.181: bytes=32 time=230ms TTL=57
Reply from 10.182.74.181: bytes=32 time=230ms TTL=57
Reply from 10.182.74.181: bytes=32 time=228ms TTL=57
Ping statistics for 10.182.74.181:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 228ms, Maximum = 230ms, Average = 229ms
C:\Documents and Settings\ptian>
能够ping通,说明网络没问题
SELINUX=disabled,防火墙也是关闭的,不存在防火墙阻挡的问题。
[oracle@bej301441 mc3yd213_bej301441]$ vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
tnsping这个instance C:\Documents and Settings\ptian>tnsping mc3yd213
TNS Ping Utility for 32-bit Windows: Version 10.1.0.2.0 - Production on 30-6月 -2012 18:14:29
Copyright (c) 1997, 2003, Oracle. All rights reserved.
Used parameter files:
D:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = bej301441.cn.oracle.com)(PORT = 1522)) (CONNECT_DATA = (SID = mc3yd213)))
OK (770 msec)
C:\Documents and Settings\ptian>
这是说明服务器端DB Listener已经启动了。
接下来再次检查listener的状态
[oracle@bej301441 mc3yd213_bej301441]$ lsnrctl status mc3yd213
LSNRCTL for Linux: Version 10.1.0.5.0 - Production on 30-JUN-2012 03:50:09
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bej301441)(PORT=1522))(CONNECT_DATA=(SID=mc3yd213)))
STATUS of the LISTENER
------------------------
Alias mc3yd213
Version TNSLSNR for Linux: Version 11.1.0.7.0 - Production
Start Date 30-JUN-2012 03:09:47
Uptime 0 days 0 hr. 40 min. 21 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/oracle/mc3yd213/db/tech_st/11.1.0/network/admin/mc3yd213_bej301441/listener.ora
Listener Log File /u01/oracle/mc3yd213/db/tech_st/11.1.0/log/diag/tnslsnr/bej301441/mc3yd213/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bej301441.cn.oracle.com)(PORT=1522)))
Services Summary...
Service "mc3yd213" has 1 instance(s).
Instance "mc3yd213", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@bej301441 mc3yd213_bej301441]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
10.182.74.33 bej301441.cn.oracle.com bej301441
10.182.74.181 bej301589.cn.oracle.com
138.1.191.58 rinoid06.us.oracle.com
138.1.191.59 rinoid07.us.oracle.com
使用addbctl.sh启动数据库 Use addbctl.sh to start DB server.It tell me server is running...
[oracle@bej301441 mc3yd213_bej301441]$ addbctl.sh start immediate
You are running addbctl.sh version 120.1
Starting the database mc3yd213 ...
SQL*Plus: Release 11.1.0.7.0 - Production on Sat Jun 30 07:33:53 2012
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to an idle instance.
ORA-01081: cannot start already-running ORACLE - shut it down first
Disconnected
addbctl.sh: exiting with status 9
[oracle@bej301441 mc3yd213_bej301441]$
提示信息说,数据库已经启动了