症状:在oracle中创建了2个数据库lch2014和orcl.连接lch2014上时,执行shutdown immediate,反应有点慢,就直接关掉了。后来在连就一直卡住了。 。我把lch2014和orcl的实例服务都打开了,电脑也重启了。但是lch2014还是卡住连不上,但是orcl可以正常使用。
求解!!
16 个解决方案
#1
这是我重启之后开启的服务
#2
#3
orcl这个实例没有问题
#4
看看 alert日志有没有报错,还是这台服务器无法运行两个实例因为内存不够?
#5
怎么alter日志?先连lch2014也是,应该不是内存问题
#6
这是文件目录
应该看哪一个?
#7
把 alter.log 和 listener.log 都删除(移走、重命名都可以),再重启 你的 LCH2014 和 TNSListener 服务,会自动重新生成这两个文件,你再贴内容上来。
#8
找不到alter.log和listener.log文件。。只找到listener.ora这是开始的
我把它移走之后,lch2014那个服务就启动不了了
# listener.ora Network Configuration File: D:\app\lch\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\lch\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\lch\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = D:\app\lch\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
)
(SID_DESC =
(GLOBAL_DBNAME = lch2014)
(ORACLE_HOME = D:\app\lch\product\11.2.0\dbhome_1)
(SID_NAME = lch2014)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = lch-PC)(PORT = 1521))
)
ADR_BASE_LISTENER = D:\app\lch
我把它移走之后,lch2014那个服务就启动不了了
#9
network/log 下,看看,有没有 listener.log
bdmp 看,看看有没有 alter_sid.log 文件。
bdmp 看,看看有没有 alter_sid.log 文件。
#10
里面只有一个sqlnet.log。这是最近的记录
***********************************************************************
Fatal NI connect error 12541, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=D:\app\lch\product\11.2.0\dbhome_1\bin\emagent.exe)(HOST=LCH-PC)(USER=SYSTEM))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
Time: 10-7月 -2014 07:11:55
Tracing not turned on.
Tns error struct:
ns main err code: 12541
TNS-12541: TNS: 无监听程序
ns secondary err code: 12560
nt main err code: 511
TNS-00511: 无监听程序
nt secondary err code: 61
nt OS err code: 0
***********************************************************************
Fatal NI connect error 12528, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=D:\app\lch\product\11.2.0\dbhome_1\bin\emagent.exe)(HOST=LCH-PC)(USER=SYSTEM))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
Time: 10-7月 -2014 07:12:42
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS: 拒绝连接
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
***********************************************************************
Fatal NI connect error 12528, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=D:\app\lch\product\11.2.0\dbhome_1\bin\emagent.exe)(HOST=LCH-PC)(USER=SYSTEM))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
Time: 10-7月 -2014 07:12:42
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS: 拒绝连接
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
***********************************************************************
Fatal NI connect error 12505, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=lch-PC)(PORT=1521))(CONNECT_DATA=(SID=lch2014)(CID=(PROGRAM=D:\app\lch\product\11.2.0\dbhome_1\bin\emagent.exe)(HOST=LCH-PC)(USER=SYSTEM))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
Time: 10-7月 -2014 11:37:04
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS: 拒绝连接
ns secondary err code: 12560
nt main err code: 517
TNS-00517: 丢失连接
nt secondary err code: 54
nt OS err code: 0
#11
不知道不引用,你能不能收到,所以再引用一下
#12
d:\app\yakecan\diag\rdbms\orcl \orcl\trace
告警日志的路径,经色部分换成你的OS路径。
一般可以用这个命令查看的
show parameter background_dump
告警日志的路径,经色部分换成你的OS路径。
一般可以用这个命令查看的
show parameter background_dump
#13
http://blog.csdn.net/haiross/article/details/13603519
#14
感觉可能是网络层面问题
你tnsping试试看
你tnsping试试看
#15
还是 先看看alert.log
#16
你试试 在把orcl给关闭的时候,只启动lch2014 看看能不能连上,另外你的 监听文件 listener.ora怎么写的,贴上来,会不会是 只监听了orcl的端口?路径为:E:\app\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora文件
#1
这是我重启之后开启的服务
#2
#3
orcl这个实例没有问题
#4
看看 alert日志有没有报错,还是这台服务器无法运行两个实例因为内存不够?
#5
怎么alter日志?先连lch2014也是,应该不是内存问题
#6
这是文件目录
应该看哪一个?
#7
把 alter.log 和 listener.log 都删除(移走、重命名都可以),再重启 你的 LCH2014 和 TNSListener 服务,会自动重新生成这两个文件,你再贴内容上来。
#8
找不到alter.log和listener.log文件。。只找到listener.ora这是开始的
我把它移走之后,lch2014那个服务就启动不了了
# listener.ora Network Configuration File: D:\app\lch\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\lch\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\lch\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = D:\app\lch\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
)
(SID_DESC =
(GLOBAL_DBNAME = lch2014)
(ORACLE_HOME = D:\app\lch\product\11.2.0\dbhome_1)
(SID_NAME = lch2014)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = lch-PC)(PORT = 1521))
)
ADR_BASE_LISTENER = D:\app\lch
我把它移走之后,lch2014那个服务就启动不了了
#9
network/log 下,看看,有没有 listener.log
bdmp 看,看看有没有 alter_sid.log 文件。
bdmp 看,看看有没有 alter_sid.log 文件。
#10
里面只有一个sqlnet.log。这是最近的记录
***********************************************************************
Fatal NI connect error 12541, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=D:\app\lch\product\11.2.0\dbhome_1\bin\emagent.exe)(HOST=LCH-PC)(USER=SYSTEM))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
Time: 10-7月 -2014 07:11:55
Tracing not turned on.
Tns error struct:
ns main err code: 12541
TNS-12541: TNS: 无监听程序
ns secondary err code: 12560
nt main err code: 511
TNS-00511: 无监听程序
nt secondary err code: 61
nt OS err code: 0
***********************************************************************
Fatal NI connect error 12528, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=D:\app\lch\product\11.2.0\dbhome_1\bin\emagent.exe)(HOST=LCH-PC)(USER=SYSTEM))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
Time: 10-7月 -2014 07:12:42
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS: 拒绝连接
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
***********************************************************************
Fatal NI connect error 12528, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=D:\app\lch\product\11.2.0\dbhome_1\bin\emagent.exe)(HOST=LCH-PC)(USER=SYSTEM))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
Time: 10-7月 -2014 07:12:42
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS: 拒绝连接
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
***********************************************************************
Fatal NI connect error 12505, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=lch-PC)(PORT=1521))(CONNECT_DATA=(SID=lch2014)(CID=(PROGRAM=D:\app\lch\product\11.2.0\dbhome_1\bin\emagent.exe)(HOST=LCH-PC)(USER=SYSTEM))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
Time: 10-7月 -2014 11:37:04
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS: 拒绝连接
ns secondary err code: 12560
nt main err code: 517
TNS-00517: 丢失连接
nt secondary err code: 54
nt OS err code: 0
#11
不知道不引用,你能不能收到,所以再引用一下
#12
d:\app\yakecan\diag\rdbms\orcl \orcl\trace
告警日志的路径,经色部分换成你的OS路径。
一般可以用这个命令查看的
show parameter background_dump
告警日志的路径,经色部分换成你的OS路径。
一般可以用这个命令查看的
show parameter background_dump
#13
http://blog.csdn.net/haiross/article/details/13603519
#14
感觉可能是网络层面问题
你tnsping试试看
你tnsping试试看
#15
还是 先看看alert.log
#16
你试试 在把orcl给关闭的时候,只启动lch2014 看看能不能连上,另外你的 监听文件 listener.ora怎么写的,贴上来,会不会是 只监听了orcl的端口?路径为:E:\app\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora文件