冷備份系統後(見Oracle EBS系統整體備份(冷備份) ),然後重啟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已經啟動了。